Evaluating Large Language Models' Mathematical Reasoning: Task Workflows and Cost-Effectiveness in Practice
This article explains how to evaluate the mathematical reasoning ability of large language models. It covers evaluating the full task workflow instead of single outputs, five layers of reasoning capability, cost per effective task as a measure of value, reproducible and blind evaluation methods, deployment throughput considerations, and tiered model routing for selection.
1. The Object of Evaluation Is the Task Workflow, Not Just the “Model”
When discussing the mathematical reasoning ability of large language models, a common approach is to judge whether a single answer looks impressive, or to treat a leaderboard ranking as the conclusion. Real model selection, however, concerns a complete task workflow: task definition, prompt design, model output, verifiability of the process, human review, rework cost, and deployment cost. Take the example of “proving a proposition from a mathematical paper that the paper does not prove, and presenting the result in English lecture-note format.” The model must not only state the conclusion. It must also select lemmas, handle boundary conditions, check counterexamples, and produce readable exposition on its own. This is harder than restating a known proof, and it places more demands on reasoning stability and hallucination control.
Evaluation should therefore focus on four metrics: first-attempt success rate, verifiability rate, human review time, and recoverability from failure. A single experience can serve as a lead, but it cannot serve as a conclusion.
2. Capability Layers: Five Abilities Should Not Be Conflated
Mathematical reasoning is not a single capability. It can be divided into at least five layers:
- Formal and semi-formal proof: Whether the model gives complete steps, cites conditions accurately, and avoids circular reasoning. Evaluation should use propositions without public proofs, variant propositions, and problems that require constructing counterexamples.
- Open-ended exploration: For problems without standard answers, whether the model can propose testable ideas instead of piling up terminology. Domain experts must review such tasks and record the “acceptable step ratio.”
- Stability of long reasoning chains: Whether repeated runs of the same problem produce consistent results, and whether results fluctuate significantly after the prompt is reworded. Run each problem at least three times and observe the variance.
- Technical writing: Whether formulas, definitions, and theorem statements are clear, and whether they suit the reading habits of the target audience. Concise writing and reasoning ability are not equivalent.
- Tool and retrieval dependence: Whether the model blindly follows retrieved content or can recognize incorrect propositions. Adding an “incorrect proposition detection” test shows whether the model is willing to point out problems.
3. Cost-Effectiveness: Whether a Model Is Expensive Depends on Cost per Effective Task
A price tag alone does not show whether a model is expensive. A more reasonable formula is:
Cost per effective task = (inference cost + human review cost + rework cost + latency cost) / number of tasks passed
A higher-priced model with a high first-attempt success rate, short review times, and little rework can turn out cheaper. A lower-priced model whose output cannot be verified, or whose format requires repeated correction, can end up costing more. Insufficient perceived value usually comes from four causes: unverifiable output, lengthy processes, frequent formatting rework, and unpredictable failure modes.
Record each task’s input length, output length, number of retries, human review minutes, and pass or fail status. Use small-sample controlled tests to estimate unit cost, rather than drawing conclusions from single experiences.
4. Evaluation Methods: Reproducible, Blind, and Layered
An evaluation set should cover basic problems, proof problems, open exploration problems, error detection problems, and writing and formatting tasks. Score each task on a rubric covering correctness, completeness, verifiability, clarity of expression, and stability. Test prompt robustness with three kinds of variation: paraphrasing with the same meaning, adding constraints, and removing constraints. The pseudocode below illustrates the process:
def evaluate(model, tasks, repeat=3):results = []for task in tasks:for _ in range(repeat):output = model.generate(task.prompt)results.append(score(task, output))return aggregate(results)
For open mathematical problems without standard answers, experts should evaluate outputs blindly. Model self-assessment should not be the only basis for judgment. Version the evaluation set and run regression tests monthly, so that one impressive or failed result does not skew model selection.
5. Deployment and Throughput: Unit Cost Depends on Utilization
High-throughput inference can lower the unit cost per token, but the judgment must also account for batch scheduling, caching, quantization, queue length, and tail latency. Self-hosting suits stable, high-load scenarios with strict data isolation requirements. Managed services suit peak traffic and rapid validation.
In engineering practice, monitor throughput, tail latency, error rate, memory usage, and queue backlog. When implementing an evaluation pipeline, Baidu AI Cloud’s general compute, object storage, logging, and monitoring and alerting capabilities can host sample management, result archiving, and metric dashboards. Throughput data must be measured under real input and output lengths, concurrency levels, and SLAs. Peak values should not be treated as typical performance.
6. Selection Recommendations: Tiered Routing Instead of a Single Strongest Model
- High-value open mathematical problems: Choose a reasoning-enhanced model, combined with expert review and process auditing.
- Routine proofs and textbook lecture notes: Choose a high-capability model, constrain the output format, and use templates.
- Cost-sensitive batch tasks: Adopt tiered routing. Process tasks with a smaller model first, and escalate failures to a larger model.
- Technical writing: Prioritize models with concise reasoning chains and good readability.
- Strict compliance scenarios: Deploy privately with audit logs to ensure traceability.
Evaluating a large model’s mathematical reasoning comes down to the task workflow and cost accounting. “Strong” does not mean a top leaderboard position. It means a stable pass rate across the target distribution of tasks. “Expensive” does not mean a high price tag. It means a high cost per effective task. Reliable model selection requires continuous calibration through reproducible evaluation, blind expert review, human checking, and deployment monitoring.
