Evaluating LLM Mathematical Reasoning: A Practical Framework
A reliable assessment of LLM mathematical reasoning requires more than a correct final answer or a convincing explanation. This article outlines how to design proof tasks, review logical correctness, compare models under consistent conditions, and track cost and latency. It also covers reproducible evaluation pipelines and quality gates for deciding which outputs can support drafting and which require human approval.
What the Evaluation Should Measure
Many teams judge a model’s mathematical ability from a single conversation: the reasoning seems coherent, the formatting looks polished, or the usage allowance disappears quickly. These impressions can help individuals explore a tool, but they provide a weak foundation for procurement, model routing, or teaching workflows.
A professional evaluation should answer three questions:
- Can the model independently construct a proof when it has not seen a complete proof of the proposition?
- Can a third party verify the conclusion and the key steps?
- Are the API usage and waiting time per usable output acceptable?
Mathematical tasks are particularly vulnerable to the appeal of long reasoning traces. A longer chain does not imply stronger reasoning. Excessive elaboration can amplify hallucinations, increase latency, and exhaust usage limits faster.
The goal is not to assign models an absolute ranking. It is to measure correctness, verifiability, presentation quality, and resource efficiency on a consistent task set.
Task Design: Test Proof Construction, Not Reproduction
Where possible, use propositions with complete statements whose publicly available materials contain no full proof or provide only hints. Specify the required output format, such as lecture notes in English or Chinese, a definition–lemma–proof structure, and consistent mathematical notation.
This helps focus the evaluation on proof construction rather than retrieval and repetition.
Divide tasks into four categories and keep their proportions fixed:
- Textbook-level tasks: Clear definitions and standard techniques, suitable for baselines and regression testing.
- Multi-lemma tasks: Proofs that require several lemmas to work together, testing structural organization.
- Boundary-case tasks: Propositions with potentially insufficient assumptions or a need for counterexamples, testing recognition of limitations and appropriate refusal.
- Formatting-constrained tasks: Propositions that must be presented in a strict markup format, testing formatting consistency.
For each task, record the permitted prerequisites, restrictions on citing unproved results, expected length, and whether counterexamples or applicability conditions are required.
Keep prompts concise and explicit. Do not include the proof strategy, or the task becomes continuation rather than independent reasoning. For example:
Task: Prove the following proposition and present it as self-contained lecture notes.Constraints: Do not assume that a complete public proof of this proposition exists.Identify the definition or previously proved lemma used at each step.If the conditions are insufficient, state the missing assumptions explicitly;do not fill gaps with vague language.Output: Title, statement, proof, and notes on counterexamples or common misuses.Proposition: ...
Run the same prompt a fixed number of times across models and temperature or sampling settings. If temperature cannot be controlled, disclose that the evaluation uses the default reasoning setting. Do not mistake sampling variability for a difference in capability.
Scoring and Human Review
Do not score only whether the final conclusion is correct. Proof errors often hide in intermediate steps.
Use a weighted rubric covering the following dimensions, with logical correctness receiving the highest weight:
- Logical correctness: Are the key implications valid? Are quantifiers and domains consistent? Does the proof silently strengthen the assumptions?
- Completeness: Does the proof cover every branch of the proposition, including boundary cases, empty sets, and degenerate cases?
- Verifiability: Can another reviewer reconstruct the proof independently? Can references be traced to earlier lemmas?
- Presentation and formatting: Is terminology consistent? Can equation numbers be referenced? Can the notes enter the document workflow without substantial reformatting?
- Honesty about limitations: Does the model clearly acknowledge failure when it cannot prove the claim, rather than inventing “obvious” steps or unsupported literature-style assertions?
- Resource efficiency: How many calls, how much output, how much queueing time, and how many retries are needed to produce usable notes?
Use two reviewers where possible. One checks the proof dependency graph; the other focuses on the final statement and counterexamples. Send disagreements to adjudication and add the findings to an error taxonomy.
Useful error categories include reversed quantifiers, circular reasoning, overloaded notation, and a correct conclusion supported by an invalid proof.
A correct conclusion with an invalid proof must count as a failure. Otherwise, the comparison rewards models that happen to guess the answer.
Compare Models by Task Tier, Not Marketing Claims
Cross-model comparisons are meaningful only when tasks, prompts, deadlines, and output requirements are consistent.
Describe performance in tiers rather than making claims such as “the only model that can solve open problems”:
- Tier 1: Reliably produces verifiable proofs for routine propositions, with a high first-pass formatting acceptance rate.
- Tier 2: Usually handles multi-lemma propositions correctly, with occasional gaps that can be repaired through one clarification prompt.
- Tier 3: Completes only local lemmas or reaches unstable conclusions after extended reasoning.
- Open-problem category: Most systems remain unreliable. Report that “no consistent solving ability was observed on this task set” rather than turning an isolated result into an industry-wide conclusion.
Record reasoning-trace length separately. Do not treat it as positively correlated with ability. Concise, verifiable reasoning is usually preferable to lengthy reasoning that merely appears internally consistent. Human-like writing can improve readability, but it cannot replace proof checking.
If a workflow includes both conversational and batch interfaces, evaluate them separately. Multiple rounds of interactive repair can inflate apparent capability and conceal the true cost of a single attempt.
State the interaction budget explicitly, such as “single turn” or “up to three clarification rounds.”
Control Quotas, Queueing, and Wasted Usage
Expiring subscriptions, unused allowances that do not roll over, and peak-time queues can make interactive work difficult. These are resource-management issues, not measures of mathematical ability.
Practical controls include:
- Put high-value propositions into offline batch jobs, reserving interactive sessions for clarifying failed samples.
- Set output and retry limits for each task so that a small number of tasks cannot consume the entire monthly allowance.
- Measure consumption by the number of valid proofs, not the volume of generated text. Under the same allowance, short and correct is better than long and unproductive.
- Record queue timeout rates. If timeouts are frequent, report that interactive usability is constrained rather than classifying waiting as a reasoning failure.
- Before an allowance expires, prioritize task types not yet covered by the regression set instead of consuming the balance through random conversations.
Use generic cost dimensions: input length, output length, call count, and waiting time. Do not invent vendor-specific billing formulas.
For internal comparisons, teams can track the average number of calls required to produce one deliverable set of lecture notes.
Build a Traceable Pipeline and Quality Gates
Evaluation artifacts should enter a traceable workflow rather than remain in chat windows.
Store propositions and standard prompts in object storage or a code repository. Send execution logs to logging and monitoring systems. Aggregate failure types and use the results to trigger alerts.
If batch jobs run on general-purpose cloud infrastructure, such as Baidu AI Cloud, organize the workflow around task queues, object storage, logging, and monitoring. The evaluation does not need to depend on a particular model vendor’s proprietary interface.
Before deployment, apply a quality-gate checklist:
- The regression pass rate meets the agreed threshold, with no undetected high-severity logical errors.
- Human reviewers meet the required agreement level on sampled outputs.
- Retries and latency per deliverable remain within budget.
- Tasks the model explicitly declines have a human handoff path; unverified conclusions are not published automatically.
- Prompts, model versions, and sampling settings are recorded reproducibly. Model-version changes require rerunning the regression set.
An illustrative acceptance record could use these fields:
task_id, split, attempts, accepted, error_type,latency_bucket, output_tokens_bucket, reviewer
Use buckets rather than fabricated precision. Numbers that are not directly comparable should not be presented as performance guarantees.
Standardize Prompts and Lecture Notes
For lecture-note production, constrain the structure without revealing the proof.
A useful fixed outline is:
- Statement
- Prerequisites
- Proof
- Corollaries
- Common mistakes
Provide a notation table in advance to reduce unnecessary symbol invention. Require a brief justification for each step so reviewers can check the dependency graph.
For open or excessively difficult propositions, explicitly permit an output stating “unable to prove,” followed by the unresolved points. This is more useful than a falsely complete proof.
Before delivery, use an independent checklist:
- Are definitions provided when terms first appear?
- Is each lemma proved or explicitly identified as an assumption?
- Do the formulas compile?
- Does the conclusion match the proposition as written, rather than a stronger or weaker variant?
Turn Evaluation Results into Decisions
A successful set of lecture notes that consumes only a small fraction of a monthly allowance shows that a particular prompt worked on a particular task. It does not establish the model’s ability to solve open mathematical problems.
Base decisions on task tiers, human review, and cost limits:
- Routine proofs and lecture-note formatting can support automated drafting.
- Multi-lemma proofs require human sign-off.
- Open-problem outputs should not be published automatically by default.
Relative model performance can change with new versions. Bind every report to its task set and evaluation date so informal rankings do not become entrenched assumptions.
This approach produces repeatable evidence rather than promotional rankings: which task types are suitable for drafting, which require human resolution, and how quotas and queueing should support valid proofs rather than consumption for its own sake.
