Sparse autoencoders trained end-to-end to preserve output logits rather than reconstruct local layer activations cut cross-entropy degradation to under 45% of standard local SAEs at the same sparsity (L0) and cut active features per token by roughly 2.5x at matched performance. Dan Braun, Jordan Taylor, Nicholas Goldowsky-Dill, and Lee Sharkey show that standard local mean-squared-error (MSE) SAEs waste dictionary capacity reconstructing high-variance directions the rest of the transformer barely reads.
- Over 2x fewer active features (
L0): On GPT-2 Small layer 6 at matched cross-entropy (CE) increase (~0.144 nats),SAE_localrequires69.4active features per token whileSAE_e2eneeds27.5(2.5xfewer) andSAE_e2e+dsneeds36.8(1.9xfewer). - Smaller live dictionaries: At the same layer-6 CE budget,
SAE_e2e+dskeeps15kalive dictionary elements compared to26kforSAE_local(out of46,080initialized slots). - Scaling local SAEs fails to catch up: Neither expanding
SAE_localwidth from60xto100xresidual dimension (76,800features) nor doubling training data from400kto800ksamples moves its Pareto frontier close to end-to-end training. - No interpretability penalty: Across ~200 sampled features per dictionary rated via automated LLM explanations,
SAE_e2e+dsmatchesSAE_localat equalL0and scores significantly higher at equal CE loss in layers 2 (+0.08,p = 0.0057) and 6 (+0.10,p = 0.00044). - The catch is training speed: Backpropagating through downstream transformer blocks makes end-to-end training
2xto3.5xslower on an A100 GPU (11h 24mvs4h 45mat layer 6).
How It Works
Standard sparse dictionary learning treats every vector direction inside a residual stream in proportion to its squared norm. Yet transformers do not weight every direction equally: a tiny component can flip next-token probabilities, while a huge variance component may sit nearly unused by downstream attention and MLP blocks. The authors confirm this directly at GPT-2 Small layer 10 (Appendix G.3). There, SAE_local devotes 593 dictionary features in a single UMAP cluster to reconstructing variation along the 0th PCA direction at non-initial token positions, whereas SAE_e2e+ds puts only 2 features there. When the researchers resample-ablate that 0th PCA direction at positions greater than 0, the model’s output KL divergence shifts by just 0.01, the smallest effect among the top 30 PCA directions.
End-to-end training fixes this mismatch while keeping all base model weights frozen. At layer l, SAE_e2e replaces the residual stream a^(l) with the SAE reconstruction, runs the remaining frozen transformer blocks forward to output logits y_hat, and optimizes KL(y_hat, y) + phi * ||Enc(a^(l))||_1.
Pure logit KL creates a new hazard, however: the SAE can pass activations along an unintended pathway through later layers that still arrives at similar logits. Indeed, SAE_e2e suffers high MSE on downstream layers and learns inconsistent features across random seeds. To anchor the computation, SAE_e2e+ds adds the average MSE across all downstream layers l+1 through L-1 (weighted by beta_l, set to 2.5 for layers 2 and 6, and 0.05 for layer 10). That keeps downstream activations faithful to the original forward pass without forcing the SAE to reconstruct dead-end directions at layer l itself.
Key Findings
Across GPT-2 Small (baseline CE 3.139, 400k OpenWebText samples of 1,024 tokens, 46,080 dictionary slots) at layers 2, 6, and 10, as well as TinyStories-1M (layer 5 of 8), both end-to-end variants Pareto-dominate local MSE training over L0 between 50 and 300, keeping CE loss increase below 45% of SAE_local.
Geometry checks explain part of the efficiency gain. Measuring cosine similarity from each dictionary feature to its nearest neighbor inside the same SAE shows SAE_local features are more tightly clustered: mean nearest-neighbor similarity at layer 6 is 0.04 higher than SAE_e2e+ds (95% CI [0.037, 0.043]) and 0.166 higher than SAE_e2e (95% CI [0.163, 0.168]), meaning local SAEs spend more capacity on fine-grained feature splitting (such as dozens of narrow "by" phrase triggers). Even so, SAE_e2e+ds still aligns closely enough with SAE_local directions that local dictionaries could initialize end-to-end runs, and unlike SAE_e2e, SAE_e2e+ds stays reproducible across random seeds.
Caveats & Builder Takeaway
- Steep wall-clock overhead: Backpropagating through every downstream block costs
2xto3.5xmore A100 time on GPT-2 Small (rising to12h 30mvs3h 45mat layer 2), which grows prohibitive on 7B+ multi-billion-token runs without pre-initialization from a local SAE. - Shrinkage remains unsolved here: Because the authors used standard ReLU + L1 encoders, end-to-end SAEs exhibit strong activation suppression (layer-6
L2output-to-input norm ratio on positions after token 0 drops to0.31forSAE_e2eand0.56forSAE_e2e+ds, versus0.92forSAE_local), relying on downstream LayerNorm to rescale signals. Combining end-to-end losses with Gated SAEs or JumpReLU was left untested. - Goodhart and distribution lock-in: Optimizing OpenWebText KL divergence ties features to the frozen model’s forward behavior on that corpus rather than guaranteeing out-of-distribution causal faithfulness in sparse feature circuits or SAEBench downstream probes.
Use SAE_e2e+ds rather than SAE_e2e whenever you can afford full downstream backpropagation on small or mid-sized models and want tight dictionaries that strip out high-variance noise. For frontier-scale models where backpropagating through 30+ layers per step is too costly, local training initialized with modern activation functions remains the practical default.


