Overview
Researchers have introduced the Multi-Layer Sparse Autoencoder (MLSAE), a single model trained on activation vectors from every layer of a transformer. While the initial expectation was that features would "switch on" and stay active across multiple layers, the study reveals that features are surprisingly layer-specific for individual tokens. This highlights a significant "representation drift" as information moves through the model's layers.
The Correspondence Problem in Mechanistic Interpretability
Mechanistic interpretability aims to crack open the "black box" of Large Language Models (LLMs) to understand how they represent concepts. Currently, the gold standard tool is the Sparse Autoencoder (SAE), which decomposes complex model activations into a small number of interpretable "features."
However, standard practice involves training a separate SAE for every single layer of a transformer. This creates a "correspondence problem": if Layer 5 has a "Paris" feature and Layer 6 also has a "Paris" feature, how do we know they are actually representing the same concept? This ambiguity makes tracing the flow of information across the model’s "residual stream"—its internal communication highway—notoriously difficult. The authors set out to determine if a single SAE could learn a universal dictionary for the entire model.
Introducing the MLSAE
To solve this, the authors propose the MLSAE. Instead of training $N$ autoencoders for $N$ layers, they treat activations from all layers as separate training examples for one single SAE. This is referred to as a "data-stacked" approach.
Key technical details include:
- Architecture: A $k$-sparse autoencoder using a TopK activation function, which ensures exactly $k$ features are active at any time, providing a direct lever on sparsity.
- Loss Function: The model uses Fraction of Variance Unexplained (FVU) instead of Mean Squared Error (MSE) to prevent the autoencoder from ignoring layers with smaller activation magnitudes.
- Tuned Lens: To account for the fact that different layers might "speak different languages" (utilize different bases), the researchers experimented with applying a pre-trained "tuned lens" transformation. This aligns all layers into a common representational space before feeding them to the SAE.
The MLSAEs were trained on 1 billion tokens from the Pile (excluding the copyrighted Books3 subset) and evaluated across several model families, including the Pythia Suite (70M to 2.8B parameters), Llama 3.2 3B, Gemma 2 2B, and GPT-2 small.
Key Insights and Ideas
- The "Aggregate vs. Instance" Paradox: When looking at millions of tokens in aggregate, a feature (like "uppercase letters") appears to be active across many layers. However, for any single token, that same feature is usually active in only one or two specific layers.
- Representation Drift: The residual stream isn't just a static storage area; it is constantly evolving. The "basis" or coordinate system the model uses to represent information shifts as it moves from layer to layer. This drift is a major obstacle for interpretability.
- Model Size Matters: In larger models, features tend to stay active across more layers. This correlates with the finding that adjacent layers in larger models have more similar activation vectors.
- The Tuned Lens Surprise: Even when using a "tuned lens" to mathematically align the layers into a single basis, the layer-specificity for individual tokens persisted. This suggests that representation drift is fundamental to how transformers compute, not merely a rotation of the coordinate system.
Key Results
- Efficiency: MLSAEs achieve reconstruction errors and downstream loss increases comparable to training many individual single-layer SAEs, but with a significantly simpler setup.
- Variance Gap: The variance of latent activations over layers is about two orders of magnitude (100x) greater when aggregating over many tokens compared to a single token. This quantitatively proves that features "move" their preferred layer depending on the context.
- Cosine Similarity: The researchers confirmed that as models scale up, the mean cosine similarity between adjacent layers increases. For example, similarity jumps from ~0.5 in Pythia-70m to ~0.9 in Pythia-2.8b. This explains why features appear more "multi-layer" in larger models.
Limitations and Future Work
The authors acknowledge that their "data-stacked" approach—treating layers as separate examples—might not be the final word. They briefly discussed a "feature-stacked" approach (concatenating all layers into one giant vector) but discarded it because it makes tracking a single feature's evolution over time impossible.
A significant limitation remains the Representation Drift itself. If a concept's "address" in the residual stream changes at every layer, even a multi-layer SAE struggles to provide a perfectly stable map. Future work may need to focus on "Transcoders"—models designed specifically to map how features in one layer transform into features in the next—to truly solve the circuit analysis puzzle.
Summary updated