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

Haiyan Zhao, Heng Zhao, Bo Shen, Ali Payani, Fan Yang, Mengnan Du

Introduction

To understand how Large Language Models (LLMs) encode semantic knowledge, researchers frequently rely on linear probing. By training a simple classifier on a model's hidden layers, they can isolate a vector corresponding to a specific concept, such as "sentiment" or "topic." Theoretically, adding a "joyful" vector to the model's activations steers its output toward a happier tone.

However, this approach has a significant flaw: the specific vector identified is highly sensitive to the training data. Using a different set of examples yields a different vector, indicating that a single point is an incomplete representation of a concept. To address this instability, researchers propose the Gaussian Concept Subspace (GCS) framework. GCS posits that concepts occupy a subspace—a multidimensional neighborhood of directions—rather than a single point, leading to more robust interpretability and effective model steering.

Methodology

The GCS framework transitions from point estimates to distribution modeling through a four-step process:

  1. Data Generation: A high-performance model (GPT-4o) generates thousands of positive and negative text samples for specific concepts.
  2. Multiple Probing: Instead of training a single classifier, researchers randomly sample subsets of this data to train multiple independent linear probes (logistic regression), producing a set of "observed" concept vectors.
  3. Distribution Fitting: These observed vectors are used to estimate a Gaussian distribution defined by a mean ($\mu$) and a diagonal covariance matrix ($\Sigma$). This distribution represents the concept's "subspace."
  4. Sampling: To apply the concept, new vectors are sampled from this Gaussian distribution.

Assuming a diagonal covariance keeps computation efficient while effectively capturing the concept's variance across the representation space.

Datasets

To evaluate GCS, the study utilizes a custom hierarchical concept structure containing high-level categories and low-level concepts.

Hierarchical concept structure used for evaluation

The dataset includes 5,000 positive and 5,000 negative samples per low-level concept. The framework was evaluated across several models, including Llama-2-7B, Llama-2-13B, and Gemma-7B.

Key Insights and Results

Concepts as Neighborhoods

A core finding is that concepts are best understood as regions in activation space. Vectors sampled from the GCS distribution perform as well as, or better than, the vectors explicitly trained on the data. Interestingly, vectors sampled within one standard deviation ($1\sigma$) of the mean often exhibited higher classification accuracy than the original "observed" vectors, suggesting the GCS mean is a highly refined representation of the concept's core.

Cosine similarity distributions for the concept "Bird" across different models and layers

As shown above, the cosine similarity between observed and sampled vectors remains high across different layers and architectures, validating that the sampled vectors faithfully represent the learned knowledge. Furthermore, concept representations become more stable and distinct in the deeper layers of the LLM, peaking near the penultimate layers.

Plausibility and Steering

When visualizing these subspaces, the models' internal geometry naturally clusters related concepts. For instance, "Populated Places" and "Animals" cluster closer to each other than to "Movie Genres," perfectly aligning with human intuition about real-world categories.

In practical applications like emotion steering (e.g., shifting Llama-2-7B from "angry" to "joyful" movie reviews), GCS vectors outperformed standard mean-difference vectors. GCS successfully altered the sentiment while maintaining the fluency and coherence of the generated text, avoiding the repetitive or nonsensical outputs often caused by single-vector interventions.

Limitations and Future Work

While promising, the GCS approach has limitations:

  • Synthetic Data Reliance: Relying on GPT-4o to generate probing datasets may introduce biases or artificially "clean" concepts compared to noisy, real-world data.
  • Diagonal Covariance Assumption: Assuming independent dimensions simplifies calculations but may miss complex inter-dimensional relationships that a full covariance matrix would capture.
  • Evaluation Bottleneck: Using an "LLM-as-a-judge" to evaluate steering success can introduce blind spots regarding text quality.

Future research will explore utilizing GCS to mitigate broader undesirable behaviors in LLMs, moving beyond simple sentiment steering to more complex alignment tasks.

Summary updated

BibTeX
@inproceedings{zhao2025beyond,
  author = {Haiyan Zhao and Heng Zhao and Bo Shen and Ali Payani and Fan Yang and Mengnan Du},
  title = {{Beyond Single Concept Vector: Modeling Concept Subspace in LLMs with Gaussian Distribution}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=CvttyK4XzV},
}
Figure