Gradient LabStart the lesson

Lessons › Chapter 15: Story: judging an AI with people

Episode 3: Which version is better?

Instead of scoring answers one at a time, show both versions’ answers to the same question side by side and ask “which is better?” This pairwise comparison is easier for people, and their choices are more consistent than their star scores.

Watch it move. This lesson is interactive on Gradient Lab: every step is an animated scene you can replay.

Start the interactive lesson

Step by step

Story

Leo has a new Pip

Leo has trained a new version of Pip. Its average star score is 3.7, versus 3.6 for the old one. Is that real progress, or just noise? Star ratings can’t say.

Key idea

Side by side is easier

Instead of scoring answers one at a time, show both versions’ answers to the same question side by side and ask “which is better?” This pairwise comparison is easier for people, and their choices are more consistent than their star scores.

Build

Count the wins

Over 300 comparisons, new Pip wins 64%, old Pip 28%, and 8% are ties. That win rate is a clear signal that the new version really is better.

Insight

Shuffle the sides

People slightly favor whichever answer they read first: position bias. So Maya’s tool randomly swaps which side each version appears on. Any leftover bias cancels out.

Real life

In real life: “one or two?” at the optician

At an eye test, the optician never asks you to rate a lens from 1 to 10. They ask “better with one, or two?” because comparing is far easier than scoring. Public chatbot leaderboards work the same way: people compare two anonymous answers and pick one.

Quick check: Why randomize which side answer A appears on?

Randomizing positions cancels out position bias, so the win rate reflects quality.

Pseudocode

for each question:
    show answer A (old Pip) and answer B (new Pip) side by side
    the rater picks: A is better, B is better, or a tie
win_rate(B) = B wins / all comparisons      # 64%

# randomize which side each version appears on

Key terms

pairwise comparison
Showing two answers side by side and asking which one is better.
win rate
The share of side-by-side comparisons that one version wins.
position bias
The tendency to favor whichever answer is shown first (or on one side), regardless of quality.

Build it: Human evaluation toolkit (30 min, runs in your browser)

See the project