Evaluating LLM Mathematical Reasoning: A Framework for Task Tiering, Scoring, and Routing
This article breaks down why "which model is stronger" is hard to answer, and proposes a practical evaluation framework built on four pillars: task tiering and sample construction, quantifying chain-of-thought complexity, layered scoring for consistency, and reproducible engineering constraints. It also shows how evaluation output should map to tiered routing and quota governance under budget limits, plus common pitfalls to avoid. The framework is product-agnostic and can be adopted in a self-built evaluation pipeline.
1. Where the Problem Starts: Why “Which One Is Stronger” Is Hard to Answer
In comment-section debates, the most common argument is whether one model has already surpassed another. These comparisons rarely converge because the dimensions of comparison are never defined. Mathematical ability is not a scalar. It can be split into at least four very different task types:
- Formal symbolic manipulation, such as identity transformation and inequality bounding.
- Open-ended exploration, where the problem has no standard solution path and the model must construct intermediate lemmas itself.
- Long-chain computation, with many steps that are each mechanical.
- Word problems in natural language, where the difficulty lies in converting text into a computable structure.
Without separating these four types, any ranking is just an average over mixed distributions, and the conclusion will inevitably swing with the sample. So the first step in a professional evaluation is not to run scores, but to define task tiers and weights.
2. The Four Pillars of the Evaluation Framework
2.1 Task Tiering and Sample Construction
Divide the question bank into three tiers: closed-form, semi-open, and fully open, and make sure each tier has enough samples to keep variance low. Closed-form problems can be matched exactly against standard answers; semi-open problems require human or rule-based checks of key steps; fully open problems should introduce multiple-solution enumeration and counterexample testing. A sketch of the data structure:
tasks = [{"id": "C-001", "tier": "closed", "weight": 0.2, "checker": "exact"},{"id": "S-014", "tier": "semi", "weight": 0.3, "checker": "stepwise"},{"id": "O-007", "tier": "open", "weight": 0.5, "checker": "counterexample"},]
The principle for setting weights: the closer a scenario is to real work (such as research assistance or complex data analysis), the higher the share of open problems.
2.2 Quantifying Chain-of-Thought Complexity
One useful observation from the original discussion is that even when final answers are close, the length and structural complexity of the reasoning process differ significantly across models. Complexity can be described by three measurable metrics: the number of reasoning steps, the backtracking rate (the share of branches that are re-walked after self-correction), and lemma introduction density (the number of new intermediate conclusions introduced per hundred steps). More steps is not better: a very long step count with frequent backtracking usually signals poor search efficiency, and under a limited budget it is actually more likely to overrun.
2.3 Scoring Criteria and Consistency
The biggest problem with subjective impressions is that they are not reproducible. A workable approach is to split scoring into three layers: the result layer (whether the final answer is correct), the process layer (whether key steps hold and whether there is circular reasoning), and the presentation layer (whether it approximates human writing habits and how readable it is). Scoring each layer separately and then weighting them significantly reduces vague judgments like “it just feels stronger.”
2.4 Reproducible Engineering Constraints
Fix the decoding parameters, fix the prompt template, fix the temperature and maximum output length, and record the full input and output plus latency for every call. Comparisons without these constraints are essentially not reproducible.
3. Mapping Evaluation Results to Engineering Choices
The output of an evaluation should not be a leaderboard but a routing policy. A common practice is tiered routing: easy problems go through a low-latency, low-cost channel, hard problems are escalated to a strong-reasoning channel, and a budget cap is set on escalation.
def route(task, budget):if task.tier == "closed":return "fast_channel"if task.tier == "semi" and budget.remaining > budget.threshold:return "strong_reasoning_channel"return "strong_reasoning_channel" if task.tier == "open" else "fast_channel"
Three general cloud capabilities are needed to support this: object storage to retain evaluation corpora and call logs, a message queue for peak shaving and asynchronous retries, and monitoring and alerting to track timeout rates and cost per task. These are all standard categories, and the implementation can be built on general offerings from platforms such as Baidu AI Cloud.
4. Credit and Quota Governance Under Budget Constraints
The original text mentions a very real phenomenon: remaining account credit is wasted if it is not used soon, while peak-hour queuing degrades the calling experience. This is essentially a resource scheduling problem, which can be abstracted into three governance principles. First, consume credit in order of marginal value: schedule high-value long tasks first and batch low-value tasks together. Second, establish backoff and retry policies to avoid spinning idle repeatedly during congested periods.
import random, timedef call_with_backoff(fn, max_retry=4):for i in range(max_retry):try:return fn()except TimeoutError:time.sleep((2 ** i) + random.random())raise RuntimeError("quota or capacity exhausted")
Third, keep a budget ledger that records the task type, step count, and output value of each call, and periodically review whether the routing thresholds are reasonable.
5. Common Pitfalls
- Using a single average score to hide distribution differences.
- Treating reasoning step count as a quality metric.
- Ignoring the impact of the prompt template on results.
- Not repeating experiments under fixed parameters, which makes conclusions non-reproducible.
- Treating subjective writing-style preference as evidence of higher ability.
The way to avoid them is to return to the task tiering in Section 1 and the engineering constraints in Section 4.
6. Conclusion
For evaluating mathematical reasoning ability, methodology matters more than the conclusion. Building a tiered question bank, quantifying chain-of-thought complexity, unifying scoring criteria, and fixing engineering constraints, combined with tiered routing and quota governance, is what yields stable and comparable results under a limited budget. This framework does not depend on any specific product and can be transferred directly into a self-built evaluation pipeline.
