How to Rigorously Evaluate LLM Mathematical Reasoning and Cost Efficiency
A practical framework for evaluating large language models on mathematical reasoning tasks. This article breaks math capability into testable levels, explains why polished lecture notes don't guarantee correct proofs, and shows how to build a reusable evaluation workflow that accounts for reliability, verification effort, and true cost per accepted deliverable.
## 1. Evaluate Models on Concrete Tasks, Not Subjective Rankings
Discussions about whether a large language model is “good” often produce contradictory feedback: some users report that it can complete complex proofs and generate well-structured lecture notes, while others find that their available quota drops noticeably before a task is finished, sometimes with long waits in between.
These experiences are not contradictory. The former reflects capability ceilings; the latter reflects delivery efficiency and resource constraints. For developers and professional users, the useful questions are not “which model looks strongest” but:
- Can it reliably complete the target task?
- How much manual review and revision does the output require?
- Is it consistent when the same type of task is repeated?
- Is the cost reasonable once waiting, retries, and review are factored in?
Evaluation should therefore cover capability, reliability, and cost together. A single successful generation proves little, and neither does a single quota spike.
Mathematical reasoning is an especially good observation window. It requires the model to understand definitions, identify conditions, organize proofs, and handle edge cases. Yet mathematical text can also create an illusion of correctness: accurate terminology, clean formatting, and long derivations do not mean the logic holds.
2. Break Mathematical Ability into Checkable Levels
2.1 Understanding Definitions: Identifying Objects and Conditions
Before proving anything, the model must understand what the statement is actually about.
The same term may carry different conventions in different mathematical contexts, and some results hold only under specific conditions. For example, an argument about finite-dimensional spaces cannot be extended to infinite dimensions without comment; a result that depends on continuity cannot drop the continuity assumption just because the function’s expression looks simple.
When evaluating, ask the model to first list:
- The mathematical objects and their underlying structures;
- The explicitly stated assumptions;
- The conclusion to be proved;
- Possible ambiguities in definitions;
- The lemmas it expects to use and their applicability conditions.
If this layer fails, later derivations may be formally fluent while proving an entirely different statement.
2.2 Reproducing Known Results: Organizing Standard Proofs
Reproducing classical results tests the model’s knowledge coverage and basic reasoning, but it does not demonstrate the ability to solve new problems independently.
The model may have seen similar proofs, or it may complete derivations by pattern-matching common templates. There is no need to dismiss this outright—organizing existing knowledge accurately is itself a practical skill. However, evaluations should clearly distinguish “correct reproduction” from “independent construction.”
A more effective test is to vary non-essential wording, reorder the proof, or require the model to follow a specific proof strategy. This reveals whether it understands the argument’s structure or is merely outputting familiar text patterns.
2.3 Completing Missing Proofs: Filling Real Logical Gaps
Given mathematical material that lists a statement without a proof, asking the model to supply the derivation is a meaningful task.
But “no proof appears in this material” does not mean “this proof has never been published.” The model may have encountered equivalent statements, related textbooks, or reformulated arguments. The safest conclusion from such tasks is that the model can likely organize proofs from existing knowledge—not that it has performed original mathematical research.
Focus the evaluation on the output itself: does it state which lemmas it uses, fill in the key steps, cover special cases, and avoid smuggling in extra assumptions absent from the original statement?
2.4 Research Assistance: Proposing Verifiable Directions
For unsolved problems, a model can help organize known conditions, construct candidate examples, search for possible counterexamples, or propose decomposition paths. These contributions can have research value, but they must be strictly separated from “solving the problem.”
A novel-looking argument is not necessarily correct, and failure to find a counterexample does not prove a conjecture. Only after full verification—and a clear account of how the result relates to existing work—should one discuss whether it constitutes a new mathematical contribution.
Evaluate research assistance on whether its suggestions are testable, whether they reduce exploration cost, and whether they surface key obstacles—not on whether the answers sound bold.
3. Why Lecture Note Quality Cannot Substitute for Proof Correctness
Expanding a statement into English mathematical lecture notes involves multiple subtasks: notation conventions, background explanations, proof organization, language, example selection, and formatting.
A model may perform well on all of these while the core proof still contains gaps. Common failure modes include:
First, circular reasoning. A “clearly true” result the model cites turns out to be equivalent to the statement being proved, or depends on it.
Second, missing conditions. A theorem is applied without checking finiteness, completeness, measurability, or other necessary assumptions.
Third, local-to-global jumps. A result is constructed on certain local objects, without proving those results are compatible or can be combined into a global conclusion.
Fourth, omitted special cases. Zero objects, empty sets, degenerate cases, and boundary values are ignored, so the proof covers only the generic case.
Fifth, citation distortion. The model gives a plausible-sounding theorem statement but cannot accurately identify its source, or the result actually used is stronger than the known theorem.
For these reasons, note generation should follow a “verify first, polish later” order. Confirm the mathematical argument holds before refining language and formatting—this avoids sinking editorial effort into an incorrect proof.
4. Building a Reusable Evaluation Process
4.1 Organize Test Sets by Task Type
A reasonable test set should not consist only of problems the model is good at. At minimum, cover these categories:
| Task Category | Primary Focus |
|---|---|
| Basic statement proofs | Definition understanding and basic reasoning |
| Multi-lemma proofs | Long-range organization and condition tracking |
| Diagnosis of flawed proofs | Locating the first invalid step |
| Counterexample construction | Recognizing necessity of conditions |
| Lecture note drafting | Completeness and pedagogical readability |
| Research direction exploration | Testability and practical value of suggestions |
For real users, the problem distribution should also reflect the actual workload. If the main need is course materials, hard research problems shouldn’t dominate the test weight; if the goal is exploring open questions, standard benchmark scores alone are not a sufficient basis for choosing.
4.2 Standardize Inputs and Permitted Resources
When comparing configurations, use the same statements, background material, output requirements, and resource constraints. If one task allows external retrieval while another relies entirely on the model’s internal knowledge, the results are not comparable.
Conditions to record include:
- Whether external resources may be accessed;
- Whether relevant definitions and lemmas are provided;
- Whether computation or auxiliary verification is allowed;
- Whether output length is limited;
- Whether multi-turn follow-up and revision are allowed.
The object of evaluation should be a reproducible task configuration, not a vague product label.
4.3 Repeat Tests on the Same Task Types
A single success only shows the model completed the task in that run. Reliability requires multiple observations.
Fix the core problem, apply moderate wording variations, and check whether the model still respects the same conditions. Keep records of both successes and failures; don’t showcase only the prettiest output.
Distinguish between two situations: a model occasionally producing a correct solution, versus a model consistently delivering auditable proofs. The latter is usually what teaching and production workflows need.
4.4 Split Scoring into Independent Dimensions
Score separately:
- Correctness: Are there fatal logical errors?
- Completeness: Are key steps and special cases covered?
- Verifiability: Are lemmas, citations, and dependencies clearly identified?
- Expression quality: Are notation, structure, and language consistent?
- Delivery efficiency: Are completion time and revision effort reasonable?
Correctness should be a hard gate. Excellent formatting or fluent prose must not offset a fatal proof error. For tasks without a complete solution, record valid partial progress separately rather than packaging it as full success.
5. Turn Proof Generation into a Controlled Workflow
Asking the model to “write the complete lecture note in one shot” is convenient but makes problems hard to localize. A staged approach is safer.
Stage 1: Analyze the statement. Have the model restate the proposition precisely and list assumptions, definitions, and potential ambiguities. If conditions are insufficient, it should flag the problem first rather than force a proof.
Stage 2: Submit a proof skeleton. Ask for key lemmas, dependencies, and the main derivation path, without lengthy background padding. This lets you judge whether the approach is sound before spending resources.
Stage 3: Expand segment by segment. Once the skeleton is confirmed, expand each key step. Where extra conditions are invoked, require explicit sourcing of those conditions.
Stage 4: Independent review. Change the review goal: instead of continuing to write, attempt to break the proof. Check for circular reasoning, hidden assumptions, invalid citations, and edge cases, and locate the first step that fails.
Self-review by the same model helps but cannot be treated as an independent correctness guarantee. The same model may repeat the same misunderstanding, and another model may share similar knowledge gaps. High-stakes conclusions still require verification by domain experts or appropriate formal methods.
Stage 5: Generate the lecture notes. Only after the core proof passes review should you add the introduction, examples, notation tables, and summary. The notes should distinguish proven results, cited facts, and content still awaiting verification.
6. Measure Cost per Accepted Deliverable, Not per Quota Consumed
Low quota consumption on a single run does not by itself imply better cost-effectiveness. Quota units, task configurations, input lengths, and service rules can all differ, so context-free comparisons are meaningless.
For professional work, a more meaningful cost model is:
Total cost = service consumption + waiting cost + manual review cost + retry and rework cost.
You can further define:
Cost per accepted deliverable = total cost over the evaluation period ÷ number of deliverables that pass acceptance.
This metric emphasizes deliverable results. A fast, low-consumption solution that frequently produces hidden errors may cost more in total; a slower solution that significantly reduces expert review time may be better suited for complex tasks.
Queue time also matters. Work requiring continuous interaction is sensitive to response consistency, while lecture note drafts that can be processed offline are better suited to asynchronous jobs. Choose the workflow based on task urgency rather than pushing everything into real-time chat.
As for quotas about to expire, the sensible approach is to prioritize tasks with clear existing needs—building a glossary, assembling a test set, or generating drafts awaiting review. Generating long documents aimlessly just to “use up the quota” usually only increases the downstream filtering burden.
7. Conclusion: Evaluate Verifiable Deliverables, Not Capability Impressions
The mathematical value of an LLM lies not in how long its derivations are or whether its answers sound like a researcher, but in whether it can consistently produce correct, complete, checkable results at a reasonable cost.
For teaching and documentation work, focus on proof completeness, expression quality, and revision cost. For research assistance, focus on the testability of suggestions, counterexample awareness, and honest labeling of the unknown. For ongoing use, budget for queuing, quotas, and manual review together.
The most reliable evaluation is not a context-free ranking, but a testing process tailored to your own tasks: standardized inputs, repeated runs, item-by-item review, and cost tracking. That is how “occasionally delightful answers” become a manageable, reusable technical capability.
