How to Scientifically Evaluate LLM Mathematical Reasoning and Usage Costs
This article provides a systematic framework for evaluating the mathematical reasoning capabilities and associated costs of Large Language Models (LLMs). Moving beyond subjective experiences and isolated test cases, it emphasizes the need to assess whether a model can reliably deliver verifiable mathematical results under specific constraints. The guide covers breaking down mathematical abilities into observable metrics, evaluating proof generation, constructing reliable test sets, distinguishing between research aids and solving open problems, and analyzing total task costs and workflow optimization.
1. Define the Problem the Model Needs to Solve
When evaluating large language models, a common misconception is translating a few usage experiences directly into capability rankings: assuming a model excels at advanced mathematics because it generated a complete lecture note, or believing it isn’t suitable for practical work because of a long wait time.
While these experiences are worth noting, they are insufficient for drawing reliable conclusions. The difficulty of a mathematical task is not solely determined by its length, nor is the usage cost strictly defined by a single API call. A valuable evaluation should revolve around a specific question:
Under given time, budget, and human review constraints, can the model reliably deliver verifiable, reusable mathematical results?
For developers, educators, and researchers, common needs can be categorized into four types:
- Learning Aid: Explaining definitions, providing intuition, analyzing examples.
- Proof Aid: Deriving propositions, identifying missing conditions, filling in intermediate lemmas.
- Document Production: Organizing proofs into clearly structured lecture notes with consistent symbols.
- Research Exploration: Proposing conjectures, finding counterexamples, comparing different proof paths.
These four task types have different acceptance criteria. A model capable of writing fluent lecture notes might not discover hidden logical errors, and the ability to provide inspiring research directions does not equate to solving unresolved mathematical problems. Therefore, evaluations must first categorize the task before discussing capability and cost.
2. Break Down Mathematical Ability into Observable Metrics
2.1 Proof Correctness is the Irreplaceable Foundation
Mathematical output must first satisfy logical, rather than just linguistic, requirements. During review, focus on:
- Does the conclusion actually follow from the premises?
- Are hidden assumptions introduced that were not given in the original problem?
- Are all applicable conditions of the used theorems met?
- Is there circular reasoning?
- Are conclusions from special cases improperly generalized to arbitrary cases?
- Are special cases (empty sets, zero objects, boundary parameters) overlooked?
For example, from “a continuous function on a compact space attains its maximum,” you cannot directly infer “a continuous function on any closed set attains its maximum.” The key here is not natural expression, but whether the compactness condition the proof relies on holds true.
In advanced mathematics, errors often hide in seemingly ordinary transitional statements. Phrases like “clearly holds,” “by standard results,” or “easily verified” should be prime targets for review, as they may obscure the most difficult steps in the entire proof.
2.2 Reasoning Depth is in Key Steps, Not Output Length
Long answers may contain extensive repetitive explanations without addressing the actual difficulty; conversely, short answers might accurately capture the core structure. Therefore, word count or narrative length cannot replace capability evaluation.
More effective observation points include:
- Can it identify key obstacles in the problem?
- Can it propose appropriate auxiliary lemmas?
- Can it adjust its approach if the original route fails?
- Can it distinguish between steps that must be proven and results that can be directly cited?
- Can it explain why a seemingly reasonable method is actually invalid?
Evaluations should focus on checkable proof content. Do not treat the model’s description of its own thought process as reliable evidence. What truly matters is whether the submitted argument holds.
2.3 Mathematical Writing Quality Requires Separate Scoring
A correct proof and a high-quality lecture note are two different delivery goals. Lecture notes should also feature:
- Clear definitions and symbol conventions;
- Complete proposition statements;
- Clear proof structures;
- Motivational explanations for key constructions;
- Consistent terminology and notation;
- Explanations of applicable scopes and limitations.
If generating English lecture notes is required, you must also check if the language accurately conveys mathematical relationships. For instance, logical meanings like “necessary condition,” “sufficient condition,” and “if and only if” must not be altered by language polishing.
Formatting quality is a separate dimension. Properly rendered formulas only indicate basic structural usability, not that the formulas themselves are correct.
3. How to Evaluate “Filling in Missing Proofs”
When mathematical reference materials provide a proposition without an expanded proof, having the model fill in the proof can indeed save significant time. However, “the current material does not show the proof” does not automatically mean the model has performed original research.
The model might rely on common argumentation patterns learned during training or recombine multiple standard conclusions. This does not diminish its value as an assistive tool, but you should avoid equating “successful generation” with “independent discovery.”
The following workflow is recommended:
Step 1: Fully Restore the Proposition Context
Providing an isolated sentence can easily cause the model to misinterpret terminology. You should simultaneously provide:
- The complete statement of the proposition;
- Definitions of related objects;
- Known assumptions;
- Conclusions allowed from previous context;
- The desired proof style;
- Advanced tools to avoid.
It is especially important to clarify conventions within the textbook or notes. Different fields have varying conventions on whether certain structures include additional conditions; inconsistent conventions can directly change the truth value of the proposition.
Step 2: Verify the Proposition Before Requesting a Proof
The model should not be forced to prove a conclusion that might be false. You can first ask it to check if the assumptions are sufficient and analyze whether a counterexample exists if conditions are lacking.
A neutral task prompt template is:
Please first determine if the proposition holds under the given assumptions. If conditions are insufficient, identify the missing ones and attempt to construct a counterexample. If the proposition holds, list the key lemmas, applicable conditions, and dependencies required for the proof, then provide the complete proof. Do not alter the original proposition by adding extra assumptions.
This helps reduce instances of “forcing a proof just to complete the task,” though it doesn’t guarantee errors will completely disappear.
Step 3: Check Proof Dependencies
The proof can be organized into:
Basic Definitions → Auxiliary Lemmas → Key Constructions → Local Conclusions → Final Proposition
Each dependency should have a clear rationale. If a lemma actually depends on the proposition to be proven, circular reasoning occurs; if a citation only holds under stronger assumptions, the proof needs correction.
Step 4: Generate Lecture Notes Last
Only after the proof content passes review should language polishing, formula formatting, and structural expansion occur. This prevents investing excessive editing costs into an incorrect proof.
4. Build a Reliable Test Set Over Subjective Rankings
Single cases are easily influenced by problem familiarity, random generation variations, and prompting styles. A more robust approach is to build a tiered test set.
| Task Tier | Typical Tasks | Main Check Points |
|---|---|---|
| Basic Understanding | Explain definitions, compare concepts | Definition accuracy, boundary awareness |
| Standard Derivation | Complete classic proposition proofs | Logical completeness, citation conditions |
| Condition Analysis | Judge modified propositions for truth | Counterexample construction, assumption sensitivity |
| Comprehensive Argumentation | Combine multiple lemmas to solve problems | Dependency management, route selection |
| Research Exploration | Propose strategies, test conjectures | Verifiability, uncertainty expression |
The test set should mix true and false propositions. If all problems are assumed to be true, the model may develop a response pattern of “providing a proof regardless of the premises.”
It should also include both relatively familiar problems and self-modified variations. Familiar problems test basic capability, while modified variations are better for observing whether the model truly understands changes in conditions.
When comparing different configurations, try to keep problems, prompts, available materials, output requirements, and time limits consistent, and conduct repeated tests. Otherwise, results might reflect task condition differences rather than model capability differences.
When scoring, it is recommended to set a correctness threshold first: if the core argument is invalid, it cannot receive a high score based on fluent language, complete length, or beautiful formatting. After passing the basic correctness check, compare explanation quality, readability, and usage efficiency.
5. Distinguish Research Aid from Solving Open Problems
In advanced mathematical research, models might provide valuable clues, such as:
- Transforming the problem into a form easier to analyze;
- Proposing special cases worth verifying;
- Discovering potential counterexamples;
- Suggesting related lemmas;
- Pointing out gaps in existing arguments.
These are research aid results, but they do not equal solving an open problem.
For outputs claiming new results, stricter checks are needed: Is the problem still unsolved? Does the conclusion exactly match the original problem? Can the proof be independently reviewed by experts in the relevant field? Are there missing conditions?
The model’s own confidence is not mathematical evidence. Multiple generations of similar proofs are not independent verifications, as these outputs may repeat the same error. Reliable conclusions still need to be built upon step-by-step review and clear argumentation.
6. Shift from Credit Consumption to Effective Task Cost
Subscription quotas, credit balances, and single-call consumption are only part of the cost. For practical work, what matters more is the total cost required to complete a qualified delivery.
The following metrics can be used:
Total Task Cost = API Cost + Retry Cost + Human Review Cost + Modification Cost + Opportunity Cost of Waiting.
Further define:
Unit Effective Delivery Cost = Total Task Cost ÷ Number of Passed Tasks.
This is only an internal evaluation method and does not represent specific billing rules of any service.
A configuration with cheap API calls but frequent hidden errors might require more manual checks, ultimately resulting in higher costs. Conversely, a configuration with higher consumption that stably reduces retries and modifications might offer a better return on investment.
You should also distinguish between “quota usage rate” and “quota usage value.” Executing unnecessary large tasks just to prevent balance expiration only increases the consumption ratio without creating effective results. A more reasonable approach is to prioritize actual backlogged work, such as organizing existing proofs, generating review materials, or checking document consistency.
7. Queuing and Response Time are Part of Capability Deployment
For interactive mathematical assistance, long wait times can disrupt the workflow rhythm. You should record separately:
- Wait time from submission to processing start;
- Time from processing start to output completion;
- Time from output to verification completion.
Different tasks have varying sensitivities to latency. Classroom discussions and real-time derivations prioritize response speed; long lecture notes can be processed in the background; research exploration may prioritize result quality.
Therefore, tasks can be tiered: simple formatting and routine explanations use low-cost processes, while complex proofs and condition analyses use stricter reasoning and review processes. The core here is allocating resources based on task risk, rather than assuming all work requires maximum processing intensity.
8. Establish a Reusable Workflow
A relatively robust mathematical assistance workflow is:
- Define Inputs: Provide the proposition, definitions, assumptions, and delivery requirements.
- Analyze Conditions: First determine if the conclusion holds, finding counterexamples if necessary.
- Plan the Proof: List key lemmas and dependencies.
- Complete Argumentation: Require key steps to be checkable, avoiding vague jumps.
- Independent Review: Human review of core derivations, optionally assisted by computation or formal methods for verification.
- Organize Notes: Unify terminology, symbols, structure, and language.
- Record Costs: Track API calls, retries, waits, and review effort.
Note that numerical experiments usually only provide supporting evidence and cannot replace general proofs; the credible scope of formal verification also depends on whether the actually encoded propositions, assumptions, and proofs match the original problem.
Ultimately, scientifically evaluating a large language model should not result in a blanket “strong or weak” label, but rather form a clear boundary of applicability: which tasks can be reliably completed, which require heavy review, and which should not be relied upon yet. Only by examining correctness, stability, efficiency, and cost within the same reproducible workflow can we judge whether a model truly improves mathematical work.
