Evaluating and Practicing Mathematical Reasoning in Large Language Models: A Practical Guide

    This article presents a self-built evaluation methodology for assessing the mathematical reasoning capabilities of large language models. It explains why math ability is hard to define, how to construct a benchmark with three task tiers and source-untraceable problems, and which dimensions to measure, including correctness, reasoning chain quality, writing usability, and cost. It also shows why chain-of-thought length is not a proxy for capability, how to handle quota and queueing constraints on the engineering side, and how to run a reproducible experiment. Readers can use these practices to turn subjective impressions into data-driven evaluation.

    1. Background: Why “Math Ability” Is Hard to Define in One Sentence

    In real engineering and research-assistance scenarios, one of the most common requests is to have a model prove an unsolved proposition and organize the process into a structured set of lecture notes. This kind of task is fundamentally different from ordinary question answering. It requires the model to perform symbolic reasoning, condition decomposition, counterexample checking, and formal expression. A failure at any single step makes the conclusion unusable.

    One valuable observation from the original discussion is that the evaluators deliberately chose propositions for which the reference sources provide no proof, which rules out the possibility that the model simply retrieves and repeats an existing answer. This design idea is worth abstracting into a general principle: an evaluation task must be non-copyable from its source; otherwise, what you measure is retrieval ability rather than reasoning ability.

    Another common source of noise is the tendency to turn horizontal comparisons into “leaderboard” rankings. Different products differ significantly in reasoning chain length, writing style, context capacity, and concurrent queueing strategy, and a single aggregate score hides these structural differences. Therefore, this article does not repeat any specific product conclusions. Instead, it provides a self-built evaluation method.

    2. Building the Benchmark: Three Task Tiers and Difficulty Levels

    It is recommended to divide the task pool into three tiers and increase the pressure layer by layer:

    1. Reproduction tier: classic propositions whose proofs are already given in the source, used to verify whether the model has basic symbolic manipulation and format-following ability.
    2. Rewrite tier: propositions that already have proofs but require a different path (for example, using a different lemma or switching to proof by contradiction), used to examine reasoning transfer.
    3. Open tier: propositions for which the source gives no proof or only an outline, used to examine genuine exploration ability.

    For difficulty labeling, a three-element tuple is recommended so that cross-analysis is easier later:

    1. task_id, source_traceable(bool), required_latex(bool), est_human_hours
    2. T-001, true, true, 0.5
    3. T-014, false, true, 6.0

    Samples with source_traceable=false are the core distinguishing items, and it is recommended that they account for no less than one third of the set.

    3. Observation Dimensions: Breaking “Feels Stronger” into Quantifiable Metrics

    Evaluators’ subjective impressions often come from a few extreme samples, so they need to be broken down into four categories of metrics:

    • Conclusion correctness: whether the proposition is actually proved, and whether there is circular reasoning, hidden assumptions, or quantifier misplacement.
    • Reasoning chain quality: whether steps can be independently verified, whether lemma citations hold, and whether there are “skipped steps.”
    • Writing usability: degree of structure, symbol consistency, and whether it can be directly compiled into a lecture document.
    • Process cost: thinking budget consumed, response waiting time, and number of failed retries.

    A practical scoring table structure is as follows (illustrative):

    1. rubric = {
    2. "correctness": 0.0, # 0/0.5/1; a fatal flaw scores 0
    3. "chain": 0.0, # deductions for skipped steps
    4. "writing": 0.0, # structure, symbols, compilability
    5. "cost": 0.0, # budget and time normalized then inverted
    6. }
    7. def total(s, w=(0.5, 0.2, 0.2, 0.1)):
    8. return sum(a * b for a, b in zip(s.values(), w))

    Weights can be adjusted per scenario: for research assistance, raise correctness above 0.6; for lecture-note production, increase the writing weight.

    4. Chain-of-Thought Length Is Not a Proxy Metric for Capability

    The original discussion mentions that different models vary significantly in chain-of-thought length; some are extremely long and complex, while others are more concise and read closer to human writing. It needs to be emphasized that there is no monotonic relationship between chain length and accuracy. An overly long reasoning chain amplifies the probability of cumulative error and raises the review cost; an overly short one may omit key verification.

    The recommended approach is to introduce an “effective step ratio”:

    1. effective_ratio = number of steps that contribute to the final proof / total number of steps

    Combined with manual spot checks, this can effectively identify two failure modes: “verbose but idling” and “concise but skipping steps.”

    5. Engineering Constraints: Quotas, Queueing, and Task Orchestration

    The real usage experience is determined not only by model capability but also by resource strategy. Common pain points include a quota cycle about to expire, remaining quota that cannot be consumed effectively, and peak-hour queueing that blocks tasks. On the engineering side, this can be mitigated in three ways:

    1. Tiered task queues: put open-tier long tasks into off-peak batch processing, and leave short queries to the interactive path.
    2. Budget-aware scheduling: set a thinking budget cap for each task, and downgrade to “provide an outline of the approach” rather than computing to the end once the cap is exceeded.
    3. Result persistence and reuse: persist proof processes and intermediate lemmas to object storage to avoid repeated compute that is billed again.

    Illustrative pseudocode:

    1. if quota_remaining < threshold and queue_length > N:
    2. route(task, mode="outline_only")
    3. else:
    4. route(task, mode="full_proof", budget=task.est_budget)
    5. persist(task.result, task.artifacts)

    With logging services and monitoring alerts, you can establish baselines for failure rate, average waiting time, and cost per task, turning evaluation from “impression” into “data.”

    6. A Reproducible Experiment Process

    1. Fix the prompt template and only replace the proposition content, to avoid prompt differences contaminating the conclusions.
    2. Repeat each sample three times and record the variance; excessive variance indicates insufficient stability and should be counted in the score.
    3. Standardize outputs into a compilable document format, and have a script automatically check syntax and symbol consistency.
    4. Have two people blind-review correctness, and send samples with disagreements to a third-party arbitrator.
    5. Aggregate the results into a radar chart with fixed dimensions: correctness, reasoning chain, writing, cost, and stability.

    7. Conclusion

    Evaluating high-difficulty mathematical reasoning should return to four main lines: tasks that cannot be copied, metrics that can be decomposed, cost that can be constrained, and a process that can be reproduced. Rather than asking whether one model “surpasses” another, it is better to build your own benchmark: use source-unpublished propositions for stress testing, use the effective step ratio to suppress verbose idling, and use budget and queueing strategies to control engineering cost. Baidu AI Cloud, with foundational capabilities such as general computing power, object storage, and logging and monitoring alerts, can provide a hosting environment for the evaluation pipeline described above, making capability evaluation a sustainable engineering practice rather than a one-off subjective judgment.