Lion Cipher Lab

Rank security models from pairwise battles with Bradley-Terry, and put a confidence interval on every rank

Why it matters

Every week a new model 'tops the leaderboard', and somebody on your team wants to swap your phishing-triage or alert-triage model for it. Most of those leaderboards are built the way Chatbot Arena is built: show two anonymous models the same prompt, let a person (or a judge model) pick the better answer or call a tie, collect thousands of these pairwise battles, and turn them into a ranking. The turning is where it goes wrong, and this lab does it four ways against an answer key so you can see exactly how. Six deterministic stub models, whose hidden true strengths are written in the script,…

What you'll learn

Steps in this lab

  1. The words first: pairwise battle, arena, win rate, Elo, Bradley-Terry, bootstrap, rank interval - and the fact that the models here are stubs
  2. Open a terminal and make a scratch folder (all three operating systems)
  3. Build the arena: six stub models, 2,000 seeded battles, and the answer key in plain sight
  4. The models are STUBS - here is their entire behaviour, and what that does and does not let you conclude
  5. Rank by raw win rate - and watch the opponent mix lie
  6. Online Elo: same battles, different order, different leaderboard
  7. Fit Bradley-Terry by maximum likelihood with the MM iteration - order-free, and it recovers the answer key
  8. Bootstrap the battles: a confidence interval on every score and every rank
  9. How many battles would it take to separate the top two?
  10. The judgment: when a leaderboard rank means something, and when it does not
  11. The way a pro does it differently - and what to ship

Open the full interactive lab →