mlsanityData to 7 Oct 2026

Interpreting Attention Layer Outputs with Sparse Autoencoders

arXiv 2406.17759 ↗First posted 25 Jun 2024cs.LGcited by 43

Not on the map. Why?

Abstract (arXiv)

Decomposing model activations into interpretable components is a key open problem in mechanistic interpretability. Sparse autoencoders (SAEs) are a popular method for decomposing the internal activations of trained transformers into sparse, interpretable features, and have been applied to MLP layers and the residual stream. In this work we train SAEs on attention layer outputs and show that also here SAEs find a sparse, interpretable decomposition. We demonstrate this on transformers from several model families and up to 2B parameters. We perform a qualitative study of the features computed by attention layers, and find multiple families: long-range context, short-range context and induction features. We qualitatively study the role of every head in GPT-2 Small, and estimate that at least 90% of the heads are polysemantic, i.e. have multiple unrelated roles. Further, we show that Sparse Autoencoders are a useful tool that enable researchers to explain model behavior in greater detail than prior work. For example, we explore the mystery of why models have so many seemingly redundant induction heads, use SAEs to motivate the hypothesis that some are long-prefix whereas others are short-prefix, and confirm this with more rigorous analysis. We use our SAEs to analyze the computation performed by the Indirect Object Identification circuit (Wang et al.), validating that the SAEs find causally meaningful intermediate variables, and deepening our understanding of the semantics of the circuit. We open-source the trained SAEs and a tool for exploring arbitrary prompts through the lens of Attention Output SAEs.

Key facts. Cited by 43 papers in the map (data through 7 Oct 2026). Builds on 21 of its 53 references that are in the map. First posted on arXiv 25 Jun 2024.

Builds on

21 of 53 references.

References · 21

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  2. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
  3. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  4. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
  5. 2022Toy Models of Superpositioncited by 928
  6. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  7. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  8. 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 412
  9. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
  10. 2024How to use and interpret activation patchingcited by 191
  11. 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 183
  12. 2023Localizing Model Behavior with Path Patchingcited by 182
9 more
  1. 2020Compositional Explanations of Neuronscited by 172
  2. 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 171
  3. 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 145
  4. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
  5. 2024Towards Principled Evaluations of Sparse Autoencoders for Interpretability and Controlcited by 83
  6. 2017SPINE: SParse Interpretable Neural Embeddingscited by 55
  7. 2024Summing Up the Facts: Additive Mechanisms Behind Factual Recall in LLMscited by 39
  8. 2024Dictionary Learning Improves Patch-Free Circuit Discovery in Mechanistic Interpretability: A Case Study on Othello-GPTcited by 27
  9. 2013The cost of using exact confidence intervals for a binomial proportioncited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 26; 2026: 10.

43 papers.

Sort:

By area:

  1. 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 381
  2. 2024A is for Absorption: Studying Feature Splitting and Absorption in Sparse Autoencoderscited by 148
  3. 2025Learning Multi-Level Features with Matryoshka Sparse Autoencoderscited by 136
  4. 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
  5. 2025SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoderscited by 75
  6. 2024Measuring Progress in Dictionary Learning for Language Model Interpretability with Board Game Modelscited by 51
  7. 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
  8. 2024Residual Stream Analysis with Multi-Layer SAEscited by 18
  9. 2024Compute Optimal Inference and Provable Amortisation Gap in Sparse Autoencoderscited by 17
  10. 2025Rethinking Evaluation of Sparse Autoencoders through the Representation of Polysemous Wordscited by 17
  11. 2025Dense SAE Latents Are Features, Not Bugscited by 17
  12. 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
31 more
  1. 2025Are formal and functional linguistic mechanisms dissociated in language models?cited by 11
  2. 2025SAGE: An Agentic Explainer Framework for Interpreting SAE Features in Language Modelscited by 10
  3. 2025Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activationscited by 9
  4. 2025Towards Understanding the Nature of Attention with Low-Rank Sparse Decompositioncited by 9
  5. 2025Do Sparse Autoencoders Generalize? A Case Study of Answerabilitycited by 8
  6. 2025Sparse Autoencoder as a Zero-Shot Classifier for Concept Erasing in Text-to-Image Diffusion Modelscited by 8
  7. 2025Superposition as Lossy Compression: Measure with Sparse Autoencoders and Connect to Adversarial Vulnerabilitycited by 6
  8. 2025Emergence of psychopathological computations in large language modelscited by 4
  9. 2025Probing Neural Topology of Large Language Modelscited by 4
  10. 2025Attribution-Guided Distillation of Matryoshka Sparse Autoencoderscited by 4
  11. 2025Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Modelscited by 3
  12. 2025Causality Is Key to Understand and Balance Multiple Goals in Trustworthy ML and Foundation Modelscited by 2
  13. 2025FineScope : SAE-guided Data Selection Enables Domain Specific LLM Pruning and Finetuningcited by 2
  14. 2025Interpretable Safety Alignment via SAE-Constructed Low-Rank Subspace Adaptationcited by 2
  15. 2026Why Linear Interpretability Works: Invariant Subspaces as a Result of Architectural Constraintscited by 2
  16. 2026Mechanistic Interpretability Tool for AI Weather Modelscited by 2
  17. 2026Legible-by-Construction: Attention and End-to-End Transformerscited by 2
  18. 2025The Logical Implication Steering Method for Conditional Interventions on Transformer Generationcited by 1
  19. 2025I Have No Mouth, and I Must Rhyme: Uncovering Internal Phonetic Representations in LLaMA 3.2cited by 1
  20. 2025Binary Autoencoder for Mechanistic Interpretability of Large Language Modelscited by 1
  21. 2025Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architecturescited by 1
  22. 2026Prototype Transformer: Towards Language Model Architectures Interpretable by Designcited by 1
  23. 2026Trustworthy AI Suffers from Invariance Conflicts and Causality is The Solutioncited by 1
  24. 2026Decodability is Not Causality: Dissociating Probe Readouts from Behavioral Drivers via SAE Decompositioncited by 1
  25. 2025Sparsification and Reconstruction from the Perspective of Representation Geometrycited by 0
  26. 2025Preserving Bilinear Weight Spectra with a Signed and Shrunk Quadratic Activation Functioncited by 0
  27. 2025Concept-SAE: A Controllable and Invertible Concept Interface for Sparse Autoencoderscited by 0
  28. 2026Supervised sparse auto-encoders for interpretable and compositional representationscited by 0
  29. 2026Towards Robustness against Typographic Attack with Training-free Concept Localizationcited by 0
  30. 2026PEAK: Precise and Persistent Concept Erasure via k-Sparse Autoencoderscited by 0
  31. 2026Where You Measure Decides What You Measure: Position Selection in Ablation-Based SAE Evaluationcited by 0