How to Systematically Evaluate an LLM's Mathematical Reasoning and Usage Costs
This article presents a practical framework for evaluating large language models on mathematical tasks: starting from task-specific requirements rather than general "strong" or "weak" labels, building layered evaluation sets, verifying proofs step by step, generating lecture notes in staged workflows, and accounting for the full cost of model use—including waiting time, human review, and rework. It is aimed at developers, researchers, and enterprise users who need reliable, delivery-oriented judgments about model capability.
1. Evaluate LLMs Starting from the Task at Hand
Users often report two very different experiences with large language models. Some find that a model responds slowly, burns through quotas quickly, and delivers limited practical value. Others find that the same class of model can complete complex proofs and organize them into well-structured lecture notes, suggesting high value.
These two experiences are not necessarily contradictory. They may stem from different task difficulties, service entry points, resource constraints, and acceptance criteria. A model that produces verbose output and long queue times on simple problems is not necessarily unsuited to complex reasoning; conversely, one successful high-quality lecture note does not prove the model is reliable across all mathematical tasks.
So the core of evaluation should not be attaching a “strong” or “weak” label to a model, but answering three questions:
- Can it complete the target task, and are the results correct?
- How much manual inspection and revision do the results require?
- Is the total cost—including waiting, retries, and review—acceptable?
For developers, researchers, and enterprise users, these three questions have more decision value than the impression left by a single answer.
2. Mathematical Capability Is Not a Single Metric
Mathematical tasks have clear hierarchical differences. Blending all tasks into a single aggregate score can easily be misleading.
1. Basic Computation and Standard Problem Solving
These tasks typically have definite answers and established methods. They are useful for checking whether a model understands notation, follows computational rules, and does not omit conditions.
However, performance on basic problems cannot be extrapolated to research ability. A model may be familiar with common problem types yet unable to handle new combinations of definitions, non-standard assumptions, or complex proof dependencies.
2. Reconstructing Proofs of Known Propositions
When reference material gives only a proposition and omits the proof, the model must fill in the derivation. This is closer to research assistance than ordinary problem solving, but multiple interpretations remain possible:
- The model genuinely organized a proof from definitions and known results;
- The model retrieved similar proof patterns seen during training;
- The model generated an argument that is formally complete but actually flawed.
Thus, “the current page has no proof” only tells you the page is incomplete. It does not allow you to conclude that the model never encountered the relevant knowledge, nor does it prove the model performed original research.
3. Long Proofs and Lecture Note Organization
Lecture note generation requires not only correct conclusions, but also a sensible ordering of definitions, lemmas, main theorems, and explanatory text.
This involves at least two distinct capabilities: mathematical reasoning and knowledge expression. A model may reason correctly but write in a disorganized way, or write fluently while masking critical gaps. Evaluation must separate the two—do not mistake typesetting quality for proof quality.
4. Open Problem Exploration
Open problems usually have no ready-made, definitive solutions. A model proposing a new idea, completing a limited-scope verification, or explaining why a route fails can offer auxiliary value, but this does not amount to solving the problem.
Claiming a new mathematical result requires at minimum a complete argument, independent review, and careful verification against existing research. Without these steps, a single conversation is not sufficient to conclude that a model has a stable ability to solve open problems.
3. Build an Evaluation Set Before Discussing Capability
Reliable evaluation requires a set of representative tasks, not the single most impressive response.
1. Select Tasks in Layers Based on Real Needs
Evaluation tasks can be organized into groups such as:
| Task category | What it checks | Typical risks |
|---|---|---|
| Definition explanation | Whether concepts are accurate and boundaries are clear | Confusing similar concepts |
| Standard proofs | Whether derivations are complete and conditions sufficient | Skipped steps or circular reasoning |
| Proof completion for omitted proofs | Whether missing lemmas and dependencies can be filled in | Citing results that do not exist |
| Diagnosing flawed proofs | Whether flaws can be located and explained | Going along with errors in the input |
| Conditional-change analysis | Whether the role of assumptions is understood | Overgeneralizing special-case conclusions |
| Lecture note generation | Structure, notation, and audience fit | Fluent expression with incomplete logic |
Tasks should come from actual work needs, with explicit input materials, permitted references, and acceptance criteria. If your day-to-day work mainly involves using models to organize teaching materials, you should not judge the model solely by competition-style computation problems.
2. Keep Test Conditions Consistent
When comparing different models or configurations, keep the task wording, reference materials, output requirements, and time limits as uniform as possible, and record whether external retrieval or computational tools are allowed.
The service entry point should also be recorded. Even if the model name is the same, different entry points may have different context limits, invocation policies, or resource constraints. In the absence of explicit information, differences between entry points should not be attributed directly to the model itself.
3. Run Repeatedly and Observe Stability
A single success only shows the model completed the task in that run. For critical problems, repeat tests and record:
- The proportion of runs producing correct results;
- Whether errors concentrate in the same reasoning step;
- Whether the model can correct itself given feedback;
- Whether corrections introduce new errors.
If a model occasionally produces an excellent proof but usually requires heavy prompting, its practical usability may be lower than a more conservative model that is stable.
4. How to Check Whether a Mathematical Proof Is Trustworthy
Proof review should move from “reads like a proof” to “every step can be verified.”
1. Verify Proposition Conditions
First check whether the model accurately preserves the hypotheses, quantifiers, and conclusion of the original proposition. Common errors include changing “there exists” to “for all,” extending local conditions to global ones, and quietly adding restrictions not present in the original statement.
Proving an easier proposition is not the same as proving the original one.
2. Verify References and Dependencies
For every theorem or lemma invoked, check:
- Whether the result actually holds;
- Whether the current objects satisfy its preconditions;
- Whether it is applied in the correct direction;
- Whether any intermediate conclusions remain unproven.
Models sometimes use phrases like “by a standard result” to cover key steps. Any “obviously,” “it is easy to see,” or “similarly” that carries core logical weight should be expanded and justified.
3. Check Hidden Assumptions
Errors in higher mathematics often come from default conditions. For example, interchanging limits and integrals requires certain conditions; selecting a convergent subsequence typically requires some form of compactness; constructing global objects may require compatibility conditions.
During review, actively ask: what property does this step rely on? Is that property known? If a hypothesis is removed, does the derivation still hold?
4. Use Counterexamples to Test Overgeneralization
Searching for counterexamples cannot replace a proof, but it can quickly identify errors. Prioritize checking degenerate cases, empty objects, the lowest dimensions, non-unique cases, and situations where a key hypothesis is missing.
Having the same model self-check can help surface problems, but it does not constitute independent verification. Critical results should still be reviewed by a person with relevant expertise or through an independent checking process.
5. Generate Lecture Notes with a Staged Workflow
Directly asking a model to “complete the proof and write the lecture notes in one go” tends to mix reasoning, writing, and formatting together. A safer approach is to work in stages.
Stage 1: Clarify the Proposition
Provide the complete proposition, notation conventions, necessary definitions, and reader background. Ask the model to first restate the hypotheses and conclusion and list the results it expects to use. If definitions are missing or conditions are ambiguous, resolve those issues first.
Stage 2: Provide a Proof Skeleton
Ask the model to list the key lemmas, dependencies, and the hardest steps, rather than immediately generating a long text. This helps determine early whether the route is viable and avoids spending significant resources in the wrong direction.
Stage 3: Expand and Review Item by Item
Generate proofs for the key lemmas separately; only after they pass review should they be combined into the full argument. For disputed steps, require the model to state explicitly which conditions are being used, rather than restating the conclusion in more fluent language.
Stage 4: Assemble the Lecture Notes
After the proof passes review, ask the model to add background, intuitive explanations, notation notes, and pedagogical paragraphs. Formal arguments and intuitive explanations should be clearly separated—do not let auxiliary exposition carry the burden of proof.
A general prompt template for this purpose:
First accurately restate the hypotheses and conclusion of the proposition and unify notation. Then list the definitions and lemmas needed for the proof, stating the conditions under which each lemma applies. Submit a proof outline first—do not generate the full lecture notes yet. If any step cannot be confirmed, explicitly flag the gap instead of replacing a proof with an unverified citation. After the outline is reviewed, expand it into a formal proof and organize it into lecture notes suitable for the target readers.
Such prompts cannot guarantee correctness, but they improve the verifiability of the results.
6. Cost Is Not Just Quota Consumption
How much of a monthly quota a task consumes only describes one usage instance under a particular account, entry point, and billing cycle. It is not a universal price metric and cannot be used directly to compare different services.
A more practical approach is to compute the total cost of the task:
Total task cost = invocation cost + waiting cost + human review cost + rework cost.
Waiting cost depends on whether the task blocks downstream work. A result needed immediately for a decision may make long queue times more significant than invocation fees, whereas background material preparation can usually tolerate longer waiting.
Human review cost is especially easy to overlook. Longer model output is not necessarily more valuable. If a lecture note requires an expert to correct it sentence by sentence, the low apparent invocation cost may be offset many times over by review time.
For batch tasks, you can further compute the “average cost per accepted result”—the total cost of all attempts divided by the number of results that ultimately pass acceptance. All failures and retries should be included, not just the successful attempt.
7. Remaining Quota Is Not Task Value
Quota that is about to expire tempts people into a “use it up anyway” mindset, but consuming quota does not itself create value. Running unnecessary long tasks to avoid waste may simultaneously waste human time and computational resources.
A better approach is to prepare in advance a task list with explicit acceptance criteria, for example:
- Fill in proof steps already confirmed to be missing;
- Organize reviewed derivations into teaching materials;
- Check existing documents for consistency of notation and conditions;
- Generate exercises and solutions for a course, for teacher review;
- Compile failed attempts into a checklist for follow-up research.
These tasks should be ranked by value, urgency, and verifiability—not by “how much quota they can consume.” For recurring needs, use asynchronous execution, scheduling of non-urgent tasks, and staged generation to reduce interference with the main workflow.
8. Build a Delivery-Oriented Composite Evaluation
The final evaluation can use a multi-dimensional record rather than a single sweeping ranking:
- Correctness: Are the conclusions and key steps valid?
- Completeness: Does it cover all hypotheses, necessary lemmas, and boundary cases?
- Verifiability: Can every step’s justification be traced clearly?
- Stability: Is quality consistent across repeated runs?
- Presentation quality: Does it match the target reader’s knowledge level?
- Interaction efficiency: How many rounds of clarification, correction, and supplementation are needed?
- Cost of use: Are invocation, waiting, review, and rework costs acceptable?
Different scenarios call for different weights. Research assistance should prioritize correctness and verifiability; teaching material production should also weigh structure and presentation; high-frequency business processes should focus more on stability, latency, and total cost. A single leaderboard should not replace scenario-specific acceptance.
Conclusion
What genuinely matters in evaluating an LLM’s mathematical capability is verified deliverables—not response length, confident tone, or a single impressive performance. Proof generation and lecture note writing can provide real help, but their value must rest on accurate conditions, traceable derivations, stable results, and controllable costs.
Layering tasks, keeping test conditions uniform, generating in stages, and preserving human review are more reliable than impression-based rankings. Only by converting “what the model generated” into “which results passed acceptance and how much work was saved” can you form technical judgments suitable for long-term use.
