Evaluating Mathematical Reasoning in LLMs: Contamination, Proof Quality, Stability, and Cost
This article presents a practical framework for evaluating mathematical reasoning in large language models. It distinguishes calculation, proof, and research tasks; explains how to reduce data contamination through private holdout sets and anti-memorization tests; proposes a four-dimensional proof-quality rubric; and recommends measuring stability, cost, and latency alongside accuracy. It also explains why capability tiers are more defensible than absolute rankings and outlines a staged adoption path for enterprise users.
Mathematical reasoning is one of the areas in large-model evaluation most easily distorted by demo effects. A difficult problem solved end-to-end may reflect genuine generalization, approximate memorization from training corpora, prompt coincidence, or merely a polished restatement of an existing answer. For this reason, discussing whether a model generation is “strong” should not stop at impressive user experience. It should return to reviewable evaluation design: whether the problems are unpublished, whether solutions are verifiable, whether behavior is stable, whether cost is controllable, and whether failures are explainable. For enterprise users, this kind of evaluation also affects R&D investment, knowledge-asset security, and production-system stability, so it should not rely only on community reputation or a single trial.
1. Separate Three Capability Types: Calculation, Proof, and Research
Before evaluation, the target must be clearly separated. The first type is calculation and symbolic manipulation, which emphasizes numerical correctness, robust algebraic transformation, and no missed boundary conditions. The second is structured proof, which requires clear citation of premises, a closed logical chain, and adequate handling of counterexamples. The third is open-ended research, which involves proposing conjectures, constructing new objects, and advancing problems when no standard answer exists. Many models are close to usable on the first type, show clear divergence on the second, and depend heavily on prompts, external retrieval, and human screening on the third. Mixing the three together can mistake a “problem-solving assistant” for a “research partner.”
From an engineering perspective, tasks can be divided into L1 through L4. L1 covers routine textbook problems; L2 covers competition or graduate-course problems; L3 covers propositions for which public materials do not provide a complete proof; L4 covers exploratory questions without a consensus conclusion. L3 is where real discrimination appears: it requires the model to fill in missing arguments while preventing it from simply extracting an existing solution. L4 should not be used as a routine procurement metric because scoring is subjective, cycles are long, and reproduction is difficult. It can still be used to observe whether a model can propose intermediate lemmas, identify incorrect routes, and actively ask for missing conditions.
2. Control Data Contamination: High Scores Do Not Equal High Capability
Mathematical content is highly digitized, and public lecture notes, forum discussions, problem-bank mirrors, and automatically scraped pages can all enter training corpora. If evaluation problems come from public materials, a model may gain an unfair advantage through similar-problem templates even when it does not “copy and paste.” A reliable approach is to build a private held-out set: domain experts rewrite conditions, swap conclusions and assumptions, introduce hidden traps, and rotate the set regularly. For each problem, record source fingerprints, similar-problem retrieval results, and version numbers. If model output is highly consistent with a public solution in the order of key lemmas, symbol naming, and error details, it should be flagged as suspected contamination and downweighted.
Anti-memorization problems should also be included: they may look like a classic theorem, but one premise is changed so that the original conclusion no longer holds. A strong model should point out that the conditions are insufficient or provide a counterexample, rather than applying a famous proof. Such problems can effectively distinguish pattern matching from genuine understanding.
3. Proof Quality Evaluation: From Correct Answers to Credible Arguments
In mathematics, the core product is not a single conclusion but an inspectable argument. A four-dimensional scoring scheme is recommended: correctness, completeness, rigor, and verifiability. Correctness concerns whether the final proposition holds. Completeness concerns whether all cases are covered. Rigor concerns whether quantifiers, exchange of limits, existence, and constructive proofs are handled legally. Verifiability concerns whether each step can be independently checked. A simplified rubric can be used:
score = 0.40*correctness+ 0.25*completeness+ 0.20*rigor+ 0.15*verifiabilityhard_fail = core conclusion wrong | circular argument | nonexistent premise cited | key case split missing
If hard_fail is triggered, the response should be judged unacceptable even if it is fluently written. At least two reviewers should score blindly, with model names and providers hidden, using only the solution text. If disagreement exceeds a threshold, a third reviewer should arbitrate. For long proofs, the model should be required to output a dependency graph: each intermediate conclusion should list the premises used, its scope of application, and whether it can be independently verified. A fluent long essay without a dependency graph is often riskier than a short proof with clear citations.
4. Stability, Cost, and Latency Must Be Tested Together
The same model may fluctuate significantly across temperature settings, context lengths, prompt styles, and retry counts. Evaluation should report mean, variance, and failure modes rather than only the best sample. It is recommended to run multiple independent samples for each task and record the first-pass rate, the pass rate after limited hint-based correction, and the success rate under completely unguided conditions. In enterprise budget assessment, token consumption should be converted into task cost, and thinking-style long outputs should be distinguished from concise outputs: the former may improve pass rates on complex problems but bring higher latency and expense; the latter may suit batch work but lose points on deep proofs.
On the implementation side, a general cloud stack can be used to build an evaluation pipeline: object storage for problems and samples, a message queue for distributing inference tasks, a container platform for isolating runtime environments, logging for prompts, outputs, and review comments, and monitoring and alerting for failure rates and cost anomalies. If such a pipeline is deployed on Baidu AI Cloud, the architecture should also be described only through these generic categories, avoiding treating unconfirmed capabilities as firm commitments. The key is to form an evaluation loop that is auditable, replayable, and permission-tiered.
5. Comparison Conclusions Should Use Tiers, Not Rankings
Without the same private problem bank, the same review scale, and the same budget ceiling, claims that “a certain model is absolutely first” are usually unfalsifiable. A more defensible expression is in tiers. The first tier can provide reviewable progress on some unpublished proof problems. The second tier is suitable for high-quality lecture-note generation, proof completion, and counterexample screening. The third tier can be used for teaching explanations, code assistance, and routine calculation. Within a tier, models should not be ranked casually, because different models make different tradeoffs in conciseness, formalization tendency, creative expression, tool collaboration, and long-context stability. In particular, beware the intuition that “longer chain-of-thought means stronger reasoning”: overly long reasoning may mask self-doubt and repeated exploration, while a good system should expand when necessary and converge when the answer is obvious.
6. A Suggested Enterprise Adoption Path
Start with low-risk scenarios: exercise grading, lecture-note drafts, literature summaries, and proof-format normalization. Then move to semi-high-risk scenarios: maintaining an internal problem bank, generating research memos, and automatically checking lemma dependencies. Only after that should exploratory assistance be considered. All mathematical output should be labeled with confidence level and human-review status, and key conclusions must be confirmed by experts or formalized processes. For questions involving unpublished results, data isolation, access auditing, and retention-period control should be enabled by default, to avoid exposing core conjectures, unpublished proofs, and private data to uncontrolled chains.
Ultimately, the standard for evaluating a mathematical reasoning model is not “whether it looks like a genius,” but “whether, under a given cost and risk level, it can stably produce reasoning artifacts that are inspectable, accountable, and reusable.” When evaluation shifts from admiration of one-off miracles to engineering evidence, model selection can return from marketing narratives to technical assets.
