Predictive Human Preference: From Model Ranking to Model Routing

Chip Huyen28 Feb 2024

Problem

Teams building AI applications must pick a model, and the best model overall is not the best for every prompt. A global ranking such as LMSYS's Chatbot Arena says which model users prefer on average. It cannot tell which prompts a cheaper or faster model handles just as well, so teams send everything to the strongest model and pay its full cost and latency.

Example from the article: in a 2023 Chatbot Arena dataset, GPT-4 is the strongest model, yet users preferred it in only 85.1% of the 355 non-tie matches involving it. If the system knew in advance that users prefer Claude Instant's answer for a given prompt, it could route that prompt to the cheaper model.

Solution in brief

Treat preference as classification over (prompt, model A, model B) and train a small predictor on pairwise comparisons. Unlike Bradley-Terry, which sees only model names, the predictor sees the prompt. Its predictions give a leaderboard for one prompt or one domain and support routing.

Questions this case answers
  • How to choose, for each incoming request, the cheapest candidate system that users will still prefer, when only pairwise preference comparisons between systems are available
  • How to measure whether a global ranking built from pairwise comparisons predicts individual outcomes better than chance
  • How to predict which LLM users will prefer for a specific prompt?
  • How to route prompts to a cheaper or faster model without losing answer quality?

Tools and methods

  • Bradley-Terry model — scores models by maximum likelihood from match outcomes; baseline and the way to turn predictions into a leaderboard
  • Preference predictor — classifier on (prompt, model A, model B) that outputs the probability that A is preferred
  • DistilBERT — prompt encoder in the predictor
  • JAX — framework for the experiments
  • Chatbot Arena data — 33K crowd-sourced matches for training and evaluation
Continue reading — it's free

Google or a one-time email code. No password.