How to Scientifically Evaluate the Reasoning Capabilities of Large Language Models
This is a practical guide to evaluating the reasoning ability of large language models. Instead of relying on anecdotal "vibes-based" rankings, it shows how to turn subjective impressions into reproducible, comparable, and cost-aware decisions, using math reasoning and proof tasks as a testbed. It covers four sources of subjective bias, a six-dimension evaluation framework, test-set design, multi-sample scoring with calibrated judges and unbiased pass@k statistics, cost and resource budgeting, failure attribution, and a reusable prompt template, giving teams a step-by-step path to build their own evaluation pipeline.
Can a “vibes-based ranking” serve as a basis for technical selection? As model iteration cycles keep shrinking, this is an engineering problem that must be faced head-on. Community discussions often feature two recurring arguments. The first is a feel-based judgment that “one model is worse than another,” supported by a few conversations, a well-written article, or a problem posed on the spot. The second is a complaint about the experience: “the queue is too long,” “the quota burns too fast,” which really points to resource constraints and usage patterns.
Subjective feel is not worthless. Frontline users who handle real tasks day after day often have a sharp intuition for a model’s strengths and weaknesses. But feel is influenced by sample selection, prompt quality, output aesthetics, and many other factors. It is hard to reproduce and cannot support quantitative decisions. A typical evaluation case is this: posing a proof-and-lecture-note task on a proposition from an open-ended math knowledge base that has no ready-made reference proof, and requiring the output to cite its sources. At that point, the questions worth asking are:
- Can the output be traced to authoritative definitions, rather than approximate memory?
- Is the reasoning chain complete, with no critical skipped steps?
- Has the conclusion been independently re-verified?
- Are the reasoning compute and waiting time consumed to reach this quality acceptable?
This article uses math reasoning and proof tasks as an entry point to lay out a reproducible, comparable, cost-controllable method for evaluating large models.
1. From “Feel” to “Evidence”: Four Biases of Subjective Impression
1.1 Sample bias: problems “pick” a model
A handful of ad-hoc problems often happen to land on a question type a particular model handles well. And the ability to prove theorems is highly dependent on problem structure: some problems emphasize construction, some emphasize case analysis, and some require specialized tools from number theory, analysis, and so on. A conclusion drawn from a small sample may completely reverse when scaled up to the full task distribution.
1.2 Prompt bias: prompt quality isn’t controlled
For the same proof problem, a prompt that says “prove this” versus one that says “provide a complete lecture note, label the lemmas used and their sources, and explicitly flag any uncertain steps” will yield wildly different outputs. Models influence one another, so if you don’t standardize the prompt template when comparing, what you are actually measuring is the difference in prompts.
1.3 Perception bias: writing style isn’t correctness
Well-organized lecture notes, fluent chains of thought, and neatly formatted formulas all significantly improve the reading experience, but have no necessary connection to mathematical correctness. Proof tasks are precisely a scenario where “details decide success or failure”: missing an applicability condition, using the conclusion to be proved within its own proof, or generalizing a special case to the general case can each invalidate an entire derivation, and these errors are extremely hard for non-expert reviewers to catch.
1.4 Reliability bias: mistaking “looks strong” for “reliable”
Evaluation emphasizes stability, the degree of consistency when the same problem is solved multiple times. A few polished outputs cannot represent the average level. For production systems, the metrics that really matter are often “behavior when it fails” and “overall availability rate,” not a single best-case performance.
2. Evaluation Framework: Breaking “Strong or Not” into Measurable Dimensions
A scientific evaluation should start from measurable goals. For reasoning models, it is recommended to cover at least the following six dimensions:
- Correctness: Does the conclusion hold, and can it be re-verified by a formal proof checker or symbolic computation system?
- Rigor: Are assumptions stated, is each step justified, and are there circular arguments or skipped steps?
- Reliability: The success rate over repeated runs of the same task, and whether it will output plausible-looking but actually wrong conclusions under extreme cases.
- Expression quality: Is the structure clear, is the terminology standard, is the layout easy to review and share?
- Cost: The reasoning compute consumed by input and output respectively, and the converted cost under different billing modes such as credit-based or points-based.
- Latency: Time to first token and time to complete the full task, including the impact of queue waiting on total elapsed time.
These six dimensions involve tradeoffs. Raising the ceiling on a single output can buy a higher accuracy rate but lengthens response time; multiple sampling can improve the pass rate but multiplies the cost. The point of evaluation is to quantify these tradeoffs so that decision-makers can make choices according to business constraints.
3. Test-Set Design: The Ceiling on Evaluation Credibility
Test-set quality sets the ceiling on how credible the evaluation conclusions can be. No matter how rigorous the statistics, they cannot compensate for a test set that is not representative.
3.1 Stratified sampling
Stratify tasks by type and difficulty. Common tiers include:
- Routine problems with standard answers;
- Theorems that have reference proofs in public materials and require restating and reorganizing;
- Open-ended propositions with no ready-made proof in public materials that require self-construction;
- Desensitized requests close to real online business.
Each tier should be sampled by difficulty and type ratio to avoid a skewed difficulty structure.
3.2 Preventing test-set contamination
Training corpora may already contain public problem sets. Before evaluation, check whether the model has seen the original problems during pretraining, and reduce “inflated” scores from memorization by rephrasing, swapping numerical values, or changing notation.
3.3 Freezing versions and an extension mechanism
Once the test set is fixed, freeze its version and bring it under version control. Old and new models use the same test set to guarantee horizontal comparability. Also keep an extension mechanism to periodically add new problems, preventing models from “gaming the score” in a targeted way.
3.4 Supporting open-ended tasks with annotations and citations
For open-ended tasks with no reference proof, verifiable judgment criteria should be prepared in advance. For example, require the model to list the definitions and lemmas it cites, and have humans verify whether they are consistent with authoritative materials. Lecture-note outputs should also require the model to explicitly distinguish “verified conclusions” from “unverified conjectures.”
4. Running and Scoring: Multiple Sampling, Judge Calibration, and Unbiased Statistics
4.1 Low-temperature sampling and repeated runs
Reasoning tasks should be run at a lower sampling temperature to reduce interference from output randomness. At the same time, set a clear output limit and timeout for each task to avoid long-tail tasks slowing down the overall evaluation. Each task is recommended to be run about 5 times, tracking separately:
- Pass rate;
- Result consistency rate;
- Distribution of failure modes.
# Evaluation config template: all parameters must be recorded alongside results to ensure reproducibilityCONFIG = {"temperature": 0.2, # Low-temperature sampling to reduce output randomness"max_tokens": 8192, # Upper limit for long reasoning output to prevent truncation"n_samples": 5, # Repetitions per task, used for pass@k statistics"timeout_s": 300, # Per-task timeout to avoid long-tail tasks slowing down the evaluation"max_retry": 2, # Maximum retries on failure}# Structured output schema, making it easy to programmatically verify conclusions and key stepsOUTPUT_SCHEMA = {"conclusion": "The final conclusion of the proposition: 'holds'/'does not hold'/'undetermined'","assumptions": ["List of explicit assumptions"],"steps": [{"claim": "Assertion of this step", "justification": "Lemma, definition, or derivation used"}],"open_points": ["Unverified or questionable points"],}
4.2 Layered review: who decides “right or wrong”
Review is the core of evaluation. A single review method cannot cover all problem types, so a layered review strategy is recommended:
- Machine-verifiable: Problems that can be turned into formal propositions are handed to formal verifiers such as interactive theorem provers. These results are the most objective and serve as the “gold standard” for rigor evaluation.
- Symbolically verifiable: Problems that can undergo algebraic transformation or numerical verification with a symbolic computation system have their key steps re-checked by automated scripts.
- Human review: Pure proof-writing tasks are reviewed by domain experts. A double-blind approach is recommended, meaning the reviewer does not know which model the output came from. Also introduce a multi-reviewer consistency check (for example, computing an inter-rater agreement coefficient) and periodically re-check the reviewers’ own accuracy to prevent “judge bias.”
Judges, whether automated scripts or experts, also make mistakes, so they must be calibrated. The most reliable approach is to first test judge accuracy on problems with known answers. If a judge can misjudge even a standard answer, its model scores cannot be trusted either.
For open-ended tasks requiring long-context retrieval of materials, citation quality should be evaluated additionally: whether the definitions and lemmas the model cites actually exist, whether the sources are accurate, and whether it conflates similar-but-different concepts. These errors are hard to detect but directly undermine the validity of a proof.
4.3 Scoring rubric and unbiased statistics
To improve review consistency, a scoring rubric can be prepared in advance to break subjective judgment into actionable check items:
| Check item | Criterion | Score |
|---|---|---|
| Conclusion correctness | Conclusion matches independent re-verification | 0 / 0.5 / 1 |
| Citation accuracy | Definitions and lemmas consistent with authoritative materials, no fabrication | 0 / 0.5 / 1 |
| Reasoning completeness | No skipped steps, no circular reasoning, assumptions stated | Cumulative 0.5-point scale |
| Expression quality | Consistent terminology, clear layout, easy to review | 0 / 0.5 / 1 |
| Uncertainty labeling | Questionable steps explicitly labeled with a verification approach | 0 / 0.5 / 1 |
At the statistical level, it is not advisable to report only the proportion that “gets it right on the first try.” A more reasonable approach is to use an unbiased pass@k estimate: after n independent samples per problem, compute the probability of passing at least k times using a combinatorial formula. This approach balances the capability ceiling with stability and avoids the randomness of small samples.
import randomfrom math import combfrom statistics import mean# Evaluation record structure (fields can be extended per actual task)# {"task_id": "T-001", "run_id": 1, "ok": True, "tokens": 7600,# "latency_s": 92.5, "credits": 0.02}def pass_at_k(results, k):"""Unbiased pass@k: estimate the pass probability per task over sampling runs, then average"""trials = {}for r in results:trials.setdefault(r["task_id"], []).append(bool(r["ok"]))scores = []for tid, flags in trials.items():n, c = len(flags), sum(flags)if n < k:raise ValueError(f"task {tid} only sampled {n} times, fewer than k={k}")scores.append(1 - comb(n - c, k) / comb(n, k))return mean(scores)def summarize(results, k=5):"""Output three categories of metrics: capability, stability, and cost"""groups = {}for r in results:groups.setdefault(r["task_id"], []).append(r)# Stability: average share of the majority result per task; 1 means fully consistentstability = mean(max(sum(x["ok"] for x in rs), len(rs) - sum(x["ok"] for x in rs))/ len(rs)for rs in groups.values())# Cost per single run and cost per "successful solve"per_run = mean(r["credits"] for r in results)per_solve = sum(r["credits"] for r in results) / sum(1 for rs in groups.values() if any(x["ok"] for x in rs))return {"pass@1": round(pass_at_k(results, 1), 3),f"pass@{k}": round(pass_at_k(results, k), 3),"stability": round(stability, 3),"cost_per_run": round(per_run, 4),"cost_per_solve": round(per_solve, 4),}# Sample data: evaluation results for Model A and Model B on the same test setrng = random.Random(42)records = []for model, p, credits in [("Model-A", 0.6, 0.02), ("Model-B", 0.5, 0.01)]:for tid in range(1, 21):for run in range(1, 6):records.append({"model": model, "task_id": f"T-{tid:03d}", "run_id": run,"ok": rng.random() < p, "tokens": 7600,"latency_s": 85 + run * 2, "credits": credits,})for model in ("Model-A", "Model-B"):subset = [r for r in records if r["model"] == model]print(model, summarize(subset, k=5))
In the sample data, Model A has a higher single-run pass rate, while Model B is cheaper. With summarize, you can further compare the two models’ pass@5 and cost per successful solve. If the business allows retries, the lower per-success cost may be more attractive; if the business requires the highest possible single-run success rate, the higher-pass-rate model should be prioritized. This is exactly the key to turning subjective arguments into quantitative decisions.
5. Cost and Resource Constraints: From “Quota Anxiety” to Budget Management
Many complaints about “burning through quota too fast,” “long queue waits,” and “wasted credits” are essentially problems of resource management and usage patterns, not purely of model capability. For inference services with points-based, quota-based, or pay-as-you-go billing, it is recommended to start from the following.
5.1 Task classification and quota matching
- High-value long tasks: Such as complex proofs and long-document analysis. These consume a lot per run, so they should concentrate on using more capable reasoning models and set a per-run consumption cap.
- Low-risk short tasks: Such as format conversion, summary extraction, and code comments. These can use lightweight models to avoid “using a cannon to swat a mosquito.”
- Interactive exploration: Use a tiered strategy of “fast model first, deep model as fallback,” escalating to the more powerful call only when the initial result does not meet requirements.
5.2 Budget guardrails and cost control
Implement budget guardrails at the application layer to prevent a single task or an abnormal loop from draining the quota:
BUDGET = {"max_credits_per_task": 0.10, "max_daily_credits": 5.0, "warn_ratio": 0.8}def check_budget(used_today: float, task_cost: float) -> bool:"""Pre-submission budget check"""if used_today + task_cost > BUDGET["max_daily_credits"]:return Falsereturn task_cost <= BUDGET["max_credits_per_task"]
Beyond budget guardrails, you can also optimize the cost structure at the application layer:
- Compress context: Carry only the snippets relevant to the task, not the entire document.
- Cache reuse: Organize stable, unchanging content such as system prompts and reference-material prefixes together so that the context cache can be reused, reducing repeated computation. Cache-hit rules differ across inference services, so refer to the actual metering information returned.
- Structured output: Reduce ineffective and redundant phrasing.
5.3 Queueing, rate limiting, and failure retries
Queueing and rate limiting during high-load periods are hard to avoid entirely. Three engineering measures are needed:
- Asynchronous: Put long tasks into a message queue for asynchronous execution, poll for results through a task-status interface, and avoid blocking the user interface for a long time.
- Circuit breaking and degradation: When timeouts or rate limiting persist, switch to a backup model or backup channel and record the reason for degradation.
- Intelligent retries: Retry only recoverable errors such as timeouts and rate limiting; for deterministic errors like prompt mistakes or illegal parameters, return immediately to avoid wasted consumption.
5.4 Result caching and reproducibility
For tasks with high determinism requirements and infrequently changing inputs, the final result can be cached, using a hash of “input prompt + key parameters” as the cache key. Identical requests hit the cache directly, cutting both cost and response time. At the same time, the cache records themselves are important material for reproducing evaluations.
6. Failure Attribution: From “Low Score” to “How to Fix It”
The endpoint of evaluation is not a leaderboard but an actionable improvement list. It is recommended to attribute each failure and map it to a specific stage:
| Failure symptom | Possible cause | Improvement direction |
|---|---|---|
| Wrong conclusion | Insufficient model capability or the test set is too difficult | Switch model, or split the task and add auxiliary reasoning |
| Citation errors, fabricated lemmas | Outdated knowledge or lack of retrieval constraints | Add retrieval augmentation and force output of sources |
| Reasoning chain skips steps | Prompt did not require explicit steps | Add a “explain the basis step by step” requirement to the prompt template |
| Output truncated | Output limit set too low | Raise the limit, or generate in segments and merge with verification |
| Timeout, rate limiting | Peak load or insufficient resource quota | Asynchronous, off-peak scheduling, multi-channel degradation |
| Abnormal credit consumption | Context too long or an improper retry strategy | Compress context, fix retry logic, enable caching |
7. Prompt Engineering and Output Specs: Making Evaluation Conclusions More Reliable
A standardized prompt template can significantly reduce the “prompt bias” between different models and make evaluation results closer to real usage scenarios. A reusable prompt framework for proof and lecture-note tasks is as follows:
【Role】You are a rigorous mathematical researcher.【Task】Please write an English lecture note for the following proposition:<proposition description>【Requirements】1. Explain the background of the proposition and list all explicit and implicit assumptions;2. Give a complete proof, noting the basis for each step (the definitions, lemmas, or derivations used);3. Citations must come from the given materials; when uncertain, explicitly mark "to be verified";4. Output the conclusion, proof steps, and open points in a structured format.【Constraints】Uncertain conclusions must be labeled; do not fabricate citations.【Given materials】<relevant definitions and lemmas>
In real applications, an additional layer of automated validation should be added after generation: parse the structured output, verify whether the cited definitions and lemmas exist in the given materials; check whether the reasoning steps fully cover all cases of the proposition; flag open points for human review. This layer of validation can both intercept obvious errors in production and accumulate high-quality annotation data for evaluation.
8. Conclusion
The feel-based judgment that “one model is stronger” can only serve as a reference in engineering decisions. A truly persuasive conclusion must be built on the following: a representative test set, a unified prompt template, repeated sampling, a calibrated review mechanism, unbiased statistical metrics, and cost and latency constraints.
For teams that want to build their own evaluation system, they can proceed in these steps:
- Define goals: Clarify the dimension the business values most, such as correctness-first or latency-first.
- Build the test set: Stratified sampling, contamination prevention, version freezing.
- Design review: Hand formal-verifiable problems to verifiers, and the rest to calibrated experts in a double-blind manner.
- Standardize configuration: Fix sampling parameters and prompt templates, and run each problem multiple times.
- Quantify comparison: Output metrics such as pass@k, stability, and cost per successful solve, and make weighted decisions combined with business constraints.
- Attribute and iterate: Attribute each failure item by item, feeding back into optimizing prompts, context, and calling strategy.
Turning “I feel who is stronger” into “who is more suitable under what constraints” is the right approach to large-model technology selection. Evaluation is not a one-off activity; it should be consolidated as a continuously running engineering capability that evolves along with the business and the models.
