Locating and Editing Factual Associations in Mamba
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
We investigate the mechanisms of factual recall in the Mamba state space model. Our work is inspired by previous findings in autoregressive transformer language models suggesting that their knowledge recall is localized to particular modules at specific token locations; we therefore ask whether factual recall in Mamba can be similarly localized. To investigate this, we conduct four lines of experiments on Mamba. First, we apply causal tracing or interchange interventions to localize key components inside Mamba that are responsible for recalling facts, revealing that specific components within middle layers show strong causal effects at the last token of the subject, while the causal effect of intervening on later layers is most pronounced at the last token of the prompt, matching previous findings on autoregressive transformers. Second, we show that rank-one model editing methods can successfully insert facts at specific locations, again resembling findings on transformer LMs. Third, we examine the linearity of Mamba's representations of factual relations. Finally we adapt attention-knockout techniques to Mamba in order to dissect information flow during factual recall. We compare Mamba directly to a similar-sized autoregressive transformer LM and conclude that despite significant differences in architectural approach, when it comes to factual recall, the two architectures share many similarities.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 28 of its 44 references that are in the map. First posted on arXiv 4 Apr 2024.
Builds on
28 of 44 references.
Closest ancestors · 4
Same direction, newest first
- 2024The Hidden Attention of Mamba Models3 Mar
- 2024Is Mamba Capable of In-Context Learning?5 Feb
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 24
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022Mass-Editing Memory in a Transformercited by 976
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
12 more
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023Function Vectors in Large Language Modelscited by 292
- 2013Direct and Indirect Effectscited by 276
- 2018Analysis Methods in Neural Language Processing: A Surveycited by 276
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 237
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 187
- 2022It's Raw! Audio Generation with State-Space Modelscited by 171
- 2017What do Neural Machine Translation Models Learn about Morphology?cited by 165
- 2021Inducing Causal Structure for Interpretable Neural Networkscited by 107
Built on by
Citing papers per year: 2024: 20; 2025: 7; 2026: 8.
35 papers.
Sort:
By area:
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024State Space Model for New-Generation Network Alternative to Transformers: A Surveycited by 59
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2024Understanding Information Storage and Transfer in Multi-modal Large Language Modelscited by 48
- 2024Visual Mamba: A Survey and New Outlookscited by 41
- 2024Estimating Knowledge in Large Language Models Without Generating a Single Tokencited by 39
- 2024In-Context Editing: Learning Knowledge from Self-Induced Distributionscited by 33
- 2024Towards Universality: Studying Mechanistic Similarity Across Language Model Architecturescited by 31
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Automatically Identifying Local and Global Circuits with Linear Computation Graphscited by 22
23 more
- 2024Can Editing LLMs Inject Harm?cited by 22
- 2024Representation Shattering in Transformers: A Synthetic Study with Knowledge Editingcited by 18
- 2024From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queriescited by 16
- 2025CoME: An Unlearning-based Approach to Conflict-free Model Editingcited by 12
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Taskscited by 9
- 2024Integration of Mamba and Transformer -- MAT for Long-Short Range Time Series Forecasting with Application to Weather Dynamicscited by 7
- 2024Defining Knowledge: Bridging Epistemology and Large Language Modelscited by 7
- 2025LLMs Process Lists With General Filter Headscited by 7
- 2024Concept-ROT: Poisoning Concepts in Large Language Models with Model Editingcited by 6
- 2024Do Robot Snakes Dream like Electric Sheep? Investigating the Effects of Architectural Inductive Biases on Hallucinationcited by 4
- 2025Mamba Knockout for Unraveling Factual Information Flowcited by 4
- 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modelingcited by 4
- 2026Interpreting and Steering State-Space Models via Activation Subspace Bottleneckscited by 3
- 2026Hidden State Poisoning Attacks against Mamba-based Language Modelscited by 2
- 2026What Attention Recalls and Recurrence Controls in Hybrid Language Modelscited by 2
- 2025Hierarchical Alignment: Surgical Fine-Tuning via Functional Layer Specialization in Large Language Modelscited by 1
- 2026Towards Scalable Lifelong Knowledge Editing with Selective Knowledge Suppressioncited by 1
- 2026WriteSAE: Sparse Autoencoders for Recurrent Statecited by 1
- 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Modelscited by 0
- 2025Erase to Retain: Low Rank Adaptation Guided Selective Unlearning in Medical Segmentation Networkscited by 0
- 2026A Circuit, Not The Circuit: Non-Unique Causal Localisation of the Mamba-2 State Sinkcited by 0
- 2026Timesteps of Mamba Align with Human Reading Timescited by 0
- 2026The Key Handoff: Retrieval in Hybrid Language Modelscited by 0
- 2026The Key Handoff: Retrieval in Hybrid Language Models26 Sep 2026
- 2026What Attention Recalls and Recurrence Controls in Hybrid Language Models3 Sep 2026
- 2026Timesteps of Mamba Align with Human Reading Times29 Jun 2026
- 2026A Circuit, Not The Circuit: Non-Unique Causal Localisation of the Mamba-2 State Sink30 May 2026
- 2026WriteSAE: Sparse Autoencoders for Recurrent State12 May 2026
- 2026Towards Scalable Lifelong Knowledge Editing with Selective Knowledge Suppression21 Apr 2026
- 2026Interpreting and Steering State-Space Models via Activation Subspace Bottlenecks26 Feb 2026
- 2026Hidden State Poisoning Attacks against Mamba-based Language Models5 Jan 2026
- 2025Erase to Retain: Low Rank Adaptation Guided Selective Unlearning in Medical Segmentation Networks20 Nov 2025
- 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modeling30 Oct 2025
- 2025LLMs Process Lists With General Filter Heads30 Oct 2025
- 2025Hierarchical Alignment: Surgical Fine-Tuning via Functional Layer Specialization in Large Language Models14 Oct 2025
23 more
- 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Models25 Jul 2025
- 2025Mamba Knockout for Unraveling Factual Information Flow30 May 2025
- 2025CoME: An Unlearning-based Approach to Conflict-free Model Editing20 Feb 2025
- 2024Concept-ROT: Poisoning Concepts in Large Language Models with Model Editing17 Dec 2024
- 2024Do Robot Snakes Dream like Electric Sheep? Investigating the Effects of Architectural Inductive Biases on Hallucination22 Oct 2024
- 2024Representation Shattering in Transformers: A Synthetic Study with Knowledge Editing22 Oct 2024
- 2024Can Knowledge Editing Really Correct Hallucinations?21 Oct 2024
- 2024Towards Universality: Studying Mechanistic Similarity Across Language Model Architectures9 Oct 2024
- 2024Defining Knowledge: Bridging Epistemology and Large Language Models3 Oct 2024
- 2024Integration of Mamba and Transformer -- MAT for Long-Short Range Time Series Forecasting with Application to Weather Dynamics13 Sep 2024
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Tasks9 Aug 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2024Can Editing LLMs Inject Harm?29 Jul 2024
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspective22 Jul 2024
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Models2 Jul 2024
- 2024From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries18 Jun 2024
- 2024Estimating Knowledge in Large Language Models Without Generating a Single Token18 Jun 2024
- 2024In-Context Editing: Learning Knowledge from Self-Induced Distributions17 Jun 2024
- 2024Understanding Information Storage and Transfer in Multi-modal Large Language Models6 Jun 2024
- 2024Automatically Identifying Local and Global Circuits with Linear Computation Graphs22 May 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2024Visual Mamba: A Survey and New Outlooks29 Apr 2024
- 2024State Space Model for New-Generation Network Alternative to Transformers: A Survey15 Apr 2024
- 2024Visual Mamba: A Survey and New Outlookscited by 41
- 2024Towards Universality: Studying Mechanistic Similarity Across Language Model Architecturescited by 31
- 2024Integration of Mamba and Transformer -- MAT for Long-Short Range Time Series Forecasting with Application to Weather Dynamicscited by 7
- 2025Mamba Knockout for Unraveling Factual Information Flowcited by 4
- 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modelingcited by 4
- 2026Interpreting and Steering State-Space Models via Activation Subspace Bottleneckscited by 3
- 2026Hidden State Poisoning Attacks against Mamba-based Language Modelscited by 2
- 2026WriteSAE: Sparse Autoencoders for Recurrent Statecited by 1
- 2026A Circuit, Not The Circuit: Non-Unique Causal Localisation of the Mamba-2 State Sinkcited by 0
- 2026Timesteps of Mamba Align with Human Reading Timescited by 0
- 2026Timesteps of Mamba Align with Human Reading Times29 Jun 2026
- 2026A Circuit, Not The Circuit: Non-Unique Causal Localisation of the Mamba-2 State Sink30 May 2026
- 2026WriteSAE: Sparse Autoencoders for Recurrent State12 May 2026
- 2026Interpreting and Steering State-Space Models via Activation Subspace Bottlenecks26 Feb 2026
- 2026Hidden State Poisoning Attacks against Mamba-based Language Models5 Jan 2026
- 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modeling30 Oct 2025
- 2025Mamba Knockout for Unraveling Factual Information Flow30 May 2025
- 2024Towards Universality: Studying Mechanistic Similarity Across Language Model Architectures9 Oct 2024
- 2024Integration of Mamba and Transformer -- MAT for Long-Short Range Time Series Forecasting with Application to Weather Dynamics13 Sep 2024
- 2024Visual Mamba: A Survey and New Outlooks29 Apr 2024
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024State Space Model for New-Generation Network Alternative to Transformers: A Surveycited by 59
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2024Estimating Knowledge in Large Language Models Without Generating a Single Tokencited by 39
- 2024In-Context Editing: Learning Knowledge from Self-Induced Distributionscited by 33
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Automatically Identifying Local and Global Circuits with Linear Computation Graphscited by 22
- 2024Representation Shattering in Transformers: A Synthetic Study with Knowledge Editingcited by 18
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Taskscited by 9
- 2024Defining Knowledge: Bridging Epistemology and Large Language Modelscited by 7
12 most cited of 18 All 18 (JSON)
- 2026The Key Handoff: Retrieval in Hybrid Language Models26 Sep 2026
- 2026Towards Scalable Lifelong Knowledge Editing with Selective Knowledge Suppression21 Apr 2026
- 2025LLMs Process Lists With General Filter Heads30 Oct 2025
- 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Models25 Jul 2025
- 2024Concept-ROT: Poisoning Concepts in Large Language Models with Model Editing17 Dec 2024
- 2024Do Robot Snakes Dream like Electric Sheep? Investigating the Effects of Architectural Inductive Biases on Hallucination22 Oct 2024
- 2024Representation Shattering in Transformers: A Synthetic Study with Knowledge Editing22 Oct 2024
- 2024Can Knowledge Editing Really Correct Hallucinations?21 Oct 2024
- 2024Defining Knowledge: Bridging Epistemology and Large Language Models3 Oct 2024
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Tasks9 Aug 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspective22 Jul 2024
12 newest of 18 All 18 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Relation Also Knows: Rethinking the Recall and Editing of Factual Associations in Auto-Regressive Transformer Language Models
- 2026Do Factual Recall Mechanisms Carry over from Text to Speech in Multimodal Language Models?
- 2026Residual Streams Read, Recurrent States Remember: The Global Workspace in Mamba Models
- 2025Mechanistic evaluation of Transformers and state space models
- 2026Comparing Latent Concept Formation in State Space Models and Transformers via Sparse Autoencoders
- 2025ACE: Attribution-Controlled Knowledge Editing for Multi-hop Factual Recall
- 2025Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacity
- 2025Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of View