Evaluating Mathematical Reasoning in Large Language Models and Optimizing Application Costs

    A practical guide to evaluating large language models on mathematical tasks, measuring correctness and proof validity, building reproducible test workflows, embedding independent verification, and improving overall delivery efficiency through task routing and cost control.

    1. Move Beyond “Which Model Is Stronger?” to “Which Tasks Can It Complete Reliably?”

    When discussing large language model capabilities, people often rank models based on a few personal experiences: one model seems better at mathematics, another explains concepts more naturally, and a third produces long answers but frequently drifts away from the question. These observations can provide useful evaluation clues, but they are not sufficient to support general conclusions.

    A model’s real-world performance depends not only on the model itself, but also on how the input is written, whether the context is complete, the reasoning budget, access to external tools, and service load. The same problem may produce different results when the model is asked to provide an immediate answer versus when it is allowed to check its work repeatedly and use computational assistance. Such outputs should not be compared directly without accounting for these differences.

    A professional evaluation should answer three questions:

    1. What type of task is the model facing? Routine calculations, competition-style proofs, and research exploration require different capabilities.
    2. Has the output been properly verified? Fluent language, rich terminology, and lengthy derivations cannot replace correctness checks.
    3. Does the model remain valuable under real-world constraints? A model may have an acceptable accuracy rate but still be unsuitable for a workflow if it has long queue times, high usage costs, or heavy review requirements.

    These questions correspond to capability boundaries, result reliability, and delivery efficiency. Omitting any one of them can distort the evaluation.

    2. Mathematical Capability Is Multidimensional

    2.1 Routine Calculations and Standard Methods

    This category includes algebraic operations, differentiation and integration, probability calculations, matrix operations, and applied problems with established solution procedures.

    The main evaluation question is whether the model can correctly understand the conditions, select an appropriate method, and complete the calculation. Common errors include misreading symbols, overlooking boundary conditions, using inconsistent units, and making mistakes in intermediate calculations.

    The final numerical answer should not be checked in isolation. A model may arrive at the correct answer through invalid steps, or use a correct method but make a local arithmetic error. Method correctness and result correctness should therefore be recorded separately to identify the actual source of improvement or failure.

    2.2 Multistep Reasoning and Rigorous Proofs

    This category requires the model to handle several interdependent conclusions, such as proving inequalities, analyzing recurrence structures, determining parameter ranges, or constructing counterexamples.

    The key question is no longer whether the model has written many steps, but whether each step follows legally from the premises. Typical weaknesses include:

    • Using an intermediate conclusion that has not yet been proved;
    • Treating a necessary condition as a sufficient condition;
    • Proving only a special case while claiming to cover the general case;
    • Assuming that an extremum exists without checking the domain and continuity;
    • Omitting important branches when case analysis is required.

    Proof-based tasks therefore require an independent standard for logical review rather than a simple comparison with the reference answer.

    2.3 Research Exploration and Open Problems

    Research-oriented tasks may not have established answers and may even involve unresolved problems. It is essential to distinguish between providing useful exploration and solving the problem.

    A model can help organize definitions, check simple cases, propose candidate lemmas, explore possible counterexamples, or identify weaknesses in a proof strategy. None of these actions means that the model has solved the research problem.

    When an output claims to solve an open problem, the first step should be to verify the problem’s precise statement and current research status. The proposed proof must then be checked for completeness and reviewed independently by experts. A claim supported by finite examples, numerical experiments, or polished formal language is not sufficient to establish a general result.

    Research assistance is worth evaluating, but it should not be combined with standard problem-solving accuracy into a single score.

    3. Conciseness and Correctness Are Separate Dimensions

    A short solution may capture the essential structure, or it may omit necessary reasoning. A long solution may cover boundary cases carefully, or it may contain repeated attempts and invalid derivations.

    The visible length of a derivation should not be used to infer the model’s internal reasoning process, and response length should not be treated as a direct measure of capability. A better approach is to check whether the output contains verifiable evidence:

    1. Are the conditions and objective clearly stated?
    2. Is the reason for choosing the main method explained?
    3. Are the intermediate steps that determine the conclusion included?
    4. Are exceptional cases and boundary conditions covered?
    5. Are proven conclusions, conjectures, and empirical observations clearly distinguished?

    In business workflows, the model can be asked to provide a solution explanation that is sufficient for verification rather than an unlimited chain of derivation. For example, it can first state the conclusion and necessary assumptions, then provide the key proof steps, and finally list the applicable scope and potential risks. This structure improves readability and supports human review.

    Natural language and human-like expression indicate a good interaction experience, but they do not establish logical validity. For mathematics and engineering tasks, communication quality and reasoning validity should be recorded separately.

    4. Build a Reproducible Evaluation Process

    4.1 Define Real Tasks Before Looking for Rankings

    Developers should collect representative problems from their own work, such as parameter estimation, formula derivation, algorithmic complexity analysis, constraint solving, and technical document validation.

    The test set should include both frequent routine tasks and less frequent but high-risk tasks. A benchmark containing only difficult problems cannot show whether a model can reliably handle everyday work. A benchmark containing only routine problems may overestimate its ability to solve complex tasks.

    Each problem should record its source, prerequisite knowledge, expected result, verification method, and error risk. For rewritten problems, confirm that the rewriting has not changed the original conditions.

    4.2 Standardize Inputs and Execution Conditions

    When comparing different configurations, keep the following conditions as consistent as possible:

    • Use the same problem statement and output requirements;
    • Clearly specify whether external search, computation, or code execution is allowed;
    • Maintain similar context and resource limits;
    • Record actual response times and failure cases;
    • Do not remove failed cases while retaining only successful examples.

    If one configuration can use external tools while another can only generate text directly, the comparison should be described as an evaluation of the overall solving workflow, rather than attributing all differences to mathematical capability.

    4.3 Run Multiple Tests and Preserve Uncertainty

    A single successful result does not demonstrate stable usability, and a single failure does not prove that a model has no relevant capability. Important tasks should be tested repeatedly to determine whether the results remain consistent.

    However, evaluators should not retry indefinitely until a correct answer appears and then treat that result as normal performance. The number of retries, selection rules, and additional costs should all be recorded.

    When the sample size is small, reports should clearly state that the evidence is limited. Fine-grained rankings with excessive decimal precision are not appropriate. The purpose of evaluation is to support specific usage decisions, not to create rankings that only appear precise.

    4.4 Track Results, Process Quality, and Delivery Performance Separately

    At minimum, consider the following metrics:

    Dimension Core Question Verification Method
    Result correctness Is the final conclusion valid? Reference answers, independent calculations, or expert review
    Proof validity Does the derivation contain logical gaps? Check each critical step
    Condition coverage Were constraints or branches omitted? Compare against the problem conditions and boundary cases
    Stability Does the model remain usable across repeated runs? Preserve records from multiple tests
    Readability Is the output easy to review? Check structure, notation, and reasoning density
    Delivery cost How many resources are required to complete the task? Track usage, waiting time, and human effort

    Whether these dimensions should be combined into a total score depends on the business context. High-risk tasks are often better handled with hard thresholds. For example, a critical proof error may make an output undeliverable rather than allowing polished writing to offset an invalid argument.

    5. Embed Verification into the Workflow

    For mathematical and engineering tasks, the priority should not be asking the model to “guarantee correctness,” but providing verification mechanisms that can detect errors.

    Calculated results can be checked through an independent calculation path. Candidate formulas can be tested against dimensional consistency, limiting cases, and special inputs. Generated program outputs can be tested, while proofs require review of key lemmas, applicability conditions, and logical dependencies.

    Sample testing and numerical validation usually provide only limited evidence. A formula that works for several inputs is not necessarily valid for all inputs. A counterexample can disprove a general statement, but failing to find a counterexample does not automatically prove the statement correct.

    Having the model review its own work can be useful, but self-checking is not independent verification. The same model may repeat the same error, and multiple automated outputs may share correlated biases.

    A more reliable workflow is:

    Task preparation → Model generation → Independent verification → Error localization → Retry when necessary → Human confirmation

    When verification resources are limited, prioritize the steps that determine whether the conclusion is valid instead of reviewing every sentence equally. Irreversible actions, high-risk calculations, and research-related conclusions should retain a human confirmation step.

    6. Real Costs Include More Than Usage Fees

    A common mistake when using large language models is to select unnecessary tasks simply to consume credits or quotas before they expire. This uses resources without necessarily creating value.

    A more useful cost analysis should measure the cost of completing an accepted deliverable, rather than focusing only on the price of a single call.

    A task may involve queueing, initial generation, error checking, retries, and manual revision. Even when individual calls are inexpensive, repeated failures can significantly increase the total cost. Similarly, a high-quality response may still be unusable if the waiting time exceeds the business’s tolerance.

    A simplified management metric is:

    Unit cost per effective delivery = Total task-related investment ÷ Number of accepted deliverables

    Total investment should include usage fees, human review effort, and business losses caused by waiting. Different types of investment must be converted into a consistent measurement framework before meaningful comparisons can be made.

    Response time should also be divided into queue waiting time, service processing time, and end-to-end latency. What users experience is the total time from task submission to receiving a usable result, not merely the time required to generate text.

    Remaining credits are best used for tasks with clear value, asynchronous execution potential, and easy acceptance criteria, such as structuring materials, reviewing historical answers, adding test cases, and preparing technical documentation drafts. When there is no real requirement, there is no need to create artificial work simply to use up a quota.

    7. Improve Overall Efficiency Through Task Routing

    Not every problem deserves the same level of resources. Tasks can be routed according to difficulty, failure risk, and verification cost.

    For low-risk tasks with clear structures, prioritize faster and less expensive configurations. For multistep reasoning tasks, provide complete conditions and increase verification. For research exploration, use small iterative steps, advancing one clearly defined question at a time.

    For example, a complex proof should not initially be framed as a request for a complete solution. A better sequence is to first check whether the statement is valid, then explore special cases, propose the key lemma, and finally assemble the proof. This decomposition helps identify errors earlier and reduces investment in invalid approaches, although it does not guarantee that every local result is correct.

    When queues are congested, use asynchronous submission, limit concurrency, set reasonable timeouts, and define retry limits. Retries should have a clear reason, such as a temporary execution failure. If the underlying problem lacks necessary conditions, submitting it repeatedly will usually not improve the result.

    Sensitive workflows should also begin with data classification. Limit the scope of submitted data, remove unnecessary identity information and business details, and establish management rules for call records, access permissions, and result retention.

    8. Conclusion: Evaluating a Model Means Evaluating a Verifiable Workflow

    Rigorous evaluation of large language models should not stop at personal impressions, response length, or a few successful attempts on difficult problems. Mathematical tasks should be categorized by type, tested under consistent conditions, and evaluated separately for result correctness, proof validity, stability, response time, and effective delivery cost.

    For research tasks, models are better treated as assistants for exploration and review rather than unverified sources of conclusions. In enterprise applications, the goal is not necessarily to find the model that is abstractly “strongest,” but to establish a workflow that consistently produces trustworthy results.

    Ultimately, the key question is whether a model can reliably reduce human effort and deliver genuinely usable work under clearly defined tasks, limited resources, and appropriate verification.