Evaluating LLM Mathematical Reasoning and Cost: A Practical Framework
Evaluate large language models by the mathematical results they can reliably deliver, not by answer length or isolated successes. This article explains how to distinguish task types, verify proofs, build a staged workflow, and measure cost per accepted deliverable, including review effort and waiting time. It also outlines reusable test sets and governance practices for research and team use.
1. Start with Task Value, Not Subjective Rankings
Evaluating a large language model requires more than checking whether it can quickly produce a long answer. A single convincing mathematical proof is not enough to establish an overall capability ranking. For developers, researchers, and enterprise users, the more useful question is whether a model can consistently deliver correct, verifiable results at an acceptable cost under clearly defined task conditions.
Mathematical tasks make this distinction especially visible. A model may organize existing knowledge well but fail to identify hidden assumptions in a proof. It may produce polished lecture notes while relying on circular reasoning at a critical step. Even a correct final conclusion may rest on an unproved—or inapplicable—lemma.
A professional evaluation should therefore distinguish three dimensions:
- Capability: Can the model understand definitions, organize reasoning, and manage complex dependencies?
- Reliability: Can it identify errors, communicate uncertainty, and support external verification?
- Delivery: Can it produce usable material within a reasonable time and resource budget?
Experiences involving lecture-note generation, quota consumption, and request queues belong to these dimensions. Analyzing them separately is more useful than ranking models based on individual responses.
2. Distinguish the Nature and Difficulty of Mathematical Tasks
Knowledge Explanation: Testing Clarity and Organization
Explaining a definition, summarizing standard formulations of a theorem, or providing introductory examples primarily tests knowledge explanation. These tasks reveal whether a model uses terminology accurately and organizes material for a particular audience. They do not, on their own, establish strong research ability.
For example, a clear explanation of injective maps, surjective maps, and function composition demonstrates competence with those concepts. To evaluate reasoning more deeply, the task must also involve changed assumptions, counterexample construction, or multistep proofs.
Completing Proofs of Known Statements: Testing Reasoning and Dependencies
When a source states a proposition without a proof, the model must organize an argument. This is more informative than simple explanation, but the result still needs careful interpretation.
A missing proof in one source does not mean that no proof is known. Nor does it establish that the model has conducted original research. The model may draw on a similar argument learned during training or combine standard results. Evaluation should focus on whether the proof is valid, rather than speculate about whether the model has encountered particular material.
Key checks include:
- Does the proof preserve every assumption in the original proposition?
- Are the necessary definitions stated and used correctly?
- Do auxiliary results apply to the objects under consideration?
- Are boundary cases and degenerate cases covered?
- Does the argument depend circularly on the conclusion it is supposed to establish?
Research Exploration: Evaluating Candidate Ideas, Not Confirmed Results
For unresolved problems, or problems whose status is unclear, a model can help construct examples, explore special cases, propose candidate lemmas, and analyze existing approaches. However, a complete-looking proof is very different from a verified research result.
The appropriate output is often a candidate argument for verification, not a confirmed new theorem. Even a fully written argument requires independent logical review, checks against the relevant literature, and assessment by domain researchers for validity and novelty.
3. Make Correctness the Foundation of Evaluation
Writing Quality Must Not Conceal Errors
The first requirement for mathematical output is that its conclusions and proofs are valid. Natural language, clean formatting, and extensive detail cannot compensate for a critical reasoning error.
A layered review can help:
- Check the interpretation of the statement. Has the model silently added stronger assumptions or proved only a weaker version?
- Check each inference. Pay particular attention to phrases such as “clearly,” “it follows easily,” and “by a standard result.” These compressed passages may hide the central difficulty.
- Check the overall dependency structure. A step may appear valid in isolation while relying on a premise that has not yet been established.
If a core step fails, good presentation, formatting, or speed should not average the result into an “excellent overall” score. Correctness should be an acceptance threshold, not just another scoring category.
Assess Completeness and Concision Separately
A concise proof is not necessarily incomplete, and a detailed proof is not necessarily rigorous. A proof for researchers may omit familiar foundational steps, while student-facing notes usually need definitions, motivation, and explanations of key transitions.
Specify the audience before starting the task:
- Beginner version: Emphasize definitions, intuition, examples, and common mistakes.
- Advanced course version: Explain the main argument and identify required background.
- Research discussion version: Highlight core lemmas, assumptions, dependencies, and any claimed novelty.
Evaluation should measure how well the output serves its intended readers, rather than simply count words.
Test Consistency and Error Correction
A single successful response may depend on prompt wording, context, or generation variability. Important evaluations should use several problems of comparable difficulty but different structure, with repeated tests where feasible.
Include error-correction tasks as well. For example, provide a statement with a subtle error in its assumptions and check whether the model identifies the problem and constructs a counterexample. Alternatively, supply an incomplete proof and ask the model to locate the precise step that fails.
Self-review is not independent certification. A model may repeat its original mistake, so external evidence or human review remains necessary.
4. Replace One-Shot Lecture Generation with a Staged Workflow
Asking a model to prove a result, explain it, format it, and design teaching material in a single request can create competing objectives. A more reliable workflow separates the work into four stages.
Stage 1: Clarify the Statement and Background
Provide the full proposition, notation, permitted background results, and intended audience. Ask the model to restate the assumptions and identify ambiguities before generating extensive notes.
If the proposition depends on external material, supply the relevant content. Do not assume the model accurately remembers the source version, chapter numbering, or definitions specific to that context.
Stage 2: Generate a Proof Outline
Ask the model to list:
- The proof objective.
- Required auxiliary lemmas.
- The conditions under which each lemma applies.
- The main reasoning route.
- Uncertain steps or points requiring verification.
Keep this output short and explicit. If the outline already contains invalid dependencies, there is little reason to spend additional resources on a long-form draft.
Stage 3: Expand and Verify the Argument Section by Section
Develop the key lemmas individually. Focus review on the steps most sensitive to assumptions and those involving the largest reasoning jumps. Small examples and boundary counterexamples can help expose overlooked cases.
For instance, let (f: A \to B) and (g: B \to C). If (g \circ f) is injective, then (f) is injective, as a direct element-by-element argument shows. This does not imply that (g) is injective on all of (B). Confusions of this kind can be obscured by lengthy prose in more complex proofs.
Where suitable, a formal proof checker can provide additional verification. Its results depend on correctly encoded definitions and assumptions, however. Verifying selected lemmas does not automatically verify an entire natural-language proof.
Stage 4: Prepare Deliverable Lecture Notes
Only after confirming the critical arguments should the model produce the final lecture notes in the requested language, using standard mathematical formatting. The notes should include the proposition, necessary background, proof, examples, and scope of applicability.
This avoids spending time polishing an invalid argument and makes the resulting material easier to maintain and reuse.
5. Measure Cost by Accepted Deliverables
Remaining credits, usage allowances, and subscription entitlements influence usage decisions. But exhausting an allowance does not mean obtaining more value. Long outputs and repeated reasoning attempts can consume resources rapidly without increasing the number of correct results.
A more useful measure is:
Cost per accepted deliverable = Total task-related cost ÷ Number of deliverables that pass acceptance review
Total task-related cost includes more than direct charges. It should also account for human review, error correction, repeated requests, and relevant waiting costs. A cheap response may be expensive in practice if a researcher must spend substantial time repairing it.
Likewise, the percentage of a monthly allowance consumed by one task is not enough to establish efficiency. Interpretation also requires the task difficulty, context length, output size, number of attempts, and final acceptance outcome. Services may define allowances differently, so percentages alone are not a sound basis for comparison.
Record Queue Delays Separately from Generation Time
The wait experienced by a user can include queuing, request processing, generation, and subsequent verification. Fast model reasoning does not necessarily mean timely delivery.
For deadline-sensitive work, record end-to-end completion time and variability in waiting time. If queues repeatedly cause a task to miss its working window, the service may be unsuitable for that use case despite producing good answers.
Also distinguish two evaluation modes:
- Capability testing: Keep inputs and resource conditions as consistent as possible.
- Workflow testing: Include queuing, retries, and human acceptance review in the assessment.
Both are useful, but they answer different questions.
6. Build a Reusable Test Set
Developers and research teams can create a small but well-covered test set rather than selecting only examples on which a model performs well.
Useful categories include:
- Definition discrimination: Test conceptual boundaries and necessary conditions.
- Standard proofs: Test basic logic and completeness.
- Proof completion: Test auxiliary lemmas and dependency management.
- Error diagnosis: Test counterexample awareness and correction ability.
- Long-form lecture notes: Test organization and audience fit.
- Exploratory problems: Test uncertainty communication and the quality of candidate approaches.
For each problem, retain the complete input, raw output, test date, available runtime configuration, resource consumption, and review comments. Where a clear reference answer exists, apply acceptance criteria established in advance. Where no reference answer exists, use more stringent expert review.
Avoid combining fundamentally different tasks into a single overall score. A more useful capability profile might say:
- Suitable for first drafts of introductory lecture notes.
- Suitable for completing standard proofs.
- Still requires substantial human supervision for complex research reasoning.
Such a profile guides practical use better than a broad ranking of model strength.
7. Add Governance for Team Use
Individual users may tolerate some trial and error. Teams also need controls for data boundaries, traceability, and responsibility for final deliverables.
Unpublished research, internal technical documents, and sensitive business information should not be submitted without appropriate approval. Generated material should be labeled as a draft pending review so that unverified content does not enter courses, reports, or formal documentation.
For important conclusions, retain version histories and review records. Make clear which steps were proposed by the model and which were confirmed by people.
For recurring tasks, teams can maintain verified lemma libraries, prompt templates, and lecture-note templates to reduce the cost of repeatedly generating the same background material. These resources must have clearly defined scopes. A proof structure that works for one proposition should not be transferred mechanically to another with different assumptions.
8. Conclusion: Evaluate Reliable, Verifiable Delivery
An LLM’s mathematical ability should not be judged by answer length, writing style, or a handful of successful examples. A more dependable approach is to define the task type, verify the argument, and then assess practical value using resource consumption, waiting time, and human review costs.
For mathematical lecture notes and complex reasoning, use a staged workflow: clarify assumptions, generate an outline, verify each section, and prepare the final document. For research exploration, treat the model as a source of candidate ideas, not the final authority on a conclusion.
Bringing correctness, reproducibility, and cost per accepted deliverable into one framework makes it possible to judge whether a model genuinely fits a workflow—not merely whether it appeared impressive in a single conversation.
