Stepthrough Start free

What is pairwise comparison in AI evaluation?

Quick answer

Pairwise comparison is a way to judge AI output by putting two answers to the same input side by side and picking the better one, or calling a tie. It is how you test "old prompt vs new prompt" or "model A vs model B" without needing a perfect score for either answer on its own.

Last updated

Take the free module →Module 3 of the free Better Prompts course, about 8 minutes. No account needed.

Updated · By Robert Breen

Why it matters for a small business

Most people find it hard to say whether an email deserves a 6 or a 7, but easy to say which of two emails they would rather send. Pairwise comparison uses that. Repeat it across a set of inputs and you get a clear win rate, such as "the new prompt won 14 of 20". Public leaderboards such as LMArena, which began as Chatbot Arena, rank models from many people's pairwise votes.

It has known traps. Judges, human or AI, tend to favor the answer shown first and the longer answer. Research on LLM judges, including the 2023 MT-Bench and Chatbot Arena paper, found this position bias in models too. Swap the order and run the pair again, hide which tool wrote which answer, and judge against a rubric rather than general impression.

In a real lesson: The Prompter AI: Prove a Better Prompt Works on Your Own Meeting Notes

In The Prompter AI: Prove a Better Prompt Works, you recap the same Harbor Insurance Agency meeting notes twice in ChatGPT. First the quick ask, Summarize these meeting notes. Then, in a new chat so the first answer can't influence the second, a prompt with Role, Context, Task and Format and the guardrail not to invent dates or owners.

The lesson doesn't use the word pairwise, but that is the test you run: same input, two prompts, two answers compared. The quick answer is readable with the facts right, but it doesn't say who does what by when. The four-part answer gives a table with owners and dates, and writes Not stated instead of guessing. That before and after is your evidence for the forum's weekly challenge.

Try this lesson free or read the step-by-step guide.

Common confusions

Pairwise comparison vs A/B testing

A/B testing splits real users between two versions and measures what they do. Pairwise comparison has a judge look at both answers to the same input.

Pairwise vs absolute scoring

Absolute scoring grades each answer alone, for example out of 10. Pairwise only says which of two is better.

Tips

  • Use the exact same input for both answers, in fresh chats.
  • Hide which prompt or tool wrote each answer, and swap the order for a second look.
  • Compare on a set of inputs, not one, before you declare a winner.

More Prompting terms

Where you use it: free lessons

Frequently asked questions

Can I compare more than two answers?
Yes, but people judge two at a time more reliably. With four tools, compare pairs or score each against the same rubric, as the four assistants lesson does.
What is position bias?
The habit of preferring whichever answer is shown first. Swapping the order and judging again reduces it.
Does a tie count?
Yes. A tie on the facts is useful, because it tells you to decide on other things like cost, privacy or what your company already allows.

All AI glossary terms, A to Z · Free prompt templates