LLM Mathematical Reasoning: A Practical Guide to Evaluation and Cost Optimization
Evaluate large language models on mathematical tasks using verifiable results rather than subjective rankings. This guide distinguishes proof completion, lecture-note generation, and open-problem exploration; outlines a repeatable evaluation workflow; and explains how to account for verification effort, retries, and latency when measuring the cost of accepted outputs.
1. Start with Real Tasks, Not Subjective Rankings
Evaluating an LLM’s mathematical ability requires more than judging fluent answers, lengthy reasoning, or a single successful example. For developers, researchers, and enterprise engineering teams, the more useful question is whether a model can consistently deliver verifiable results within a defined task scope—and how much time, money, and review effort those results require.
Complex mathematical proofs and lecture-note generation expose several aspects of model performance. A model must understand the proposition, identify definitions and assumptions, choose a suitable proof strategy, manage dependencies between steps, and present an argument that readers can check. A failure at any stage can produce notes that look complete but are mathematically incorrect.
Evaluation should therefore address three distinct layers:
- Correctness: Do the conclusion and proof hold?
- Auditability: Are the key derivations transparent, and can reviewers locate errors?
- Cost-effectiveness: Can the model reliably produce enough acceptable results within the available budget and deadline?
These layers are not interchangeable. Natural writing does not establish mathematical correctness, and a low cost per request does not necessarily mean efficient delivery.
2. Separate Different Types of Mathematical Tasks
Completing Proofs of Known Results
These tasks provide a true proposition without a complete proof. The model must fill in the argument using definitions, foundational theorems, and established lemmas.
The evaluation should focus on whether the model builds a complete path from the assumptions to the conclusion, rather than merely restating the proposition. In particular, check whether it:
- Omits conditions required by a theorem.
- Treats stronger assumptions as if they were given.
- Cites a result that is effectively equivalent to the proposition being proved.
The absence of a supplied proof does not establish that the model independently discovered one. It may have encountered a similar argument or followed a standard proof strategy. Unless the source or originality can be verified, assess the validity of the delivered proof rather than speculate about how it was obtained.
Organizing Proofs and Generating Lecture Notes
Lecture-note generation and proof discovery are related but distinct tasks. Producing useful notes also requires consistent notation, a coherent section structure, sufficient background, explanations of key ideas, and a clear account of the prerequisites readers need.
Good notes explain why each step holds rather than presenting only a sequence of formulas. If a model compresses the genuinely difficult steps into phrases such as “obviously” or “it follows directly,” polished formatting does not make the result a high-quality deliverable.
Exploring Open Problems
Open mathematical problems do not have an established, verified answer. Their difficulty cannot be compared directly with routine proof completion.
Novel ideas, conjectures, and candidate proofs can be useful research aids, but they do not establish that a problem has been solved. More appropriate evaluation criteria include whether the model can:
- Accurately identify the boundaries of established knowledge.
- Construct useful special cases.
- Propose testable intermediate claims.
- Explicitly identify gaps in its argument.
A candidate proof that has not undergone independent review is not sufficient evidence of an ability to solve open problems.
3. Use Layered Criteria to Make Quality Checkable
Assumption Completeness
Mathematical claims are highly sensitive to their assumptions. A model may recall the general form of a theorem while overlooking requirements such as finiteness, continuity, or invertibility.
List each assumption and identify where it is used in the proof. If an assumption is never used, determine whether it is genuinely unnecessary or whether the model has omitted a step that depends on it.
Conversely, if the proof relies on a condition not included in the problem, make that condition explicit and correct the argument. Additional assumptions must not remain hidden in the prose.
Logical Completeness
Every key conclusion should follow from the given assumptions, definitions, or previously established lemmas. Common failures include circular reasoning, applying a theorem without satisfying its conditions, and moving from a local result to a global conclusion without justification.
A practical review method is to turn the proof into a dependency checklist:
- What does the current step establish?
- Which assumptions and lemmas does it depend on?
- Have those dependencies been verified?
- Are any intermediate claims still unstated or unproved?
This is more reliable than deciding whether a proof “looks right” after reading it as a whole.
Stability Across Long Reasoning Chains
Complex proofs often involve several stages. A model may reason correctly in the first half but later change the meaning of a symbol or lose track of an initial constraint.
Check that definitions remain consistent, variable scopes are clear, case distinctions cover all possibilities, and the final conclusion matches the original proposition.
For longer tasks, request staged deliverables: confirm the definitions first, propose a proof strategy next, prove the key lemmas, and only then assemble the full text.
Clarity and Auditability
Concise writing is valuable, but it should not omit necessary derivations. Length is not evidence of depth either: repetition and unproductive branches can increase review effort.
Ask for checkable derivations rather than longer reasoning text. A checkable argument includes the key formulas, applicability conditions, lemma dependencies, and conclusions without requiring a redundant account of the exploratory process.
4. Build a Repeatable Evaluation Workflow
Step 1: Create a Stratified Problem Set
Include different difficulty levels and task types, such as:
- Expanding definitions.
- Completing standard proofs.
- Combining multiple lemmas.
- Diagnosing incorrect proofs.
- Assessing propositions containing distracting conditions.
Do not limit the set to problems that are familiar to the evaluator or easy for the model. Create variants by removing a necessary assumption, changing quantifier order, or replacing a conclusion with a similar but false statement. These variants help reveal whether the model applies a familiar proof mechanically.
Evaluators must establish the truth or falsity of each variant in advance. Otherwise, uncertainty in the problem itself may be incorrectly counted as a model error.
Step 2: Standardize Inputs and Instructions
When comparing models or execution conditions, keep the problems, background materials, output requirements, and resource limits as consistent as possible.
A neutral prompt template is:
Restate the proposition and list all assumptions. Identify the required definitions and lemmas, then provide a complete proof. When citing external results, state them accurately and specify their applicability conditions. Explicitly mark any steps you cannot complete; do not conceal gaps with general statements. Finally, organize the verified argument into English mathematical lecture notes.
This template cannot guarantee correctness, but it can improve output structure and reduce the likelihood of omitted assumptions or hidden gaps.
Step 3: Make Correctness a Pass Criterion
First classify results as:
- Correct proof.
- Repairable but incomplete.
- Substantively incorrect.
- Unable to determine.
Only then evaluate presentation and cost.
High scores for formatting, length, or response speed must not compensate for mathematical errors. For rigorous proof tasks, correctness is an acceptance requirement, not an ordinary metric that can be offset by other strengths.
Step 4: Repeat Tests and Retain Records
A single run can be affected by output variability, prompt differences, and the particulars of the task. Repeat tests within available resources, recording success rates, common error types, and the repair process.
There is no universal number of repetitions suitable for every setting. At a minimum, avoid drawing a final conclusion from one success or failure.
Retain the complete problem, input materials, model output, and review notes so that results can be traced and reassessed later.
5. Use Computational Checks as Support, Not as a Substitute for Proof
Programs can help verify intermediate results involving algebraic calculations, finite structures, or numerical properties. Such checks are useful for finding counterexamples, arithmetic mistakes, overlooked boundary conditions, and clearly false conjectures.
However, testing a finite collection of examples does not replace a general proof. Verifying an identity over a range of integers does not prove it for all integers. Numerical approximations likewise cannot directly establish rigorous claims involving limits or infinite objects.
When using formal verification, state its scope and assumptions. A verifier checks the encoded proposition and its formal proof. The existence of a verification process does not by itself establish that the original natural-language claim has been fully covered.
Reviewers must also check whether the formal encoding faithfully represents the intended statement and whether it introduces additional assumptions.
6. Optimize Cost per Accepted Output, Not Quota Consumption
A large remaining usage allowance can encourage the belief that unused capacity is wasted. But money already spent is not a reason to continue investing effort in low-value tasks. The relevant objective is the value generated by future work, not the percentage of quota consumed.
For complex mathematical tasks, the price of a single request is only one part of the total cost. Other contributors include:
- Queueing and response waits.
- Resubmissions after failed attempts.
- Additional context and repeated revisions.
- Expert review time.
- Rework when errors enter downstream processes.
A general accounting measure is:
Cost per accepted output = Total cost during the reporting period ÷ Number of accepted deliverables
Total cost can include actual model usage charges and labor costs calculated using a consistent method. Time metrics can be reported separately rather than forcing them into a monetary total without a common conversion standard.
A lecture-note generation task consuming only a small share of a monthly allowance does not establish that the service is economical. Quota percentages depend on plan size, task length, retries, and billing rules. Comparisons across environments therefore require particular care.
7. Include Queueing Latency in Delivery Planning
Mathematical research may tolerate waiting, while technical analysis in production workflows may have a firm deadline. Record request wait time, generation time, and human acceptance-review time separately, rather than measuring only speed after the model begins producing output.
For high-value tasks, begin with a short stage that confirms the proposition’s assumptions and the proposed proof strategy before committing to full lecture-note generation.
For nonurgent work, asynchronous queues and batch processing can prevent waiting from blocking the main workflow.
When budget or time is limited, narrow the deliverable. Request only a key lemma, a counterexample search, or an analysis of proof gaps. A limited, verified intermediate result is often more useful than a complete-looking but unverifiable long answer.
8. Define Team Acceptance Standards
Teams should treat the model as a proof and writing assistant, not as the final authority. Establish clear acceptance requirements for each type of output:
- Proof drafts: Explicit assumptions, traceable dependencies, and clearly marked gaps.
- Formal lecture notes: Reviewed key steps, consistent notation, and sufficient background explanations.
- Exploratory results: Clear distinctions between established facts, conjectures, and derivations awaiting verification.
Keep version histories that identify which passages came from the initial generation and which conclusions were corrected by human reviewers.
When handling unpublished research or sensitive business information, follow the organization’s data-handling policies and control both input content and access permissions.
Reliable evaluation of LLM mathematical reasoning is not an unsupported ranking table. It is a collection of reproducible task records, clear error analyses, and measurable delivery costs. Combining correctness, auditability, and cost-effectiveness is what reveals whether a model is a useful assistant for a particular workflow—or an additional source of verification burden.
