New SAE training method lets Gemma-2-2B replacement models retain language without error nodes
Replacement-aware SAEs keep LLMs coherent even after re-encoding multiple layers—no error nodes needed.
Researchers studying mechanistic interpretability often build 'replacement models' where internal LLM activations are replaced with interpretable features from sparse autoencoders (SAEs). This approach, however, suffers from severe degradation—even a few SAE-replaced layers can make the model incoherent. To fix this, previous work (Marks et al. 2024) introduced explicit error nodes that cancel out the SAE's reconstruction errors, but Lloyd found this method 'deeply unsatisfying' because it obscures the true causal structure.
In a new cross-post on LessWrong, Lloyd presents an alternative: replacement-aware training. Instead of patching errors afterwards, they train SAEs that are robust to upstream distortions by adding a loss term that penalizes damage to the next layer's features. Scaling this approach from a toy model to Gemma-2-2B, they produced a suite of residual stream SAEs that can be used as-is in a full replacement model. While performance on benchmarks like MMLU is still below chance without fine-tuning, the replacement models retain basic language coherence and significantly lower KL divergence from the base model compared to standard SAEs. Additional tricks—a short (~1 million token) encoder fine-tuning and a LISTA-based encoder—further reduce divergence. Lloyd considers these results an existence proof that error nodes are unnecessary if SAEs are designed for the replacement use case.
- Replacement-aware training reduces KL divergence between replacement and base model by a large margin compared to standard SAE methods, without sacrificing faithfulness.
- A short (~1 million tokens) encoder-only fine-tuning stage further reduces KL divergence, effective even on replacement-naive SAEs.
- Using a LISTA-based encoder improves robustness to upstream errors; replacement models retain some capability on MMLU (though below chance without fine-tuning).
Why It Matters
Interpretable AI without lossy error nodes—paving the way for reliable circuit analysis in LLMs.