Evaluating LLM Mathematical Reasoning: A Reproducible Engineering Framework

    Mathematical reasoning is often treated as a hard indicator of large language model capability, yet many comparisons remain anecdotal: one difficult problem was solved, or one reasoning trace looked longer. This article presents a reproducible engineering framework for evaluating LLM mathematical reasoning. It separates four capability layers, scores closed and open problems differently, fixes interaction and tool-use protocols, audits reasoning checkpoints rather than equating length with strength, and reports distributions, stratified conclusions, and regression results. The goal is auditable evidence for model selection, not a single leaderboard rank.

    Mathematical reasoning is often treated as a hard indicator of large language model capability, but much discussion remains impressionistic: a model solved a difficult problem once, or its reasoning process looked longer. Such comparisons cannot reliably guide model selection. Problem difficulty may not be comparable, prompts may differ, and whether a model is allowed multi-turn clarification or external retrieval can all change the result. To turn evaluation into an engineering method, first define the capability boundary, then design repeatable experiments.

    First Define What You Are Measuring

    Mathematical ability is not a single score. At minimum, split it into four layers.

    The first layer is symbolic and computational reliability: arithmetic, algebraic simplification, equation solving, matrix operations, and similar tasks whose answers can be mechanically verified. This layer primarily exposes computational stability, format adherence, and whether intermediate steps are internally consistent.

    The second layer is standard contest or textbook problems: the problem statement is complete, the answer is unique or finite, and the scoring rules are clear. This measures success on a known distribution and is suitable for regression testing, but it is not equivalent to research ability.

    The third layer is open mathematical problems: conditions must be completed by the model, multiple reasonable paths may exist, and there may even be no accepted closed-form solution. The model should propose testable conjectures, construct counterexamples, and define applicability conditions rather than pretend to deliver a final proof. Open problems are where the difference between “applying a template” and “organizing reasoning” becomes most visible.

    The fourth layer is mathematical writing and auditability: whether definitions come first, notation remains consistent, lemmas and conclusions are separated, and assumptions are distinguished from proofs. For engineering users, reviewability is often more important than appearing intelligent.

    Every evaluation must state which layer it measures. Extrapolating from open-problem performance to all mathematical ability, or using arithmetic accuracy to deny complex reasoning, is a category error.

    Score Closed and Open Problems Separately

    Closed problems can be scored automatically: extract the final answer, determine equivalence with the reference answer, and record format failures. Open problems should not be reduced to “correct or incorrect.” At minimum, record observations such as whether the model explicitly identifies known and unknown quantities; whether it states falsifiable intermediate propositions; whether it actively looks for counterexamples; whether it honestly marks gaps when a proof cannot be completed instead of filling them with fluent prose; and whether, after multiple follow-up turns, its conclusion converges, wavers, or becomes self-contradictory.

    Open problems should use a graded rubric rather than a binary label. For example: a score of 0 means the response is off topic or fabricates a proof; 1 means the direction is relevant but key conditions are missing; 2 means the main lemmas are correct and gaps are identified; 3 means the argument is closed or a valuable, testable counterexample is provided. Freeze the rubric before evaluation to avoid changing the standard after seeing the answers.

    A simple record structure can look like this:

    1. task_id, tier, prompt_hash, seed,
    2. final_label, gap_marked, counterexample,
    3. self_contradiction, human_score, notes

    Run each problem multiple times, with fixed temperature, maximum length, and tool permissions. Reporting only a single “best response” systematically overestimates unstable models.

    Long Reasoning Chains Are Not Stronger Reasoning

    Long reasoning traces have two very different sources. One is necessary expansion: case splits, elimination, and auxiliary constructions in which each step changes the subsequent conclusion. The other is redundant expansion: restating the problem, piling up known formulas, or continuing to make lengthy corrections after an error has already occurred. Evaluation should separate length from information gain.

    A practical approach is to sample checkpoints in the reasoning chain instead of reading every word. Checkpoints include whether key transformations are reversible, whether dimensions or domains are preserved, whether the conditions of cited theorems are satisfied, and whether the final step actually uses the earlier lemmas. A concise response with all checkpoints correct is usually better than a long response that silently changes assumptions midway. If two responses are both correct, compare review cost: fewer steps, more consistent notation, and closer adherence to professional mathematical writing are more usable in engineering contexts.

    Also avoid the opposite bias: an overly short answer may skip a case split that cannot be omitted. “Concise” should mean information density with all necessary steps present, not the smallest number of words.

    Interaction Mode Changes Rankings

    The same model often behaves differently in single-turn question answering, multi-turn collaboration, and long tasks. Single-turn performance depends more on first-answer quality. Multi-turn interaction allows assumptions to be clarified and conditions to be supplied. Long tasks also involve context retention, reuse of intermediate results, and replanning after failure. Comparisons must therefore fix the interaction protocol: how many turns are allowed, whether the user can point out errors, whether reference theorems are provided, and whether computational tools are available.

    Tools should be reported separately. A correct answer after using a calculator or symbolic computation demonstrates “planning plus tool use,” not pure mental arithmetic. This is not inferior; for many business workloads it may be more valuable. Reports should include separate columns for “without tools” and “with tools” so that interface capability is not counted as pure reasoning.

    A Reproducible Evaluation Workflow

    It is better to build the evaluation in the following order than to start with a leaderboard.

    1. Build an evaluation set. Sample across the four capability layers, covering directions such as algebra, geometry, combinatorics, and probability. Keep open problems in a separate set and write the rubric in advance. Record problem sources, licenses, and whether the problems may have entered training data. Problems with high leakage risk are suitable for smoke tests only, not for final conclusions.

    2. Lock the protocol. Specify the prompt template, decoding parameters, maximum output length, tool settings, and retry count once. Any change should be treated as a new experiment.

    3. Double-review open problems. Automated metrics can cover closed problems and some formatting checks. Have two reviewers score open problems independently and arbitrate when their disagreement exceeds a threshold. Record the reasons for disagreement; they often carry more information than the average score.

    4. Report distributions, not just means. At minimum, report success rate, variance, format failure rate, self-contradiction rate, and gap-marking rate. A model with a high mean but very high variance is unsuitable for unattended workflows.

    5. Draw stratified conclusions. It is acceptable to conclude, for example, that “closed calculation is stable while open proof is average.” Avoid using one overall rank to summarize all mathematical ability. If the sample size for a tier is insufficient, state “insufficient evidence” rather than forcing a ranking.

    6. Maintain a regression set. After a model or prompt upgrade, compare only differences on the same evaluation set under the same protocol. New hard problems can extend the evaluation set, but historical conclusions must not be retroactively rewritten.

    Common Evaluation Errors

    Treating one extremely difficult problem as decisive allows sample variance to overwhelm the real difference. Using a model as a judge without spot audits embeds the judge’s preferences into the score. Looking only at the final number and not at domains or assumptions can allow superficially correct but invalid proofs to pass. Equating longer reasoning with stronger reasoning, or a more human-like writing style with rigor, is a form of style bias. Comparing problems across languages or notational conventions without equivalent rewriting can also create false gaps.

    Another error is to treat conversational experience as the capability ceiling. Politeness, structured headings, and proactive summaries may improve subjective preference, but they do not make theorems more correct. Subjective experience can be tracked separately as a usability metric; it should not be merged into mathematical correctness.

    Using Evaluation Results for Model Selection

    Frame model selection as a set of constraints, not as leaderboard worship. For example, for batch grading of closed problems, prioritize stability and format failure rate. For helping researchers explore open problems, prioritize gap marking, counterexample construction, and multi-turn convergence. For derivations that will be written into formal documents, prioritize notation consistency and auditable steps. No single profile is optimal under every constraint.

    Before launch, run a small-traffic comparison using the same set of real problems, and compare the human review pass rate and rework count between the old and new configurations. If improvements on open problems come with severe fabricated proofs, that should be treated as a quality regression: do not switch merely because closed-problem scores increased.

    The core of mathematical capability evaluation is not to announce who is “strongest.” It is to obtain repeatable profiles under explicitly defined task layers, a fixed protocol, and an auditable rubric. Only then can a team distinguish a single impressive answer from dependable reasoning capability and base upgrade decisions on the same measurement standard.