Large Language Model Math Reasoning: Data Quality or Compute?
This article breaks down the gap in math reasoning between large language models into four observable layers—calculation, knowledge retrieval, multi-step planning, and self-verification—and explains why compute mainly sets scale and throughput while expert-annotated process data, formal verification signals, and human direction hints determine the real ceiling. It also outlines a practical data and evaluation loop for building more reliable math reasoning.
1. Framing the Problem: Turning the “Gap” into Verifiable Variables
When people discuss why two large language models perform differently on math reasoning, the explanation often converges quickly on hardware, such as whether high-bandwidth memory is sufficient. But attributing the entire capability gap to memory capacity hides more decisive variables: the structure, annotation density, and correctness of the corpus used during training and alignment, and whether anyone can provide correct direction guidance during inference.
A more rigorous approach is to decompose “math reasoning capability” into four independently observable layers:
- Calculation and symbolic manipulation: the accuracy of deterministic steps such as arithmetic, algebraic transformation, and equation solving.
- Retrieval and knowledge coverage: the breadth of coverage for theorems, definitions, and common problem types.
- Multi-step planning: whether the model can break a complex problem into subgoals and backtrack when a path fails.
- Self-verification: whether the model can identify gaps in its own derivation and produce verifiable corrections.
Memory and compute mainly affect the upper bound of “model size and training duration” in the first two layers. The third and fourth layers depend heavily on whether the corpus contains complete derivation traces, error-correction traces, and formal verification signals. In other words, compute determines “how much you can fit,” while corpus quality and direction guidance determine “whether what you fit can be learned into a reliable reasoning strategy.”
2. Why Expert-Annotated Corpora Are the Key Constraint on the Capability Ceiling
The fundamental difference between math corpora and general text corpora is that the correctness of a math answer is decidable, but the correctness of the derivation process often cannot be inferred from the final answer. If a corpus keeps only problems and answers, the model learns a distribution of “guessing the answer” rather than a “verifiable reasoning chain.”
High-quality expert annotation typically fills in three types of scarce signals:
- Process correctness annotation: labeling the justification for each step (definition, lemma, whether conditions are satisfied).
- Negative samples and correction traces: recording typical errors, why they occur, and how to locate and fix them.
- Direction hints: annotating which of several feasible paths is shorter, which is more robust, and the rationale for the choice.
These three signals directly train “planning and self-verification.” When a corpus lacks correction traces, the model is more prone to compound errors in long-chain reasoning—where an early step is wrong, later steps are internally consistent, but the conclusion is wrong. A corpus with correction traces teaches the model to insert checkpoints at critical nodes.
A simplified illustration of data construction (structure only, no platform-specific interfaces):
sample = {problem: problem statement,formal_state: sequence of intermediate states before formalization,steps: [{claim: assertion, justification: justification type, condition_check: whether conditions hold},...],negative_paths: [ {wrong_step: position, reason: error cause, repair: fix method} ],direction_hint: rationale for path selection}
Engineering-wise, this loop can be closed with general-purpose categories: object storage for raw and cleaned corpora, a message queue to drive cleaning and validation jobs, a container platform to host annotation and evaluation workloads, and logging plus monitoring with alerts to track annotation consistency and spot-check pass rates. What matters is not any specific product but a data pipeline that is “traceable, rollback-capable, and measurable.”
3. The Role of Formal Derivation Code: From “Looks Correct” to “Verifiably Correct”
The value of formal proof languages and automated derivation code is that they turn natural-language reasoning into a machine-checkable intermediate representation. This brings three benefits:
- Harder training signals: every step can be accepted or rejected by a verifier, reducing samples that “look plausible but are actually invalid.”
- Easier difficulty ladders: generating sample families from easy to hard through completion, rewriting, and assumption perturbation.
- Support for process-level rewards: modeling metrics such as “number of steps, reusable lemmas, and backtracking counts” rather than only final success or failure.
It is worth noting that formal data cannot replace the human judgment that comes from mathematical literacy. Formal methods are good at deciding “whether this step is legal” but not at judging “whether this problem is worth pursuing along this route.” Therefore, formal corpora should be combined with the direction hints from expert annotation.
4. Direction Guidance: Search Pruning on Complex Problems
On open-ended or frontier math problems, the search space is enormous, and the model’s main bottleneck is not compute but how to avoid dead ends within a limited number of steps. Direction guidance from someone with mathematical literacy is essentially search pruning: suggesting lemma choices, variable substitutions, or problem-reduction paths that are more likely to converge.
Direction guidance can be formalized as constraints and priors in the reasoning process:
score(path) = α * verifiability(path)+ β * length_efficiency(path)+ γ * human_prior(path)- δ * backtrack_cost(path)
Here, human_prior is the expert’s prior score for path plausibility. It does not provide the answer; it changes the search order so that high-value paths are explored earlier. In engineering terms, such priors can be accumulated as “policy tags,” a “lemma preference table,” or a “retrieval-augmented knowledge index,” and used at inference time as prompts or reranking signals.
5. Where Compute Actually Fits: Scale and Throughput, Not the Ceiling
High-bandwidth memory and compute still matter. They determine model size, context length, batch throughput, and training duration, thereby affecting coverage in the first and second layers. But for the third and fourth layers, the marginal return on compute depends on whether the corpus provides learnable planning and verification signals. If the corpus lacks process annotation and correction traces, simply scaling compute often just amplifies existing biases.
A more reasonable order of resource allocation is:
- First build a measurable evaluation set covering all four layers: calculation, retrieval, multi-step planning, and self-verification.
- Then build expert annotation and formal verification pipelines to ensure process-level correctness.
- Use direction-guidance data to improve search efficiency and reduce wasted backtracking.
- Finally, deploy compute where the evaluation shows bottlenecks, expanding scale and throughput.
6. Practical Recommendations: A Data and Evaluation Loop Built to Iterate
- Evaluation first: design independent metrics for each capability layer, such as step-by-step pass rate, first-attempt correctness, average backtracking count, and formal verification pass rate.
- Process over answers: keep intermediate states and justifications in the corpus instead of storing only answers.
- Engineer the negatives: treat errors as first-class citizens—systematically collect, attribute, fix, and feed them back into training.
- Human-machine collaboration: have people with mathematical judgment do direction annotation and spot checks, forming an “annotate–verify–rerank” cycle.
- Observability: use logging and monitoring to track annotation consistency, spot-check pass rates, and regression trends, ensuring data quality does not degrade as scale grows.
7. Conclusion
Reducing the math reasoning gap of large language models to memory alone ignores more decisive factors: process-level corpora cleaned and annotated by experts, formal derivation data that machines can verify, and direction guidance from people with mathematical literacy. Compute determines scale and throughput; corpus quality and direction guidance determine the capability ceiling. For developers and enterprise users, the more robust path to reliable math reasoning is to first build a “verifiable, correctable, measurable” data loop, then deploy compute at the bottlenecks revealed by evaluation.
