How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model
Not on the map. Why?
Cited by 20 in LLM reasoning, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Pre-trained language models can be surprisingly adept at tasks they were not explicitly trained on, but how they implement these capabilities is poorly understood. In this paper, we investigate the basic mathematical abilities often acquired by pre-trained language models. Concretely, we use mechanistic interpretability techniques to explain the (limited) mathematical abilities of GPT-2 small. As a case study, we examine its ability to take in sentences such as "The war lasted from the year 1732 to the year 17", and predict valid two-digit end years (years > 32). We first identify a circuit, a small subset of GPT-2 small's computational graph that computes this task's output. Then, we explain the role of each circuit component, showing that GPT-2 small's final multi-layer perceptrons boost the probability of end years greater than the start year. Finally, we find related tasks that activate our circuit. Our results suggest that GPT-2 small computes greater-than using a complex but general mechanism that activates across diverse contexts.
Key facts. Cited by 199 papers in the map (data through 7 Oct 2026). Builds on 38 of its 53 references that are in the map. First posted on arXiv 30 Apr 2023.
Builds on
38 of 53 references.
References · 38
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2018Deep contextualized word representationscited by 2,285
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
26 more
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2021Causal Abstractions of Neural Networkscited by 401
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2023Localizing Model Behavior with Path Patchingcited by 182
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
- 2020Probing the Probing Paradigm: Does Probing Accuracy Entail Task Relevance?cited by 144
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2022Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networkscited by 126
- 2018What Is One Grain of Sand in the Desert? Analyzing Individual Neurons in Deep NLP Modelscited by 124
- 2018Identifying and Controlling Important Neurons in Neural Machine Translationcited by 110
- 2022NumGLUE: A Suite of Fundamental yet Challenging Mathematical Reasoning Taskscited by 110
- 2018Under the Hood: Using Diagnostic Classifiers to Investigate and Improve how Language Models Track Agreement Informationcited by 97
- 2020Analyzing Individual Neurons in Pre-trained Language Modelscited by 97
- 2019The emergence of number and syntax units in LSTM language modelscited by 92
- 2021Representing Numbers in NLP: a Survey and a Visioncited by 83
- 2021Neuron-level Interpretation of Deep NLP Models: A Surveycited by 81
- 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
- 2020How do Decisions Emerge across Layers in Neural Models? Interpretation with Differentiable Maskingcited by 63
- 2021Not All Models Localize Linguistic Knowledge in the Same Place: A Layer-wise Probing on BERToids' Representationscited by 16
Built on by
Citing papers per year: 2023: 19; 2024: 77; 2025: 56; 2026: 47.
199 papers.
Sort:
By area:
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 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
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023Language Models Represent Space and Timecited by 306
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 201
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 196
- 2024How to use and interpret activation patchingcited by 191
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 186
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 144
38 more
- 2025Thought Anchors: Which LLM Reasoning Steps Matter?cited by 126
- 2023Teaching Arithmetic to Small Transformerscited by 121
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 111
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 100
- 2024ReDeEP: Detecting Hallucination in Retrieval-Augmented Generation via Mechanistic Interpretabilitycited by 100
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 92
- 2023Neurons in Large Language Models: Dead, N-gram, Positionalcited by 88
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalizationcited by 78
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 73
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2024LLM Circuit Analyses Are Consistent Across Training and Scalecited by 60
- 2024Finding Transformer Circuits with Edge Pruningcited by 58
- 2024Confidence Regulation Neurons in Language Modelscited by 57
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2024Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thoughtcited by 56
- 2024From Yes-Men to Truth-Tellers: Addressing Sycophancy in Large Language Models with Pinpoint Tuningcited by 51
- 2024Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neuronscited by 47
- 2024Usable XAI: 10 Strategies Towards Exploiting Explainability in the LLM Eracited by 45
- 2024Interpreting Attention Layer Outputs with Sparse Autoencoderscited by 43
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 43
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 43
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
- 2024Competition of Mechanisms: Tracing How Language Models Handle Facts and Counterfactualscited by 40
- 2024Talking Heads: Understanding Inter-layer Communication in Transformer Language Modelscited by 39
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 39
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2023Interpretable Diffusion via Information Decompositioncited by 37
- 2024IsoBench: Benchmarking Multimodal Foundation Models on Isomorphic Representationscited by 37
- 2024Answer, Assemble, Ace: Understanding How LMs Answer Multiple Choice Questionscited by 35
- 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspectivecited by 32
- 2024Iteration Head: A Mechanistic Study of Chain-of-Thoughtcited by 31
- 2024UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulationcited by 30
50 most cited of 199 All 199 (JSON)
- 2026Conditional Transfer from Controlled Pretraining Mixtures to Code8 Oct 2026
- 2026Are We Recovering Mechanisms? Objective-Level Recovery Gaps in Mechanistic Interpretability1 Oct 2026
- 2026When Models Don't Manipulate Manifolds: The Geometry of a Comparison Task29 Sep 2026
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learning29 Sep 2026
- 2026How Language Models Differ in Redistributing Attention-Head Activity Under Serial Demand28 Sep 2026
- 2026Rethinking Circuit Evaluation: Do Circuits Explain Model Errors?28 Sep 2026
- 2026Representational Simplicity and Circuit Size Dissociate in a Threshold-Dependent Way: A Controlled Test via Adversarial Training27 Sep 2026
- 2026Sparse Weight Decomposition for Efficient Circuit Extraction4 Aug 2026
- 2026Scaling Interpretable Transformers with Parity Bottleneck Layers22 Jul 2026
- 2026CircuitKIT : Circuit Discovery, Evaluation, and Application Toolkit for Mechanistic Interpretability21 Jul 2026
- 2026Pretraining Curricula Enable Selective Fine-tuning6 Jul 2026
- 2026Conditional Co-Ablation: Recovering Self-Repair Backups in Transformer Circuits2 Jul 2026
38 more
- 2026Modular Cognitive Architecture Emerges in Large Language Models27 Jun 2026
- 2026The Curse of Multiple Mediators: Hidden Interaction Effects in Activation Patching25 Jun 2026
- 2026Demystifying Variance in Circuit Discovery of LLMs15 Jun 2026
- 2026When Attribution Patching Lies: Diagnosis and a Second-Order Correction5 Jun 2026
- 2026Pattern Selectivity is Not Task-Causal Structure: A Cross-Architecture Mechanistic Study of Composed-Task Circuits in 1B-Class Language Models3 Jun 2026
- 2026Position: Reasoning is a Learnable Rule-Based Process29 May 2026
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmetic29 May 2026
- 2026MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretability25 May 2026
- 2026Spectral Probe-Circuits: A Three-Step Recipe for Identifying Attention-Head Circuits in Pretrained Transformers22 May 2026
- 2026Every Component Is a Lookup: One Linear Graph for Interaction, Composition and Attribution22 May 2026
- 2026Reading Task Failure Off the Activations: A Sparse-Feature Audit of GPT-2 Small on Indirect Object Identification21 May 2026
- 2026fmxcoders: Factorized Masked Crosscoders for Cross-Layer Feature Discovery10 May 2026
- 2026Data-driven Circuit Discovery for Interpretability of Language Models9 May 2026
- 2026Patch-Effect Graph Kernels for LLM Interpretability7 May 2026
- 2026Navigating by Old Maps: The Pitfalls of Static Mechanistic Localization in LLM Post-Training7 May 2026
- 2026Surgical Repair of Insecure Code Generation in LLMs17 Apr 2026
- 2026Seeing Through Circuits: Faithful Mechanistic Interpretability for Vision Transformers15 Apr 2026
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMs15 Apr 2026
- 2026Latent Planning Emerges with Scale14 Apr 2026
- 2026Automated Attention Pattern Discovery at Scale in Large Language Models4 Apr 2026
- 2026Wired for Overconfidence: A Mechanistic Perspective on Inflated Verbalized Confidence in LLMs1 Apr 2026
- 2026From Early Encoding to Late Suppression: Interpreting LLMs on Character Counting Tasks1 Apr 2026
- 2026Pitfalls in Evaluating Interpretability Agents20 Mar 2026
- 2026Exhaustive Circuit Mapping of a Single-Cell Foundation Model Reveals Massive Redundancy, Heavy-Tailed Hub Architecture, and Layer-Dependent Differentiation Control12 Mar 2026
- 2026France or Spain or Germany or France: A Neural Account of Non-Redundant Redundant Disjunctions26 Feb 2026
- 2026Certified Circuits: Stability Guarantees for Mechanistic Circuits26 Feb 2026
- 2026IBCircuit: Towards Holistic Circuit Discovery with Information Bottleneck26 Feb 2026
- 2026The Story is Not the Science: Execution-Grounded Evaluation of Mechanistic Interpretability Research5 Feb 2026
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models3 Feb 2026
- 2026Sparse or Dense? A Mechanistic Estimation of Computation Density in Transformer-based LLMs30 Jan 2026
- 2026From Chains to DAGs: Probing the Graph Structure of Reasoning in LLMs24 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026Hierarchical Sparse Circuit Extraction from Billion-Parameter Language Models through Scalable Attribution Graph Decomposition19 Jan 2026
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Task8 Jan 2026
- 2026Geometry of Reason: Spectral Signatures of Valid Mathematical Reasoning2 Jan 2026
- 2025Constructive Circuit Amplification: Improving Math Reasoning in LLMs via Targeted Sub-Network Updates18 Dec 2025
- 2025Multi-Granular Node Pruning for Causal Circuit Discovery11 Dec 2025
- 2025Geometry of Decision Making in Language Models25 Nov 2025
50 newest of 199 All 199 (JSON)
- 2025Thought Anchors: Which LLM Reasoning Steps Matter?cited by 126
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalizationcited by 78
- 2024Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thoughtcited by 56
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspectivecited by 32
- 2024Iteration Head: A Mechanistic Study of Chain-of-Thoughtcited by 31
- 2024Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths Aggregationcited by 22
- 2025Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoningcited by 10
- 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gatescited by 8
- 2025Representation Consistency for Accurate and Coherent LLM Answer Aggregationcited by 5
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structurescited by 4
12 most cited of 20 All 20 (JSON)
- 2026From Chains to DAGs: Probing the Graph Structure of Reasoning in LLMs24 Jan 2026
- 2026Geometry of Reason: Spectral Signatures of Valid Mathematical Reasoning2 Jan 2026
- 2025Constructive Circuit Amplification: Improving Math Reasoning in LLMs via Targeted Sub-Network Updates18 Dec 2025
- 2025Deductive Logic in Language Models: Horizontal vs Vertical Reasoning10 Oct 2025
- 2025InTraVisTo: Inside Transformer Visualisation Tool18 Jul 2025
- 2025Thought Anchors: Which LLM Reasoning Steps Matter?23 Jun 2025
- 2025Representation Consistency for Accurate and Coherent LLM Answer Aggregation18 Jun 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
- 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspective19 May 2025
- 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates15 May 2025
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Them20 Mar 2025
- 2025Investigating Compositional Reasoning in Time Series Foundation Models9 Feb 2025
12 newest of 20 All 20 (JSON)
- 2025Can Theoretical Physics Research Benefit from Language Agents?cited by 9
- 2024Interpretability in Action: Exploratory Analysis of VPT, a Minecraft Agentcited by 4
- 2026Pitfalls in Evaluating Interpretability Agentscited by 2
- 2026MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretabilitycited by 1
- 2026MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretability25 May 2026
- 2026Pitfalls in Evaluating Interpretability Agents20 Mar 2026
- 2025Can Theoretical Physics Research Benefit from Language Agents?6 Jun 2025
- 2024Interpretability in Action: Exploratory Analysis of VPT, a Minecraft Agent16 Jul 2024
- 2025How Do Vision-Language Models Process Conflicting Information Across Modalities?cited by 22
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answeringcited by 11
- 2025Interpreting Attention Heads for Image-to-Text Information Flow in Large Vision-Language Modelscited by 7
- 2025Interpret, prune and distill Donut : towards lightweight VLMs for VQA on documentcited by 0
- 2025Interpret, prune and distill Donut : towards lightweight VLMs for VQA on document30 Sep 2025
- 2025Interpreting Attention Heads for Image-to-Text Information Flow in Large Vision-Language Models22 Sep 2025
- 2025How Do Vision-Language Models Process Conflicting Information Across Modalities?2 Jul 2025
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answering17 Nov 2024
- 2025CLUE: Conflict-guided Localization for LLM Unlearning Frameworkcited by 7
- 2024Unlearning-based Neural Interpretationscited by 0
- 2025CLUE: Conflict-guided Localization for LLM Unlearning Framework25 Sep 2025
- 2024Unlearning-based Neural Interpretations10 Oct 2024
- 2023Interpretable Diffusion via Information Decompositioncited by 37
- 2023Interpretable Diffusion via Information Decomposition12 Oct 2023
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 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
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023Language Models Represent Space and Timecited by 306
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 201
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 196
- 2024How to use and interpret activation patchingcited by 191
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 186
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 144
12 most cited of 163 All 163 (JSON)
- 2026Conditional Transfer from Controlled Pretraining Mixtures to Code8 Oct 2026
- 2026Are We Recovering Mechanisms? Objective-Level Recovery Gaps in Mechanistic Interpretability1 Oct 2026
- 2026When Models Don't Manipulate Manifolds: The Geometry of a Comparison Task29 Sep 2026
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learning29 Sep 2026
- 2026How Language Models Differ in Redistributing Attention-Head Activity Under Serial Demand28 Sep 2026
- 2026Rethinking Circuit Evaluation: Do Circuits Explain Model Errors?28 Sep 2026
- 2026Representational Simplicity and Circuit Size Dissociate in a Threshold-Dependent Way: A Controlled Test via Adversarial Training27 Sep 2026
- 2026Sparse Weight Decomposition for Efficient Circuit Extraction4 Aug 2026
- 2026Scaling Interpretable Transformers with Parity Bottleneck Layers22 Jul 2026
- 2026CircuitKIT : Circuit Discovery, Evaluation, and Application Toolkit for Mechanistic Interpretability21 Jul 2026
- 2026Pretraining Curricula Enable Selective Fine-tuning6 Jul 2026
- 2026Conditional Co-Ablation: Recovering Self-Repair Backups in Transformer Circuits2 Jul 2026
12 newest of 163 All 163 (JSON)