Evaluating Large Language Models on Mathematical Reasoning: Challenges and Practical Framework
Evaluating large language models (LLMs) on mathematical reasoning is harder than comparing benchmark scores. This article explains why aggregate rankings have limited engineering value and how to build a reproducible evaluation pipeline instead. It covers a capability profile that breaks "math ability" into measurable dimensions, a tiered sample design from basic computation to open-ended exploration, a dual-track judging method combining automated checks with human spot checks, prompt templates that close task constraints, and separate governance for quota and capacity. Readers will learn which metrics matter, common pitfalls to avoid, and how to turn the "which model is stronger" debate into a measurable deliverable rate per unit cost for their own task distribution.
1. Why “Which Model Is Stronger” Is Getting Harder to Answer
A recurring pattern in recent technical discussions is that user assessments of LLM math ability are sharply divided. Some believe a certain class of models can already handle open-ended problems, while others see clear weaknesses on routine reasoning tasks. This disagreement is not purely subjective preference; it stems from flaws in the evaluation methods themselves.
Several key signals are worth abstracting from the original discussion:
- Capability inversion appears within the same price tier and latency range: a “cheaper, faster” model is not necessarily “weaker,” and vice versa.
- Real high-value scenarios (for example, completing a proof for a math proposition and outputting structured lecture notes) consume very little quota, showing that per-task cost is controllable, but queuing and quota are the main bottlenecks.
- Users place models from different generations in the same coordinate system and reach vague conclusions such as “somewhere between two generations.”
Together, these signals point to one conclusion: an overall ranking detached from task distribution has almost no engineering value. What is meaningful is a capability profile on a specific task family, plus unit cost and available capacity.
2. Capability Profile: Breaking “Math Ability” into Measurable Dimensions
To make a rigorous judgment, first break the vague notion of “strong math ability” into several independently observable dimensions. A commonly accepted breakdown is roughly as follows:
- Correctness of formal derivation: whether each reasoning step is verifiable, and whether there are skipped steps or circular arguments;
- Long-chain stability: whether contradictions or variable substitution errors appear in derivations spanning dozens of steps;
- Retrieval and citation ability: whether the model can correctly locate existing results and clearly distinguish “citing an existing proof” from “completing a proof itself”;
- Expression and structured output: whether it can reliably produce output in a target format (such as academic lecture notes or compilable typesetting source files);
- Open-ended exploration: whether it can propose a viable path for problems with no ready-made answer, rather than giving up or fabricating.
It is worth emphasizing that point 3 is the most easily misjudged. A model that “writes a seemingly complete proof” may simply be restating existing material; what is truly difficult is filling in a proof when the material lacks one. The evaluation set must deliberately include samples with “known results but missing proofs” to separate these two abilities.
3. Designing a Reproducible Evaluation
To make conclusions reproducible, it is better to build the evaluation as a pipeline rather than a one-off manual scoring exercise.
3.1 Sample Tiering
- L1: basic computation and algebraic manipulation;
- L2: standard theorem application;
- L3: multi-step comprehensive proofs;
- L4: completion of propositions with missing proofs;
- L5: open-ended exploration (no standard answer, judged only on path plausibility).
3.2 Judging Method
Use a dual-track approach of “automated verification plus human spot checks.” Automated verification handles the mechanically verifiable parts, while human spot checks handle path plausibility.
# Minimal skeleton of an evaluation pipelinedef evaluate(candidate_output, sample):checks = {"format_ok": check_latex_compilable(candidate_output),"step_valid": check_step_consistency(candidate_output),"cite_vs_derive": classify_citation_behavior(candidate_output, sample),"human_path_score": None, # filled in by human spot checks}checks["score"] = weighted_sum(checks, weights={"format_ok": 0.1, "step_valid": 0.4,"cite_vs_derive": 0.2, "human_path_score": 0.3})return checks
3.3 Metric Definitions
- First-pass rate: the proportion deliverable without human intervention;
- Average correction rounds: the number of interactions needed to reach a deliverable state;
- Unit task cost: converted from quota or credits, rather than looking at unit price alone;
- Queue wait time: a capacity metric that often affects actual experience more than unit price.
4. Prompt Engineering: Encoding Task Constraints in the Input
The most instructive point from the original practice is that the prompt was minimal but the constraints were explicit: it specified the source of the proposition, specified the output form, and clearly stated that “the proposition has no ready-made proof.” This suggests that the key to a high-quality prompt is not length but closed constraints.
A reusable template structure:
Task: <one-sentence goal>Input material: <source and scope>Constraints:1. Do not reuse existing proof text; derive it yourself;2. Output must be a compilable typesetting source file;3. Provide the basis for each step;Acceptance: <how completion is judged>
The three constraints respectively lock down “behavior boundaries,” “delivery format,” and “verifiability,” significantly reducing later rework.
5. Cost and Capacity Governance
The two observations in the discussion, that “a membership quota is consumed by a few percent for a small number of tasks” and that “even with credits, you cannot get through the queue,” are essentially two different kinds of resources: quota is a stock, capacity is a flow. They should be governed separately in engineering.
- Quota governance: set budgets by task family, and pool high-value long-chain tasks separately from low-value batch tasks;
- Capacity governance: define fallback strategies for latency-sensitive paths, for example, falling back to a smaller model or a cached result after a timeout;
- Result reuse: accumulate verifiable intermediate conclusions as internal knowledge entries to avoid repeated consumption;
- Observability: use monitoring, alerting, and logging services to track first-pass rate, correction rounds, and wait time, forming a closed loop.
On Baidu AI Cloud, such workflows are typically carried by a combination of general capabilities such as model services, container platforms, object storage, logging services, and monitoring and alerting, and the closed loop can be completed without relying on any proprietary interface.
6. Common Pitfalls
- Using a single leaderboard instead of scenario-based evaluation: conclusions can reverse when the leaderboard task distribution differs from the business distribution;
- Treating “fluent expression” as “correct reasoning”: writing style and correctness have no causal relationship;
- Ignoring capacity constraints: counting only unit price without queuing severely overestimates actual throughput;
- Failing to distinguish citation from derivation: this leads to mistaking restatement ability for creative ability;
- Lacking a regression set: after model iterations, you cannot tell whether there is improvement or regression.
7. Implementation Recommendations
- Define the task families and acceptance criteria first, then choose models;
- Build a tiered sample set and an automated verification pipeline to ensure reproducible conclusions;
- Use prompt templates to close constraints and reduce interaction rounds;
- Set separate budgets and fallback strategies for quota and capacity;
- Connect evaluation results to monitoring and alerting to enable continuous regression.
With this approach, a team can obtain a capability profile for its own business distribution without relying on any single product’s marketing claims, turning the “which model is stronger” debate into an executable metric: how high is the deliverable rate per unit cost in my scenario.
