Okay, let's break down how LM Arena (often also called Chatbot Arena) works. It's a platform designed for crowdsourced evaluation and comparison of large language models (LLMs) based on human preference.
Here's the step-by-step process:
-
User Interaction:
- A user visits the LM Arena website (e.g., arena.lmsys.org).
- The user enters a prompt or query, just like they would with any chatbot.
- The system takes this prompt and sends it to two different LLMs from its available pool.
- The system presents the responses from these two models side-by-side. Crucially, the models are presented anonymously, typically labeled as "Model A" and "Model B". The user doesn't know which specific model (e.g., GPT-4, Claude 3, Llama 3, Mistral, etc.) generated which response.
-
Comparison and Voting:
- The user reads both responses (Model A and Model B).
- Based on their judgment, the user chooses which response is better. They can select:
- "Model A is better"
- "Model B is better"
- "Tie" (both are equally good or equally bad)
- Users can often also provide optional individual ratings for each model's response and add comments explaining their choice.
-
Data Collection:
- The platform records the user's prompt, the responses from the two models, and the user's comparison choice (A better, B better, Tie).
- This data is collected from thousands of users making millions of comparisons over time.
-
Ranking System (Elo Rating):
- The core of how models are ranked is typically an Elo rating system. This is the same type of system used in chess or competitive video games to rank players based on wins and losses.
- When a user chooses Model A as better than Model B, Model A's Elo score increases, and Model B's Elo score decreases. The amount of increase/decrease depends on the models' current scores (a win against a higher-ranked model yields more points).
- A "Tie" results in minimal or no change to scores.
- This system is effective because it's designed for pairwise comparisons and dynamically adjusts rankings as more data comes in.
-
Leaderboard Generation:
- Based on the aggregated comparison data and the calculated Elo scores, the platform generates a public leaderboard.
- The leaderboard ranks the LLMs based on their current Elo scores, showing which models are performing best according to human preferences in these blind tests.
- The leaderboard is updated regularly as more comparisons are made.
In essence, LM Arena works by:
- Anonymously pairing LLMs against each other for a given prompt.
- Asking humans to be the judges of which response is better.
- Using a competitive ranking system (like Elo) to aggregate these pairwise human preferences into a overall performance score and leaderboard.
This provides a valuable real-world benchmark that complements traditional automated evaluation methods, capturing nuanced aspects of model performance like helpfulness, creativity, and coherence as perceived by actual users.