Residual Stream Analysis with Multi-Layer SAEs
Not on the map. Why?
Abstract (arXiv)
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 considering its variance. We find that the variance of the distributions of latent activations over layers is about two orders of magnitude greater when aggregating over tokens compared with a single token. For larger underlying models, the degree to which latents are active at multiple layers increases, which is consistent with the fact that the residual stream activation vectors at adjacent layers become more similar. Finally, we relax the assumption that the residual stream basis is the same at every layer by applying pre-trained tuned-lens transformations, but our findings remain qualitatively similar. Our results represent a new approach to understanding how representations change as they flow through transformers. We release our code to train and analyze MLSAEs at https://github.com/tim-lawson/mlsae.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 36 of its 56 references that are in the map. First posted on arXiv 6 Sep 2024.
Builds on
36 of 56 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022Toy Models of Superpositioncited by 928
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
24 more
- 2024Scaling and evaluating sparse autoencoderscited by 530
- 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 412
- 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 381
- 2024Jumping Ahead: Improving Reconstruction Fidelity with JumpReLU Sparse Autoencoderscited by 283
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
- 2013k-Sparse Autoencoderscited by 209
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 201
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 186
- 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 138
- 2023The geometry of hidden representations of large transformer modelscited by 108
- 2021Transformer visualization via dictionary learning: contextualized embedding as a linear superposition of transformer factorscited by 106
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024RAVEL: Evaluating Interpretability Methods on Disentangling Language Model Representationscited by 77
- 2017Residual Connections Encourage Iterative Inferencecited by 74
- 2024Identifying Functionally Important Features with End-to-End Sparse Dictionary Learningcited by 64
- 2024Interpreting Attention Layer Outputs with Sparse Autoencoderscited by 43
- 2024Evaluating Open-Source Sparse Autoencoders on Disentangling Factual Knowledge in GPT-2 Smallcited by 34
- 2022Disentanglement with Biological Constraints: A Theory of Functional Cell Typescited by 30
- 2024Dictionary Learning Improves Patch-Free Circuit Discovery in Mechanistic Interpretability: A Case Study on Othello-GPTcited by 27
- 2024Relational Composition in Neural Networks: A Survey and Call to Actioncited by 23
- 2014Zero-bias autoencoders and the benefits of co-adapting featurescited by 15
- 2024How does GPT-2 Predict Acronyms? Extracting and Understanding a Circuit via Mechanistic Interpretabilitycited by 14
- 2024Sparse Autoencoders Enable Scalable and Reliable Circuit Identification in Language Modelscited by 13
Built on by
Citing papers per year: 2024: 2; 2025: 9; 2026: 7.
18 papers.
Sort:
By area:
- 2024Steering Language Model Refusal with Sparse Autoencoderscited by 89
- 2025Beyond Linear Steering: Unified Multi-Attribute Control for Language Modelscited by 23
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
- 2025Evaluating Adversarial Robustness of Concept Representations in Sparse Autoencoderscited by 11
- 2024Group-SAE: Efficient Training of Sparse Autoencoders for Large Language Models via Layer Groupscited by 10
- 2025Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activationscited by 9
- 2025Learning to Skip the Middle Layers of Transformerscited by 8
- 2025Understanding Multi-View Transformerscited by 8
- 2025UniFusion: Vision-Language Model as Unified Encoder in Image Generationcited by 7
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topologycited by 5
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matricescited by 3
6 more
- 2025Visual Exploration of Feature Relationships in Sparse Autoencoders with Curated Conceptscited by 2
- 2026MonoLoss: A Training Objective for Interpretable Monosemantic Representationscited by 1
- 2026SemRF: A Semantic Reference Frame for Residual-Stream Dynamics in Language Modelscited by 1
- 2025Activation Transport Operatorscited by 0
- 2026Rethinking Intrinsic Dimension Estimation in Neural Representationscited by 0
- 2026fmxcoders: Factorized Masked Crosscoders for Cross-Layer Feature Discoverycited by 0
- 2026SemRF: A Semantic Reference Frame for Residual-Stream Dynamics in Language Models30 Jun 2026
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology14 May 2026
- 2026fmxcoders: Factorized Masked Crosscoders for Cross-Layer Feature Discovery10 May 2026
- 2026Rethinking Intrinsic Dimension Estimation in Neural Representations22 Apr 2026
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matrices2 Apr 2026
- 2026MonoLoss: A Training Objective for Interpretable Monosemantic Representations12 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Visual Exploration of Feature Relationships in Sparse Autoencoders with Curated Concepts8 Nov 2025
- 2025Understanding Multi-View Transformers28 Oct 2025
- 2025UniFusion: Vision-Language Model as Unified Encoder in Image Generation14 Oct 2025
- 2025Activation Transport Operators24 Aug 2025
- 2025Learning to Skip the Middle Layers of Transformers26 Jun 2025
6 more
- 2025Beyond Linear Steering: Unified Multi-Attribute Control for Language Models30 May 2025
- 2025Evaluating Adversarial Robustness of Concept Representations in Sparse Autoencoders21 May 2025
- 2025Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activations25 Feb 2025
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language models17 Feb 2025
- 2024Steering Language Model Refusal with Sparse Autoencoders18 Nov 2024
- 2024Group-SAE: Efficient Training of Sparse Autoencoders for Large Language Models via Layer Groups28 Oct 2024
- 2025Learning to Skip the Middle Layers of Transformerscited by 8
- 2025Learning to Skip the Middle Layers of Transformers26 Jun 2025
- 2024Steering Language Model Refusal with Sparse Autoencoderscited by 89
- 2025Beyond Linear Steering: Unified Multi-Attribute Control for Language Modelscited by 23
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
- 2025Evaluating Adversarial Robustness of Concept Representations in Sparse Autoencoderscited by 11
- 2024Group-SAE: Efficient Training of Sparse Autoencoders for Large Language Models via Layer Groupscited by 10
- 2025Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activationscited by 9
- 2025Understanding Multi-View Transformerscited by 8
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topologycited by 5
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matricescited by 3
- 2025Visual Exploration of Feature Relationships in Sparse Autoencoders with Curated Conceptscited by 2
- 2026MonoLoss: A Training Objective for Interpretable Monosemantic Representationscited by 1
12 most cited of 16 All 16 (JSON)
- 2026SemRF: A Semantic Reference Frame for Residual-Stream Dynamics in Language Models30 Jun 2026
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology14 May 2026
- 2026fmxcoders: Factorized Masked Crosscoders for Cross-Layer Feature Discovery10 May 2026
- 2026Rethinking Intrinsic Dimension Estimation in Neural Representations22 Apr 2026
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matrices2 Apr 2026
- 2026MonoLoss: A Training Objective for Interpretable Monosemantic Representations12 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Visual Exploration of Feature Relationships in Sparse Autoencoders with Curated Concepts8 Nov 2025
- 2025Understanding Multi-View Transformers28 Oct 2025
- 2025Activation Transport Operators24 Aug 2025
- 2025Beyond Linear Steering: Unified Multi-Attribute Control for Language Models30 May 2025
- 2025Evaluating Adversarial Robustness of Concept Representations in Sparse Autoencoders21 May 2025
12 newest of 16 All 16 (JSON)