Transformer visualization via dictionary learning: contextualized embedding as a linear superposition of transformer factors
Not on the map. Why?
Abstract (arXiv)
Transformer networks have revolutionized NLP representation learning since they were introduced. Though a great effort has been made to explain the representation in transformers, it is widely recognized that our understanding is not sufficient. One important reason is that there lack enough visualization tools for detailed analysis. In this paper, we propose to use dictionary learning to open up these "black boxes" as linear superpositions of transformer factors. Through visualization, we demonstrate the hierarchical semantic structures captured by the transformer factors, e.g., word-level polysemy disambiguation, sentence-level pattern formation, and long-range dependency. While some of these patterns confirm the conventional prior linguistic knowledge, the rest are relatively unexpected, which may provide new insights. We hope this visualization tool can bring further knowledge and a better understanding of how transformer networks work. The code is available at https://github.com/zeyuyun1/TransformerVis
Key facts. Cited by 106 papers in the map (data through 7 Oct 2026). Builds on 18 of its 25 references that are in the map. First posted on arXiv 29 Mar 2021.
Builds on
18 of 25 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2019How Can We Know What Language Models Know?cited by 953
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2017Dynamic Routing Between Capsulescited by 689
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
6 more
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2019Visualizing and Measuring the Geometry of BERTcited by 215
- 2016Linear Algebraic Structure of Word Senses, with Applications to Polysemycited by 165
- 2021How to represent part-whole hierarchies in a neural networkcited by 123
- 2015Sparse Overcomplete Word Vector Representationscited by 43
- 2019Word Embedding Visualization Via Dictionary Learningcited by 11
Built on by
Citing papers per year: 2021: 4; 2022: 6; 2023: 7; 2024: 28; 2025: 47; 2026: 14.
106 papers.
Sort:
By area:
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2024Scaling and evaluating sparse autoencoderscited by 530
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 186
- 2024A Survey on Uncertainty Quantification of Large Language Models: Taxonomy, Open Research Challenges, and Future Directionscited by 115
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2025Are Sparse Autoencoders Useful? A Case Study in Sparse Probingcited by 109
- 2024Towards Principled Evaluations of Sparse Autoencoders for Interpretability and Controlcited by 83
- 2024Sparse autoencoders reveal selective remapping of visual concepts during adaptationcited by 66
- 2024Identifying Functionally Important Features with End-to-End Sparse Dictionary Learningcited by 64
- 2024InterPLM: Discovering Interpretable Features in Protein Language Models via Sparse Autoencoderscited by 64
38 more
- 2023Explaining black box text modules in natural language with language modelscited by 61
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 60
- 2024Confidence Regulation Neurons in Language Modelscited by 57
- 2024The Geometry of Concepts: Sparse Autoencoder Feature Structurecited by 52
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2023Codebook Features: Sparse and Discrete Interpretability for Neural Networkscited by 45
- 2024The Missing Curve Detectors of InceptionV1: Applying Sparse Autoencoders to InceptionV1 Early Visioncited by 37
- 2025Understanding the Repeat Curse in Large Language Models from a Feature Perspectivecited by 36
- 2025Reasoning about Uncertainty: Do Reasoning Models Know When They Don't Know?cited by 35
- 2025A Survey on Mechanistic Interpretability for Multi-Modal Foundation Modelscited by 34
- 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?cited by 34
- 2025LLM Pretraining with Continuous Conceptscited by 33
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 31
- 2024One-Step is Enough: Sparse Autoencoders for Text-to-Image Diffusion Modelscited by 30
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2024Dictionary Learning Improves Patch-Free Circuit Discovery in Mechanistic Interpretability: A Case Study on Othello-GPTcited by 27
- 2025Route Sparse Autoencoder to Interpret Large Language Modelscited by 25
- 2025Interpretable and Testable Vision Features via Sparse Autoencoderscited by 24
- 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differencescited by 24
- 2021Translation Error Detection as Rationale Extractioncited by 22
- 2024Automatically Identifying Local and Global Circuits with Linear Computation Graphscited by 22
- 2025SAE-V: Interpreting Multimodal Models for Enhanced Alignmentcited by 22
- 2022How to Dissect a Muppet: The Structure of Transformer Embedding Spacescited by 19
- 2024PaCE: Parsimonious Concept Engineering for Large Language Modelscited by 19
- 2024Residual Stream Analysis with Multi-Layer SAEscited by 18
- 2025Dense SAE Latents Are Features, Not Bugscited by 17
- 2025From superposition to sparse codes: interpretable representations in neural networkscited by 16
- 2025TIDE : Temporal-Aware Sparse Autoencoders for Interpretable Diffusion Transformers in Image Generationcited by 16
- 2024Decoding Dark Matter: Specialized Sparse Autoencoders for Interpreting Rare Concepts in Foundation Modelscited by 15
- 2025Stochastic Parameter Decompositioncited by 14
- 2024A Complexity-Based Theory of Compositionalitycited by 13
- 2025Diversity-driven Data Selection for Language Model Tuning through Sparse Autoencodercited by 11
- 2025The Dead Salmons of AI Interpretabilitycited by 10
- 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometrycited by 10
- 2025Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activationscited by 9
- 2025Do Sparse Autoencoders Generalize? A Case Study of Answerabilitycited by 8
- 2025Analyzing Fine-Grained Alignment and Enhancing Vision Understanding in Multimodal Language Modelscited by 8
- 2024Towards Compositionality in Concept Learningcited by 7
50 most cited of 106 All 106 (JSON)
- 2026Escaping Low-Dimensional Overlap: Multi-Task Model Merging via High-Dimensional Sparse Disentanglement26 Aug 2026
- 2026Feature Evolution and Migration during Vision Transformer Training20 Aug 2026
- 2026MotionPyramid: Hierarchical Motion Representation and Residual Interfaces15 Jun 2026
- 2026DifFRACT: Diffusion Feature Reconstruction and Attribution for Circuit Tracing14 Jun 2026
- 2026Don't Forget Your Embeddings: Robust Knowledge Erasure via Precise Editing of Embeddings2 Jun 2026
- 2026Sparse Autoencoders for Interpretable Emotion Control in Text-to-Speech31 May 2026
- 2026Steered Generation via Gradient-Based Optimization on Sparse Query Features21 May 2026
- 2026Automatic Image-Level Morphological Trait Annotation for Organismal Images2 Apr 2026
- 2026Diagnosing Generalization Failures from Representational Geometry Markers2 Mar 2026
- 2026Embracing Anisotropy: Turning Massive Activations into Interpretable Control Knobs for Large Language Models4 Feb 2026
- 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometry2 Feb 2026
- 2026Patterning: The Dual of Interpretability20 Jan 2026
38 more
- 2026TimeSAE: Causal Sparse Decoding for Faithful Explanations of Black-Box Time Series Models14 Jan 2026
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025The Dead Salmons of AI Interpretability21 Dec 2025
- 2025XNNTab -- Interpretable Neural Networks for Tabular Data using Sparse Autoencoders15 Dec 2025
- 2025REFLEX: Self-Refining Explainable Fact-Checking via Verdict-Anchored Style Control25 Nov 2025
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Anatomy of an Idiom: Tracing Non-Compositionality in Language Models20 Nov 2025
- 2025SCALAR: Benchmarking SAE Interaction Sparsity in Toy LLMs10 Nov 2025
- 2025Scaling Non-Parametric Sampling with Representation25 Oct 2025
- 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differences14 Oct 2025
- 2025Microsaccade-Inspired Probing: Positional Encoding Perturbations Reveal LLM Misbehaviours1 Oct 2025
- 2025Analysis of Variational Sparse Autoencoders26 Sep 2025
- 2025Beyond the Leaderboard: Understanding Performance Disparities in Large Language Models via Model Diffing23 Sep 2025
- 2025Towards Interpretable Deep Neural Networks for Tabular Data10 Sep 2025
- 2025ProtSAE: Disentangling and Interpreting Protein Language Models via Semantically-Guided Sparse Autoencoders26 Aug 2025
- 2025BASIC: Boosting Visual Alignment with Intrinsic Refined Embeddings in Multimodal Large Language Models9 Aug 2025
- 2025Model Directions, Not Words: Mechanistic Topic Models Using Sparse Autoencoders31 Jul 2025
- 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?11 Jul 2025
- 2025Exploring Task Performance with Interpretable Models via Sparse Auto-Encoders8 Jul 2025
- 2025The Thin Line Between Comprehension and Persuasion in LLMs2 Jul 2025
- 2025Stochastic Parameter Decomposition25 Jun 2025
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncoder25 Jun 2025
- 2025Reasoning about Uncertainty: Do Reasoning Models Know When They Don't Know?22 Jun 2025
- 2025Dense SAE Latents Are Features, Not Bugs18 Jun 2025
- 2025Constructing Interpretable Features from Compositional Neuron Groups12 Jun 2025
- 2025Attention-Only Transformers via Unrolled Subspace Denoising4 Jun 2025
- 2025Analyzing Fine-Grained Alignment and Enhancing Vision Understanding in Multimodal Language Models22 May 2025
- 2025Steering Large Language Models for Machine Translation Personalization22 May 2025
- 2025Are Sparse Autoencoders Useful for Java Function Bug Detection?15 May 2025
- 2025Empirical Evaluation of Progressive Coding for Sparse Autoencoders30 Apr 2025
- 2025Axial-UNet: A Neural Weather Model for Precipitation Nowcasting28 Apr 2025
- 2025Understanding the Repeat Curse in Large Language Models from a Feature Perspective19 Apr 2025
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuning3 Apr 2025
- 2025Capturing Semantic Flow of ML-based Systems13 Mar 2025
- 2025Route Sparse Autoencoder to Interpret Large Language Models11 Mar 2025
- 2025TIDE : Temporal-Aware Sparse Autoencoders for Interpretable Diffusion Transformers in Image Generation10 Mar 2025
- 2025From superposition to sparse codes: interpretable representations in neural networks3 Mar 2025
- 2025Do Sparse Autoencoders Generalize? A Case Study of Answerability27 Feb 2025
50 newest of 106 All 106 (JSON)
- 2025A Survey on Mechanistic Interpretability for Multi-Modal Foundation Modelscited by 34
- 2025SAE-V: Interpreting Multimodal Models for Enhanced Alignmentcited by 22
- 2025Analyzing Fine-Grained Alignment and Enhancing Vision Understanding in Multimodal Language Modelscited by 8
- 2025BASIC: Boosting Visual Alignment with Intrinsic Refined Embeddings in Multimodal Large Language Modelscited by 2
- 2025BASIC: Boosting Visual Alignment with Intrinsic Refined Embeddings in Multimodal Large Language Models9 Aug 2025
- 2025Analyzing Fine-Grained Alignment and Enhancing Vision Understanding in Multimodal Language Models22 May 2025
- 2025A Survey on Mechanistic Interpretability for Multi-Modal Foundation Models22 Feb 2025
- 2025SAE-V: Interpreting Multimodal Models for Enhanced Alignment22 Feb 2025
- 2025Reasoning about Uncertainty: Do Reasoning Models Know When They Don't Know?cited by 35
- 2025LLM Pretraining with Continuous Conceptscited by 33
- 2025Reasoning about Uncertainty: Do Reasoning Models Know When They Don't Know?22 Jun 2025
- 2025LLM Pretraining with Continuous Concepts12 Feb 2025
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2024Scaling and evaluating sparse autoencoderscited by 530
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 186
- 2024A Survey on Uncertainty Quantification of Large Language Models: Taxonomy, Open Research Challenges, and Future Directionscited by 115
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2025Are Sparse Autoencoders Useful? A Case Study in Sparse Probingcited by 109
- 2024Towards Principled Evaluations of Sparse Autoencoders for Interpretability and Controlcited by 83
- 2024Sparse autoencoders reveal selective remapping of visual concepts during adaptationcited by 66
- 2024Identifying Functionally Important Features with End-to-End Sparse Dictionary Learningcited by 64
- 2024InterPLM: Discovering Interpretable Features in Protein Language Models via Sparse Autoencoderscited by 64
12 most cited of 96 All 96 (JSON)
- 2026Escaping Low-Dimensional Overlap: Multi-Task Model Merging via High-Dimensional Sparse Disentanglement26 Aug 2026
- 2026Feature Evolution and Migration during Vision Transformer Training20 Aug 2026
- 2026MotionPyramid: Hierarchical Motion Representation and Residual Interfaces15 Jun 2026
- 2026Don't Forget Your Embeddings: Robust Knowledge Erasure via Precise Editing of Embeddings2 Jun 2026
- 2026Sparse Autoencoders for Interpretable Emotion Control in Text-to-Speech31 May 2026
- 2026Steered Generation via Gradient-Based Optimization on Sparse Query Features21 May 2026
- 2026Automatic Image-Level Morphological Trait Annotation for Organismal Images2 Apr 2026
- 2026Diagnosing Generalization Failures from Representational Geometry Markers2 Mar 2026
- 2026Embracing Anisotropy: Turning Massive Activations into Interpretable Control Knobs for Large Language Models4 Feb 2026
- 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometry2 Feb 2026
- 2026Patterning: The Dual of Interpretability20 Jan 2026
- 2026TimeSAE: Causal Sparse Decoding for Faithful Explanations of Black-Box Time Series Models14 Jan 2026
12 newest of 96 All 96 (JSON)