A Practical Guide to LLM Evaluation: Tied Rankings, Timeout Rates, and Cost per Question
Public leaderboards offer a useful reference for evaluating Large Language Models (LLMs), but they provide estimates with margins of error rather than precise capability rankings. This article explores how to effectively interpret LLM evaluation results, covering tied rankings, actionable dimensional scoring, hallucination metrics, agent coding timeout rates, and cost per question accounting. By establishing a reproducible, business-aligned evaluation system, engineering teams can make more reliable decisions when selecting models.
1. Why Leaderboard Scores Aren’t Definitive
Public evaluation leaderboards provide a useful horizontal reference, but they offer a set of estimated values with margins of error, not a precise ranking of capabilities. Most evaluation rules set a tie threshold. For example, models with a score difference of less than 1 point are considered part of the same tier. This design accounts for the deviations introduced by question sampling, scoring randomness, and version fluctuations; when the score gap is minimal, the specific ranking order has little practical significance.
When interpreting rankings, you should first check whether the score difference exceeds the evaluation’s own margin of error before comparing their order. The following code groups results by threshold:
def group_by_tie(results, tolerance=1.0):"""Sorts scores from high to low, grouping models within a 'tolerance' of the highest score in the group into the same rank."""ranked = sorted(results.items(), key=lambda kv: kv[1], reverse=True)groups = []for name, score in ranked:if groups and groups[-1][0][1] - score <= tolerance:groups[-1].append((name, score))else:groups.append([(name, score)])return groups
This approach uses the highest score within the group as an anchor, rather than comparing each model to the one immediately above it. If you compare sequentially, the score differences cascade down, eventually grouping models with clearly different capabilities together.
2. Breaking Down Composite Scores into Actionable Dimensions
A composite score is a weighted result of multiple sub-tasks. The same total score can stem from entirely different capability structures. For real-world projects, dimensional scores are typically more valuable than the overall total. Common capability dimensions include:
- Complex Reasoning: Multi-step logic, math, and planning tasks.
- Instruction Following: Output format, constraints, and consistency in multi-turn dialogue.
- Knowledge and Factuality: Common sense QA and domain-specific QA.
- Coding and Engineering: Code generation, bug fixing, and cross-file modifications.
- Hallucination Control: Whether the model fabricates facts, citations, and APIs.
- Multimodal and Tool Usage: Visual understanding, computer operation, and external tool invocation.
During model selection, you should reverse-engineer the required dimensions from your business scenarios first, and then determine the weight of each dimension. A customer service QA scenario prioritizes factuality and hallucination control. An R&D assistant scenario prioritizes code completion rates and timeout performance. Compressing all dimensions into a single number masks critical shortcomings.
3. Hallucination Control: Measurement and Interpretation
Hallucination refers to model output that contradicts facts, input materials, or verifiable information. A higher hallucination control score usually indicates that the model, when uncertain, is more inclined to refuse to answer, make conservative statements, or provide verifiable evidence.
When measuring hallucination, it is recommended to focus on at least three metrics:
- Fact Error Rate = Number of answers containing factual errors / Total valid answers.
- Unsubstantiated Assertion Rate = Number of key statements lacking source or verifiability / Total key statements.
- Reasonable Refusal Rate = Number of questions correctly declined due to insufficient information / Number of questions that should be declined.
Note that an excessively high refusal rate harms usability. A model that only answers “I don’t know” won’t produce hallucinations, but it has no practical value. Therefore, evaluation must consider both the error rate and the refusal rate, setting thresholds in line with business tolerance.
4. Agent Coding Evaluation: Timeout Rate and Completion Rate
Agent coding tasks typically involve reading project context, planning steps, calling tools, modifying code, and running tests. Compared to single-turn QA, these tasks take longer and have more failure modes. Timeout is the most direct form of failure.
Suppose an evaluation has 50 questions, 8 of which exceed the time limit; the timeout rate is 16%. The completion rate depends on whether these questions produced runnable results within the time limit. Both metrics must be viewed together, because a model might finish within the time limit but fail to pass the tests.
def agent_coding_metrics(records, timeout_s):"""records is a list where each item contains elapsed_s (elapsed seconds) and passed (whether it passed tests)."""total = len(records)timed_out = sum(1 for r in records if r["elapsed_s"] > timeout_s)completed = sum(1 for r in records if r["elapsed_s"] <= timeout_s and r["passed"])return {"timeout_rate": timed_out / total,"completion_rate": completed / total,}
In engineering, timeout rate should be treated as a first-class monitoring metric. If a coding assistant frequently times out during peak hours, developers have to retry repeatedly, actually reducing efficiency. During evaluation, the time limit should be set to match the business context—shorter limits for interactive scenarios and longer limits for batch tasks.
5. Cost Per Question Accounting
Model costs are typically priced separately based on input tokens and output tokens. For reasoning models, tokens generated during the intermediate reasoning process are also counted as output, so you cannot rely solely on the length of the final answer.
The formula for calculating average cost per question is:
Cost Per Question = (Input Tokens × Input Unit Price + Output Tokens × Output Unit Price) / Number of Questions
Cost reductions between versions can be expressed using the relative change rate:
Reduction Rate = (Old Version Cost Per Question − New Version Cost Per Question) / Old Version Cost Per Question × 100%
def cost_per_question(records, price_in_per_m, price_out_per_m):"""price is the unit price per million tokens, currency must be consistent."""total = 0.0for r in records:total += r["input_tokens"] * price_in_per_m / 1_000_000total += r["output_tokens"] * price_out_per_m / 1_000_000return total / len(records)def reduction_rate(old_cost, new_cost):return (old_cost - new_cost) / old_cost * 100
When comparing costs, ensure both evaluations use the same question set, the same pricing metric, and the same currency. If the question sets differ, changes in cost per question might only reflect differences in question difficulty.
6. Converting Public Benchmarks into a Proprietary Selection Process
Public leaderboards are suitable for initial screening. The final decision should still be based on your own business data. The recommended process is as follows:
- Define Task Set: Extract representative samples from real business operations, covering main scenarios and edge cases.
- Fix Evaluation Parameters: Standardize prompt templates, output formats, time limits, and sampling settings.
- Run Multiple Times for Distribution: Run the same question repeatedly, recording the mean and variance to avoid the randomness of a single result.
- Record Quality, Latency, Timeout, and Cost Simultaneously: All four categories of metrics are indispensable.
- Weighted Scoring: Set weights based on business priorities and calculate a composite score.
An example of weighted scoring is below. Each dimension must first be normalized to a 0-100 scale. Cost-type metrics should be inverted so that lower costs yield higher scores:
WEIGHTS = {"reasoning": 0.30,"hallucination": 0.25,"coding": 0.25,"cost": 0.20,}def weighted_score(scores):"""scores are the normalized scores for each dimension, ranging from 0 to 100."""return sum(scores[dim] * weight for dim, weight in WEIGHTS.items())
Weights should be determined jointly by business stakeholders and adjusted as the business evolves. Early in R&D, you might prioritize capability ceilings, while after large-scale deployment, cost and stability become more critical.
7. Common Pitfalls
- Looking only at the total score while ignoring shortcomings in specific dimensions.
- Ignoring timeouts and failed samples, only aggregating successfully completed questions.
- Comparing costs using different pricing metrics or different question sets.
- Mixing results from different versions, forgetting to verify version numbers and evaluation dates.
- Directly using questions from the evaluation set for training or fine-tuning, leading to inflated scores.
8. Implementation Recommendations
- Build an internal evaluation set and update it regularly to prevent score distortion from data leakage.
- Integrate timeout rate, completion rate, fact error rate, and cost per question into your daily monitoring dashboard.
- For tied candidates or those with minimal score differences, conduct small-scale A/B testing using real business samples.
- Record the configuration of every evaluation—including prompts, time limits, sampling parameters, and pricing information—to ensure reproducibility.
Public evaluations offer directional references. Teams need to transform them into a reproducible, measurable evaluation system aligned with business goals to make stable and reliable technical decisions.
