How Inference Speed Quantitatively AffectsWin Rates in LLM Leaderboards
速度如何量化影响大模型榜单胜率。本文解释了为什么在基于偏好的评测中,推理速度是一个独立变量,并展示了如何用协变量结合 Bradley-Terry 回归来建模身份、速度和早期投票偏差。内容包括 Elo 点估计、置信区间以及使用标准云原语的可复现评估流水线。
1. The Starting Point: Speed Is Now a First-Class Citizen
LLMs have traditionally been evaluated on benchmark scores. In real-world serving, however, what users perceive as “good” comes down to two things: whether the answer is correct and how fast it arrives. A well-known public observation illustrates this: two tiers of the same model generation from one vendor showed roughly 127 tokens per second versus about 46 tokens per second when accessed through a third-party aggregated routing service — a gap of nearly 2.8x. The slower tier had been the top performer on a popular battle-style leaderboard once early-vote bias was removed, with slowness as its only obvious weakness.
The conclusion is straightforward: in preference-based evaluations — where users compare responses pairwise and vote — speed is not a cosmetic detail but an independent variable that changes ranking outcomes.
2. Why Naive Statistics Distort Results
Simply aggregating votes by model to compute win rates introduces three systematic biases:
- Identity confounding: stronger models tend to launch earlier and get more exposure, creating a Matthew effect.
- Speed confounding: slower models get abandoned or switched away mid-conversation in long or multi-turn exchanges, and those failures get recorded as “capability” failures.
- Temporal bias (early votes): in the early days of a leaderboard, participants’ comparison strategies and prompt distributions differ sharply from later ones; early samples are both sparse and noisy.
So the right approach is not “compute average win rates” but build a win-rate model that takes model identity, speed, and voting time as covariates simultaneously, and explicitly include an interaction term between speed and early votes — because the damage caused by slowness during sparse early samples differs from that in the mature phase. Adding the interaction term substantially improves model fit, and the speed coefficient turns out to be nearly as large as the identity coefficient. That is the quantitative evidence.
3. Modeling: Bradley-Terry Regression with Covariates
Let P(A wins) denote the probability that model A beats model B when they battle:
P(A wins) = sigma( (theta_A - theta_B) + beta_v * Delta log(tok/s) + beta_e * Delta Early + beta_ve * (Delta log(tok/s) * Delta Early) )
where sigma is the sigmoid function, theta is a model identity effect (scaled by a fixed constant to map to Elo points), and Delta denotes the difference in feature values between A and B. Speed enters as a logarithm because perceptual benefit has diminishing returns: the gain from 46→127 tok/s is far larger than from 400→800 tok/s.
Minimal working implementation:
import numpy as npfrom scipy.optimize import minimizedef fit_winrate(X_id, v, e, y, l2=1.0):"""y: 1=A wins, 0=B wins, 0.5=tie; v: Delta log(tok/s); e: early-vote indicator delta"""k = X_id.shape[1]def nll(theta):z = X_id @ theta[:k] + theta[k]*v + theta[k+1]*e + theta[k+2]*(v*e)p = 1.0 / (1.0 + np.exp(-z))loss = -np.sum(y*np.log(p+1e-9) + (1-y)*np.log(1-p+1e-9))return loss + 0.5*l2*np.sum(theta**2) # light regularization to curb overfitting on sparse identitiesreturn minimize(nll, np.zeros(k+3), method="L-BFGS-B").x
Engineering notes:
- Ties should not be discarded — include them at a target of 0.5, equivalent to “half a win”.
- Identity features should use one-hot differences so the model is additive, and theta maps directly to Elo scale.
- Speed features must be measured through the same gateway and under the same concurrency level, otherwise the data is not comparable.
4. Predicting a New Model: From Benchmark Scores to Win-Rate Intervals
As a worked example, consider a newly launched high-throughput tier. The inference pipeline has four steps:
- Baseline capability assumption: its benchmark scores beat the other tier of the same generation, but to be conservative we assume baseline capability is only equal to the latter — the new model gets benefits only from speed.
- Plug in speed: convert 127 tok/s into Delta log(tok/s), multiply by the fitted beta_v and the interaction term.
- Point estimate: get an estimated Elo of about 1066 on the leaderboard, slightly below a stronger model’s 1078 in a later snapshot.
- Uncertainty: the difference is approximately -12 Elo points, with a 90% confidence interval from -94 to +68, and an estimated win probability of 48.3% (counting ties as half-wins).
Because the interval spans zero, the two models are statistically indistinguishable — so model selection should fall back to engineering constraints like cost, context length, and stability. The interval can be estimated with simple parametric sampling:
rng = np.random.default_rng(0)draws = rng.normal(loc=-12.0, scale=41.0, size=50000) # scale derived from the parameter covarianceprint(np.percentile(draws, [5, 95])) # roughly [-94, +68]win = np.mean(1/(1+np.exp(-draws/400*1.0*np.log(10)))) # Elo -> win rate conversion
5. Putting It into Practice: Making Evaluation an Observable Pipeline
- Standardize load-testing conditions: fix input length distributions, concurrency, and sampling parameters; spin up the load-test cluster on elastic container infrastructure to avoid cross-interference.
- Log everything: request logs, time-to-first-token, end-to-end latency, and token throughput flow into a logging service, tagged with an “early sample” flag.
- Online monitoring: set alerts on win rates and confidence-interval widths. If intervals are too wide, the sample size is insufficient — collect more data before drawing conclusions.
- Archive results: store fitting scripts, feature snapshots, and random seeds in object storage for reproducibility.
- Selection guidance: prefer high-throughput tiers for latency-sensitive scenarios; use benchmark scores as a second filter for complex reasoning tasks. They are complements, not substitutes.
6. Summary
Speed now influences rankings at the same order of magnitude as model identity. This demands an upgrade in evaluation methodology — from “average win rate” to win-rate regression with covariates plus interval estimation. With this toolkit, you can both explain why leaderboards defy intuition and build your own reproducible model-selection loop using general-purpose cloud capabilities (container platforms, logging services, alerting, object storage) available on providers such as Baidu AI Cloud.
