Residual Stream Analysis with Multi-Layer SAEs
Tim Lawson, Lucy Farnik, Conor Houghton, Laurence Aitchison

TL;DR
This paper introduces multi-layer sparse autoencoders (MLSAEs) trained on residual streams from all transformer layers to better understand information flow and representation changes across layers in language models.
Contribution
The paper presents MLSAEs as a novel single autoencoder approach that captures residual stream dynamics across all layers, enabling new insights into layer-specific activation patterns.
Findings
Latents are often active at a single layer per token, but this varies across tokens.
Variance in latent activation distributions over layers is much higher across tokens than within a single token.
Larger models show increased multi-layer latent activity, aligning with more similar residual streams across layers.
Abstract
Sparse autoencoders (SAEs) are a promising approach to interpreting the internal representations of transformer language models. However, SAEs are usually trained separately on each transformer layer, making it difficult to use them to study how information flows across layers. To solve this problem, we introduce the multi-layer SAE (MLSAE): a single SAE trained on the residual stream activation vectors from every transformer layer. Given that the residual stream is understood to preserve information across layers, we expected MLSAE latents to 'switch on' at a token position and remain active at later layers. Interestingly, we find that individual latents are often active at a single layer for a given token or prompt, but the layer at which an individual latent is active may differ for different tokens or prompts. We quantify these phenomena by defining a distribution over layers and…
Peer Reviews
Decision·ICLR 2025 Poster
The work experiments with Pythia models (Transformers) of different sizes, making the work highly reproducible. The experiments are sound and most of the doubts I had while reading were answered already in the text. While the paper doesn't offer revolutionary insights on its own, it is an excellent improvement to sparse autoencoders and may be very useful for mechanistic interpretability. The model also tests the relative performance of MLSAE at different expansion factors and sparsity levels an
1. The biggest weakness that I see is the lack of direct experimental comparison to previous techniques. I'd expect a paper to compare MLSAE and existing SAE techniques, similar to the comparison in Figure 5 of MLSAE w/ and w/o tuned lens. For example, I think it would be possible to show a version of Figure 1 (and almost all other figures, too) using previous SAE techniques, even without training on most of those layers. This would give the reader a qualitative understanding of whether MLSAE pr
- The paper is well written. - The experimental evaluation is well done. - The research area of the paper is mechanistic interpretability, which is a potentially very useful for understanding complex models and important for AI safety.
1. Some things might be unclear (on the first reading): - this layer may differ for different tokens or prompts -> which layer it is might differ ... ? - Under multiple figures: "expected value of the layer" -> "average layer index" or "expected value of the layer index" - Eq. (3): The meaning of $\operatorname{Var}$ could be clarified. - In some places, the notation is a bit inconsistent or non-standard. - In section 3.1, $\bf x\in\mathbb R^d$, but in Eq. (3), $\bf x$ represents a sequenc
1. This work proposes the MLSAE method to analyze the interpretability of information transmitted through residual flow in Transformers. 2. The author only uses one SAE in multi-layer Transformers. 3. The author analyzes the fraction and variance of latents of models of different sizes through detailed experiments.
1. As indicated in both the Abstract and Conclusion sections, the author investigates the transformation of representations across various layers within Transformers. However, the analysis is limited to a statistical perspective, focusing solely on the fractions and variances of representations at different layers. The linkage between this statistical overview and a deeper understanding of the underlying mechanisms of Transformers is not explicitly articulated. It remains unclear to me how these
Code & Models
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x1-k32model· 2 dl2 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x2-k32model· 1 dl1 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x4-k32model· 6 dl6 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x8-k32model· 3 dl3 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x16-k32model· 1 dl1 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x32-k32model· 1 dl1 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x64-k32model· 1 dl1 dl
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x128-k32model
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x256-k32model
- 🤗tim-lawson/mlsae-pythia-70m-deduped-x1-k16model· 2 dl2 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFault Detection and Control Systems · Anomaly Detection Techniques and Applications
MethodsSparse Autoencoder
