Özer Cem KELAHMETKELAHMET
AI Simulations · Evaluation

Arena leaderboards: fit Bradley–Terry ratings from head-to-head model votes

Model arenas rank chatbots from millions of pairwise votes. Behind the leaderboard is a simple model: a rating gap sets the odds of winning. Edit the win rates, run the fit and see each rating move until predicted and observed results agree.

Download Markdown

Interactive simulation. It needs JavaScript; the text below explains what it shows.

Public leaderboards such as Chatbot Arena do not give a model a score on a fixed test. They show two anonymous answers to the same prompt, ask a person which is better, and turn many such votes into one number per model. This simulation fits those numbers from a small table of results, so you can see exactly how a rating is made.

What you are looking at

The table holds six pairings between four models. Each row says which two models met (a and b), how many games they played, and the share of games that model a won. A tie can be counted as half a win.

The orange columns are computed for every row: the current rating of each model, the predicted chance that a beats b, the log loss of that prediction and the surprise, which is actual wins minus expected wins. The chart plots, for each pairing, the predicted win rate against the observed one. When the fit is good, the dots sit on the dashed diagonal.

Press run and the four ratings move together, one gradient step at a time, while the loss curve falls. The results panel shows the ratings, the win probabilities they imply and the size of the gradient, which drops to zero when the fit is finished.

The algorithm

The Bradley–Terry model gives every model a single strength. The chance that model a beats model b depends only on the gap between their ratings. With the Elo convention used by arenas, the curve is a logistic function with base 10 and scale 400: a 400-point lead means 10 to 1 odds, a 100-point lead means about 64%, and equal ratings mean 50%.

Fitting the ratings means finding the values that make the observed results most likely. That is maximum likelihood, and it is the same problem as a logistic regression without an intercept, where each game is one example and the input says which model played on which side (see the logistic regression simulation).

The fit here uses plain gradient ascent:

  1. Start every model at the same rating, so every prediction is 50%.
  2. For each pairing, predict the win probability from the current rating gap.
  3. Compute the surprise: wins of a minus games times the prediction.
  4. For each model, add up its surprises, counting them as positive when it was model a and negative when it was model b, and divide by the total number of games. This is the gradient of the log-likelihood.
  5. Move each rating by the step size times its gradient, and repeat.

A model that keeps winning more often than its rating predicts collects positive surprise and moves up. Every surprise is added to one model and subtracted from the other, so the ratings shift relative to each other while their average never changes. That is why the model needs an anchor, here the starting rating: only differences between ratings carry meaning.

When every gradient is zero, each model's expected number of wins equals its actual number of wins. With the example data the fit converges to about 1,123, 1,032, 967 and 879 points, a mean log loss of 0.625 per game, and a 63% chance that model 1 beats model 2. These values match a scikit-learn logistic regression fitted to the same games.

Things to try

  • Set the step size to 10 and run: the ratings creep and the loss falls slowly. Then try 500: the fit settles in a few dozen steps.
  • Push the step size above 2,500 and watch the fit overshoot and settle on wrong ratings with a higher loss. Gradient methods need a step that matches the curvature.
  • Change the win rate of model 4 against model 1 from 0.83 to 0.5. A single upset drags model 4 up and model 1 down, and the other pairings no longer sit on the diagonal.
  • Add a pairing that contradicts the others, for example model 4 beating model 1 in 70% of 300 games. No set of ratings can fit every row, so some dots stay off the line.
  • Cut the games in one row to 5. That row now has little influence: the fit weights each pairing by how much evidence it holds.
  • Change the starting rating. All ratings shift by the same amount and every prediction stays the same.

How it works in real systems

Chatbot Arena first used online Elo, which updates two ratings after every single vote. The result then depends on the order of the votes, and recent games count more than old ones. LMSYS moved to the Bradley–Terry model, fitted by maximum likelihood over all votes at once, because it assumes game order does not matter and gives more stable ratings. They put confidence intervals on the ratings by refitting on bootstrap resamples of the votes.

The same model sits inside other parts of the LLM stack. Reward models for RLHF are trained with a Bradley–Terry loss on pairs of preferred and rejected answers, and LLM-as-judge tournaments rank prompts, agents or checkpoints the same way.

Real arenas fit hundreds of models from millions of votes, so they use a fast solver rather than the simple gradient steps shown here. When you read a leaderboard, look at the confidence intervals: two models whose intervals overlap may not differ at all. For how models are scored during and after training, see training evaluation.

Sources

Last updated Nov 23, 2026
Type to search.
    ↑↓ navigate↵ open