LLM-as-a-judge: when a model can grade another model
LLM as a judge explained: when one model can grade another's output, how reliable it is, its known biases, and when exact-match scoring is the honest test.
Updated
LLM-as-a-judge means using one language model to score another model’s output. You give the judge the input, the output and a written rubric, and it returns a label or a number. It works for open-ended checks where no single correct string exists. It is only trustworthy after you measure how often it agrees with careful human reviewers on the same outputs.
What is LLM as a judge?
A judge is a prompt with a rubric. For example: “Does the answer state only facts found in the source text? Reply yes or no and give one reason.” The judge reads the input and the output, applies the rubric, and returns a grade. Teams use this for tone, helpfulness, summary quality and policy checks. It runs on thousands of outputs without a person in the loop. The catch is that the judge is also a model, so it makes its own errors.
Is LLM as a judge reliable?
It is reliable only where you have shown it is. Take a sample of your own outputs, have two people label them, have the judge label them, and compare the results. Look at the disagreements, not just the agreement rate. A judge can match people on easy cases and fail on hard ones, and the hard cases are usually the ones you care about most.
Reliability also changes over time. When the judge model is updated, or you edit the rubric, run the agreement check again. A score from an earlier judge is not comparable to a score from a new one.
Using GPT to evaluate model outputs
A frontier model such as GPT is an easy judge to start with. It takes little code to set up. Each graded output is another model call, so the judge’s tokens are a real cost on top of the model you are testing. Check the provider’s current pricing page before you score a large batch. We do not quote OpenAI prices here.
A judge from the same model family as the model under test can favor its own style. Where you can, pick a different judge. Either way, measure the judge against people before you rely on its scores.
LLM judge bias
Judges have known biases. They can prefer longer answers, the first answer in a pair, and answers that sound confident. Rubric wording can also push the score toward the answer the rubric seems to want. Some ways to reduce this:
- Randomize the order when you compare two outputs, and score both orders.
- Score one criterion per call instead of asking for one overall grade.
- Keep the rubric short, and give one clear example of a fail.
- Compare the judge with human labels on a sample before you trust its scores.
Automated evaluation of LLM outputs: when exact match is the honest test
If your task has a gold answer, score against it and skip the judge. An extraction task has a right answer: a span of text in the document, or a field value. You can check the output with exact match, or with precision, recall and F1 when the output can hold several items (how those scores work for LLM tasks). No model has to make a judgment call, so there is no judge bias to measure.
Write the match rule before you score anything, such as whether “30 days” equals “thirty (30) days” and what a correct empty answer looks like, then read a sample of the misses by hand and loosen the rule only where a person agrees the answer is right. The full method is in how to build a test set.
Human evaluation vs automated evaluation of LLMs
Human review is slower and costs more per output. It is the reference the rest of your scoring gets checked against. Automated scoring runs on every output, but it only measures what its rubric or answer key tells it to measure. So they do different jobs. Use people to write the rubric, label a sample and audit the judge. Use automation for volume once you know how well it agrees with people. For how to build that labeled sample, see building a test set from your own data.
A judge is the wrong choice when the answer can be checked against a key. It is also the wrong choice when you have no human labels to check it against. If your task changes every week, or you have only a few dozen examples, a frontier API with careful manual review may serve you better than a trained model.
| Situation | Scoring method that fits |
|---|---|
| One correct answer exists (a field value, a clause span, a label) | Exact match, or F1 against gold labels |
| Open-ended output (a summary, a reply, a tone check) | LLM judge, checked against human labels |
| New task or high-stakes output | Human review of a sample, plus the judge |
Not sure how your outputs are scored today? Run the free AI cost audit in your repository, which flags AI calls with no evals, or talk to us about building a test set from your own records.
Questions
What is LLM as a judge?
A second model reads the input and the output, applies a written rubric, and returns a grade. It suits open-ended checks such as tone, helpfulness or summary quality. Its scores only mean something after people have checked them against their own labels.
Is LLM as a judge reliable?
It can be, on the cases you have tested. Have people label a sample of your own outputs, then measure how often the judge agrees with them. Run that check again after any change to the judge model or the rubric.
Can I use GPT to evaluate model outputs?
Yes. Every graded output is another paid call, so price the judge with the provider's current pricing page before a large run. Where you can, use a different model as the judge than the one you are testing, so the judge's habits do not flatter the model under test.
What is LLM judge bias?
It is a steady lean in a judge's scores, such as favoring longer answers, the first option in a pair, or confident wording. Randomizing pair order and scoring one criterion at a time reduce it. You still need to compare the judge with human labels to see what bias remains.
Should I use human evaluation or automated evaluation for LLMs?
Use people to define what good means and to audit the grader, and use automation to score volume once the two agree. If the output has one correct answer, exact match against a gold label is cheaper and more honest than either.