Mathematical Reasoning in LLMs: Expert Data vs. Compute Power

    This article examines the debate over whether expert-curated data or compute power is more critical for large language models in mathematical reasoning. By breaking down the probability formula P = 1-(1-p)^N, it explains how expert data primarily improves single-path accuracy (p), while high bandwidth memory and parallel sampling increase the number of attempts (N). The piece further explores how to decouple these two factors for training and evaluation, and highlights common engineering pitfalls to avoid.

    The Core Issue: Not an Either/Or, But Two Leverages

    When discussing the performance of large language models in mathematical proofs, counterexample search, and long-chain reasoning, debates often polarize into two extremes. One side emphasizes the necessity of having mathematicians clean and label papers and derivation processes, while the other argues that simply scaling up high-bandwidth memory (HBM) and increasing parallel sampling iterations will eventually yield the correct answer. A more engineering-grounded perspective is that expert data primarily elevates the correctness probability of a single path, (p), whereas high-bandwidth storage and sufficient decoding parallelism primarily increase the number of attempts, (N), within a given latency and cost budget. Both factors feed into the same probability structure:

    [
    P(\text{at least one correct}) = 1-(1-p)^N
    ]

    Given the existence of a reliable verifier capable of distinguishing a “coincidentally correct conclusion with a flawed argument,” neither (p) nor (N) can be neglected. High-quality corpora and directional guidance boost (p); high-bandwidth, high-concurrency trial-and-error scales (N), making it more likely to hit a verifiable correct trajectory within the same search budget. Hardware also indirectly influences model quality, and data quality impacts search efficiency, so claiming either is “absolutely irrelevant” is incorrect.

    What Expert Labeling Actually Adds

    During the pre-training phase, deduplication and weight allocation are standard practices, meaning low-quality filler content is not infinitely amplified. However, this does not make expert data dispensable. The difficulty in mathematical proofs often lies not in “writing down an expression that looks like an answer,” but in:

    • Whether the reasoning chain is complete and every step is verifiable;
    • Whether implicit assumptions are clearly stated and edge cases are addressed;
    • Whether feedback signals can differentiate between “the final number is correct” and “the reasoning process is rigorous.”

    Therefore, the primary value of professional papers, logical derivation fragments, and accompanying formalized proof code cleaned by domain experts is to provide a learnable rigorous structure. Secondarily, they supply positive and negative samples for verifiers: which proofs are complete, and which merely arrive at the correct conclusion by chance. Directional guidance is equally important—providing verifiable sub-goals for open problems, counterexample search strategies, or formalized interfaces is often more effective than letting the model blindly expand in an unconstrained space. In industry practice, teams have used general-purpose LLMs to find counterexamples to long-standing conjectures or achieve local breakthroughs on world-class problems within formal environments. These cases are more akin to a combination of “expert-defined problem boundaries + large-scale model trial-and-error + decidable feedback” rather than a myth of a single factor.

    A point of clarification is necessary: high-level reasoning behaviors (reflection, self-checking, backtracking, and rewriting) do not necessarily rely on “a complete set of proofs handwritten by mathematicians.” Paths that apply large-scale reinforcement learning directly on base models without prior supervised fine-tuning can also elicit similar behaviors. This indicates that complete handwritten proofs are not the only sufficient condition. But once a task escalates from “providing an answer” to “providing an auditable proof,” whether the verifier can catch argumentative flaws immediately pushes expert annotation back into a critical position. Verifiers specifically trained to evaluate completeness and rigor fill exactly this gap.

    The Role of High-Bandwidth Storage: Amplifying (N), Not Directly Rewriting (p)

    Assuming the correct rate of each independent generation is (p), and the verifier can accurately filter out correct answers, then under a fixed wall-clock time and cost, the larger the number of candidates (N) that can be deployed in parallel or serially, the closer (1-(1-p)^N) approaches 1. The typical contributions of high-bandwidth memory include:

    • Larger batch sizes and longer contexts, allowing the same decoding round to unfold more candidates or deeper search trees simultaneously;
    • Reduced wait times for repeatedly loading weights and activations, making the “generate-verify-regenerate” closed loop tighter;
    • Minimized truncation caused by memory bottlenecks in long-proof scenarios, thereby avoiding artificially lowering the effective (N).

    It generally does not directly transform the mathematical proficiency of a single path from “amateur” to “expert,” but rather makes the trial-and-error paths denser and more complete. Conversely, if (p) is extremely low and the verifier is unreliable, merely increasing (N) will only amplify the noise of “looks like a proof, but actually flawed,” leading to inflated evaluation metrics.

    Hardware also indirectly affects model quality through training stability, context length, and mixed-precision strategies; data proportioning also alters the prior during search, making the effective hit rate different under the same (N). Thus, describing high-bandwidth storage as “completely irrelevant” or “the sole determining factor” is equally inaccurate.

    Decoupling (p) and (N) for Training and Evaluation Design

    Practical Points for Elevating (p)

    1. Hierarchical corpora: Allocate weights separately for textbook-level definitions and theorems, paper-level derivations, and formalized scripts. Avoid mixing “narrative popular science” with “verifiable proofs” into the same loss function.
    2. Process supervision over outcome supervision: Score intermediate steps and specifically penalize samples where “the conclusion is right, but the lemma is wrong.”
    3. Decouple the verifier from the generator: The verifier consumes the complete proof tree and outputs dimensions such as completeness, rigor, and whether undeclared lemmas were used. The generator receives positive reinforcement learning signals only on trajectories that pass verification.
    4. Experts only do high-leverage labeling: Prioritize labeling “flaw types, missing steps, and counterexample construction ideas,” rather than exhaustively writing out all complete proofs.

    Practical Points for Elevating Effective (N)

    1. Maximize verifiable candidates within the latency budget: Combine parallel sampling, beam search, and subsequent re-ranking. Use cheap checks first to filter out formatting errors, then apply the full verifier.
    2. Integrate formal checkers into the closed loop, turning every failure into a learnable negative example rather than discarding it outright.
    3. Ensure in storage and scheduling that long contexts are not prematurely truncated; otherwise, the nominal value of (N) is large, but the effective reasoning depth is minimal.

    Evaluation Must Report Both (p) and (N)

    Reporting only “final correct answers” will mask coincidental correctness. It is recommended to simultaneously provide: the proportion of single-sampling passes under strict verification, the at-least-one-pass rate under a fixed compute budget, the verifier’s false positive/negative rates, and the reproducibility rate in a formal environment. Only then can readers determine whether improvements stem from better data or simply more attempts.

    Common Pitfalls in Engineering Implementation

    • Pitfall 1: Believing pre-training deduplication is sufficient. Deduplication reduces the proportion of noise but does not provide fine-grained labels on “what constitutes rigor.”
    • Pitfall 2: Substituting final numeric correctness for proof correctness. In open-domain applications, the latter is the actual deliverable.
    • Pitfall 3: Infinitely increasing sampling without upgrading the verifier. No matter how large (N) gets, the types of errors will simply be replicated.
    • Pitfall 4: Interpreting directional guidance as “leaking the answer.” What is truly useful is verifiable sub-problem decomposition and tool interfaces, not the answer itself.

    When training and inferencing in the cloud, object storage is used for versioning corpora and proof trajectories, container platforms for isolating generator and verifier services, and logging and monitoring for tracking effective (N), verification pass rates, and truncation rates. These are general capabilities that do not depend on any single proprietary interface.

    Conclusion: Two Factors in the Same Formula with Different Roles

    High-quality expert data and directional guidance primarily enhance the rigor (p) of single-pass reasoning and proofs; high-bandwidth storage and parallel trial-and-error primarily increase the search count (N) under a given cost. Reinforcement learning can elicit reflective behaviors without massive amounts of handwritten complete proofs, but once flawless argumentation is required, the value of verifiers and expert annotation becomes immediately apparent. Hardware is not irrelevant: it dictates how many paths can be taken and how deep they can go within the same budget. Returning to the formula (1-(1-p)^N), any narrative emphasizing only one of these factors fails to explain the gap between “occasional breakthroughs” and “reproducible rigorous proofs.” For R&D teams, the focus should be on investing simultaneously in auditable data and verification closed loops, as well as the compute and storage bandwidth required to maximize those loops, rather than making a binary choice at the slogan level.