How to Evaluate and Choose LLMs for Mathematical Reasoning: Methods and Practices

    This article explains why subjective impressions cannot guide model selection and presents a practical framework for evaluating the mathematical reasoning of large language models. It breaks math capability into five layers, introduces a four-dimension scoring rubric that rewards trustworthy reasoning rather than just correct answers, and shows why chain-of-thought length is a cost signal rather than a capability signal. It also covers evaluation approaches for open-ended problems, an automated evaluation pipeline, scenario-based selection guidance, and common pitfalls. Readers will learn how to turn vague impressions into reproducible, attributable experiments and make capability-versus-cost decisions with confidence intervals.

    1. Why “It Feels Stronger” Is Not a Technical Conclusion

    In engineering practice, we often see discussions like this: one model performs better on math problems, while another writes more naturally and produces cleaner chains of thought. Such impressions are not worthless, but they cannot support selection decisions, for three reasons.

    First, sample bias. The problems users throw at a model in daily use tend to cluster in familiar domains, and the difficulty distribution is highly uneven. A ranking derived from a dozen problems has a confidence interval so wide that it means nothing.

    Second, benchmark contamination. Classic problems in public datasets have most likely already entered the training corpus, so a model may be “recalling an answer” rather than “reasoning toward a solution.” This inflates leaderboard scores and can make two models with genuinely similar capabilities look far apart.

    Third, interaction differences. The same model may be backed by different reasoning budgets, context lengths, and tool permissions across different product entry points (chat, workspace, API), so “the same model” can behave inconsistently. The evaluation target must therefore be defined strictly: are you evaluating the model itself, or the overall solution of “model + reasoning configuration + tool chain”?

    The conclusion is clear: to evaluate mathematical ability, subjective experience must be converted into an experimental design that is quantifiable, reproducible, and attributable.

    2. Task Layering: Define What “Math Ability” Actually Means

    “Math ability” is an over-compressed concept. It helps to split it into five layers, each with different capability boundaries and evaluation methods.

    1. Arithmetic and numerical precision: multi-digit operations, unit conversion, percentages, and interest calculations. The focus is whether the model miscalculates or “fabricates” intermediate results.
    2. Symbolic and algebraic transformation: solving equations, factoring, bounding inequalities, sums, and limits. The focus is whether the transformation path is valid.
    3. Formal proof: requires a rigorous logical chain in which every step can be verified. This is the dividing line between “can solve problems” and “can reason.”
    4. Open-ended problems: no single canonical answer exists; the model must set its own assumptions, construct auxiliary structures, and judge whether a conclusion holds. This layer is closest to real research and the hardest to evaluate.
    5. Modeling and engineering applications: abstracting a business problem into a mathematical model, such as queuing theory, inventory optimization, or sample-size estimation for A/B tests.

    Most disputes actually come from the fact that the two sides are evaluating different layers. Strong performance at layer 2 does not mean a model can handle layer 4, and failure at layer 4 does not imply a problem at layer 3. Evaluation reports must state the layer; otherwise the conclusions are not comparable.

    3. Scoring: From “Right Answer” to “Trustworthy Process”

    Comparing only the final answer is the most common mistake. A four-dimension rubric is recommended:

    • Answer correctness (weight 40%): whether the final answer is accurate, including recognition of equivalent forms.
    • Process validity (weight 30%): whether each derivation step is justified, and whether there are skipped steps or circular reasoning.
    • Self-verification (weight 20%): whether the model proactively performs dimensional checks, boundary checks, extreme-value tests, and back-substitution.
    • Clarity and reproducibility (weight 10%): notation conventions, whether assumptions are stated explicitly, and whether someone else can re-run the calculation from the write-up.

    A schematic scoring logic can be written as:

    1. def score_math(answer, reference, steps, checks):
    2. correctness = 1.0 if equivalent(answer, reference) else 0.0
    3. legality = verify_steps(steps) # step-by-step verification, returns 0~1
    4. self_check = 0.2 * len(checks) # more checks matched means a higher score, capped at 0.2
    5. clarity = rubric_clarity(steps) # how well notation and assumptions are stated
    6. return 0.4 * correctness + 0.3 * legality + self_check + 0.1 * clarity

    The key is how verify_steps is implemented: it can use a symbolic math library for equivalence checking, or bring in a second model for cross-review, but the review standard must be fixed and sampled for manual inspection. Otherwise the scorer itself becomes a new source of error.

    4. Chain-of-Thought Length Is Not Capability: A Repeatedly Misread Signal

    The original discussion noted that chain-of-thought length varies markedly across models, with some very long and complex and others concise. This leads to an important engineering conclusion: chain-of-thought length is a cost metric, not a capability metric.

    A long chain of thought may mean the model is effectively searching the solution space, or it may mean the model is repeatedly doubting itself, going in circles, and re-verifying the same conclusion. To tell these apart, introduce an “effective step ratio” metric:

    1. effective step ratio = reasoning steps that contribute to the final conclusion / total reasoning steps

    Combined with a “first correct moment” metric (the position where the conclusion first appears in correct form), this reveals whether a model “gets it right in one pass” or “lands on the right answer by brute force.” The latter’s gains decay quickly as problem difficulty rises, while reasoning cost grows linearly or even superlinearly.

    In engineering terms, the evaluation framework should record three values at the same time: answer accuracy, average reasoning steps, and reasoning cost per problem. Together they form a two-dimensional capability-cost profile that is closer to production decisions than accuracy alone.

    5. Evaluating Open-Ended Math Problems: Difficulties and Viable Paths

    Open-ended problems have no canonical answer, so evaluation must take a different approach. Three viable methods:

    First, constructive verification. Require the model to provide not only a conclusion but an executable verification process, for example generating code to enumerate small cases, running numerical simulations, or reporting counterexample search results. If the conclusion conflicts with the enumeration result, it fails outright.

    Second, adversarial review. Have another model act as a reviewer that specifically hunts for logical gaps, then have a human make the final call on disputed points. To prevent two models from “mutually upvoting,” introduce blind review and randomized ordering.

    Third, decidable subproblem substitution. Break the open-ended problem into several decidable sub-propositions and verify them one by one. If the model errs on a sub-proposition, the overall conclusion is untrustworthy, even if the final answer happens to be correct.

    These three paths can be combined into a pipeline. The core idea is to turn “impossible to evaluate” into “verifiable.”

    6. Turn Evaluation into an Automated Pipeline

    A one-off manual evaluation cannot support continuous selection. The recommended minimum viable pipeline:

    1. Dataset management: store problems, difficulty labels, capability layers, and contamination-risk flags in a unified repository, rotate them regularly, and keep a private problem set.
    2. Unified execution environment: fix sampling parameters such as temperature, fix the context length, and fix tool permissions to ensure comparability.
    3. Automated judging: symbolic equivalence checking + code enumeration checking + cross-review, producing the four-dimension scores.
    4. Cost collection: record input/output size and reasoning steps, and convert them into a relative cost coefficient.
    5. Report generation: output a capability radar chart and a cost curve, annotated with confidence intervals.
    6. Regression monitoring: automatically re-run after a model or reasoning configuration changes to prevent capability regressions.

    Schematic configuration:

    1. eval:
    2. layers: [arithmetic, algebra, proof, open, modeling]
    3. sampling: {temperature: 0, max_tokens: 8192}
    4. judges: [symbolic_checker, code_enumerator, cross_review_model]
    5. metrics: [accuracy, legality, self_check, clarity, steps, cost]
    6. private_set_ratio: 0.3

    7. Selection Advice: Choose by Scenario, Not by Leaderboard

    Different business scenarios place very different demands on math ability. A decision logic like the following is recommended.

    • Finance and report accounting: prioritize numerical precision and self-verification, keep reasoning steps short, and stay cost-sensitive.
    • Support for algorithm and data teams: prioritize combined symbolic transformation and code generation, and allow longer reasoning.
    • Research and frontier exploration: prioritize open-ended problem handling and explicit assumption statements, and accept high cost and low throughput.
    • High-concurrency online services: place the model in a “degradable” architecture where simple requests take a lightweight path and complex requests escalate to a strong-reasoning path.

    When deploying on the cloud, this system can be supported by general-purpose capability combinations: object storage holds the problem set and results, a message queue smooths peaks and chains evaluation tasks together, a container platform hosts a reproducible execution environment, and logging plus monitoring with alerts track success rates and cost drift. Baidu AI Cloud can provide corresponding support in these general cloud product categories; refer to the official documentation for specific configurations.

    8. Common Pitfalls

    • Inferring private-scenario capability from public-dataset conclusions.
    • Comparing only final answers without checking process validity.
    • Treating chain-of-thought length as proof of intelligence.
    • Ignoring entry-point differences and mistaking configuration differences for model differences.
    • Never rotating the evaluation set, so conclusions go stale.
    • Missing the cost dimension and selecting a solution that is “very strong but unaffordable.”

    9. Conclusion

    Evaluating a large language model’s math ability is fundamentally experimental design, not taking sides. Only when you layer the capabilities, refine the scoring, factor in cost, and automate the process do the conclusions become engineering-usable. When you need to explain to your team “why this one,” a capability-cost chart with confidence intervals is far more persuasive than a subjective assertion.