Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms

📅 2026-04-17
📈 Citations: 0
Influential: 0
📄 PDF

career value

203K/year
🤖 AI Summary
This study investigates the internal mechanisms underlying mathematical reasoning in large language models, with a focus on how different layers collaborate during arithmetic tasks. Through early decoding, inter-layer activation analysis, and module ablation, the work systematically traces the step-by-step prediction process across layers. It reveals a clear functional division in high-performing models: attention modules primarily identify the structural patterns of arithmetic problems, while MLP modules predominantly carry out numerical computation. The findings indicate that task recognition precedes result generation, and correct outputs emerge only at the final layer. Crucially, this structured reasoning pattern is observed exclusively in models with strong arithmetic capabilities, suggesting that their performance stems not from rote memorization but from genuine compositional reasoning.

Technology Category

Application Category

📝 Abstract
Large language models (LLMs) have demonstrated impressive capabilities, yet their internal mechanisms for handling reasoning-intensive tasks remain underexplored. To advance the understanding of model-internal processing mechanisms, we present an investigation of how LLMs perform arithmetic operations by examining internal mechanisms during task execution. Using early decoding, we trace how next-token predictions are constructed across layers. Our experiments reveal that while the models recognize arithmetic tasks early, correct result generation occurs only in the final layers. Notably, models proficient in arithmetic exhibit a clear division of labor between attention and MLP modules, where attention propagates input information and MLP modules aggregate it. This division is absent in less proficient models. Furthermore, successful models appear to process more challenging arithmetic tasks functionally, suggesting reasoning capabilities beyond factual recall.
Problem

Research questions and friction points this paper is trying to address.

mathematical reasoning
large language models
internal mechanisms
arithmetic operations
model interpretability
Innovation

Methods, ideas, or system contributions that make the work stand out.

early decoding
internal mechanisms
division of labor
mathematical reasoning
large language models
🔎 Similar Papers
No similar papers found.