Introduction
As language models (LMs) grow increasingly complex, understanding why they make specific decisions is critical for ensuring their safety and reliability. However, the high-level concepts that drive these decisions are often deeply entangled within the model's activations. A single neuron or embedding dimension might simultaneously represent a subject's gender, their occupation, and the grammatical tense of the sentence.
This paper introduces an unsupervised method to discover causal differentiating concepts—the specific, disentangled latent factors that must change to alter a model's behavior. By assuming that behavior changes require only sparse shifts in underlying concepts, the proposed method successfully isolates interpretable features directly from model activations without relying on extensive human labeling.
The Challenge of Entangled Representations
To disentangle LM activations, current interpretability methods typically require supervision, such as human-annotated concept labels or known causal graphs. This approach is unscalable and biases discovery toward simple, predefined features that are easy to annotate.
On the other end of the spectrum, unsupervised methods like Sparse Autoencoders (SAEs) attempt to find all features in a model. This shotgun approach often results in millions of features, requiring tedious post-hoc analysis to determine which ones actually influence a specific model behavior. The authors tackle this gap by proposing a method to find behavior-relevant, disentangled concepts without needing ground-truth concept labels.
Methodology: Discovering Causal Differentiating Concepts
The authors introduce a framework to find the interpretable latent directions in LM activations that must be changed to elicit a different model behavior (e.g., changing a model's prediction from "high income" to "low income").
They achieve this by learning a bottleneck layer, $\hat{z} = \tau(g(x))$, on top of the LM's activations. The training relies on a novel constrained contrastive learning objective driven by two key assumptions:
- Log-linear prediction: The model's behavior class is a log-linear function of the underlying latent concepts.
- Sparsity: To change the model's behavior between two specific groups, you only need to make a sparse change to the underlying concepts. Specifically, the authors assume a 1-sparse change, meaning only one concept needs to shift to alter the outcome.
The loss function forces the bottleneck to predict the coarse behavior class while simultaneously searching for pairs of examples from different behavior classes that differ by exactly one dimension in the learned latent space. The authors mathematically prove that these constraints guarantee the recovery of the true underlying concepts up to scaling and permutation.
Experimental Setup and Datasets
The researchers validated their approach across three distinct settings:
- Synthetic Data: Custom-generated datasets with 2 or 3 known latent factors, mixed using linear, non-linear sparse, and non-linear non-sparse functions.
- Semi-synthetic Data: The BiasBios dataset, which predicts if a candidate makes a six-figure salary based on their bio. The ground-truth causal factors here are gender and occupation level.
- Non-synthetic (Case Study): A custom compilation of prompts to study LM refusal behavior, including harmful prompts, harmless prompts, and pseudo-harmful prompts.
Key Insights and Results
Sparsity as a Powerful Inductive Bias
Fully unsupervised learning is notoriously unidentifiable, meaning there are infinite mathematically correct ways to disentangle data. By simply assuming that a change in model behavior is driven by a change in a single underlying concept (1-sparsity), the authors constrain the math enough to perfectly isolate true causal factors without any labels. In synthetic tests, the method achieved near-perfect disentanglement (DCI-D scores > 0.89) and correlation with true factors (MCC > 0.86) across all mixing functions, vastly outperforming standard autoencoding baselines.
Targeted Interpretability Outperforms SAEs
While SAEs are popular, they often decompose concepts into overly fine-grained pieces that are hard to link to specific model outputs. By anchoring the contrastive loss to a specific behavior, this method learns concepts at the exact level of granularity needed to explain that behavior. On the semi-synthetic BiasBios dataset using Llama-3.1-8B, the method successfully disentangled gender and occupation, achieving a DCI-D score of 0.86. In contrast, state-of-the-art 32k and 128k SAEs maxed out at a disentanglement score of 0.49 for these specific causal factors.
Emergence of Axis-Aligned Latent Spaces
In the non-synthetic refusal case study, the method was not given any labels about which prompts were harmful, harmless, or pseudo-harmful. Instead, it used the model's raw refusal probabilities to cluster the prompts into a perfectly axis-aligned latent space. Moving along one axis strictly changed the "harmfulness" of the prompt, while moving along the other changed the "topic," proving the method can find human-interpretable axes in the wild.
Limitations and Future Work
While promising, the approach has a few notable limitations:
- The 1-Sparsity Assumption: The core theoretical proofs rely on the assumption that behavior changes are driven by 1-sparse shifts in concepts. While preliminary tests show the method can handle 2-sparse (or $p$-sparse) conditions, formalizing this is left for future work.
- Linearity in Early Layers: The method assumes concepts are linearly encoded. While this holds true in the final layers of an LM, experiments showed the method struggles to find disentangled representations in early layers (e.g., layers 1-9 of Llama-3.1-8B).
- Guessing Latent Dimensionality: The number of true mediating concepts must be set as a hyperparameter. While the authors provide heuristic signals (like monitoring drops in completeness scores) to help tune this, it remains a manual step when applying the method to entirely novel domains.
Summary updated