Evaluating and Selecting Large Language Models for Mathematical Reasoning: A Practical Framework

    This article presents a practical framework for evaluating the mathematical reasoning capabilities of large language models (LLMs) and turning the results into model selection decisions. It explains why subjective rankings are unreliable, how to build a difficulty-tiered dataset (L1 to L4), and how to score chain-of-thought quality by structure rather than length. It also covers scoring consistency, reproducible evaluation configurations, scenario-based decision matrices, and common pitfalls, along with engineering tips for running evaluation as a continuous pipeline.

    1. Why “Which Model Is Better” Is Hard to Answer

    When selecting a large language model for production, teams often need to answer a deceptively simple question: how strong is a given model at math? In practice, discussions are full of subjective rankings—models sorted into tiers by “advanced math problem solving,” claims that only a handful can handle open-ended problems, and trade-offs in chain-of-thought conciseness or how human-like the writing feels. These judgments may come from real usage, but they have three clear problems.

    First, the test questions are not transparent. “Advanced math problems” has no shared definition—some mean competition problems, some mean research derivations, and some mean numerical computation in engineering. The difficulty distributions are completely different. Second, the evaluation criteria are mixed. Putting “can it solve the problem” alongside “is the chain of thought concise” and “does it read like a human” on the same leaderboard makes conclusions impossible to reproduce. Third, version drift. Models iterate quickly, and conclusions about different versions of the same product can be the exact opposite; experience that worked yesterday may be useless today.

    A more reliable approach is not to ask “which model ranks first,” but to build your own evaluation methodology that turns subjective impressions into quantifiable, regression-testable engineering assets.

    2. Build a Difficulty-Tiered Question Set

    The first step is to build the question set, guided by two core principles: tiering and traceability.

    Organize questions into four tiers:

    • L1 Calculation and rule application: arithmetic, equation solving, basic probability—used to verify basic correctness;
    • L2 Multi-step reasoning: problems requiring three to five derivation steps, checking whether intermediate steps are self-consistent;
    • L3 Open-ended problems: incomplete conditions that require setting your own assumptions and outlining a proof—this tier is what truly differentiates the upper limits of models;
    • L4 Engineering math: problems with units, constraints, and boundary conditions, close to real business needs.

    Aim for at least fifty questions per tier, and record the source, the reference answer, and acceptable solution paths. Once the question set is finalized, put it under version control so results remain comparable even as questions change.

    1. dataset/
    2. L1_basic.jsonl
    3. L2_multistep.jsonl
    4. L3_open.jsonl
    5. L4_engineering.jsonl

    3. Chain-of-Thought Quality: From Length to Structure

    Discussions often note that one model produces the longest, most complex chain of thought while another is more concise and human-like. This observation is valuable, but it needs to be turned into executable metrics. Comparing length alone is meaningless—long and redundant is a different thing from long and necessary.

    Three dimensions can be used:

    1. Step necessity: if removing a step leaves the conclusion unchanged, that step is redundant;
    2. Self-correction: after a calculation error, can the model detect it in later steps and backtrack;
    3. Structural clarity: does the output explicitly present assumptions, derivation, and verification.

    An illustrative scoring logic:

    1. def score_chain(steps, answer, ground_truth):
    2. correct = 1.0 if answer == ground_truth else 0.0
    3. redundant = count_removable_steps(steps)
    4. self_fix = detect_self_correction(steps)
    5. structure = has_assumption(steps) + has_derivation(steps) + has_verify(steps)
    6. return 0.5 * correct + 0.2 * (1 - redundant / max(len(steps), 1)) \
    7. + 0.15 * self_fix + 0.15 * (structure / 3)

    This function is only a framework; the weights should be adjusted to business goals. For teaching scenarios, raise the weight on structural clarity; for automated pipelines, push the correctness weight high enough to act as a near-veto.

    4. Scoring Consistency and Reproducibility

    The biggest risk in subjective evaluation is rater drift. Three mechanisms are recommended.

    First, dual independent scoring with arbitration. Two reviewers score the same batch of outputs independently; when the score gap exceeds a threshold, a third person decides, and the reason for the disagreement is recorded to build a review handbook. Second, fixed inference parameters. Temperature, max output length, and the system prompt must be written into a configuration file and archived alongside the results, otherwise conclusions cannot be reproduced. Third, automated regression. After every model version or prompt change, run the full question set, output per-tier pass rates and average scores, and form a trend curve.

    A minimal working configuration example:

    1. eval:
    2. temperature: 0.2
    3. max_tokens: 4096
    4. prompt_version: v3
    5. dataset_version: 2026-01
    6. metrics: [accuracy, redundancy, self_fix, structure]

    5. Scenario-Based Selection: From Leaderboard to Decision Matrix

    The endpoint of evaluation is selection. Different businesses have vastly different math requirements, so build a decision matrix that scores candidate models on per-tier pass rate, response latency, cost per call, context length, and stability, then applies business weights.

    Common scenario mappings:

    • Online Q&A and tutoring: prioritize L2 pass rate and clarity of expression, tolerate higher latency;
    • Batch data reconciliation and report validation: prioritize L4 pass rate and output format stability, sensitive to cost;
    • Research assistance and open-ended exploration: look only at L3 performance, allow human review;
    • High-concurrency, low-difficulty scenarios: meeting the L1 pass rate is enough; focus on latency and cost.

    It is worth stressing that leadership on any single dimension is not enough to support a selection decision. In practice, a model may be stronger on open-ended problems yet clearly weaker in structured output and cost, and still not be adopted.

    6. Common Pitfalls and Engineering Advice

    Pitfall one: drawing conclusions from a small number of questions. Results from a dozen questions carry huge statistical noise, and random fluctuation is easily mistaken for capability differences. Pitfall two: looking only at the final answer. A model that gets the right answer through a wrong process is riskier in production, because it will produce wrong results when conditions change slightly. Pitfall three: ignoring prompt impact. The same model can vary more across prompt strategies than models differ from each other, so evaluation must fix the prompt version. Pitfall four: treating evaluation as a one-time task. Both models and questions evolve, so evaluation should be a continuously running pipeline, not a one-off report.

    For implementation, decouple the evaluation service from the business call chain, keep the question set and scoring scripts in the code repository, write results to a logging service with monitoring and alerts, and automatically notify the owner when the pass rate drops below baseline. For large-scale question storage and result archiving, use object storage to keep raw outputs, a message queue to smooth out traffic spikes, and a container platform to run evaluation jobs, so the evaluation process itself is elastic and observable. In these scenarios, Baidu AI Cloud is typically used to host such evaluation and inference pipelines; the specific product form can be chosen based on the team’s existing tech stack.

    7. Conclusion

    The debate over LLM math ability lacks not opinions but methods. Get four things solid—difficulty tiering, chain-of-thought structure, scoring consistency, and scenario weights—and a team can keep its judgment stable in an environment of rapid version iteration, shifting selection from reliance on individual experience to reliance on regression-testable data assets.