LLM Math Reasoning Evaluation and Model Selection: A Practical Guide

    This guide explains why informal model rankings are unreliable for math and complex reasoning tasks, and how to build a reproducible evaluation system instead. It covers splitting math capability into four measurable layers (L1–L4), constructing a contamination-resistant and stratified test set, using symbolic equivalence, numeric sampling, and rubric-based process review for answer judging, controlling sampling, prompt, length, judging, and contamination biases, and mapping scores to latency, cost, and availability constraints through tiered routing. It also highlights process reliability mechanisms such as self-consistency checks, backward verification, and step-level auditing, followed by a step-by-step rollout workflow. The goal is a traceable selection methodology based on your own question distribution, cost budget, and latency limits rather than anecdotal claims.

    1. Why “Gut-Feel Rankings” Are Not Reliable

    In real engineering work, teams often need to answer a deceptively simple question: for open-ended math and complex reasoning tasks, which class of model should we choose? What circulates in the community is usually scattered, experience-based ordering—for example, one model is slightly stronger than another, or a given product sits between two generations. Such conclusions share three common flaws:

    1. Invisible samples: no information about where the questions come from, how difficulty is distributed, or how many there are.
    2. Uncontrolled process: temperature, maximum output length, whether extended thinking is enabled, and the prompt template are all left unfixed.
    3. Incomparable metrics: “final answer accuracy” is conflated with “readability of the reasoning process.”

    So instead of arguing about who ranks where, it is better to build your own evaluation system. Below is a plan you can put into practice directly.

    2. Capability Layers: Breaking “Math Ability” into Measurable Dimensions

    A vague claim of being “good at math” has no engineering value. It is advisable to split it into at least four layers:

    • L1 Calculation and symbolic manipulation: arithmetic, algebraic transformation, equation solving; measures stability and the rate of low-level mistakes.
    • L2 Multi-step chain reasoning: derivations requiring 5–15 steps; measures whether intermediate steps are self-consistent.
    • L3 Open-ended problem construction: problems with no single standard procedure, requiring modeling before solving; measures strategy selection.
    • L4 Long chains and self-verification: whether the model can detect its own contradictions in very long derivations and backtrack to correct them.

    The core of the original discussion actually falls on L3 and L4: the ability to handle problems that have “no standard solution template” is what distinguishes models. Most models are already close to saturation on L1, and the differences show up mainly at L3/L4.

    3. Building the Evaluation Set: Layered, Contamination-Resistant, Reproducible

    3.1 Stratified Sampling

    Prepare 50–100 questions for each of L1–L4, and annotate difficulty along two dimensions: the “minimum number of reasoning steps required” and “whether a constructive idea is needed.” Avoid using public question banks exclusively; keep more than 30% private questions to reduce inflated scores caused by memorization.

    3.2 Answer Judging

    Judging math answers cannot rely on string matching alone. Three parallel paths are recommended:

    1. def judge(pred, gold):
    2. # 1) Symbolic equivalence: compare after simplification
    3. if symbolic_equal(pred, gold):
    4. return "correct"
    5. # 2) Numeric sampling: substitute sample points within an interval
    6. if numeric_sample_equal(pred, gold, points=20):
    7. return "correct"
    8. # 3) Process review: scored by a stronger model or humans against a rubric
    9. return process_review(pred, gold) # 0~1 score

    The rubric for process review should include: whether assumptions are explicitly stated, whether key lemmas are correct, whether circular reasoning exists, and whether the conclusion is consistent with the assumptions.

    3.3 Controlling Variables

    Run the same model at least 3 times with different random seeds, and report the mean and variance. A model with excessive variance carries higher risk in production and is not suitable for automated pipelines even if its mean looks good.

    4. Common Evaluation Biases and Fixes

    Bias Type Symptom Fix
    Sampling bias Occasional correctness from a single generation Average over multiple samples and report confidence intervals
    Prompt bias Score drift caused by different prompt templates Fix the template and run a separate template sensitivity test
    Length bias Longer chains of thought mistaken for stronger ability Use “accuracy per 1K tokens” as an auxiliary metric
    Judging bias Numerically approximate answers judged wrong Add dual verification via symbolic equivalence and numeric sampling
    Contamination bias Public questions memorized Keep private questions at no less than 30%

    A practical technique is “counterfactual rewriting”: apply equivalent transformations to the numbers, variable names, and the order of conditions, then re-test. If the score drops noticeably, the model relies on surface patterns rather than real reasoning.

    5. Cost and Latency: Mapping Scores to Engineering Constraints

    Evaluation scores are only an input; the final decision must layer on three constraints:

    1. Latency budget: interactive scenarios usually require controllable time-to-first-token, and long chains of thought significantly lengthen response time.
    2. Cost per call: long outputs are billed per token, and L4 questions can cost tens of times more than L1.
    3. Availability: rate limiting, retries, and fallback strategies must be in place.

    The recommended approach is tiered routing rather than using the strongest model globally:

    1. def route(question):
    2. if estimate_difficulty(question) <= 2: # L1/L2
    3. return "small_model"
    4. elif need_long_chain(question): # L3
    5. return "mid_model_with_reasoning"
    6. else: # L4
    7. return "strong_model_with_verification"

    Combined with caching (reuse results directly for identical questions and parameters), batching (offline evaluation goes through an asynchronous queue), and persisting results (object storage + logging service + monitoring and alerting), you can push cost into an acceptable range without sacrificing quality.

    6. Process Reliability: More Important Than Answer Accuracy

    What production environments fear most is “right answer, wrong process,” because such errors cannot be caught by automated checking and get amplified in chained calls. Three mechanisms are recommended:

    • Self-consistency checking: take the majority conclusion across multiple samples and check whether the individual paths contradict each other.
    • Backward verification: substitute the conclusion back into the original conditions and check whether all constraints are satisfied.
    • Step-level auditing: score key steps individually to locate weak points and produce a basis for model improvement or prompt optimization.
    1. Determine whether the business needs L2 or L3/L4, and avoid paying for capabilities you do not need.
    2. Build a private evaluation set of 200–400 questions, with fixed judging scripts and prompt templates.
    3. Run a regression once a week, recording mean, variance, average output length, and cost per call.
    4. Establish routing and fallback strategies, and drive threshold adjustments with monitoring metrics.
    5. Document the evaluation results to form a traceable basis for selection rather than verbal conclusions.

    8. Conclusion

    On the debate about “which model is stronger at math,” the real engineering answer is: under your question distribution, cost constraints, and latency budget, which combination is the most stable. Splitting capability into layers, making judging rigorous, keeping biases under control, and accounting for cost clearly is the reusable methodology. If you need to host evaluation data and results, you can build a closed loop with general-purpose cloud capabilities such as object storage, message queues, container platforms, and monitoring and alerting; platforms such as Baidu AI Cloud typically offer these general categories, making it easy for teams to assemble them as needed.