How to Systematically Evaluate the Mathematical Reasoning and Generation Capabilities of Large Language Models

    This article explains why evaluating large language models (LLMs) cannot rely on surface-level metrics such as price, speed, and single-shot output quality. It proposes shifting the evaluation goal from "which model is strongest" to "which model is the best fit for the task," and walks through a multi-dimensional metric system covering correctness, rigor, verifiability, expression quality, and cost-efficiency. It details how to evaluate mathematical reasoning through question tiering, anti-memorization testing, and a combination of automated scoring and human review, and how to assess long-form lecture generation across structure, logical coherence, formula conventions, and budget control. It also covers total cost of ownership, a reusable evaluation workflow, engineering practices such as model routing and monitoring, and common pitfalls. Readers will gain a practical framework for making reliable, reusable technical decisions about which models are genuinely usable in real business scenarios.

    1. Background: Model Evaluation Cannot Rely on a Single Metric

    In engineering practice, many teams focus on three surface-level indicators when choosing a large model: price, speed, and single-shot generation quality. But on high-difficulty tasks—such as mathematical proofs, research lecture writing, complex reasoning, and long structured writing—single-point metrics often fail to reflect real usability.

    Take “generating a high-difficulty math lecture” as an example. It may look like simple text generation, but it actually involves at least the following capabilities:

    1. Understanding the proposition: The model must accurately identify the definitions, conditions, goals, and boundary conditions in the problem.
    2. Constructing a reasoning chain: The model must perform the logical derivation from known conditions to the target conclusion, rather than simply producing a result.
    3. Organizing document structure: A lecture needs modules such as background, definitions, theorems, proofs, examples, and a summary.
    4. Keeping formulas and terminology consistent: Symbols, variables, subscripts and superscripts, and derivation steps in mathematical expressions must remain stable.
    5. Controlling cost and time: A long reasoning chain may consume more context, generation length, and waiting time.
    6. Supporting verifiability: Users need to judge whether a proof has gaps and whether it can be reviewed or reused.

    Therefore, evaluating a model should not stop at asking “is it strong enough?” It should further ask: strong on which tasks? by how much? at what cost? with what stability? and is it suitable for the business workflow?

    2. Evaluation Goals: From “Which Is Stronger” to “Which Is a Better Fit”

    Traditional evaluations often present conclusions in the form of leaderboards, but in real applications, task fit matters more. Different models or configurations usually have different strengths: some produce concise output suited to quick Q&A; some build longer reasoning chains suited to complex proofs; some are lower-cost and suited to high-frequency calls; some are more stable and suited to production environments.

    It helps to break the evaluation goals into four categories:

    1. Capability goals: Whether the model has the reasoning, writing, coding, or mathematical ability required for the target task.
    2. Quality goals: Whether the output is correct, complete, maintainable, and reusable.
    3. Efficiency goals: Whether the task can be completed within an acceptable time.
    4. Cost goals: Whether the total cost of a single task, a batch of tasks, or a long-term subscription is controllable.

    On this basis, the goal is not to simply pursue the “strongest model” but to establish a tiered strategy: use lightweight configurations for simple tasks, higher-capability configurations for complex tasks, prioritize cost optimization for offline batch tasks, and prioritize quality and stability for high-value online tasks.

    3. Building a Multi-Dimensional Evaluation Metric System

    To make evaluation results reusable and comparable, subjective impressions must be translated into quantifiable metrics. This can be approached across the following dimensions.

    3.1 Correctness Metrics

    Correctness includes:

    • Whether the final conclusion is correct;
    • Whether the reasoning steps are complete;
    • Whether there are logical jumps;
    • Whether problem conditions are ignored;
    • Whether there are incorrect citations;
    • Whether there are factual errors.

    For math tasks, accuracy cannot be judged by the final answer alone; the derivation process must also be examined. A model may reach a correct conclusion by chance while its intermediate steps are wrong; or it may produce a correct answer that is poorly articulated.

    3.2 Rigor Metrics

    Rigor concerns whether the model expresses things like professional text:

    • Whether it first states definitions or assumptions;
    • Whether it references defined symbols in its proof;
    • Whether it states lemmas, theorems, and boundary conditions;
    • Whether it distinguishes “sufficient conditions” from “necessary conditions”;
    • Whether it avoids vague expressions such as “obviously,” “it follows that,” or “approximately holds.”

    3.3 Verifiability Metrics

    High-value tasks especially require verifiability:

    • Whether the generated content can be reviewed by humans;
    • Whether it can provide intermediate steps;
    • Whether it can be checked against a reference answer;
    • Whether it can identify and cite external material;
    • Whether it can avoid directly copying existing content;
    • Whether it can clearly indicate uncertain parts.

    For research writing or math lectures, a model should not merely “look like an answer”; it should be auditable.

    3.4 Expression Quality Metrics

    Expression quality includes:

    • Whether the section structure is clear;
    • Whether paragraphs are coherent;
    • Whether terminology is consistent;
    • Whether formula formatting is standard;
    • Whether the language is natural;
    • Whether there is repetition, redundancy, or template-like expression.

    If the output is used for lectures, reports, or teaching material, expression quality directly affects the reading experience and maintenance cost.

    3.5 Cost and Efficiency Metrics

    Cost is not just the call fee; it also includes:

    • Average response time;
    • Time to first token;
    • Long-text generation time;
    • Cost of failure retries;
    • Human proofreading cost;
    • Quota consumption;
    • Waiting cost from queuing or rate limiting.

    A model that is cheap per call may actually cost more overall if it frequently requires retries, human corrections, or long waits.

    4. Methods for Evaluating Mathematical Reasoning

    Mathematical reasoning is an important window for observing a large model’s depth of capability. Unlike ordinary Q&A, mathematical proofs demand greater stability from the model.

    4.1 Tiering the Problems

    It is recommended to divide math evaluation problems into four tiers:

    1. Basic computation problems: Testing arithmetic, algebraic manipulation, and the use of basic formulas.
    2. Standard reasoning problems: Testing theorem application, condition transformation, and common proof methods.
    3. Comprehensive proof problems: Testing multi-step reasoning and the combination of knowledge across sections.
    4. Open exploration problems: Testing the model’s ability to analyze, generalize, and hypothesize when material is insufficient.

    Different tiers correspond to different capabilities and should not be mixed with the same weight.

    4.2 Setting Up “Anti-Copying” Tests

    If the model can access or memorize public material, evaluations should avoid merely verifying “whether it can recite the answer.” The following approaches can be used:

    • Changing the problem parameters;
    • Renaming variables;
    • Reordering conditions;
    • Asking the model to fill in derivation details;
    • Asking the model to explain the basis for each step;
    • Comparing the overlap between the model’s output and public text.

    The goal is to determine whether the model is doing “retrieval-based paraphrasing” or genuinely organizing reasoning.

    4.3 Combining Automated Scoring with Human Review

    Automated scoring is suited to handling large-scale problems but struggles to judge deep logic. Human review is suited to high-quality samples. A recommended process is as follows:

    1. The model generates answers;
    2. The system records time taken, length, format, and number of retries;
    3. Automated checks verify whether key steps are present;
    4. Humans sample-check correctness;
    5. Failed cases are analyzed for root causes;
    6. Error types are accumulated into the evaluation set.

    4.4 Example Scoring Record

    The following structure can be used to record evaluation results:

    1. Evaluation record {
    2. Problem ID: Math-comprehensive-001
    3. Prompt version: v1.2
    4. Number of generations: 3
    5. Correct-answer ratio: 2/3
    6. Step completeness rate: 90%
    7. Number of formula errors: 1
    8. Average time taken: 42s
    9. Average generation length: 1800
    10. Overall score: 82
    11. Failure reason: Ignored boundary conditions
    12. }

    This structure makes it convenient to later compare the effects of different models, prompt versions, and parameter configurations.

    5. Evaluation Focus for Long-Form Lecture Generation

    If the task is not to answer a single problem but to generate a complete lecture, the evaluation focus must expand from “is the answer correct” to “is the document high quality.”

    5.1 Structural Completeness

    A high-quality lecture usually includes:

    • Title and abstract;
    • Background explanation;
    • Core definitions;
    • Known conclusions;
    • Target proposition;
    • Proof process;
    • Worked examples;
    • Common pitfalls;
    • Summary and further reading.

    Whether the model has long-form organization ability directly affects whether the content reads as usable material.

    5.2 Logical Coherence

    Long-form generation is prone to contradictions, symbol drift, and repeated sections. Evaluation should check:

    • Whether the same variable uses the same symbol;
    • Whether the assumptions in a previous section are correctly used in a later one;
    • Whether the proof stays focused on the target;
    • Whether there is irrelevant expansion;
    • Whether key steps are suddenly skipped.

    5.3 Formula and Expression Conventions

    Math lectures impose high demands on formatting. The model should be able to:

    • Correctly use subscripts and superscripts;
    • Distinguish objects such as sets, functions, mappings, and matrices;
    • Keep formulas consistent with the surrounding text;
    • Avoid errors from mixing formulas and text;
    • Explain complex formulas step by step.

    This does not require relying on a specific typesetting tool; the focus should be on the model’s structural capability and its stability in mathematical expression.

    5.4 Quota and Length Control

    Long reasoning and long output often consume more quota. In practice, boundaries should be set:

    • Maximum generation length;
    • Maximum number of reasoning steps;
    • Per-task budget cap;
    • Timeout and retry policy;
    • Result caching strategy;
    • Layered output strategy.

    For example, the model can first generate an outline and then expand it section by section; or first generate a short version and then expand it on demand. This reduces the uncontrollable cost of a single long-form generation.

    6. Combined Evaluation of Cost and Business Value

    Many teams fall into a misconception during evaluation: comparing only the unit price while ignoring the total cost. In real business, cost is composed of multiple factors.

    6.1 Direct Cost

    Direct cost includes call fees, subscription fees, and quota consumption. For high-frequency tasks, direct cost is very sensitive; for low-frequency, high-value tasks, direct cost may not be the primary factor.

    6.2 Time Cost

    If a model generates very slowly or requires queuing, user waiting time increases. For interactive products, response time directly affects the experience; for offline tasks, the latency requirement is lower but still affects the delivery cycle.

    6.3 Rework Cost

    A model’s output is not always directly usable. If there are many errors requiring manual fixes, a plan with a lower surface cost may produce a higher total cost. Rework cost includes:

    • Correcting wrong proofs;
    • Adjusting language style;
    • Filling in missing steps;
    • Cleaning up repeated content;
    • Verifying formulas and facts.

    6.4 Operations Cost

    The production environment also requires consideration of:

    • Logging;
    • Monitoring and alerting;
    • Failure retries;
    • Content moderation;
    • Data security;
    • Version regression;
    • Evaluation set maintenance.

    Without engineering capabilities, even a strong model is difficult to deploy reliably.

    To form a reusable evaluation mechanism, the following workflow can be used as a reference.

    Step 1: Define Typical Tasks

    Do not use vague goals such as “intelligent Q&A”; instead, define specific tasks, for example:

    • Generating an English or Chinese lecture from a given math proposition;
    • Generating a function description from a given coding requirement;
    • Generating a summary from a given long document;
    • Generating a structured report from a given business question;
    • Generating a diagnostic analysis from a given error case.

    Step 2: Build the Evaluation Set

    The evaluation set should cover:

    • Basic tasks;
    • Medium-difficulty tasks;
    • High-difficulty tasks;
    • Boundary tasks;
    • Variant tasks that are easy to get wrong;
    • High-risk tasks that require human review.

    Step 3: Fix the Input Conditions

    The same evaluation should control variables as much as possible:

    • Fix the prompt;
    • Fix input and output lengths;
    • Fix the number of samples;
    • Fix the evaluation version;
    • Fix the scoring criteria.

    Otherwise, comparisons between different models lose meaning.

    Step 4: Sample Multiple Times

    A single generation is easily affected by randomness. It is recommended to sample each problem multiple times and observe:

    • Fluctuation in accuracy;
    • Output stability;
    • Average time taken;
    • Average cost;
    • Worst-case performance.

    Production environments should focus on the worst-case performance, not the best-case performance.

    Step 5: Summarize and Analyze

    Summary results can be presented across the following dimensions:

    • Accuracy for each task;
    • Average response time;
    • Average generation length;
    • Average quota consumption;
    • Human scores;
    • Common error types;
    • Cost ranking;
    • Stability ranking.

    Step 6: Establish a Regression Mechanism

    After a model or prompt changes, the evaluation set should be re-run. Otherwise, it is hard to tell whether the new version is an improvement or a regression.

    8. Engineering Implementation Suggestions

    If the evaluation is to enter the production environment, engineering capabilities must be considered.

    8.1 Model Routing

    Different tasks can be routed to different capability configurations:

    • Simple Q&A uses a low-cost configuration;
    • Complex reasoning uses a high-capability configuration;
    • Offline batch tasks prioritize cost optimization;
    • Online high-value tasks prioritize stability.

    8.2 Result Caching

    For tasks with a high repetition rate, results can be cached. The caching strategy should account for business timeliness to avoid returning stale content.

    8.3 Monitoring and Alerting

    The following should be recorded:

    • Call success rate;
    • Timeout rate;
    • Average time taken;
    • Generation length;
    • Error types;
    • Proportion of human corrections;
    • Cost changes.

    8.4 Security Moderation

    Generated content may involve sensitive information, incorrect facts, or inappropriate expressions. Production systems should add a moderation mechanism to block or route high-risk content for human review.

    8.5 Data Desensitization

    Evaluation data may contain user input or business information. Before entering the evaluation set, it should be desensitized to avoid sensitive information entering logs or long-term storage.

    9. Common Pitfalls

    Pitfall 1: Looking Only at a Single Run

    Model output is stochastic. One excellent result does not mean stable usability. Fluctuation should be observed through multiple samplings.

    Pitfall 2: Comparing Only Price

    A low-price model that frequently errs can lead to higher rework costs. High-value tasks should prioritize quality and verifiability.

    Pitfall 3: Ignoring Long-Form Capability

    Some models perform well on short answers but produce structural chaos, repetition, or logical breaks in long-form generation. Long tasks need to be evaluated separately.

    Pitfall 4: Treating “Looks Like the Correct Answer” as “Is the Correct Answer”

    Fluent language does not equal correct logic. Mathematical proofs, technical reports, and code designs all require fact-checking and logical verification.

    Pitfall 5: Ignoring Cost Boundaries

    If a task requires large amounts of long-form generation, length, count, and budget limits must be set in advance; otherwise, it is easy to waste resources.

    10. Conclusion

    Evaluating large models should not stop at a simple judgment of strength; it should build a systematic method around real tasks. Especially in scenarios such as high-difficulty mathematical reasoning, long-form lecture generation, and research writing, a model’s value is reflected not only in whether a single output looks good, but also in correctness, rigor, stability, cost controllability, and engineering maintainability.

    A practical evaluation framework should include: defining clear task goals, designing metrics in layers, running multiple samplings, combining automated scoring with human review, accounting for costs, monitoring and alerting, and continuous regression. Only in this way can a technical team shift from “the model looks strong” to “the model is genuinely usable in business,” and make more reliable, reusable technical decisions.