Evaluating LLM Mathematical Reasoning: A Practical Framework
This guide explains how to evaluate large language models on math beyond informal ranking. It covers splitting capability into independent dimensions, designing leveled item sets, locking evaluation protocols, using checkpoint scoring with repeated sampling, interpreting generation-gap and endpoint differences, applying results in engineering, and avoiding common misjudgments.
What evaluation should actually answer
Math is often treated as a proxy for deep reasoning in large language models. Online discussion, however, frequently relies on a few hard problems, subjective trials, and a “feel” ranking. Those conclusions are almost useless for model selection. The same model often differs across chat and batch endpoints in sampling parameters, context length, and tool access. A long chain of thought is not the same as correct steps. Models that have not been tested on comparable items should not enter a ranking.
For enterprise users, the goal is not to label a model. It is to answer three questions: whether accuracy is stable at the target difficulty, whether errors can be localized, and whether cost and latency are acceptable. The rest of this article follows an executable process.
Split capabilities instead of a single score
Mathematical performance should be split into at least four independent dimensions.
- Problem solvability. Does the item have a recognized answer or a verifiable proof standard? Closed items (computation, application of known theorems) are suitable for automatic scoring. Open items (research-level conjectures, under-specified modeling) can only support process-quality assessment; they should not be treated as if a unique gold answer exists.
- Result correctness. Whether the final number, expression, or claim matches a reference solution, allowing equivalent forms.
- Reasoning reliability. Whether key lemmas are used, whether circular arguments appear, and whether the problem statement is silently changed.
- Expression efficiency. Given a correct solution, whether steps are concise, notation is consistent, and human review is easy. Long chains that repeatedly self-contradict should be treated as a negative signal, not evidence of greater strength.
Comparing only “who is better at open math” shrinks the sample and inflates variance. A more stable approach: closed items set the baseline, semi-open items observe transfer, and truly open problems are stress tests only—with an explicit rule that untested coverage is not ranked.
Item-set design
Stratify by difficulty. Keep item-type mix similar across levels so one layer is not all computation and another all proof.
- L1 procedural computation. Algebra, probability, and numerical linear algebra that can be checked by script. Used to catch format drift and arithmetic errors.
- L2 textbook-level proof. Bounded steps and a clear conclusion. Used to check whether definitions are applied correctly.
- L3 integrated application. Requires choosing tools (inequalities, constructions, counterexamples). Used to inspect strategy.
- L4 open or near-open problems. No standard final write-up. Score only whether assumptions are clarified, whether partial conclusions are testable, and whether unknowns are stated—not whether the problem was “solved.”
Prepare at least two parallel forms per level: one for selection, one for regression, so items do not leak into later fine-tuning or prompts. Do not embed brand, API, or product names in stems so the set remains reusable across vendors.
Evaluation protocol: lock incomparable factors
Subjective rankings fail when the protocol is unlocked. Fix the following and write them into the experiment record.
- Temperature, maximum generation length, and tool access (calculator, code interpreter, retrieval) must be separate experiments; they must not share one ranking.
- Conversational multi-turn and single-shot answers must be reported separately. Human hints in multi-turn are extra supervision.
- Repeat each item at least five times; report pass rates, not “it worked once.”
- Timeouts, refusals, and answers that only sketch reasoning without a conclusion are distinct failure types—not merged into “wrong.”
- Models or configurations never run at a given difficulty must be marked “insufficient evidence, not ranked.”
Chain-of-thought style can be recorded but must not replace accuracy. Score two axes: correctness (0/1 or checkpoint-based) and readability (concise, consistent notation, reviewable). When weighted, correctness dominates. If they conflict, the automatically or human-checkable conclusion wins.
Scoring representation
Use few, hard checkpoints so judges cannot improvise.
- Restatement of the problem preserves all constraints (missing a constraint fails that checkpoint).
- An executable plan is given and matches later steps.
- Each key derivation cites the property used; a wrong property fails that step and dependents.
- The final answer is equivalent to the reference.
- If code or numerical checks are used, reproducible inputs and decision criteria are given—not an unrunnable snippet.
Semi-open items drop a “final answer” field. Score instead: completeness of the assumption list, systematic counterexample search, and stated scope of conclusions.
A simple log schema:
item_id, level, setting, tools, trial, checkpoints_passed, correct, readable, latency_s, notesL3-014, L3, single_turn, none, 3, 4/5, 1, 2, 18, notation changed mid-solution but conclusion equivalent
When aggregating, report stratified pass rates, the most common failed checkpoints, and latency percentiles. Do not publish only a single average.
Interpreting “generation gaps” and endpoint differences
In practice, a newer configuration in the same family may be more stable on hard items, while an older one is already enough on routine items. Chat and task endpoints often differ in pass rate. Report configuration comparisons, not personality comparisons.
Suggested conclusion template:
- On L1–L2, no tools, low temperature: whether pass-rate differences between A and B exceed sampling error.
- On L3: whose failures come more from strategy choice than from arithmetic.
- On L4: if both only clarified the problem, conclude that neither showed reviewable solving ability—do not force a ranking.
- If only low-to-medium difficulty was tried, state that high-end ability is unknown.
“Shorter chains, closer to human proofs” may be reported as readability. It must not be extrapolated as stronger math. Longer, more branched chains only mean more expensive search, not more effective search.
Engineering use
In selection, run a blind test on parallel forms and keep raw outputs plus checkpoints for review. After launch, turn a small L1 subset into a daily regression: rerun when prompts, tool flags, or routing change. If math tasks connect to a code runtime, store execution results separately from the model’s self-report so the model cannot merely claim verification in natural language.
Logging and monitoring need general capabilities: request configuration, item IDs, scores, latency, and failure types. Object storage fits raw answers; a message queue fits async scoring; alerts fit stratified pass rates falling below a threshold. These are category capabilities and do not depend on a proprietary vendor API.
If you use a general cloud development and runtime environment such as Baidu AI Cloud, isolate evaluation jobs from production inference. Keep item sets, gold answers, and rater notes in tightly permissioned storage. Evaluation accounts must not access production data. That supports reproducibility and keeps internal banks out of retrievable context.
Common misjudgments
- Treating a single success on one open hard problem as “the only model that can do open problems.” Sample size is insufficient, and open problems often lack a terminal criterion.
- Inserting untested configurations into the middle of a leaderboard. Missing evidence is not mid-tier performance.
- Substituting stylistic similarity for proof checking. A human-like wrong proof is still wrong.
- Mixing results with code verification and pure-text answering. Different tool conditions make capability claims incomparable.
- Using chain-of-thought length as a proxy for difficulty or skill. Length is a cost item, not a quality item.
Summary
Reliable math evaluation is a leveled item set, a locked protocol, checkpoint scoring, repeated sampling, and the discipline of not ranking what was not tested. Open problems are ceiling probes, not the only yardstick. Report correctness, reviewability, and cost separately. With records accumulated under this framework, a team can tell whether a version gain comes from real reasoning, longer generation, looser tool access, or a lucky sample.
