LLM Mathematical Reasoning Evaluation and Cost Optimization: A Practical Guide

    This article presents a task-oriented framework for evaluating large language models in mathematical reasoning and for optimizing the cost of useful output. It covers task tiers from basic calculation to open problems, a layered proof-review process, reproducible evaluation dimensions, and workflow practices for developers and teams. The goal is to help technical readers judge model capability by verifiable evidence and measure cost by qualified deliverables rather than token spend.

    1. Start Evaluating LLMs with Specific Tasks, Not General Impressions

    To evaluate whether a large language model is useful, you first need to answer three questions: What task must it complete? How will the result be accepted? And how much time and money will completion require?

    Mathematical reasoning is especially prone to evaluation bias. A neatly formatted, terminology-dense set of lecture notes may hide a critical derivation error. A short proof may have high value because it accurately identifies the core structure. Similarly, a task that consumes fewer tokens does not directly prove that a model has a cost advantage, because later human verification and rework may cost far more than generation itself.

    Therefore, subjective user experience should be broken down into three questions:

    1. Capability: Can the model complete a mathematical task of the specified difficulty under the given conditions?
    2. Reliability: Is the output correct, complete, and able to withstand independent inspection?
    3. Economics: How much cost, waiting time, and human effort are required to obtain a qualified result?

    These three questions are related, but they cannot substitute for one another. A more capable model is not necessarily suitable for every task, and faster generation does not mean higher delivery efficiency.

    2. Build a Tiered Math Task Taxonomy to Avoid Mixing Different Capabilities

    Mathematical ability is not a single metric. Basic calculation, standard proofs, understanding of professional literature, and exploration of open problems place clearly different demands on a model.

    2.1 Basic Computation and Standard Derivations

    These tasks usually have clear answers, such as algebraic simplification, routine differentiation, elementary inequality proofs, and derivations based on established formulas.

    Evaluation should focus on calculation accuracy, handling of boundary conditions, and step consistency. Tests should include special values, degenerate cases, and examples that are prone to sign errors, rather than only simple conventional problems.

    Correct completion of these tasks shows that a model has some basic reasoning ability, but it cannot be used to judge its professional mathematical level.

    2.2 Textbook-Level Proofs and Knowledge Integration

    These tasks require combining definitions, lemmas, and known theorems. Examples include explaining why a conclusion holds or expanding a brief proof into teaching notes.

    At this level, the focus is not only whether the conclusion is correct, but also whether the model:

    • Explicitly lists all assumptions;
    • Explains the applicability conditions of key theorems;
    • Avoids circular reasoning;
    • Avoids writing core steps as “obvious”;
    • Avoids using a stronger proposition that has not been proved.

    Textbook-level tasks are suitable for testing whether a model can organize knowledge into a complete argument, not merely repeat related terminology.

    2.3 Proof Completion in Professional Materials

    For professional materials that give a proposition without a proof, the model needs to understand the context, identify dependencies, and construct a checkable proof route.

    However, “the source material does not show a proof” does not mean “the model has completed original research.” The model may be using similar conclusions encountered during training, or it may be applying an existing standard method. What can actually be confirmed from the task is whether it provides a valid argument for the current proposition.

    Therefore, evaluation should focus on the proof itself, not on speculation about its source. In particular, check whether cited conclusions are actually valid and whether they satisfy all premises of the current problem.

    2.4 Open Problems and Research Exploration

    Open problems place higher demands on the model. A seemingly complete answer does not mean the problem has been solved. The model may miss difficult cases, repeat existing results, or present exploratory conjectures as definite conclusions.

    In research settings, a more reasonable evaluation target is whether the model can:

    • Propose valuable intermediate propositions;
    • Find counterexamples or identify flawed routes;
    • Decompose a large problem into verifiable subproblems;
    • Explicitly identify steps that remain unsolved;
    • Provide researchers with new directions for thought.

    For outputs that claim to solve open problems, professional review and sufficient literature checking are required. A “research capability ranking” cannot be established from a single conversation.

    3. Shift from “Generating Lecture Notes” to “Generating Reviewable Proofs”

    Asking a model to write a proposition as English lecture notes actually combines two types of tasks: mathematical reasoning and technical expression.

    Mathematical reasoning determines whether the proof is valid. Technical expression determines whether readers can understand it. Both matter, but they should be accepted separately. Fluent language and neatly formatted formulas only demonstrate completion at the expression level; they cannot replace mathematical correctness.

    A practical method is to first ask the model for a proof outline, then generate the full lecture notes. This allows the main route to be checked before the text expands, reducing the risk that flawed arguments are hidden by polished formatting.

    The following neutral prompt template can be used:

    Please construct a self-contained English mathematical lecture note based on the proposition below.
    First restate all assumptions and conclusions, and list the definitions and auxiliary lemmas required for the proof.
    Then provide a proof outline explaining the role of each major step.
    In the full proof, explicitly check the applicability conditions of cited results. Do not replace key steps with unproven equivalent statements.
    If a derivation cannot be confirmed, mark the gap. Do not present it as a completed proof.
    Finally, check special cases, boundary conditions, and symbol consistency. Keep formatting requirements separate from the mathematical proof.

    This type of prompt cannot guarantee correctness, but it makes the result easier to inspect. Its core value is converting a vague “help me prove this” into a task with clear delivery criteria.

    4. Review Proofs in Layers, Not with a Single Read

    The cost professional users most often underestimate is the time required to verify output. For longer proofs, a layered review process should be used.

    Layer 1: Check Whether the Proposition Has Been Changed

    First compare the output with the original statement. Check whether the model has added assumptions without authorization, narrowed the scope of discussion, or proved only a weaker conclusion.

    For example, if the proposition requires only that an object satisfy general conditions, but the model assumes additional finiteness, continuity, or invertibility in the proof, then even if the subsequent derivation is valid, the original task has not been completed.

    Layer 2: Check the Dependency Chain

    Split the proof into steps and record the premises, lemmas, and intermediate conclusions on which each step depends.

    Two types of errors deserve particular attention:

    • Circular reasoning: The proof of an auxiliary lemma actually depends on the target proposition.
    • Condition mismatch: A cited theorem is itself correct but does not apply to the current object.

    If the basis for a step cannot be explained, treat it as a node requiring review rather than assuming it is valid because the surrounding text is fluent.

    Layer 3: Check Local Derivations and Boundary Cases

    Check quantifiers, symbols, operation order, and object types item by item. Test empty objects, zero elements, low-dimensional cases, and examples in which assumptions fail.

    Boundary checks are not only for finding errors; they also help determine whether a condition is necessary. If a counterexample can be found after removing a condition, the role of that condition in the proof becomes clearer.

    Layer 4: Check Overall Readability

    After mathematical correctness has been established, check whether the lecture notes suit the target readers: Are definitions introduced in time? Is notation consistent? Do paragraphs explain the purpose of derivations? Are complex steps given necessary explanations?

    This order avoids spending too much polishing effort on content whose correctness has not yet been confirmed.

    5. Build Reproducible Evaluations Instead of Relying on a Single Success

    A single impressive case can show that a model has some capability, but it cannot show whether that capability is stable.

    A more reliable approach is to build a task set that covers different difficulty levels and error types. Each task should record its source, reference basis, acceptance conditions, and known pitfalls. For professional proofs, the reference answer can be a verified proof route; the model does not need to match it word for word.

    Evaluation should cover at least the following dimensions:

    Dimension Main Checks
    Correctness Are the conclusion and derivations valid?
    Completeness Are all cases covered? Are there critical gaps?
    Assumption awareness Are conditions used accurately, and are limitations identified?
    Reviewability Are dependencies and key steps clear?
    Presentation quality Are structure, terminology, and notation consistent?
    Stability Is the model still reliable after repeated runs or paraphrasing?
    Effective cost What is the total investment required for a qualified result?

    Correctness should be used as a priority gate, not simply averaged with formatting and speed. An output with a critical mathematical error cannot be rated as a qualified proof even if its presentation is good.

    Tests should also standardize task materials, output requirements, and available auxiliary conditions. If different models receive different context, budgets, or tool permissions, the final results can only be interpreted as performance under different configurations, not directly attributed to the models themselves.

    6. Reasoning Length Is Not a Capability Metric

    A longer explanation may contain more intermediate steps, but it may also contain repeated derivations, invalid branches, and post-hoc stitching. A shorter explanation may capture the key structure, or it may omit the genuinely difficult parts.

    Therefore, reasoning text length should not be used to evaluate mathematical ability. More important questions are:

    • Is each step necessary?
    • Are key jumps sufficiently justified?
    • Are failed routes correctly identified?
    • Can the final proof be independently reviewed?

    Evaluation should be based on verifiable output, not on speculation about the model’s invisible internal computation. “Concise” should mean removing redundancy while retaining all necessary argumentation, not simply reducing the number of words.

    7. Optimize Cost Around Effective Delivery, Not Balance Consumption

    When a quota is about to expire, users may easily treat “using it up as quickly as possible” as the goal. But consuming more quota does not mean obtaining more value.

    For professional tasks, cost can be measured with the following concept:

    Effective delivery cost = generation fees + waiting and scheduling costs + human review costs + rework costs incurred to obtain a qualified result.

    When aggregating multiple tasks, you can further calculate:

    Cost per qualified result = total effective delivery cost ÷ number of qualified results.

    Different platforms may calculate quotas under different rules. Therefore, the share of a monthly quota consumed by a task only reflects consumption under a specific account and usage condition; it cannot be directly converted into a universal value-for-money conclusion.

    Queuing also affects actual returns. For tasks with clear delivery deadlines, excessive waiting may cause the user to miss the usage window. Even if generation cost is low, the option may not be appropriate.

    A more reasonable budget strategy is task tiering:

    • Assign terminology explanations, structure organization, and formatting adjustments to lower-cost processing;
    • Allocate more budget to high-difficulty proofs, complex constraint checks, and critical error localization;
    • Generate long lecture notes only after the proof route has been confirmed;
    • Reserve quota and human time for final review;
    • Set stopping conditions for routes that have repeatedly failed.

    This is more likely to improve actual output than simply increasing output length.

    8. Build Workflows for Developers and Team Collaboration

    For developers or enterprise knowledge teams, mathematical reasoning is usually not an isolated need but part of a knowledge production process. The workflow can be divided into five stages:

    1. Task definition: Specify the target proposition, allowed background knowledge, reader level, and acceptance criteria.
    2. Route generation: First obtain definitions, dependencies, and a proof outline.
    3. Critical review: Have someone with relevant knowledge check high-risk steps.
    4. Content generation: After the route is approved, expand it into lecture notes, technical explanations, or training materials.
    5. Result capture: Record error types, revision process, actual cost, and final conclusion.

    Teams should also maintain a failure case library, focusing on missing conditions, fabricated lemmas, circular reasoning, and incorrect citations. Failure cases often expose systemic issues more clearly than successful examples and are better suited for subsequent regression testing.

    If a task involves unpublished research materials or internal documents, data usage permissions and processing boundaries should be confirmed first. Avoid uploading content that should not be shared externally in order to obtain reasoning assistance.

    9. Conclusion: Return Capability Evaluation to Evidence and Task Value

    Evaluating LLM mathematical ability cannot stop at “the answer is long,” “the lecture notes look good,” or “one run was impressive.” Reliable judgment requires task tiers, clear acceptance criteria, repeated testing, and independent review.

    For professional users, the most valuable role of a model is to help organize knowledge, propose routes, supplement explanations, and locate gaps. Whether it can take on higher-difficulty tasks should be determined by continuously accumulated verifiable results, not by a single experience or subjective ranking.

    Cost management should follow the same principle: the goal is not to consume quota, but to obtain more correct, complete, and reusable results within an acceptable time and budget.