Evaluating LLM Mathematical Reasoning and Optimizing Usage Costs: A Practical Guide

    This article explains how to evaluate large language models for mathematical reasoning by focusing on reliable task completion rather than abstract rankings. It covers proof-task review, separating proof correctness from lecture-note generation, reproducible evaluation design, output-length misconceptions, cost-per-valid-output metrics, stop conditions, and a layered verification workflow. Readers will learn practical ways to allocate inference resources, control costs, and turn model outputs into verifiable technical deliverables.

    1. From “Is the Model Good?” to “Can It Reliably Complete the Task?”

    When evaluating large language models, users often mix several different questions: Can it prove a complex proposition? Can it produce professional lecture notes? Is the response timely? Is the credit consumption worthwhile? These questions are related, but they cannot substitute for one another.

    A complex task consuming more credits does not mean the model has stronger reasoning ability. A neatly formatted set of lecture notes does not mean the proofs inside are valid. Conversely, a short answer may be more valuable than a long derivation if it accurately identifies the key conditions, provides a complete argument, and clearly states the boundaries of applicability.

    A more reasonable evaluation target is therefore not an abstract “model ranking,” but task performance within a specific workflow. For advanced mathematics and technical writing, evaluation can be divided into three layers:

    • Capability layer: Can the model understand definitions, organize reasoning, find counterexamples, and complete arguments?
    • Delivery layer: Can it turn results into documents with clear structure, consistent notation, and easy review?
    • Service layer: Can it complete work reliably under budget, latency, and available-quota constraints?

    These three layers should be observed separately before making a judgment based on actual needs. Research assistance places more weight on correctness and verifiability; teaching-material production also requires explanation quality; batch document generation must consider both cost and throughput efficiency.

    2. What Mathematical Proof Tasks Actually Test

    2.1 Understanding the Proposition Matters More Than Expanding Calculations

    Advanced mathematics problems are often not simple calculations. They involve establishing logical relationships around definitions, conditions, and conclusions. The model first needs to answer:

    • Which objects and structures does the proposition use?
    • What role does each condition play in the proof?
    • Are there implicit conventions?
    • Does the conclusion hold in all cases, or does it depend on additional assumptions?

    For example, when a proposition involves finiteness, continuity, compactness, or some algebraic condition, missing a single assumption may invalidate the argument. A strong response should clarify these conditions first rather than immediately generating a long proof.

    For developers, this is similar to checking a program’s preconditions: a function implementation may look reasonable, but if its input constraints are not satisfied, the result is still unreliable.

    2.2 Citing Existing Results Requires Checking Applicability Conditions

    Mathematical proofs often depend on existing lemmas or theorems. A common model error is not a complete inability to cite results, but citing a conclusion that “looks similar” without confirming whether its premises are satisfied.

    During review, establish a simple dependency chain:

    Assumptions of the original proposition → intermediate property → applicability conditions of the lemma → lemma conclusion → final conclusion

    If any link lacks support, the proof has a gap. Watch especially for circular reasoning: the model introduces an intermediate proposition to prove the conclusion, but that intermediate proposition actually depends on the original conclusion.

    Asking the model to explain, item by item, “why this lemma can be used” is often more effective than asking it to “write in more detail.” The former adds reviewable information; the latter may only add text.

    2.3 Check Boundary Cases and Counterexamples

    Proof ability is reflected not only in forward derivation but also in discovering when a proposition fails. You can ask the model to check:

    • Empty objects, zero objects, or degenerate cases;
    • The lowest dimension and smallest scale;
    • What happens after removing a given assumption;
    • Differences between finite and infinite cases;
    • Whether a local result implies a global result.

    These checks do not necessarily constitute a proof, but they help expose misunderstandings of conditions. Especially when the proposition is incompletely stated, searching for a counterexample is more valuable than continuing to polish a proof.

    3. Generating Lecture Notes and Proving Correctness Are Different Goals

    A high-quality mathematics lecture note typically includes a proposition statement, notation explanation, prerequisites, key lemmas, a formal proof, and supplementary discussion. A model may be very good at organizing this content, but a complete document structure does not automatically guarantee mathematical correctness.

    It is advisable to divide lecture-note generation into two stages.

    Stage 1: Build a Reviewable Proof Skeleton

    First request:

    1. An accurate restatement of the proposition;
    2. All necessary assumptions;
    3. The proof strategy;
    4. The definitions and lemmas relied upon;
    5. Each key reasoning step;
    6. Unresolved parts or parts requiring external verification.

    At this stage, do not pursue length or formatting. Confirm the logic first.

    Stage 2: Develop It into Teaching Material

    After the proof has passed review, add intuitive explanations, examples, a notation table, and reading guidance. If lecture notes in another language are needed, terminology, syntax, and mathematical meaning should be checked separately for consistency.

    Whether the formatting syntax is correct, formulas are complete, and cross-references are consistent should also be treated as separate checks. A document that renders correctly only shows that the formal level is basically usable; it does not show that the proof is valid.

    A reusable prompt template is:

    First restate the proposition and list the assumptions, then give the proof route. For each key step, explain the definition or lemma being used and its applicability conditions. If any part cannot be confirmed, mark it clearly and do not present a guess as a conclusion. After the proof has been reviewed, organize it into lecture notes for the specified audience.

    Compared with directly asking the model to “prove it and write lecture notes,” this staged approach makes it easier to control error propagation.

    4. How to Build a Reproducible Capability Evaluation

    4.1 Classify Tasks First, Rather Than Directly Ranking Model Names

    Different types of problems measure different abilities. At minimum, distinguish:

    Task category Main capability tested Typical risk
    Basic calculation and derivation Computational accuracy, step consistency Local calculation errors
    Standard proposition proof Definition understanding, knowledge retrieval Improper application of conclusions
    Nonstandard proof Strategy selection, condition analysis Implicit assumptions, logical leaps
    Long-form lecture-note generation Structural organization, notation management Contradictions between sections
    Research exploration Conjecture construction, path exploration Treating heuristic speculation as proof

    Research exploration tasks require particular caution. A model can help propose ideas, test special cases, and organize related questions, but this does not mean it has reliably solved an open problem. Any new result requires independent verification.

    4.2 Control Variables That Affect Results

    A fair evaluation should unify, as much as possible, problem statements, background materials, output requirements, and verification standards. It should also record:

    • Whether external materials are allowed;
    • Whether multiple rounds of prompt correction are used;
    • Whether additional retrieval or computational capabilities are used;
    • Whether output length and time limits are set;
    • Whether the final answer comes from the first generation or from selection after multiple attempts.

    Do not directly compare the best result obtained after multiple rounds of human guidance with another system’s first response. Otherwise, what is measured is the difference between overall workflows, not just the difference in model capability.

    4.3 Replace Subjective Impressions with Verifiable Metrics

    Results can be recorded across the following dimensions:

    • Correctness: Are the conclusion and proof valid?
    • Completeness: Are key steps missing?
    • Assumption management: Are unexplained conditions added?
    • Citation reliability: Are the relied-upon conclusions true and applicable?
    • Presentation quality: Are notation, hierarchy, and terminology consistent?
    • Stability: Do substantive errors appear frequently across repeated runs?
    • Review cost: How much time is required for human confirmation of the result?

    Scoring criteria should be defined before evaluation to avoid changing the standard after seeing the answer. For high-risk tasks, a single composite score is not enough, because good writing quality may mask serious correctness problems.

    5. Longer Output Does Not Mean Stronger Reasoning

    Long responses can sometimes provide more review clues, but they can also introduce more errors, repetition, and unnecessary intermediate steps. The evaluation focus should be whether the public argument can be verified, not the response length or a so-called internal thought process.

    Points worth examining include:

    • Does each conclusion have a clear basis?
    • Are there repeated paragraphs that add no new information?
    • Are the key difficulties actually resolved?
    • Is uncertainty accurately marked?
    • Could the same complete logic be expressed with a shorter argument?

    In practice, you can ask the model to provide both a “proof outline” and a “full proof.” The former helps identify the route quickly, while the latter is used for step-by-step checking. If the two disagree on key points, further review is usually needed.

    6. How to Measure Quota Consumption and Actual Value

    Remaining quota can easily create a psychological pressure to “use it before it is wasted,” but quota consumption itself is not an outcome. If budget is consumed by generating long documents that cannot be reviewed, no effective output has been produced.

    A more meaningful metric is:

    Cost per validated useful output = total cost required to complete the task ÷ number of verified usable outputs

    Total cost here is not only platform billing. It also includes waiting, failed retries, manual revision, and review effort. Credit or quota units from different services may not be directly comparable, so the consumption ratio alone cannot determine which option is more cost-effective.

    6.1 Reserve High-Cost Reasoning for Critical Steps

    Lower-cost processing can first be used for problem organization, notation checking, and format conversion. Complex proofs or counterexample analysis can then be assigned to capabilities better suited to deep reasoning.

    This is not simply about pursuing the lowest price. It is about allocating resources according to task difficulty. If high-cost capabilities are used only for repeated formatting, their value is usually not realized.

    6.2 Set Stop Conditions

    For complex tasks, define budgets and stop conditions in advance. For example:

    • Pause for review after the proof skeleton is complete;
    • Stop automatic expansion when the same critical gap repeatedly appears;
    • Switch to counterexample analysis when the proposition itself appears likely to be false;
    • Switch to asynchronous processing after an acceptable waiting time is exceeded;
    • Preserve existing materials after reaching the budget limit instead of continuing aimless attempts.

    Stop conditions prevent an “unresolved problem” from turning into continuously growing costs.

    6.3 Design Workflows for Queuing and Failures

    Batch tasks should use asynchronous submission, status tracking, and result archiving. When a failure occurs, first determine the cause: capacity limits, input length, unclear task description, or an incorrect reasoning route.

    Capacity limits can be mitigated by reducing concurrency or delaying execution. Unclear prompts require reorganizing the task. Logical failures should lead to changing the proof route. Blindly repeating the same request may only repeat the cost.

    7. Establish a Layered Verification Workflow

    To use large language models reliably, verification should be designed as part of the workflow rather than as an emergency fix before delivery.

    The first layer is formal checking, including notation consistency, formula closure, section completeness, and terminology consistency. These checks can be partly automated.

    The second layer is local logic checking: confirm step by step whether each derivation holds, whether lemma premises are satisfied, and whether undeclared conditions exist.

    The third layer is independent review, where another reviewer checks the result from a different proof route. Using another model for assistance is also valuable, but agreement among multiple models cannot replace mathematical verification, because they may repeat the same error.

    The fourth layer is scope review: confirm which cases the conclusion actually applies to and which parts remain speculative or awaiting verification.

    For tasks with suitable formal representations, further machine checking can be considered. However, converting natural-language proofs into formal proofs still requires effort, and generated text cannot be treated directly as having passed formal verification.

    8. Conclusion: Measure Capability by Reliable Delivery, Not by Impression-Based Rankings

    Evaluating a model’s mathematical ability should focus on whether it understands conditions, can construct valid proofs, honestly expresses uncertainty, and produces results that can be independently verified at low cost.

    An excellent set of lecture notes can show that a model has some reasoning and organizational ability, but it is not enough to prove that the model consistently leads across all advanced tasks. A high quota consumption only shows that resources were used; it does not show that the task was more valuable.

    For developers, teachers, and researchers, a more reliable practice is: define the task first, then establish verification standards; confirm the proof skeleton first, then expand it into a document; concentrate resources on genuinely difficult steps; and continuously record success rates, revision counts, waiting time, and review costs. This turns subjective experience into reproducible judgments and model outputs into genuinely usable technical results.