Mathematical Reasoning Model Selection: Layered Evaluation, Chain of Thought, and Cost
A practical framework for selecting mathematical reasoning models using business-specific benchmarks. Learn how to evaluate models by difficulty level, measure accuracy and consistency, estimate the cost per correct answer, and route problems between fast models and longer-reasoning models.
When selecting a mathematical reasoning model, two questions matter most: Is the model accurate enough for your problem types, and are its per-call cost and latency acceptable for the business?
Public benchmark scores can provide a useful reference, but their problem distribution may not match your workload. The following evaluation method can be applied directly to your own problem set.
1. Define the Capabilities to Evaluate First
Many articles loosely classify models as “top-tier,” “advanced,” or “mid-range.” These labels have no clear boundaries and are difficult for others to reproduce. A more reliable approach is to divide problems into three tiers and report separate results for each.
| Tier | Problem characteristics | Recommended metrics |
|---|---|---|
| Basic | Standard formulas, complete conditions, and fixed solution steps | Accuracy and average output token count |
| Advanced | Competition or engineering mathematics requiring multi-step derivations and intermediate-variable management | Accuracy and consistency across multiple samples |
| Open-ended | No fixed template; the model must choose a proof strategy or construct a counterexample | Pass rate, determined by a grader or human reviewer, and average reasoning steps |
The evaluation set should closely resemble real production problems. One hundred problems per tier is a reasonable starting point. If you want to keep the estimated accuracy error within approximately ±5% at a 95% confidence level, around 140 problems are needed when the accuracy is close to 0.90. Problems should be sampled by business risk, with more samples allocated to high-risk problem types.
Model output is stochastic. A correct answer on one run does not necessarily represent the model’s actual capability. Run each problem around five times and record both the number of correct answers and the answer consistency rate.
The evaluation should also separate two dimensions:
- Reasoning correctness: Scored by an automated grader or human reviewer.
- Language quality: Scored separately for factors such as naturalness and verbosity.
These dimensions should not be combined into a single score. Otherwise, it becomes difficult to determine whether a model scored well because its reasoning was strong or because its explanation was well written.
For example, if a model’s accuracy on the basic tier is clearly lower than that of comparable models, and repeated sampling does not improve the result, it is not suitable for scenarios without human review. The specific threshold depends on the business’s tolerance for errors.
2. Chain of Thought: Longer Does Not Mean More Correct
Chain of thought refers to the intermediate derivation generated by a model before it provides a final answer. A longer reasoning process can break a problem into smaller steps and often reduce the probability of an error at any individual step. The trade-off is a larger output token count, longer generation time, and higher per-call cost. Shorter reasoning is faster, but it is more likely to skip important steps on open-ended problems.
For this reason, model comparisons should not focus on accuracy alone. A more practical metric is the average cost of obtaining one correct answer.
Cost per Correct Answer
The cost of a single call, represented by c, should include input-token charges, output-token charges, and retry costs. If only one attempt is made, the formula is:
Cost per correct answer = c ÷ p
Here, p is the accuracy of that attempt.
If each problem is attempted a fixed number of times, k, and the problem is considered passed when at least one attempt is correct—for example, when the model first produces candidate answers and a human reviewer evaluates them—the formula is:
Cost per correct answer = k · c ÷ [1 − (1 − p)^k]
This formula assumes that the attempts are independent. In practice, multiple samples for the same problem are often correlated, so this estimate may be overly optimistic. Validate it with measured data.
The following figures are hypothetical and do not represent actual pricing. Suppose Model A charges 1 unit per million input tokens and 4 units per million output tokens, while Model B charges 2 units per million input tokens and 16 units per million output tokens. Assume that each problem requires an average of 1,000 input tokens, Model A produces 2,000 output tokens on average, and Model B produces 4,000 output tokens.
The single-attempt costs are:
- Model A: 0.009 units
- Model B: 0.066 units
If Model A has an accuracy of 0.90 and Model B has an accuracy of 0.95, the cost per correct answer is approximately:
- Model A: 0.010 units
- Model B: 0.069 units
Model B therefore costs approximately 6.9 times as much per correct answer.
Whether that difference is worthwhile depends on the cost of an incorrect answer. In financial risk control, the cost of a single misclassification may be far greater than 0.06 units, making Model B a reasonable choice. For customer-service question answering, where errors may be more tolerable, Model A may provide better value.
Routing Strategy
Routing can balance accuracy, cost, and latency: send simple problems to a fast, inexpensive model and difficult problems to a model with longer reasoning. Difficulty scoring is only a heuristic, so its threshold must be calibrated against your own problem set. The following example also includes timeout handling, retries, and logging fields.
```python
import logging
import re
import time
from dataclasses import dataclass
from typing import Protocol
logger = logging.getLogger(“math_router”)
OPEN_PROBLEM_KEYWORDS = (“proof”, “construction”, “existence”, “optimization”,
“conjecture”, “counterexample”)
THRESHOLD_OPEN_PROBLEM = 0.6 # Example value; calibrate with your own dataset
MAX_RETRIES = 2
TIMEOUT_S = 60.0
class ModelClient(Protocol):
def generate(self, model: str, prompt: str, max_tokens: int,
temperature: float, timeout_s: float) -> tuple[str, int]:
“””Return (output text, output token count). Raise TimeoutError on timeout.”””
…
@dataclass
class ReasoningResult:
answer: str | None
output_tokens: int
latency_s: float
model: str
difficulty: float
retries: int
def assess_difficulty
