LLM as a judge: when to trust it, when to ask people

LLM as a judge means you ask one language model to score the answers of another, using a rubric you wrote. It is fast and it scales. It can also be wrong in ways that are easy to miss: a judge does not see your interface and does not know your users. This guide shows how to build one, how to check it, and when to ask people instead.

Willem van der MadenCo-founder · Researcher at the IT University of Copenhagen

7 min read Guides

Summarise with AIChatGPTClaudeGemini

What is LLM as a judge?

The idea is simple. You give a strong model the question, the answer and a set of instructions, and it returns a verdict: a score, a pass or fail, or a choice between two answers. It is also written LLM-as-a-judge, LLM as judge or just LLM judge. In Danish it is "sprogmodel som dommer".

The term is tied to a 2023 paper by Zheng and colleagues, "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena". They used strong models to rate chat assistants on open-ended questions and compared the verdicts with human votes. People use the same idea for the checks inside AI evals, where a rule in code cannot tell whether an answer is good.

There are three common set-ups. In pairwise comparison the judge sees two answers to the same question and picks the better one. In single-answer grading it scores one answer on a scale or as pass or fail. In reference-guided grading it also gets a correct answer to compare against.

For a product team the second one is usually the useful one. You are rarely choosing between two answers. You are asking whether this answer meets one criterion, such as "names the source it used".

Can you trust it? Research and known biases

Zheng and colleagues reported that a strong judge model agreed with human votes more than 80 percent of the time on their benchmark, about the same as humans agreed with each other. In their own table, GPT-4 matched human votes 85 percent of the time on non-tie votes, against 81 percent between two humans.

Read that number for what it is. It was measured on general chat answers to a set of public questions, rated by people. It does not say how a judge will do on your product, your users or your criteria. The paper gives you a reason to try a judge, not a reason to skip checking it.

The same paper names three that you should plan for.

  • Position bias: a tendency to favor an answer because of where it appears. The authors reduce it by running the judge in both orders and counting a win only when the same answer wins twice. If the order changes the verdict, they call it a tie.
  • Verbosity bias: a preference for longer answers, even when a shorter one is as clear or as accurate.
  • Self-enhancement bias: a possible preference for answers written by the judge model itself. The authors report that in their data two judge models favored their own answers by about 10 and about 25 percent in win rate, but say they cannot conclude firmly that the bias exists.

The paper also lists limited reasoning ability. In a small test of 10 math questions, each judged twice with the answer order swapped (20 comparisons), a reference answer in the judge prompt cut the share of wrong verdicts from 14 of 20 to 3 of 20, and asking for step-by-step reasoning gave 6 of 20. With so few questions, treat that as a hint and not as a rate.

How do you write a judge prompt and rubric?

A judge is only as good as its instructions. These habits make verdicts easier to check.

  1. Judge one criterion per prompt. "Is it grounded, short and friendly" is three judges.
  2. Define the criterion in plain words and say what a pass looks like and what a fail looks like.
  3. Add two or three examples of each verdict, taken from real answers.
  4. Ask for the reason first and the verdict last, in a fixed format you can read by machine.
  5. Prefer pass or fail to a scale of one to ten. A pass mark is easier to set on a rate of passes.
  6. Do not let the judge see anything it should not weigh, such as which model wrote the answer.

How do you check the judge against people?

Treat the judge as a measuring instrument that needs calibrating. Take a set of answers, have people label them with the same criterion, and compare. The set you keep for this is a golden dataset, and the labels must come from people who know the product.

  • Count agreement on passes and on fails separately. A judge that passes everything looks good on a set that is mostly passes.
  • Read every disagreement. Either the judge is wrong, the people are wrong or the criterion is unclear. All three are worth knowing.
  • Keep part of the labeled answers aside and never use them to tune the prompt. They are for the final check.
  • Check again when you change the judge model, the prompt or the product. Agreement from last month is not agreement today.

When should you ask people instead?

A judge reads text. It does not see your interface, it does not know who is asking, and it does not know what happened next. So it can judge whether an answer follows a rule, and it cannot judge whether the answer helped. Only the person who got it can say that.

Judge or people, by situation
SituationUseWhy
A rule in the text: names a source, stays under a length, follows a formatCode check first, judge if a rule is not enoughThe answer text holds all the evidence.
Many answers every day, a clear rubric, checked against peopleJudgePeople cannot read it all, and the judge has earned trust.
Was the answer useful, clear, right for this person?PeopleThe judge cannot see the person or what they did next.
A new feature, a new kind of user, a new kind of failurePeopleYou have no labeled examples to check a judge against yet.
Safety, legal or money consequencesPeople review, judge flagsA wrong pass costs too much.

Most teams land on a mix: a judge that screens everything, and people who read a sample and the cases where the judge and the people disagree.

What is agent as a judge?

Agent-as-a-Judge is a 2024 idea from Zhuge and colleagues ("Agent-as-a-Judge: Evaluate Agents with Agents", October 2024). Instead of one model reading the final output, an agent evaluates another agent and gives feedback on the intermediate steps. The authors tested it on code generation with a benchmark of 55 development tasks and 365 requirements, and report that it did better than a plain LLM judge and came close to human evaluators there. Evidence outside code is thinner, so treat it as one to watch. See how to evaluate LLMs and agents for the wider picture.

How Eva uses a judge

Eva is in alpha. It judges every answer against the criteria your team wrote down, and it also asks your users whether the answer helped. The two sit side by side on purpose: the judge covers volume, and the users tell you whether the judge is looking at the right thing. We do not claim that this settles the question.

What a judge cannot tell you

A judge can be consistent and still wrong, because it applies your rubric faithfully to a rubric that missed the point. Agreement with people on a labeled set says the judge matches those people on those answers. It does not say the criterion is the right one, and it does not say the answer helped the person who read it.

← All posts

Want to see Eva judge answers against your criteria, and ask your users too?

Apply for accessTalk to a founder