LLM Math Reasoning Evaluation Methods and Model Selection Practices

    This article explains why subjective impressions are insufficient for evaluating LLM math reasoning, and presents an engineering approach based on measurable dimensions, private benchmark construction, evaluation workflows, metrics, common pitfalls, and practical rollout recommendations.

    1. Why “I think this model is stronger” is not a valid conclusion

    In discussions about model capability, the most common judgment method is subjective experience: run a few problems you have already solved and form a ranking impression. The problem is not whether the conclusion is right or wrong, but that it is not reproducible, comparable, or suitable for regression testing.

    Subjective evaluation has at least four systematic biases:

    • Benchmark contamination: Classic problems in public datasets have likely entered training corpora, so the model may demonstrate memorization rather than reasoning.
    • Difficulty mismatch: If sampled problems cluster around medium difficulty, differences among top models can be compressed by a ceiling effect, making them appear similar.
    • Presentation preference interference: Models that produce clear structure and natural language may receive extra credit during human reading, even though this is unrelated to solution correctness.
    • Single-sample noise: Reasoning model outputs are stochastic. A single run cannot represent the distribution, and score differences between two runs of the same model may exceed differences between models.

    Therefore, before discussing whether a model reaches a certain capability level, the question must be converted into a measurable engineering problem.

    2. Breaking “math ability” into measurable dimensions

    A vague claim such as “strong math ability” has little engineering value. It is better to split it into five orthogonal dimensions and measure them separately.

    1. Problem difficulty tiers

    Problems can be divided into four levels according to the number of solution steps and the breadth of knowledge required: single-step calculation and definition application; multi-step routine derivation; competition-level problems requiring constructive ideas; and open-ended problems with incomplete conditions or open conclusions. The fourth level is the most important and the hardest to evaluate. It has no single standard answer and tests whether the model can propose reasonable conjectures, provide a verifiable argumentation path, and identify weaknesses in its own reasoning. Most models are already near saturation at the third level, and differences mainly appear at the fourth level.

    2. Process quality and final answer

    Looking only at the final answer hides two types of problems: correct answer with flawed process (luck or memorization), and incorrect answer with a mostly correct process (a final-step calculation error). In engineering practice, both should be recorded. Process scoring can use automated judgment based on key-point coverage plus manual spot checks.

    3. Chain-of-thought length and conciseness

    A longer reasoning chain does not mean stronger capability. It is recommended to record the number of output tokens, the minimum number of steps needed to reach the correct answer, and calculate a “cost per correct answer.” A concise chain of thought means lower inference overhead and more stable latency, which directly translates to cost in production.

    4. Writing quality and human-like output

    For content-production scenarios, readability and natural structure are independent metrics. They should be scored separately from solution correctness to avoid mutual contamination.

    5. Stability

    Sample the same problem multiple times and record accuracy variance and format compliance rate. Models with high variance are not suitable for automated pipelines.

    3. Building a private evaluation set

    The evaluation set is the core asset of the whole method. It is better to build one internally than to rely directly on public leaderboards.

    • Scale and tiers: Each level should contain at least 50 problems, with a total in the hundreds to balance statistical significance and evaluation cost.
    • Contamination prevention: Prefer self-built, rewritten, or recently generated problems. Rewrite prompts with synonymous expressions to avoid high overlap with public corpora.
    • Structured reference answers: Answer fields should include the final answer, key solution points, and an acceptable set of solution methods for automated judgment.
    • Version management: Keep the evaluation set under version control together with the code, so every model or prompt change can be traced to a specific evaluation-set version.
    • Sensitive information handling: Internal enterprise problems must be desensitized. Evaluation data should be stored in object storage with access auditing enabled. Evaluation logs should be sent to a unified logging service and monitoring/alerting system to track score fluctuations.

    Example data structure:

    1. {
    2. "id": "L3-0042",
    3. "level": 3,
    4. "prompt": "...",
    5. "answer": "42",
    6. "key_points": ["construct an auxiliary function", "verify monotonicity", "discuss boundary cases"],
    7. "open_ended": false
    8. }

    4. Evaluation workflow and metrics

    The recommended workflow is: stratified sampling by difficulty → fixed prompts and decoding parameters → multiple samples → automated judgment → manual spot checks → summary report.

    The core metrics should include at least four items:

    Metric Meaning Purpose
    pass@1 Accuracy of a single sample Baseline capability level
    maj@k Majority-vote accuracy over multiple samples Potential upper bound
    Key-point coverage Proportion of key steps hit Distinguish real understanding from lucky guessing
    Token cost per correct answer Weighted inverse of average output length Cost and latency evaluation

    Evaluation script skeleton (pseudocode, with the interface represented as a general inference service):

    1. def run_eval(dataset, client, k=5, temperature=0.7):
    2. report = defaultdict(list)
    3. for item in dataset:
    4. samples = [
    5. client.generate(prompt=item.prompt,
    6. temperature=temperature)
    7. for _ in range(k)
    8. ]
    9. correct = [judge(s, item) for s in samples]
    10. report[item.level].append({
    11. "pass@1": mean(correct),
    12. "maj@k": majority_vote(samples, item),
    13. "coverage": key_point_coverage(samples, item.key_points),
    14. "avg_tokens": mean(len(s.tokens) for s in samples),
    15. })
    16. return aggregate(report)

    The judgment function judge should normalize answers (remove spaces, unify symbols, and extract the final-answer segment). Outputs that cannot be parsed should be marked as format failures rather than incorrect answers; these two categories must be counted separately.

    5. Common pitfalls

    • Replacing private evaluation with public leaderboards: Leaderboard problems are heavily contaminated and may not match your business distribution.
    • Running only once: Reasoning models have high sampling variance, so a single run is insufficient for model selection.
    • Inconsistent prompts: If each model uses its own best prompt, the comparison measures prompt-engineering skill rather than model capability.
    • Ignoring cost: Looking only at accuracy may select a solution that cannot fit within budget or volume constraints.
    • Treating process length as capability: Long chains of thought often come with higher latency and cost, so they must be weighed by scenario.

    6. Implementation recommendations

    First, extract representative tasks from real business scenarios and build a private set of around one hundred problems. Establish an automated judgment and reporting pipeline. Then observe the performance curves of candidate models by difficulty tier, focusing especially on open-ended problems and stability. Put the evaluation set and scripts into continuous integration so that every model or prompt change triggers an automatic regression. This turns capability level from a subjective impression into a continuously trackable engineering metric. If using cloud-based inference services, it is recommended to access them through a unified gateway and retain call logs, together with monitoring, alerting, and quota management, so that evaluation results are auditable and costs are accountable.