Beyond Single Concept Vector: Modeling Concept Subspace in LLMs with Gaussian Distribution

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhao, Haiyan, Zhao, Heng, Shen, Bo, Payani, Ali, Yang, Fan, Du, Mengnan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913821719789568
author Zhao, Haiyan
Zhao, Heng
Shen, Bo
Payani, Ali
Yang, Fan
Du, Mengnan
author_facet Zhao, Haiyan
Zhao, Heng
Shen, Bo
Payani, Ali
Yang, Fan
Du, Mengnan
contents Probing learned concepts in large language models (LLMs) is crucial for understanding how semantic knowledge is encoded internally. Training linear classifiers on probing tasks is a principle approach to denote the vector of a certain concept in the representation space. However, the single vector identified for a concept varies with both data and training, making it less robust and weakening its effectiveness in real-world applications. To address this challenge, we propose an approach to approximate the subspace representing a specific concept. Built on linear probing classifiers, we extend the concept vectors into Gaussian Concept Subspace (GCS). We demonstrate GCS's effectiveness through measuring its faithfulness and plausibility across multiple LLMs with different sizes and architectures. Additionally, we use representation intervention tasks to showcase its efficacy in real-world applications such as emotion steering. Experimental results indicate that GCS concept vectors have the potential to balance steering performance and maintaining the fluency in natural language generation tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2410_00153
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Beyond Single Concept Vector: Modeling Concept Subspace in LLMs with Gaussian Distribution
Zhao, Haiyan
Zhao, Heng
Shen, Bo
Payani, Ali
Yang, Fan
Du, Mengnan
Computation and Language
Artificial Intelligence
Machine Learning
Probing learned concepts in large language models (LLMs) is crucial for understanding how semantic knowledge is encoded internally. Training linear classifiers on probing tasks is a principle approach to denote the vector of a certain concept in the representation space. However, the single vector identified for a concept varies with both data and training, making it less robust and weakening its effectiveness in real-world applications. To address this challenge, we propose an approach to approximate the subspace representing a specific concept. Built on linear probing classifiers, we extend the concept vectors into Gaussian Concept Subspace (GCS). We demonstrate GCS's effectiveness through measuring its faithfulness and plausibility across multiple LLMs with different sizes and architectures. Additionally, we use representation intervention tasks to showcase its efficacy in real-world applications such as emotion steering. Experimental results indicate that GCS concept vectors have the potential to balance steering performance and maintaining the fluency in natural language generation tasks.
title Beyond Single Concept Vector: Modeling Concept Subspace in LLMs with Gaussian Distribution
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2410.00153