Evaluating LLM Mathematical Reasoning and Actual Usage Costs
Evaluating the mathematical reasoning capabilities of large language models (LLMs) requires moving beyond superficial impressions to a structured, task-specific approach. This article outlines a comprehensive framework for assessing LLMs, covering task difficulty tiers, proof verification structures, lecture note generation, prompt engineering, and a holistic cost model. By establishing a repeatable evaluation pipeline, developers and enterprise users can make informed decisions on task allocation and cost management.
1. Define the Problem Clearly First
When facing an LLM capable of handling complex mathematical tasks, people often ask directly: “How strong is it?” However, this question lacks clear evaluation boundaries and easily conflates different capabilities.
Generating a well-formatted English lecture note, completing a proof for a textbook proposition, identifying flaws in an existing proof, and exploring unsolved mathematical problems belong to different levels of tasks. A model performing well in one task does not automatically prove it is equally reliable in others.
Therefore, evaluation should shift from product impressions to task capabilities. For developers, researchers, and enterprise users, more meaningful questions include:
- Can the model correctly understand propositions and their applicable conditions?
- Does its generated proof cover all key steps?
- Can it clearly point out issues when information is insufficient or the proposition is flawed?
- Is the output easy for manual review, modification, and delivery?
- How much waiting time, API resource consumption, and manual effort are required to achieve an acceptable result?
These questions collectively determine the model’s actual value. A single impressive output only serves as a case study and cannot be directly used as a basis for overall capability ranking.
2. Establish Math Task Difficulty Tiers to Avoid Cross-Tier Comparisons
1. Basic Explanation and Standard Derivation
This tier mainly involves explaining definitions, deriving common formulas, proving classical conclusions, and expanding brief solutions into teaching materials.
The evaluation focuses on conceptual accuracy, step completeness, and expression clarity. For example, does the model distinguish between necessary and sufficient conditions, specify the range of variables, and note constraints like a non-zero denominator?
These tasks usually have clear standard answers and are suitable for building an initial test set. However, even if the model performs stably, it cannot be concluded that it possesses research-level mathematical capabilities.
2. Multi-step Proofs and Cross-Concept Combination
This tier requires the model to organize multiple definitions, lemmas, and conclusions into a complete reasoning chain. The difficulty lies not just in remembering a theorem, but in judging whether that theorem can be applied under the current conditions.
Common errors include:
- Citing a conclusion that requires stronger assumptions without checking;
- Jumping directly from local properties to global properties;
- Treating a proposition valid in one direction as an equivalence relation;
- Using the proposition to be proved as an intermediate step, resulting in circular reasoning.
Evaluation at this tier should focus on dependencies, rather than just checking the final conclusion.
3. Constructing Arguments for Propositions Lacking Proofs
When mathematical materials only provide a proposition without showing the proof, asking the model to fill in the argument is indeed more challenging than simple recitation. However, “no proof on the current page” does not mean “the model has never encountered relevant arguments,” nor does it mean the proposition itself is research-innovative.
A rigorous evaluation method is to treat the proposition as an independent input and check whether the model can construct a step-by-step verifiable proof based on explicit definitions and allowed conclusions.
The focus is not on guessing whether the model “copied” it, but on whether the proof holds, whether dependencies are transparent, and whether steps are verifiable.
4. Open-Ended Problem Exploration
Open problems have no known complete answers, so standard exercise grading methods cannot be applied. Just because a model proposes a seemingly novel argument does not mean the problem is solved.
At this tier, a more reasonable evaluation targets whether the model can:
- Propose intermediate propositions worth testing;
- Identify the applicability boundaries of existing methods;
- Construct special cases or potential counterexamples;
- Identify key obstacles in the proof strategy;
- Organize exploration results into materials convenient for expert review.
Research assistance value and the ability to independently solve open problems must be discussed separately.
3. Proof Quality Depends on Structure, Not Length
Lengthy derivations, professional terminology, and beautiful formatting can all enhance the perceived credibility of an output, but they do not guarantee correctness.
1. Check Completeness of Assumptions
Before starting a proof, all conditions in the proposition should be listed clearly, and you should verify whether the model has added, deleted, or altered conditions.
Pay special attention to qualifiers like “any,” “exists,” “unique,” and “finite,” as well as the space, structure, and domain the objects belong to. A change in a single qualifier can invalidate an otherwise valid proposition.
2. Check Justification for Each Key Derivation
Break the proof into several nodes, recording for each node:
- The current conclusion reached;
- The premises used;
- The definitions or lemmas cited;
- The applicable conditions of the lemmas;
- Whether the step requires additional argumentation.
This method is more reliable than vaguely judging “the logic is smooth” and makes it easier to locate issues.
3. Check Boundary Cases and Counterexamples
Verification should not only follow the model’s proof direction but also actively look for cases that break the conclusion. For example, does the conclusion still hold if an assumption is removed? Are degenerate objects covered? Do extreme parameters cause the derivation to fail?
Searching for counterexamples cannot replace a proof, but it efficiently reveals missing conditions and erroneous generalizations.
4. Check for Circular Reasoning
Models sometimes package a conclusion equivalent to the proposition to be proved as an “obvious fact.” Without tracking dependencies, this error can easily be masked by fluent expression.
Therefore, for complex proofs, a simplified dependency graph should be drawn to ensure that every key conclusion comes from established premises, not a deformation of the final goal.
4. Demonstrating the Verification Process with a Simple Proposition
Consider the proposition: A continuous function on a closed interval of real numbers is bounded.
A verifiable proof can use contradiction. Assume the continuous function is unbounded on the closed interval. Then, we can select a sequence of points such that the absolute values of the corresponding function values successively exceed each positive integer. Since this sequence lies within a bounded closed interval, it has a convergent subsequence, and the limit still belongs to that interval. By continuity, the function values corresponding to the subsequence should converge to the finite function value at the limit point, which contradicts the continuous increase in absolute value.
When evaluating this proof, three core dependencies should be checked:
- Whether unboundedness is sufficient to construct the required point sequence;
- Whether the point sequence indeed has a convergent subsequence, and whether the limit belongs to the original domain;
- Whether continuity allows the convergence of the point sequence to be transformed into the convergence of function values.
If the domain is changed to an open interval, the “limit still belongs to the domain” in the second point may no longer hold. For example, the function (f(x)=1/x) is continuous on the interval ((0,1)) but unbounded.
This example illustrates that the core of proof verification is not confirming that the conclusion sounds familiar, but checking item by item the conditions that support the conclusion.
5. Evaluate Lecture Note Generation Separately
Mathematical correctness and technical writing quality are interrelated but should not be conflated into a single metric.
A deliverable lecture note should not only contain a correct proof but also explain what prerequisite knowledge the reader needs, how symbols are defined, why the current proof path was chosen, and which conditions are indispensable.
It is recommended to use the following structure:
- Learning Objectives and Background: Explain the problem this section aims to solve.
- Definitions and Symbol Conventions: Prevent the same symbol from carrying different meanings.
- Necessary Lemmas: Distinguish between known conclusions and those needing on-site proof.
- Main Proposition and Proof: Organize reasoning according to dependency order.
- Condition Discussion: Explain the role of assumptions and provide appropriate counterexamples.
- Exercises and Extensions: Help readers transfer their understanding rather than just reading answers.
If required to write in English, terminology consistency and language accuracy should also be checked. If required to generate mathematical typesetting source files, formula environments, numbering, cross-references, and document structure need additional verification. Passing typesetting checks only proves the file format is usable, not that the mathematical content is correct.
6. Prompt Design: From “Prove It” to Explicit Delivery Contracts
Vague prompts may occasionally yield excellent results, but they are detrimental to stable reproduction. A better approach is to clarify the input, allowed dependencies, output structure, and how to handle uncertainty.
You can use the following general template:
Please first explain item by item the assumptions, objects, and conclusions in the proposition, and determine if the proposition is ambiguous.
List the definitions and lemmas that might be needed for the proof, and check the applicable conditions.
Provide a complete, step-by-step verifiable proof, without substituting “obvious” for key derivations.
If the proof cannot be completed, point out the established conclusions, unresolved steps, and reasons.
Finally, organize this into an English lecture note suitable for the specified reader level, including symbol explanations, proof, and condition discussion.
Do not fabricate references, nor write unverified guesses as theorems.
For complex tasks, phased execution is recommended: first review the proposition, then form a proof draft, followed by independent verification, and finally organize the lecture note. This way, even if subsequent typesetting requires rework, the entire mathematical derivation does not need to be redone.
7. Actual Cost Goes Beyond Token Consumption
A task consuming fewer tokens might be impressive, but token ratios are usually insufficient to reflect true costs. Different services have varying resource units, billing scopes, and package rules, making direct cross-comparison invalid.
A more reasonable evaluation should cover at least four aspects:
- Resource Cost: Resources consumed for task completion and retries;
- Waiting Cost: Time required for queuing, generation, and failure recovery;
- Verification Cost: Manual effort to check proofs and references;
- Rework Cost: Effort to fix logic, supplement conditions, and adjust formatting.
This can be summarized as:
Effective Delivery Cost = Resource Cost + Waiting Cost + Verification Cost + Rework Cost.
These items can be uniformly converted into monetary amounts or recorded separately. For research tasks, verification costs may be more important than generation costs; for batch business processes, queuing delays and failure rates may directly impact delivery cycles.
Remaining token quotas should also not be the primary reason for using a model. The reasonable approach is to prioritize tasks with clear acceptance criteria, those that can be completed independently, and those with actual value, rather than generating useless outputs just to consume tokens.
8. Build a Repeatable Evaluation Pipeline
Reliable evaluation requires a task set, not a single successful case.
The test set can cover standard proofs, condition differentiation, error diagnosis, counterexample construction, multi-step reasoning, and lecture note compilation. Each question should have a clear evaluation objective and preferably use content verifiable by humans or reference materials.
During execution, fix the problem phrasing, reference information, output requirements, and available auxiliary conditions. Simultaneously record the model version, test date, time consumed, number of retries, and amount of manual modifications to avoid mixing results under different conditions.
Scoring should adopt the “critical error first” principle: if the proof has a fatal logical flaw, even if the formatting is excellent and the expression is fluent, it cannot be deemed a successful mathematical task. Only after correctness is confirmed should completeness, readability, and delivery efficiency be evaluated.
For generative systems with inherent randomness, repetitive testing should also be conducted on some tasks to observe result stability. An average impression of one correct and one incorrect attempt cannot replace an analysis of failure types and frequencies.
9. Conclusion: Evaluation Serves Task Selection, Not Ranking
The value of an LLM’s mathematical capability lies not in the length of its output or the confidence of its tone, nor in whether it can quickly generate a seemingly professional lecture note, but in whether it can form correct, transparent, and verifiable results.
For developers and enterprise users, the most practical conclusion is often not “which model is absolutely the strongest,” but “which types of tasks can be delegated to the model, which steps must retain manual review, and how to control delivery costs.”
Combining task layering, proof verification, lecture note quality, and resource management transforms scattered user experiences into reusable engineering methods. Especially in high-difficulty mathematical scenarios, model outputs should be treated as candidate solutions to be verified: first confirm the logic holds, then discuss expression quality, and finally measure efficiency and cost.
