Part 4 · Judging RAG · Chapter 20
LLM as a judge
In one sentence: a language model can do the reading that judging needs, at a tiny share of the cost of a person, and it brings habits of its own that you must design around.
Why you should care
The last two chapters each ended with a reading job: does this answer contain this nugget, does this document support this sentence. A track has hundreds of thousands of such questions. Today most of them go to a language model. You will use one as a judge in almost any RAG project, because the other choice is to judge very little. The skill is to use it in a way that gives stable, honest numbers.
Words you need
- LLM judge
- A language model asked to grade or compare system output.
- Pointwise judging
- The judge sees one answer and gives it a grade.
- Pairwise judging
- The judge sees two answers and picks the better one.
- Rubric
- The written rules the judge must follow, with the meaning of each grade.
- Position bias
- A judge's habit of favouring the answer shown first, or the one shown second.
- Self-preference
- A judge's habit of favouring text written by itself or by a model from the same maker.
- Panel
- Several judges whose verdicts are combined.
- Model family
- The models made by one developer.
Core The idea
Three ways to ask
| Way | The judge is asked | Good for | Weak point |
|---|---|---|---|
| Against a list | Does this answer contain this nugget? Does this document support this sentence? | Narrow questions with a clear yes or no | Only as good as the list |
| Pointwise with a rubric | Grade this answer from 0 to 3 by these rules | A quick overall view | Grades drift, and many answers get the same grade |
| Pairwise | Which of these two answers is better? | Telling close systems apart | Needs many pairs, and gives a winner but no reason |
The narrower the question, the more reliable the judge. “Is this a good answer?” invites the judge's taste. “Does the answer state that the bridge closed in March?” leaves little room for it.
Habits to design around
- Position. In a pair, many judges lean toward one slot. Judge every pair twice with the answers swapped, and count a win only when the same answer wins both times.
- Length. Longer answers tend to win, even when the extra text adds nothing. Control length, or report it.
- Style. Confident, well-formatted text earns higher grades than plain text with the same facts.
- Self-preference. A judge may favour answers from its own family. Studies have found that models can recognize their own writing and tend to rate it higher.
- Wording. A small change to the judge's prompt can move the grades. Fix the prompt before you look at results, and keep it.
A checklist for using a judge
- Ask narrow questions. Break one broad grade into several small checks.
- Hide what the judge does not need: the system's name, its citation marks if you judge content.
- Swap the order in every pair.
- Set the temperature to zero and use a fixed reply format, so a program can read the verdicts.
- Decide in advance what happens when a reply is broken.
- Save every verdict with the prompt that produced it.
- Compare systems under one judge. Do not quote a judge's grades as absolute levels.
More than one judge
A panel of judges from different makers evens out the habits of each. For it to help, the members must differ. Two models from the same maker tend to share training data and style, so they count for less than two models from two makers. One simple rule is to give each family one vote, however many of its models sit on the panel.
Watch and read
- VideoLLM as a Judge: Scaling AI Evaluation Strategies IBM Technology, 6 minutes. A short introduction to grading one answer and comparing two. Page checked 16 Nov 2026
- PaperJudging LLM-as-a-Judge with MT-Bench and Chatbot Arena Zheng and others, 2023. Strong model judges agreed with people about as often as people agree with each other, and the paper names the position and length habits. Checked 16 Nov 2026
- PaperLarge language models can accurately predict searcher preferences Thomas and others, 2023. The study from Bing that started the wide use of models for relevance labels. Checked 16 Nov 2026
- PaperLLM Evaluators Recognize and Favor Their Own Generations Panickssery, Bowman and Feng, 2024. Evidence for self-preference. Checked 16 Nov 2026
How we did it at TREC 2026
The track's own judge
In the RAG track, a language model decided which rubric items and nuggets each answer supports. The organizers' notes name the model and its setting. So a model judge stands between every team and its nugget score, which is one reason the Auto-Judge track exists (Chapter 21).
Our duels during development
For the RAGTIME reports we compared pairs of runs with a model judge. Each pair of reports was judged twice with the order swapped, and a win counted only when the same report won both times. On 24 topics, selected evidence beat the plain top 18 on 7 topics and lost on 1, with 16 ties (Chapter 16). The many ties are the swap rule at work: a judge that changes its mind when the order changes has not really chosen.
Our judge for the Auto-Judge track
In the Auto-Judge track the judge itself is the submission. Ours follows the checklist above.
- 1Write the listThree open-weight models from three makers each draft nuggets from the topic text. One model merges the drafts. The merge may not add an item that is in no draft.Ch 18
- 2Grade contentEach panel member grades every answer against the merged list: 2, 1 or 0 per nugget. The judge sees the sentences without their citation marks.Ch 18
- 3Grade supportA sample of cited sentences is checked against the first cited document: full, partial or no.Ch 19
- 4Add checks with no modelWord overlap and citation validity, computed by a program.Ch 19
- 5CombineEach family's signals are averaged first. Then the families are averaged. The model-free checks count as one family.this chapter
The panel was gpt-oss-120b, Qwen3-235B and Llama-3.3-70B. A family means the developer, fixed in a table beforehand, so two Qwen models count once. A health gate drops a member whose signal fails or comes out the same for every answer. One of our ten runs added pairwise battles, judged in both orders, on top of the panel.
How well this judge did is in the Auto-Judge results, which arrived on 13 November. They go into this book once the organizers agree.
What surprised us
Try it
- Take 10 questions and two systems. Write a pairwise judge prompt that asks which answer covers more of the facts a reader needs.
- Judge every pair twice with the order swapped. Count how often the verdict flips.
- Pad the losing answers with two empty sentences each and judge again. Does anything change?
- Run the same pairs with a judge from another maker. On how many pairs do the two judges agree?
Check yourself
- What are the three ways to ask a model to judge?
- Why is each pair judged twice with the order swapped?
- What is self-preference, and how does a panel reduce it?
- Why does our panel give one vote per model family and not one per model?
- In our 12 to 0 duel, which habit was controlled and which was not?
Answers
- Against a list of nuggets or documents, pointwise with a rubric, and pairwise.
- To cancel position bias. A win counts only if it does not depend on the order.
- A judge favouring text from its own family. A panel mixes families, so no single family's taste decides.
- Models from one maker share habits, so two of them are less than two independent opinions.
- Position was controlled by the swap. Length was not.
Go deeper
- From pairs to a ranking. A Bradley–Terry model turns pairwise wins into one rating per system. With few pairs per system, add a small penalty that keeps ratings from running to extremes.
- Reasoning before the verdict. Asking the judge to explain first and decide second often helps on hard cases. It also costs tokens, and a reply cut off by a token limit can be read as a wrong verdict. Check for empty replies.
- Open-weight judges. A judge whose weights you can download gives the same verdicts next year. A hosted model may be replaced without notice. For a reusable evaluation this matters more than a small gain in accuracy.
- Does a panel beat its best member? Not always. A panel is safer when you cannot know in advance which member is best. On our pilot data we could not show that the panel beat its best single member.
- Seen it before. If the test answers or the reference nuggets are public, a judge model may have met them in training. Prefer fresh data for evaluating a judge.
- Project idea. Build a three-family panel for nugget assignment. Measure how often each member disagrees with the majority, by topic.