How to Scientifically Evaluate a Large Model's Open-Ended Math Problem-Solving Ability
A practical, reproducible framework for evaluating how large language models handle open-ended math problems. Instead of ranking products by isolated impressions, this article shows how to decompose math-solving ability into measurable dimensions, build a trustworthy and comparable evaluation dataset with difficulty tiers, fix configuration variables before comparing models, and track metrics beyond a single accuracy rate such as pass@1, pass@k, self-consistency, and variance. It also covers blind testing and statistical aggregation to replace subjective ranking, a checklist of common evaluation biases, and a deployable evaluation pipeline. Readers will learn how to turn evaluation results into engineering decisions like model routing, self-consistency voting, cost boundaries, and continuous regression testing.
1. From Debate to Problem: “Which Model Is Stronger” Is Really a Reproducibility Problem
In model discussion forums, claims like “Model A is stronger at math” or “Model B writes more like a human” are common. They usually rest on a few especially hard problems, one impressive solution, or a couple of casual trials. These experiences may not be false, but they are n=1 samples with obvious randomness.
The reason is that math ability is shaped by many overlapping factors: problem selection, sampling randomness, decoding parameters, whether tools are connected, prompt scaffolding, and even silent server-side model updates. For this reason, generalizing a single experience into an “overall capability ranking” does not hold up methodologically.
This article does not judge which specific product is stronger. Instead, it offers an evaluation framework that a technical team can reuse, answering three questions:
- How to define and decompose “open-ended math problem-solving ability”;
- How to build a trustworthy and comparable evaluation workflow;
- How to turn evaluation results into selection and engineering decisions.
2. Breaking Down the Capability: First Decompose “Math Strength” into Measurable Dimensions
The difficulty of open-ended math problems lies in the word “open”: there is no single template to follow, the solution path must be searched across multiple candidate directions, and intermediate conclusions require self-consistency checks. Around this characteristic, the capability can be split into six dimensions, each of which can have its own test cases.
- Precise computation and symbolic handling: Large-number arithmetic, simplification of fractions and radicals, unit and dimensional consistency. These problems look simple, yet they are where errors most often appear in long reasoning chains.
- Formal transformation and structure recognition: Identifying the equation type, completing the square or substituting variables, and translating word conditions into a constraint set. This determines whether a model can “see” the structure of the problem rather than only doing surface matching.
- Multi-step planning and backtracking: When multiple feasible paths exist, can the model prune low-value branches? After taking a wrong step, can it recognize the contradiction and return to correct itself, instead of continuing along the error?
- Self-consistency checking: Before reaching the final answer, does it proactively verify by substituting back, checking dimensions, or testing limiting cases? This is the key signal that separates “getting the answer right by luck” from “reliably reaching the correct answer.”
- Long-chain context retention: As reasoning steps increase, are the initial conditions still referenced correctly, or does the model drift into “solving a different problem” midway? This dimension correlates strongly with context length and reasoning depth.
- Expressive rigor: Are proof steps verifiable, are key assumptions stated, and are definitions quietly swapped? On open-ended problems that require human review, this ability directly affects grading efficiency.
3. Building the Evaluation Dataset: Layering, Holding Out, and Periodic Refresh
The credibility of an evaluation depends first on how the questions are composed. It is advisable to stratify by difficulty and avoid drawing conclusions from a single difficulty level.
| Tier | Characteristics | Dimensions Tested | Suggested Scoring |
|---|---|---|---|
| L1 | One or two steps, with a standard pattern | Precise computation, formal recognition | Automatic comparison of the final answer |
| L2 | Multi-step combinations, with distractor conditions | Planning and backtracking, self-consistency checking | Automatic comparison + spot checks on steps |
| L3 | Requires construction, case analysis, or proof | Structure recognition, long-chain context retention | Manual grading against a rubric |
| L4 | Open-ended questions, exploratory prompts | Assumption clarity, expressive rigor | Double-blind review + consistency check |
Beyond layering, three engineering requirements matter:
- Dataset isolation: Strictly separate the training set, development set, and private test set. Since model versions are upgraded frequently, if the test set overlaps with training data, you are only measuring memorization, not ability. Keep a portion of regularly updated private questions as a long-term regression baseline.
- Normalized reference answers: Unify the answer format (e.g., “Final answer: X”) and allow equivalent forms (fractions vs. decimals, radicals vs. decimal approximations, different orderings of a set). This step determines whether automatic scoring can replace human grading.
- Question diversity: Cover algebra, combinatorics, geometry, number theory, and probability & statistics. Avoid concentrating on a few categories, otherwise the conclusion reflects only local ability.
4. Evaluation Workflow: Fix the Variables First, Then Compare Models
For the same problem, different decoding parameters, and different choices about connecting computation or code-execution tools can produce larger differences than the gap between models. So before evaluating, fix a set of “baseline configurations” and record them completely.
- Decoding parameters: Keep temperature, top_p, maximum output length, and repetition penalty consistent. If the goal is “can it answer correctly in a single attempt,” a lower temperature is recommended to reduce random fluctuation.
- Tools and retrieval: Specify whether internet access is allowed, and whether a calculator or code interpreter may be called. When comparing a model with tools against a pure-reasoning model, report them separately rather than mixing them into a single leaderboard.
- Prompt scaffolding: Whether to provide few-shot examples, whether to require “list the known conditions first, then solve,” and whether to require a format constraint like “always give the final answer at the end” should all be unified. Otherwise you are comparing prompt templates, not models.
- Version and timestamp: Record the server-side model snapshot version and the call time. A model with the same name may already have been updated at different times, so an evaluation result is only valid when bound to a version.
5. Metric Design: More Than a Single Accuracy Rate
A single accuracy rate hides a great deal of information. It is advisable to track at least the following metrics in parallel:
- pass@1: The pass rate of a single answer, reflecting the real usage experience.
- pass@k: The proportion of at least one pass across k samples, reflecting the upper bound of ability. If pass@1 is low while pass@k is high, the problem lies in sampling and selection, not in the ability itself.
- Average reasoning length and cost: Average output length and average latency per question, used to judge whether “stronger” comes at a significantly higher cost.
- First error position: At which step the contradiction first appears. This helps locate whether the issue is a computation error, a misread condition, or a logical jump.
- Self-consistency pass rate: Even when the answer is wrong, are the intermediate steps self-contradictory? This metric is especially useful for long-chain tasks.
- Stability variance: The standard deviation of accuracy across different random seeds for the same model. A large variance means a single evaluation is not trustworthy.
It is worth stressing that a longer reasoning chain does not equal stronger reasoning. If a model’s chain of thought is noticeably longer and more nested yet brings no improvement in accuracy, the more reasonable explanation is that it is repeatedly self-confirming rather than making effective progress. In that case, length should be treated as a cost, not as evidence of capability.
6. Cross-Model Comparison: Blind Testing and Statistical Methods Instead of Subjective Ranking
When you need to compare multiple models side by side, follow these steps:
- Randomize the order of questions and options to eliminate position-based prior bias.
- Anonymize outputs: Remove model identifiers and style signals, and let uninformed reviewers judge. Style differences are easily misread as capability differences, one of the most common biases in subjective evaluation.
- Build a pairwise comparison matrix: For each question and each model pair, record win/tie/loss, then use confidence intervals to judge whether the gap is significant. When the sample size is insufficient, avoid conclusions like “A is comprehensively stronger than B.”
- Aggregate rankings with standard statistical methods: Based on pairwise win/loss data, use widely adopted pairwise comparison models (such as the Bradley-Terry model or Elo-type ratings) to produce an aggregated ranking. Such methods are already widely used in competitive and preference evaluations.
- Report results by tier: On L1, the gap across models is usually tiny; the real separation happens at L3 and L4. Splitting the total score into per-tier win-rate curves is more valuable for decision-making than a single aggregate score.
7. Common Bias Checklist
- Extrapolating from a single god-tier problem: Answering one extremely hard problem correctly does not imply overall leadership.
- Grader misjudgment: Automatic string comparison only looks at the final string and may miss equivalent forms or partial credit, causing false negatives.
- Difficulty selection bias: Picking only extremely hard problems pushes every model’s accuracy close to zero and destroys discriminative power.
- Length bias: Reviewers prefer longer, more complete-looking output even when the conclusion is wrong.
- Style confusion: Treating “more human-like writing” as “more correct.”
- Version drift: Evaluation results not bound to a version, producing inconsistent results on reproduction.
- Prompt leakage: Revealing answer characteristics or scoring points in the prompt, which inflates scores without reflecting real ability.
- Inconsistent raters: Manual grading without double review and consistency checks (such as Cohen’s kappa), so subjective variation drowns out real gaps.
8. A Deployable Evaluation Pipeline (Illustrative)
The code below shows how to converge the principles above into a repeatable pipeline: stratified sampling, multiple sampling metrics, interval estimation, and result archiving. In practice, replace model_call with the invocation wrapper for your platform.
from dataclasses import dataclass, fieldfrom typing import Callable, List, Dict, Anyimport random, statistics, json@dataclassclass Case:cid: strprompt: strlevel: str # L1 / L2 / L3 / L4check: Callable[[str], bool] # final answer comparison (equivalent forms allowed)check_steps: Callable[[str], bool] | None = None # step check for L3/L4 (manual or rule-based)@dataclassclass Config:temperature: float = 0.2top_p: float = 0.9max_tokens: int = 4096allow_tools: bool = Trueseed: int = 0n_samples: int = 4 # for pass@kdef run_eval(cases: List[Case], model_call: Callable[..., str],cfg: Config) -> Dict[str, Any]:random.Random(cfg.seed).shuffle(cases) # randomize case orderby_level: Dict[str, List[bool]] = {lv: [] for lv in ("L1", "L2", "L3", "L4")}per_case: Dict[str, Any] = {}lengths, passes = [], []for case in cases:outputs = [model_call(case.prompt, cfg.temperature, cfg.top_p,cfg.max_tokens, case.seed + i) # use a different seed per samplefor i in range(cfg.n_samples)]first = outputs[0]ok_first = case.check(first)ok_any = any(case.check(o) for o in outputs)if ok_first and (case.check_steps is None or case.check_steps(first)):by_level[case.level].append(True)else:by_level[case.level].append(False)lengths.append(len(first))passes.append(ok_any)per_case[case.cid] = {"pass@1": ok_first, "pass@k": ok_any,"first_output_chars": len(first)}def wilson(k: int, n: int, z: float = 1.96) -> tuple:if n == 0:return (0.0, 0.0)p = k / nd = 1 + z * z / nc = p + z * z / (2 * n)r = z * ((p * (1 - p) / n + z * z / (4 * n * n)) ** 0.5)return ((c - r) / d, (c + r) / d)report = {"pass@1": sum(passes) / len(passes),"pass@1_ci95": wilson(sum(passes), len(passes)),"pass@k": statistics.fmean(passes) if passes else 0.0,"by_level_pass@1": {lv: statistics.fmean(v) for lv, v in by_level.items()},"avg_output_chars": statistics.fmean(lengths),"config": cfg.__dict__,"cases": per_case,}print(json.dumps(report, ensure_ascii=False, indent=2))return report
Three recommendations for putting this pipeline into practice:
- Archive to object storage and version it: Store the configuration, outputs, and scoring results of each run to enable regression comparison.
- Build a long-lived private question set: Only by changing questions over time while keeping the workflow fixed can you observe capability trends.
- Treat evaluation as a pre-release gate: Run the baseline before switching models, and use logging with monitoring and alerting to detect quality regressions.
If you need to self-host or manage this pipeline, you can combine a cloud platform’s general capabilities — for example, using a container platform to run evaluation jobs, object storage to archive samples and results, and log services with monitoring and alerting for regression observation. Baidu AI Cloud offers corresponding capabilities in these general categories for reference.
9. From Evaluation Results to Engineering Selection
The ultimate goal of evaluation is not to produce a ranking table, but to support decisions:
- Route rather than one-size-fits-all: Split by problem difficulty, using a low-latency model for simple tasks and increasing reasoning depth or allowing multiple samples with best-of selection for complex tasks.
- Backstop with self-consistency voting: For the same problem, sample multiple times and choose the answer that is internally consistent, which can significantly reduce the share of cases that “look right but compute wrong.”
- Define cost boundaries: Report accuracy together with average cost, so that a “longer chain of thought” is not misread as “stronger capability.”
- Continuous regression: Since model versions are updated frequently, the evaluation set should be a standing regression set, not a one-time activity.
10. Conclusion
When it comes to how capable a given model really is at math, methodology matters more than any single conclusion. A single-point experience can be a clue, but it cannot serve as evidence. Truly valuable judgment comes from stratified question banks, fixed configurations, blind comparison, and statistical significance. Reframing “who is stronger” into “who is more stable, on this type of problem, under this budget, and under this prompt constraint,” is the operable way to pose the question from an engineering perspective. For a team, building a reproducible, regression-ready evaluation pipeline delivers far more long-term value than debating one leaderboard ranking.
