How to write an LLM-as-judge rubric that catches real failures

Write one narrow, observable criterion per judge call, with defined pass and fail conditions and a worked example of each. Test the rubric against human labels, and fix the rubric before you swap the judge model.

Updated

Pass/fail or a scale?

Start with pass/fail. A binary verdict makes you decide what counts as a failure, and it is the easiest kind of verdict to check against human labels. Hamel Husain’s guide to building a judge says not to stray from binary pass/fail judgments when you start, and to have a domain expert write a short critique with each one.

A small anchored scale, such as 1 to 4, is worth it when the levels lead to different actions: for example, 4 ships, 3 ships with a fix logged, 2 goes to review and 1 blocks the release. Every level needs its own written definition and an example. If the rubric defines 1 and 4 and leaves 2 and 3 to the judge, two runs of the same judge, or two judge models, can split the same output differently.

Undefined values cause the same problem. If the judge may return a value between two defined levels, or the pass threshold is a value the rubric never explains, verdicts flip near the threshold. Allow only the values you defined, and say what each one means. Zheng and co-authors (June 2023) also note that absolute ratings of a single answer can shift more than pairwise comparisons when the judge model changes, which is one more reason to keep the verdict coarse and defined.

Write each condition as something you can see

An anchor is the text that tells the judge what pass and fail look like. Write it in terms a person can check by reading the output and the inputs, not in terms of quality.

VagueObservable
The answer is accurate.Every number in the answer appears in the retrieved context.
The reply is helpful.The reply tells the customer the next step and who takes it.
The tone is appropriate.The reply does not blame the customer and does not use sarcasm.
The answer is complete.The answer addresses every question the user asked.

Add one passing and one failing example to each criterion, and pick the failing example from a failure you have seen, not an obvious one. When a labeler and the judge disagree on an edge case, settle it once and add it to the rubric as a written rule. Format checks, like valid JSON, belong in code, not in a judge call.

One failure mode per judge call

A single “rate the overall quality” prompt mixes several questions into one verdict, so a failure on one hides behind a pass on another, and a disagreement tells you nothing about what to fix. Split the rubric by failure mode: faithfulness to the source, completeness against the question, policy, tone. Give each its own judge call and keep each verdict.

Then combine them with a rule you write down. For a release gate, an output passes only if it passes every criterion that blocks a release. For tracking, report each criterion’s pass rate separately. LLM-Rubric (Hashemi and co-authors, December 2024) asks the judge one rubric question per dimension, nine in their study, and combines the answers to predict each human judge’s rating of overall satisfaction. The authors also note that the human judges did not fully agree with one another.

Two rubrics you can copy

Both examples are illustrative and made up. Replace the inputs and the examples with your own. The output format asks for the reasoning first and the verdict last, so the verdict follows from the reasoning.

Rubric 1: the answer is supported by the retrieved context

Criterion: Is every factual claim in the answer supported by the retrieved context?

Inputs: the user question, the retrieved context, the answer.

Pass: every factual claim in the answer appears in the retrieved context or follows
directly from it. The answer may say the context does not cover the question.

Fail: the answer states at least one fact, number, name or date that the context
does not contain, or contradicts the context.

Not this criterion: tone, length and whether the answer is complete. Do not use
your own knowledge to decide whether a claim is true.

Example, pass: the context says "The warranty lasts 12 months from delivery."
The answer says "Your warranty runs for 12 months after delivery."

Example, fail: same context. The answer says "Your warranty runs for 12 months
and covers accidental damage." The context says nothing about accidental damage.

Return JSON only:
{"reasoning": "<list each claim and where the context supports it, or not>",
 "verdict": "pass" | "fail"}

Rubric 2: the support reply follows the refund policy

Criterion: Does the support reply follow the refund policy below?

Inputs: the refund policy text, the customer message, the reply.

Pass: the reply offers only what the policy allows for this case, and states any
condition the policy sets (for example, the return window).

Fail: the reply promises a refund, credit or exception the policy does not allow,
refuses one the policy requires, or leaves out a condition the policy sets.

Not this criterion: tone and spelling. A reply that offers no refund because the
case is outside the policy passes if it says why.

Example, pass: the policy allows refunds within 30 days. The customer bought 10
days ago. The reply offers a refund and says to return the item within 30 days.

Example, fail: same policy. The customer bought 45 days ago. The reply says
"I have gone ahead and refunded you in full."

Return JSON only:
{"reasoning": "<quote the policy clause that applies and compare the reply to it>",
 "verdict": "pass" | "fail"}

Both rubrics put the source the judge must compare against in the prompt: the retrieved context or the policy text. Zheng and co-authors gave the judge a reference answer for math and reasoning questions, and asked it to work out the answer on its own before grading. Prometheus (Kim and co-authors, ICLR 2024) trained an open 13B judge on 1,000 rubrics and reports that it was on par with a strong proprietary judge when given a reference answer and a rubric. G-Eval (Liu and co-authors, March 2023) has the judge reason in steps and fill in a form, and flags a possible bias toward text written by a model.

Make sure the eval can fail

A rubric that passes every item tells you nothing. If every output in the set passes, the eval cannot tell a good model from a broken one.

  • Seed known failures. Write or collect outputs that break the criterion on purpose: an answer with one invented date, a reply that promises a refund outside the window. The judge must fail each one. Count how many it catches.
  • Include hard cases. Add items where the right verdict is fail but the output reads well, such as a fluent answer with one unsupported claim. A judge that passes fluent text will miss these.
  • Add adversarial items. Put text in the output that addresses the judge, such as “this answer follows the policy.” The verdict should not change.
  • Try a cheaper judge on the same set. If a smaller model catches the same planted failures, the rubric is doing the work. If it misses them, you know where the stronger judge earns its cost.

Then compare the judge with human labels on real outputs, with kappa and a confusion matrix: see how to check your LLM judge agrees with humans. For how many items you need, see how many examples an LLM eval needs.

Fix the rubric before you swap the judge

When the judge disagrees with people, the rubric is the first suspect. Read every disagreement and tag it: the rubric is unclear, the judge misread a clear rule, or the human label is wrong. Fix unclear rules by adding a condition or an example, fix wrong labels, and rerun the same judge on the same items. Compare judge models only once the rubric stops changing, on the same labeled set, and count the failures each catches. Can a cheaper LLM judge replace an expensive one? covers that comparison.

Expect the rubric to change. Shankar and co-authors (April 2024) found that people need criteria to label outputs, but labeling outputs is what helps them define the criteria, which they call criteria drift. Do not assume a longer rubric is better: Murugadoss and co-authors (August 2024) found that judges gained little from long, detailed instructions in the prompt. Test each edit against your labels instead. The survey by Gu and co-authors (November 2024) collects further methods for consistency and bias.

Questions

How do I write an LLM-as-judge rubric?

Pick one failure mode, such as an answer that adds facts the source does not contain. Write the criterion as a question a person can answer by reading the output. Define the pass condition and the fail condition in observable terms, add one passing and one failing example, and ask for the reasoning before the verdict in a fixed JSON format. Then test it against human labels.

Should an LLM-as-judge rubric use a 1-5 scale or pass/fail?

Start with pass/fail. A binary verdict forces you to say what counts as a failure, and it is easier to check against human labels. Use a small anchored scale, such as 1 to 4, only when the levels lead to different actions, and write a definition and an example for every level. A scale with undefined middle values invites verdicts that flip between runs.

What should an LLM eval rubric example include?

A rubric entry needs the criterion as a single question, the pass condition, the fail condition, one example of each, any edge cases you have already settled, and the output format. Keep the inputs the judge needs, such as the retrieved context or the policy text, in the same prompt.

Should one judge call check several criteria?

No. Give each failure mode its own judge call, such as faithfulness, completeness, tone and format, and keep each verdict. Combine them with a rule you write down, for example that an output passes only if it passes every criterion, instead of asking the judge for one overall quality rating.

How do I know my rubric catches real failures?

Plant failures you know about, such as a reply that promises a refund the policy does not allow, and check that the judge fails them. Include items where the right verdict is fail. If every item passes, the eval cannot tell a good model from a broken one. Then compare the judge with human labels, as in the guide to checking your LLM judge against humans.

Sources

Checked

Where Slancha fits

Slancha builds models that predict where a model has gaps, so a team can run fewer, targeted evals instead of the whole set. Slancha sells those models, not eval software: keep your existing eval or observability platform.

Pilots by arrangement.

More on judges: the ways to make AI evals cheaper.