TL;DR
Standard Sparse Autoencoders (SAEs) trained layer-by-layer waste dictionary capacity by repeatedly learning the same carried-forward information in a transformer's residual stream. This paper introduces Residualized Sparse Autoencoders (ReSAEs), which use simple affine maps to subtract predictable cross-layer information, forcing each SAE to focus purely on newly introduced features. This approach reduces feature redundancy and significantly improves the reliability and predictability of multi-layer interventions.
What Problem Does This Paper Address?
Mechanistic interpretability often relies on Sparse Autoencoders (SAEs) to decompose the hidden states of Large Language Models (LLMs) into sparse, human-understandable concepts. However, standard SAEs are trained independently, one layer at a time. This ignores a fundamental property of transformer architectures: the residual stream is highly continuous, meaning a substantial fraction of any given layer's activation is just information carried forward or lightly transformed from earlier layers.
This independent training strategy creates two major issues:
- Capacity Waste: Different layerwise dictionaries waste capacity representing the exact same carried-forward information.
- Intervention Instability: When researchers try to intervene on multiple layers simultaneously (e.g., for steering or ablation), the layers interact unpredictably. Errors compound across layers, driving activations out of the SAEs' training distributions and causing non-additive side effects.
Methods
The authors propose Residualized Sparse Autoencoders (ReSAEs) to decouple the layers. Instead of training a later-layer SAE on its raw activation $h(L_y)$, they first fit an affine map (using ridge-regularized ordinary least squares) from an earlier layer's activation $h(L_x)$.
The later-layer SAE is then trained purely on the unexplained residual target: $$r(L_y) = h(L_y) - A h(L_x) - c$$
At reconstruction time, the SAE's output is recursively composed back into the original activation space through the fitted affine chain. This forces each SAE to encode only what is newly introduced at its layer. During online multi-layer interventions, ReSAE hooks subtract the predictable component from the current activation based on the reconstructed previous layer, preventing upstream intervention errors from compounding wildly downstream.
Datasets
- Training: The SAEs were trained using activations collected from the
monology/pile-uncopyrighteddataset. - Evaluation: Feature-quality evaluations utilized SAE Bench, encompassing downstream tasks from Bias-in-Bios, Amazon reviews, GitHub code, AG News, and Europarl.
Key Insights and Ideas
- The Residual Stream is Highly Predictable: Simple linear affine regressions explain a massive fraction of downstream activation variance ($R^2$ values of 0.6 to 0.8). Training SAEs on raw activations means they spend most of their time relearning this predictable structure.
- The Explained Variance Paradox: ReSAEs exhibit lower raw explained variance (EV) than standard SAEs because they are tasked with reconstructing a much harder, non-linear residual target. However, they recover more of the model's actual performance (cross-entropy). This proves that raw EV can be a misleading metric; ReSAEs successfully steer capacity away from passive information transmission and toward functionally relevant computation.
- Restoring Additivity: By removing cross-layer redundancy, multi-layer interventions behave much more like the sum of their single-layer parts (achieving near-zero "overinteraction"), making joint multi-layer steering far more predictable.
Key Results
- Less Redundant Dictionaries: ReSAEs consistently achieved lower mean max decoder cosine similarity across both Pythia-1.4B and Gemma-2-9B, proving they learn a less duplicated feature basis.
- Better Cross-Entropy Recovery: Under multi-layer replacement on Pythia-1.4B, ReSAEs outperformed raw SAEs in teacher-forced cross-entropy recovery at all sparsity levels ($k$). In sequential online interventions, ReSAEs overtook the baseline once the sparse code had enough capacity ($k \ge 160$).
- Downstream Feature Quality: ReSAEs demonstrated superior sparse probing accuracy (e.g., top-5 accuracy of 0.879 vs 0.849 at $k=40$ on Pythia) and performed better on Targeted Probe Perturbation (TPP) under joint per-layer budgets.
- Robustness to Layer Spacing: On Gemma-2-9B, the cross-entropy and redundancy benefits held firm across varying layer gaps (spacing layers 4, 6, or 8 steps apart).
Limitations and Future Work
- Task-Dependent Trade-offs: ReSAEs did not perform as well on Spurious Correlation Removal (SCR) tasks. This indicates that joint ablations of residualized features can sometimes inadvertently remove useful causal signals, meaning ReSAEs are not a silver bullet for every intervention type.
- Strict Linearity: The authors limited their mapping to affine transformations. While computationally cheap and interpretable, non-linear or more complex cross-layer predictors might capture even more structure—though they risk discarding interpretability-rich information.
- Memory Overhead: Storing full affine transformation matrices between multiple layers can become prohibitively expensive for ultra-wide frontier models. Future work will need to explore low-rank, block-structured, or compressed regression maps to make this approach practical at scale.
Summary updated