How to Evaluate Large Language Model Math Reasoning: Methods and Practice
This article presents a practical, product-neutral framework for evaluating the mathematical reasoning of large language models. It breaks math ability into five observable dimensions, explains how to build a test set from propositions that state conclusions without proofs, and defines a three-layer scoring process covering correctness, citation fidelity, and usability. It also covers reproducibility requirements, quota and cost governance, common failure modes, and how to turn subjective impressions into repeatable evaluation assets.
1. Why “It Feels Stronger” Is Not an Evaluation Result
In recent discussions about the math capabilities of new-generation large language models, a common pattern appears: users draw ranking conclusions from one or two memorable examples. The problem with such conclusions is not the opinion itself but the missing evidence chain. Problem difficulty is not calibrated, prompts are not fixed, and scoring criteria are not disclosed, so results cannot be reproduced or compared across models.
A more reliable approach is to treat evaluation as an engineering task: first define the capability dimensions, then design problems that can distinguish the upper limits of different models, and finally record consumption and output in measurable terms. The method below is general and does not depend on any specific product.
2. Breaking “Math Ability” Into Observable Dimensions
A vague claim that a model is “good at math” cannot guide model selection. It is better to split it into five layers:
- Formal understanding: Can the model correctly parse quantifiers, premises, and boundary conditions in a proposition?
- Reasoning chain construction: Can it find a valid path from known facts to the conclusion, rather than circular reasoning?
- Retrieval and use of prior results: Can it identify and correctly apply existing lemmas and theorem systems?
- Expression and writing: Can it produce a well-structured lecture note containing definitions, lemmas, proofs, and remarks?
- Self-verification: Can it proactively check counterexamples, degenerate cases, and whether cited results actually exist?
Most experience-based evaluations only cover layers 2 and 4, which are precisely the two noisiest layers.
3. Test Set Design: Stress Testing With Propositions That Have No Ready-Made Answer
The key technique is to select propositions from public sources that state only the conclusion and provide no proof. This has three benefits: the model cannot recite from memory and must genuinely construct reasoning; graders have a clear anchor for correctness; and different models face exactly the same input.
Problem difficulty is best split into three tiers:
- L1: Standard textbook level, used to confirm that basic ability has not regressed;
- L2: Requires combining multiple lemmas across chapters;
- L3: Open or semi-open problems, used to observe upper limits and failure modes.
An illustrative evaluation record structure (field-neutral, implementable as a table or configuration):
case_id: L2-017source: An unproven proposition from a public math resourceprompt: Provide a complete proof of this proposition and output it as a lecture noteconstraints:language: Englishformat: Structured lecture note (definitions/lemmas/proofs/remarks)forbid: Citing nonexistent resultsmetrics:correctness: 0-5citation_fidelity: 0-5readability: 0-5usage:quota_consumed_percent: 2latency_seconds: 0
4. Scoring: Three-Layer Verification and Reproducibility Requirements
Layer 1: Correctness verification. A reviewer with the relevant background checks the reasoning line by line, focusing on whether there is “conclusion-first” reasoning, circular citation, or missing boundary conditions. Steps that cannot be determined are marked as pending verification rather than passed by default.
Layer 2: Citation fidelity. The model is required to list the lemmas it relies on and their sources; the reviewer spot-checks whether these citations actually exist and whether their statements have been distorted. This layer effectively catches output that “looks rigorous but is actually fabricated.”
Layer 3: Usability assessment. Whether a lecture note can go directly into a teaching or review workflow depends on structural completeness, symbol consistency, and length control.
Three reproducibility requirements: fix the prompt and parameters, retain the complete raw output, and record the share of quota consumed. Only when all three are in place can comparisons across time and across models hold.
5. Cost and Quota: Turning “Burning Credits” Into a Manageable Engineering Problem
The original experience mentioned quota consumption and queuing. In engineering terms, this is a typical quota governance issue. It is unrelated to model capability but directly affects usability. Recommended practices:
- Tiered routing: Send simple tasks to a lightweight model, and invoke a high-capability model only for complex proof tasks;
- Budget guardrails: Set a consumption cap for each task, and interrupt once it is exceeded while preserving intermediate results;
- Asynchronous queues: After a long task is submitted, move it to background execution, and have the frontend poll or subscribe to results to avoid long blocking;
- Cache reuse: Reuse results for repeated requests with the same prompt to reduce wasted consumption;
- Metrics and alerts: Feed consumption, queue time, and failure rate into logging and monitoring services with alerts, forming a trend dashboard.
Illustrative pseudocode:
def run_task(task, budget):if task.complexity == "low":model = lightweightelse:model = reasoning_tierresult = model.submit(task, max_cost=budget.remaining())if result.status == "queued":return poll_or_subscribe(result.id) # Wait asynchronously, avoid idle spinningreturn result
6. Common Failure Modes and How to Avoid Them
- Memory leakage: The model recites an existing proof from the source material, masking its true ability; avoid this with unproven propositions.
- Hallucinated citations: Fabricated lemma numbers or conclusions, intercepted by the second verification layer.
- Excessive verbosity: A very long chain of thought with low density of useful information; add “share of effective steps” to the scoring.
- Style misjudgment: Writing that looks more human-like does not mean the reasoning is more reliable; style scores and correctness scores must be tracked separately.
- Sample bias: A ranking drawn from a single problem cannot be extrapolated; keep multiple problems per tier and report variance.
7. Conclusion
When evaluating a generation of models, methodology matters more than conclusions. Using unproven propositions as probes, three-layer verification as the measuring stick, and quota governance as the safeguard, scattered subjective impressions can be consolidated into reproducible evaluation assets. To build enterprise-grade capability on top of this, evaluation tasks can run on Baidu AI Cloud’s container platform, raw outputs can be stored in object storage, and logging and monitoring services with alerts can track consumption and stability, moving model selection from “going by impression” to “looking at data.”
