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_local requires 69.4 active features per token while SAE_e2e needs 27.5 (2.5x fewer) and SAE_e2e+ds needs 36.8 (1.9x fewer).
  • Smaller live dictionaries: At the same layer-6 CE budget, SAE_e2e+ds keeps 15k alive dictionary elements compared to 26k for SAE_local (out of 46,080 initialized slots).
  • Scaling local SAEs fails to catch up: Neither expanding SAE_local width from 60x to 100x residual dimension (76,800 features) nor doubling training data from 400k to 800k samples 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+ds matches SAE_local at equal L0 and 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 2x to 3.5x slower on an A100 GPU (11h 24m vs 4h 45m at layer 6).
Three training objectives for a sparse autoencoder inserted at layer l
Local baseline (SAE_local)

Minimizes activation MSE at layer l plus L1 sparsity. Never runs downstream layers during training, so high-norm dataset noise gets equal priority with logit-critical directions.

Pure end-to-end (SAE_e2e)

Splices SAE output into frozen layers l..L-1 and minimizes logit KL divergence KL(y_hat, y) plus L1. Cuts active L0 sharply, but drifts into different internal pathways across seeds.

E2E + downstream (SAE_e2e+ds)

Adds MSE across all downstream residual streams l+1..L-1 to logit KL and L1. Keeps L0 low while preserving seed stability and original network pathways.

Source: Braun et al. (2024), Section 2 and Figure 1.

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.

GPT-2 Small layer 6 SAEs matched at ~0.14 nats CE loss increase (lower L0 and fewer alive features are better)
SAE_local (MSE baseline, CE +0.144)L0 = 69.4 | 26k alive | 4h 45m A100
SAE_e2e+ds (KL + downstream MSE, CE +0.124)L0 = 36.8 | 15k alive | 11h 24m A100
SAE_e2e (KL only, CE +0.145)L0 = 27.5 | 22k alive | 11h 20m A100

Bar widths reflect active features per token (L0). Source: Braun et al. (2024), Tables 2 and 6.

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 2x to 3.5x more A100 time on GPT-2 Small (rising to 12h 30m vs 3h 45m at 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 L2 output-to-input norm ratio on positions after token 0 drops to 0.31 for SAE_e2e and 0.56 for SAE_e2e+ds, versus 0.92 for SAE_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.