Manuscript Offprint

arXiv:2610.02191

The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models

Shuo Xing, Zilin Dai, Chengyuan Qian, Fangzhou Lin, Wenjing Chen, Ping He, Pan Lu, Alvaro Velasquez, Mohit Bansal, Zhengzhong Tu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

While Large Language Models (LLMs) have demonstrated striking capabilities on frontier mathematical problems, it remains unclear whether they possess the structural mathematical understanding underlying their solutions. In this paper, we take a first step toward systematically studying mathematical understanding in LLMs, from diagnosing its distinct capabilities to leveraging these findings to improve post-training. First, we introduce the notion of Mathematical Primitive to probe structural mathematical understanding and propose PRIM, a novel benchmark that evaluates mathematical reasoning along four distinct dimensions: Discovery, Generation, Digestion, and Execution. Second, our systematic diagnosis shows that solution accuracy masks distinct capability profiles, primitives unlock substantial latent execution capacity, and Discovery is the dominant bottleneck in mathematical reasoning. Our post-training analysis further shows that discovery-limited failures are particularly amenable to repair. Finally, building on these findings, we introduce ABSORB, a primitive-privileged self-distillation framework that selectively transfers primitive-guided reasoning into the student model. Extensive experiments demonstrate that ABSORB consistently improves mathematical reasoning over baselines across model scales and challenging benchmarks.

1 INTRODUCTION

Recent advances in Large Language Models (LLMs) have driven rapid progress in mathematical problem solving, with frontier models increasingly capable of tackling research-level questions and, in several recent cases, resolving or making substantive progress on long-standing open problems (OpenAI, 2026a;b; Claude, 2026; Bubeck et al., 2025; Jang & Ryu, 2025). Yet these striking successes leave unresolved a more foundational question: what models actually understand about the problems they solve and the mathematical content of the solutions they produce. Successful problem solving does not necessarily imply such understanding: models may arrive at correct answers through specious deductions (Boye & Moell, 2025), while conversely identifying sound high-level proof structures yet failing in low-level technical execution (Lu et al., 2024; Qin et al., 2025). Existing works provide limited insight into this disconnect, as mathematical reasoning is still assessed primarily through outcome-level metrics such as final-answer accuracy or formal proof verifiability, obscuring whether success reflects the discovery of the mathematical structure needed for a solution or merely the successful execution of a derivation.

Understanding mathematical reasoning therefore requires more than verifying that a derivation is correct; it requires exposing the ideas that organize the argument—why it works, which components are essential, and what can be generalized or reused. This need becomes increasingly salient as

  • Corresponding author.

Figure

Figure 1: Diagnosing and internalizing mathematical primitives. We introduce Mathematical Primitives to probe structural mathematical understanding in LLMs across four dimensions: Discovery, Generation, Digestion, and Execution. Our diagnosis further motivates ABSORB, which selectively transfers primitive-guided reasoning into the student without requiring primitives at inference time.

LLM-generated proofs grow in scale and complexity: lengthy chains of valid steps may establish correctness while leaving the underlying mathematical structure difficult to identify. Recent work has begun to emphasize precisely these aspects of mathematical reasoning, calling for representations that reveal the motivation, structure, and key ideas underlying an argument rather than only its final outcome (Frieder et al., 2024). In his ICM 2026 lecture, Terence Tao similarly highlighted the importance of making machine-generated mathematics conceptually digestible (Tao, 2026), warning that optimizing primarily for formal correctness risks producing an increasing volume of valid but opaque proofs without a corresponding increase in mathematical understanding. For LLMs, this perspective shifts the focus from merely producing valid proofs to determining whether the structural knowledge organizing those proofs is actually accessible to the model.

In this paper, we systematically study structural mathematical understanding in LLMs, as illustrated in Figure 1: the ability to identify the compact, load-bearing mathematical structure that explains why a solution works, distinct from the procedural ability to generate the derivation itself. We operationalize this notion through the Mathematical Primitive, a concise, non-procedural representation of the foundational idea organizing a solution, and introduce PRIM, a benchmark spanning four complementary dimensions: Discovery, Generation, Digestion, and Execution. Our diagnosis reveals that ① similar solving accuracy can mask markedly different capability profiles, ② correct primitives unlock substantial latent execution capacity, and, most importantly, ③ independent Discovery is the dominant bottleneck to mathematical reasoning. We further find that discovery-limited failures are substantially more amenable to post-training, but existing methods can introduce regressions on problems the model already solves. Motivated by these findings, we introduce ABSORB, a post-training paradigm that uses Mathematical Primitives as privileged information and a bounded override mechanism to selectively transfer their guidance into the student's reasoning process, enabling primitive-guided reasoning to be internalized without access to primitives at inference time. Our main contributions are as follows:

• Benchmarking structural mathematical understanding. We introduce the notion of Mathematical Primitive and propose PRIM, a benchmark that evaluates mathematical reasoning across four complementary dimensions: Discovery, Generation, Digestion, and Execution.

• Systematic Diagnosis. Our analysis reveals distinct capability profiles hidden by answer accuracy, substantial latent execution capacity unlocked by correct primitives, and independent Discovery as the dominant bottleneck in mathematical reasoning. We further show that discovery-limited failures are substantially more amenable to post-training.

• Internalizing primitive-guided reasoning. Building on these findings, we introduce ABSORB, a primitive-privileged post-training paradigm that selectively transfers primitive-guided reasoning into the student model. Across multiple model scales and challenging mathematical reasoning benchmarks, ABSORB consistently improves average performance by 2.42 – 4.48 points.

References (80)