Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs
On the map: Mechanistic interpretability → Circuits and mechanistic analysis
Abstract (arXiv)
Large language models often succeed on one formulation of a problem while failing on an equivalent formulation. Whether these failures arise from distinct internal circuits or different activation states of a shared circuit remains unknown. Recent mechanistic interpretability studies suggest that arithmetic in LLMs emerges from a "bag of heuristics," encoded by a sparse set of MLP neurons that represent distinct arithmetic strategies. We investigate whether arithmetic heuristic neurons are form-invariant across symbolic arithmetic, natural language word problems, and Python code in three Llama-3 models. In each format, we identify arithmetic heuristic neurons using a two-stage pipeline combining attribution patching and activation patching. A compact set of neurons is shared across all three formats, and targeted interventions show this shared circuit is both necessary and sufficient for late-layer arithmetic computation. Transferring the shared neurons' activations from a successful execution in one format to a failed execution in another recovers most incorrect predictions, exceeding 97% for addition and subtraction, indicating that cross-format failures arise from activation states rather than distinct circuits. Moreover, shared neurons consistently belong to the same heuristic families across formats, demonstrating that arithmetic computation in LLMs is largely form-invariant at the neuron level.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 25 of its 34 references that are in the map. First posted on arXiv 18 Jul 2026.
Builds on
25 of 34 references.
Closest ancestors · 3
Same direction, newest first
- 2023Attribution Patching Outperforms Automated Circuit Discovery16 Oct
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretability28 Apr
- 2023Progress measures for grokking via mechanistic interpretability12 Jan
Other references · 22
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 359
- 2013Direct and Indirect Effectscited by 280
- 2023Localizing Model Behavior with Path Patchingcited by 195
- 2024A Careful Examination of Large Language Model Performance on Grade School Arithmeticcited by 191
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 156
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
10 more
- 2025Language Models Use Trigonometry to Do Additioncited by 70
- 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 54
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 45
- 2025What is a Number, That a Large Language Model May Know It?cited by 15
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computationcited by 8
- 2024Survival of the Fittest Representation: A Case Study with Modular Additioncited by 7
- 2026What Drives Representation Steering? A Mechanistic Case Study on Steering Refusalcited by 7
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digitcited by 6
- 2025All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokenscited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024An Investigation of Neuron Activation as a Unified Lens to Explain Chain-of-Thought Eliciting Arithmetic Reasoning of LLMs
- 2026Shared circuits predict whether LLMs generalize across formats in arithmetic reasoning
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms
- 2025Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmetic
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures
- 2025Comprehension Without Competence: Architectural Limits of LLMs in Symbolic Computation and Reasoning
- 2025SymCode: A Neurosymbolic Approach to Mathematical Reasoning via Verifiable Code Generation
- 2022Limitations of Language Models in Arithmetic and Symbolic Induction