Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passes
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Math reasoning is an active area of Large Language Model (LLM) research because it is a hallmark of artificial intelligence and has implications in several domains, including math education. However, few works have explored how math reasoning is encoded within LLM parameters and if it is a skill that can be isolated within models. Doing so could allow targeted intervention to improve math performance without altering non-math behavior and foster understanding of how models encode math reasoning. We introduce Math Neurosurgery (MathNeuro), a computationally efficient method we use to isolate math-specific parameters in LLMs using only forward passes. MathNeuro builds on existing work by using weights and activations to calculate parameter importance, but isolates math-specific parameters by filtering out those important for general language tasks. Through pruning parameters MathNeuro identifies, we delete a LLM's math reasoning ability without significantly impacting its general language ability. Scaling the identified parameters by a small constant improves a pretrained or instruction-tuned LLM's performance by 4-17% on GSM8K and 5-35% on MATH while leaving non-math behavior unaltered. MathNeuro is also data efficient: most of its effectiveness holds when identifying math-specific parameters using a single sample. MathNeuro highlights the potential for future work to intervene on math-specific parameters.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 34 of its 51 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
34 of 51 references.
Closest ancestors · 4
Same direction, newest first
- 2024An Investigation of Neuron Activation as a Unified Lens to Explain Chain-of-Thought Eliciting Arithmetic Reasoning of LLMs18 Jun
- 2024Common 7B Language Models Already Possess Strong Math Capabilities7 Mar
- 2024GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solvers29 Feb
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challenges31 Jan
Other references · 30
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 991
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
- 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 639
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 334
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
18 more
- 2024Many-Shot In-Context Learningcited by 206
- 2024How do Large Language Models Handle Multilingualism?cited by 150
- 2017Learning to Generate Reviews and Discovering Sentimentcited by 148
- 2024Language-Specific Neurons: The Key to Multilingual Capabilities in Large Language Modelscited by 126
- 2018What Is One Grain of Sand in the Desert? Analyzing Individual Neurons in Deep NLP Modelscited by 124
- 2020MuTual: A Dataset for Multi-Turn Dialogue Reasoningcited by 115
- 2018Identifying and Controlling Important Neurons in Neural Machine Translationcited by 111
- 2024On the Multilingual Ability of Decoder-based Pre-trained Language Models: Finding and Controlling Language-Specific Neuronscited by 83
- 2024LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancementcited by 70
- 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 58
- 2024LoFiT: Localized Fine-tuning on LLM Representationscited by 57
- 2024Tutor CoPilot: A Human-AI Approach for Scaling Real-Time Expertisecited by 50
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 45
- 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Modelscited by 32
- 2024Towards Understanding Multi-Task Learning (Generalization) of LLMs via Detecting and Exploring Task-Specific Neuronscited by 25
- 2023Unified Low-Resource Sequence Labeling by Sample-Aware Dynamic Sparse Finetuningcited by 21
- 2024Does Knowledge Localization Hold True? Surprising Differences Between Entity and Relation Perspectives in Language Modelscited by 9
- 2020Analyzing Redundancy in Pretrained Transformer Modelscited by 6
Built on by
Citing papers per year: 2025: 6; 2026: 4.
10 papers.
- 2025Feature Extraction and Steering for Enhanced Chain-of-Thought Reasoning in Language Modelscited by 13
- 2025Leveraging the true depth of LLMscited by 7
- 2025Task-Circuit Quantization: Leveraging Knowledge Localization and Interpretability for Compressioncited by 7
- 2025L2V-CoT: Cross-Modal Transfer of Chain-of-Thought Reasoning via Latent Interventioncited by 5
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Mergingcited by 4
- 2025StreetMath: Study of LLMs' Approximation Behaviorscited by 2
- 2026CreativityNeuro: Steering Language Model Weights to Improve Divergent Thinking and Reduce Mode Collapsecited by 2
- 2026LLM Parameters for Math Across Languages: Shared or Separate?cited by 1
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026Neuron-Guided Fine-Tuning: Unlocking Efficient Alignment Mechanisms for Large Language Modelscited by 0
- 2026Neuron-Guided Fine-Tuning: Unlocking Efficient Alignment Mechanisms for Large Language Models5 Sep 2026
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026CreativityNeuro: Steering Language Model Weights to Improve Divergent Thinking and Reduce Mode Collapse1 Jul 2026
- 2026LLM Parameters for Math Across Languages: Shared or Separate?16 Jun 2026
- 2025L2V-CoT: Cross-Modal Transfer of Chain-of-Thought Reasoning via Latent Intervention22 Nov 2025
- 2025StreetMath: Study of LLMs' Approximation Behaviors27 Oct 2025
- 2025Feature Extraction and Steering for Enhanced Chain-of-Thought Reasoning in Language Models21 May 2025
- 2025Task-Circuit Quantization: Leveraging Knowledge Localization and Interpretability for Compression10 Apr 2025
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging6 Feb 2025
- 2025Leveraging the true depth of LLMs5 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024From Next-Token to Mathematics: The Learning Dynamics of Mathematical Reasoning in Language Models
- 2024Neuro-Symbolic Data Generation for Math Reasoning
- 2025Benchmarking Large Language Models for Diagnosing Students' Cognitive Skills from Handwritten Math Work
- 2025Does Math Reasoning Improve General LLM Capabilities? Understanding Transferability of LLM Reasoning
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristics
- 2025Improving Rule-based Reasoning in LLMs using Neurosymbolic Representations
- 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Process
- 2025Evaluating Mathematical Reasoning Across Large Language Models: A Fine-Grained Approach