LLM Math Reasoning Evaluation and Model Selection Guide for Production Workloads
Teams often choose models for math tasks based on anecdotal chats, screenshots, or community reputation, but those signals are difficult to convert into architecture or procurement decisions. This article breaks math work into calculation, proof construction, and open-ended exploration; defines four evaluation dimensions—correctness and verifiability, reasoning-chain consistency, source attribution and originality, and presentation quality; and outlines a reproducible benchmark harness with fixed tasks, prompts, sampling parameters, blind scoring, and cost-per-pass metrics. It also discusses speed-quality tradeoffs, deployment factors such as time to first token and output throughput, common evaluation pitfalls, and a five-step model selection and rollout process.
1. Why “Can It Do Math?” Needs to Be Broken Down
In practice, many developers choose models based on personal experience. The impression from one conversation, a few screenshots, or the reputation of a community can all influence a decision. These signals have small sample sizes and inconsistent standards, making them hard to turn directly into procurement or architecture conclusions.
“Mathematical ability” is also a broad label. Math tasks vary significantly in difficulty and evaluation method, and can be roughly divided into three categories:
- Calculation and derivation: Given conditions, produce intermediate conclusions or a final numerical answer. Answers can usually be checked by machine.
- Proof construction: Starting from axioms or known theorems, provide a complete argument. Correctness requires step-by-step inspection; local plausibility does not mean the whole proof holds.
- Open-ended problem exploration: There is no standard answer. The model must propose conjectures, design checks, and revise its approach. Evaluation shifts toward the quality of the reasoning process.
Only after clarifying which category a task belongs to do subsequent evaluation metrics become meaningful. For calculation tasks, checking whether the result is correct may be enough. For proof tasks, each step’s justification needs to be checked. For open-ended problems, human judgment is needed to assess whether the approach has value.
2. Four Evaluation Dimensions
2.1 Correctness and Verifiability
Correctness is the most basic dimension. Whenever a conclusion can be checked with formal tools or symbolic computation, automated validation should be preferred to reduce manual effort. For proofs that can only be expressed in natural language, the proof should usually be broken into checkpoints, scored independently by two reviewers, and accompanied by a record of how disagreements are handled.
One common trap deserves attention: whether the output text is fluent and well structured is separate from whether the proof is correct. Well-formatted incorrect proofs are not uncommon.
2.2 Consistency of the Reasoning Chain
In long reasoning processes, common problems include:
- Inconsistent assumptions, such as setting a variable as nonnegative earlier and then treating it as potentially negative later.
- Silently introducing an unproven lemma and using it as a known result.
- Treating the conclusion to be proved as a premise, creating circular reasoning.
- Skipping derivation at key steps and glossing over them with phrases such as “obviously” or “it is easy to see.”
Evaluation can use dedicated checks to verify the assumption list, lemma sources, and locations where steps are skipped. For longer reasoning, it is advisable to require the model to list all premises used at the end of its output so reviewers can compare them manually.
2.3 Source Attribution and Originality
Proofs often need to cite existing results. Evaluation should distinguish between two cases: the cited result actually exists and applies, or the model merely provides a plausible-sounding name and number. The former is legitimate academic writing; the latter may be misinformation.
In practice, the output can be required to annotate each citation with the theorem name, field, and source location, which is then checked manually. For tasks that require original derivation, evaluation should also check whether the output merely restates existing material or provides a new argument path.
2.4 Presentation Quality and Readability
Mathematical documents usually require consistent notation definitions, clear paragraphing, and consistent formula formatting. Although these dimensions do not directly determine correctness, they affect the efficiency of subsequent human review. A derivation that is difficult to read may be rejected because the review cost is too high, even if its content is correct.
3. Building a Reproducible Evaluation Framework
Evaluation requires a fixed task set, fixed prompt templates, and a unified recording method. Otherwise, results from different times and conditions cannot be compared. A basic framework includes the following steps:
- Build a task set: Stratify tasks by difficulty, including problems with standard answers and open-ended problems. Record each task’s ID, category, and validation method.
- Fix prompt templates: Use the same prompt format for the same task. Different models have different sensitivities to prompt format; if prompts need to be adjusted, apply the same adjustment to all models.
- Standardize sampling parameters: Parameters such as temperature affect output stability and should be stated in the report.
- Record key metrics: Include pass rate, end-to-end latency, usage, and cost.
- Blind scoring: Reviewers do not know which model produced an output, reducing the influence of subjective preference.
Below is a simplified evaluation summary example for computing pass rate, average latency, and “cost per passed task”:
from dataclasses import dataclassfrom statistics import mean@dataclassclass EvalRecord:task_id: strpassed: bool # Result of automated validation or human reviewlatency_s: float # End-to-end latency in secondscost_units: float # Cost normalized to a common unitdef summarize(records: list[EvalRecord]) -> dict:n = len(records)if n == 0:return {}passed_count = sum(1 for r in records if r.passed)total_cost = sum(r.cost_units for r in records)cost_per_pass = total_cost / passed_count if passed_count else float("inf")return {"pass_rate": round(passed_count / n, 3),"avg_latency_s": round(mean(r.latency_s for r in records), 2),"cost_per_pass": round(cost_per_pass, 3),}def run_benchmark(model_name, tasks, call_model, check):records = []for task in tasks:# call_model invokes the model and returns text, latency, and usageresult = call_model(model_name, task["prompt"])records.append(EvalRecord(task_id=task["id"],passed=check(task, result["text"]),latency_s=result["latency_s"],cost_units=result["cost_units"],))return summarize(records)
Here, cost_per_pass is more informative than the price of a single call. If a low-cost model has a very low pass rate and requires multiple retries to produce a usable result, its final cost may not be low at all.
4. Tradeoffs Between Speed and Quality
Speed and reasoning quality do not always move in the same direction. In general:
- High-throughput, low-latency models are suitable for batch processing, such as format cleanup, initial screening, simple calculations, and code completion.
- Models with deeper reasoning are suitable for difficult problem solving, such as long-chain proofs, complex modeling, and tasks that require repeated self-checking.
Model selection should consider both the time sensitivity and the correctness requirements of the task. If tasks can be run in batches and results are spot-checked by humans, throughput is more valuable. If an incorrect conclusion could cause serious consequences, a more reliable option should be chosen even if it is slower.
For cost accounting, the following formula is recommended:
Total cost per passed task ≈ (cost per call × average number of attempts + human review cost) ÷ number of passed tasks
This formula emphasizes two points. First, retries amplify actual spend. Second, the time cost of human review often exceeds the model call cost and cannot be ignored.
5. Deployment-Side Factors
If a team chooses to self-host models, performance is also affected by hardware and inference service configuration. Common considerations include:
- Time to first token: The time from when the user sends a request to when the first output character is received, which affects interactive experience.
- Output throughput: The number of tokens generated per second, which determines the total time for long text or long reasoning.
- Memory footprint: Determines the number of concurrent requests and the maximum context length a single GPU can support.
- Batching strategy: Merging requests can improve hardware utilization but increases the waiting time of individual requests.
- Queueing delay: During concurrency peaks, request waiting time may exceed actual inference time.
For math tasks with long reasoning chains, output throughput directly affects waiting time. Evaluation reports should record the above metrics together and note the concurrency and load conditions during testing. Otherwise, numbers from different teams cannot be compared.
6. Common Pitfalls
- Treating individual cases as conclusions. A few successful or failed samples cannot represent a model’s overall ability; a sufficiently large task set and stratified statistics are needed.
- Looking only at average scores. Averages can hide long-tail failures, and a single critical error may cause greater loss. Worst-case performance and failure types should also be tracked.
- Ignoring billing and quota structures. Measuring per-task cost by the proportion of subscription quota consumed only reflects individual usage scenarios and cannot be directly generalized to team or business scenarios.
- Using the same prompt set to evaluate all models. Different models have different prompt sensitivity, and a fixed prompt may be unfair to some models.
- Treating a fluent proof as a correct proof. Complete wording does not equal valid logic; step-by-step validation is required.
- Ignoring version changes. After a model version update, historical evaluation results may become invalid, so the version number and test date should be recorded in the report.
7. Model Selection and Rollout Recommendations
First, stratify by task type. Divide the math-related tasks in the business into calculation, proof, and exploration categories, and define pass criteria for each category.
Second, select candidate models for each layer and test them with a unified task set. Selection should be based on measured data, not a single experience.
Third, establish a regression test set. After each model version change or prompt template adjustment, rerun all tasks and compare changes in pass rate and cost.
Fourth, set human review gates for key conclusions. Outputs involved in formal documents or decisions should be reviewed by people with the relevant professional background, and review records should be retained.
Fifth, ensure reproducibility. Record the model version, sampling parameters, prompt template, task set version, and test date. Without this information, evaluation conclusions are difficult for others to verify and difficult to compare across later version iterations.
In short, choosing models for math reasoning scenarios centers on converting subjective impressions into measurable metrics and comparing speed, correctness, and cost within the same framework.
