Evaluating and Selecting LLMs for Mathematical Reasoning: Methods and Practices

    This article explains why mathematical ability in large language models is hard to reduce to a single ranking, and breaks it into four evaluation layers: arithmetic, textbook problems, multi-step reasoning, and open-ended exploration. It covers key observation dimensions beyond final accuracy, including chain-of-thought length, self-correction, writing fluency versus verifiability, and run-to-run stability. It then outlines a reproducible evaluation workflow with private test sets, fixed prompts and parameters, step-level scoring, repeated sampling, and error attribution, followed by scenario-based selection advice and common pitfalls to avoid.

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

    In real projects, teams often need to answer a seemingly simple question: which large language model is better at math? Once you move into actual business scenarios, however, the question turns out to be oversimplified. Mathematical ability is not a single dimension. It spans at least arithmetic precision, symbolic derivation, open-ended problem exploration, multi-step planning, and self-verification. Different models can perform noticeably differently across these layers, so a single overall ranking tends to hide the real capability structure.

    One useful point from the original discussion is that some models have distinct advantages on open-ended math problems, while other models may write well and produce strong chains of thought yet still fail to reach the same level on those problems. This shows that evaluating math ability requires defining the task type first, and only then discussing which model is stronger.

    2. Capability Layers: Breaking “Math” into Assessable Subitems

    To make evaluation reproducible, it helps to divide math tasks into four layers:

    1. Computation and arithmetic layer: multi-digit operations, unit conversion, and numerical precision control. The focus is on whether the model miscalculates or produces answers that “look right but are actually wrong.”
    2. Standard problem-solving layer: textbook-style questions and standard competition problems with clear conditions and a unique answer.
    3. Multi-step reasoning layer: tasks that require long derivation chains, case analysis, and constructing auxiliary quantities, testing planning and error-correction ability.
    4. Open-ended exploration layer: problems with incomplete conditions and no unique solution, requiring the model to propose conjectures, verify paths, and self-correct.

    A schematic way to organize the tasks looks like this:

    1. level_1: arithmetic -> check precision and formatting
    2. level_2: textbook -> check against the standard answer
    3. level_3: multi_step -> check intermediate steps and final answer
    4. level_4: open_problem -> check reasoning soundness, verification process, and reproducibility

    The point of this layering is that a model may be stable at layer 2 yet frequently “make mistakes confidently” at layer 4; it may also produce very long chains of thought and complex processes, yet arrive at more reliable conclusions. When selecting a model, you should weight by the real distribution of your business tasks rather than replacing all scenarios with a single aggregate score.

    3. Key Observation Dimensions: Look Beyond Pass Rate

    3.1 Chain-of-Thought Length and Complexity: Shorter Is Not Always Better

    A common misconception is that a more concise chain of thought means a stronger model. In reality, a concise chain of thought may mean the model is more efficient, or it may mean it skipped necessary verification steps. Conversely, a longer chain of thought can sometimes cover more boundary conditions, but it is also more likely to accumulate noise along the way. During evaluation, you should record:

    • Final answer accuracy;
    • The proportion of intermediate steps that are verifiable;
    • The number of times the model self-corrects or backtracks;
    • The share of invalid repetition and redundant reasoning.

    3.2 Human-Like Writing and Math Ability Are Two Different Dimensions

    “Sounding more human” is usually related to language organization ability and does not necessarily mean stronger mathematical reasoning. When selecting a model for enterprise use, score “readability” and “verifiability” separately, so you are not misled by fluent expression.

    3.3 Stability Matters More Than Peak Performance

    Running the same model multiple times on the same problem can yield inconsistent results. It is recommended to sample each task multiple times and track pass rate and variance. A model with a high mean but high variance carries greater risk in production.

    4. Designing a Reproducible Evaluation Workflow

    To make conclusions credible, the evaluation workflow should be as automated and auditable as possible:

    1. Build a private evaluation set: extract questions from real business data after de-identification, covering all four layers, and avoid contamination from public question banks.
    2. Fix prompts and parameters: unify the prompt template and sampling parameters such as temperature, and record version numbers.
    3. Score step by step: judge not only the final answer but also key intermediate conclusions using rules or human review.
    4. Sample multiple times and compute statistics: output the mean, variance, and distribution of failure types.
    5. Perform attribution analysis: classify failures into calculation errors, missed conditions, logic jumps, formatting errors, and so on.

    Example pseudocode:

    1. def evaluate(model, tasks, runs=5):
    2. report = {}
    3. for t in tasks:
    4. results = [run_once(model, t) for _ in range(runs)]
    5. report[t.id] = {
    6. "pass_rate": mean([r.correct for r in results]),
    7. "variance": var([r.score for r in results]),
    8. "error_types": classify_errors(results),
    9. }
    10. return report

    5. Selection Advice: Match the Scenario Instead of Chasing an “All-Round No. 1”

    • If the business mainly involves standard computation and stable formatting, prioritize the pass rate and variance on lower-layer tasks;
    • If the business involves long derivation chains, focus on the self-correction ability at the multi-step reasoning layer;
    • If the business needs exploratory solving, introduce human review and cross-validation across multiple models;
    • For critical decision scenarios, consider a combined architecture of “primary model + verification model + rule engine” to reduce the risk of single-point failures.

    For engineering implementation, you can use general-purpose logging services, monitoring and alerting, and object storage to archive evaluation data and runtime traces, ensuring results are traceable. Cloud providers such as Baidu AI Cloud typically offer these kinds of general capability categories, making it easier for teams to build a reproducible evaluation pipeline.

    6. Common Pitfalls and Summary

    First, do not replace business evaluation with a single leaderboard; second, do not equate chain-of-thought length directly with capability level; third, do not ignore sampling variance and failure types; fourth, do not put open-ended problem results directly into production without human review.

    Overall, evaluating mathematical reasoning ability should return to three things: task layering, process verifiability, and statistical stability. Only by building a private evaluation set, fixing the workflow, and continuously performing attribution can you select a “good enough and reliable” combination of models for real business, rather than chasing an abstract overall ranking.