LLM as a judge: continuous evaluation
Background
As a simplification, AI tasks largely fall under two poles:
- Tasks with objectives that are verifiable.
- Tasks that are more creative in nature, with no deterministic grader.
We can visualize AI tasks on a spectrum. For tasks with verifiable outcomes, such as math, we can usually set up a grader that checks the output of the AI rollout directly:
Source: Substack post
Typical graders for verifiable tasks are:
- Executable test cases
- String matching (e.g., personal identification patterns)
- Symbolic verification (math)
For tasks that are more open-ended and creative, such as creative writing, evaluating AI output is tougher:
Source: Substack post
The reasons are:
- AI outputs are not verifiable through deterministic rules. Usually we require:
- human judgement, or
- AI as a judge, as an imperfect proxy.
- AI outputs are non-deterministic: they differ between runs.
Requiring human judgement for every output is costly and does not scale. The alternative is to implement an LLM as a judge. But implementing an LLM judge properly is not an easy task:
- We need to anchor the LLM judgement to human judgement.
- We need to treat the LLM judgement as a lifecycle, not as a one-time evaluation. Inputs and outputs drift, hence we need a pipeline that can update the LLM judgement across time:
- Judge rubrics need to be updated.
- Prompts need to be updated.
- The evaluation set needs to be updated, perhaps by appending new examples.
In this post, we will go through one way to build a robust pipeline so that an LLM judge works at scale and is updated periodically. That way we can trust its scores, because they are regularly realigned with human judgement.
1. LLM as a judge
1.1. Building blocks
- At a minimum we need two LLMs: a generator and an evaluator. (Later on we will add two more helpers, a meta-judge and a reflector.)
- The generator does your task and produces an output.
- The evaluator is your LLM judge.
- We need an evaluation set curated by humans. It is how we check the output of the LLM generator using the LLM evaluator. These are the components:
X: the input context fed to the LLM. This can be a historical input from your users, such as the raw articles written by users, or a movie and its metadata.y_hat_gen: the output of the LLM generator. Examples: a summary of the raw article, or an explanation of why a movie is recommended.y_hat_judge: the output of the LLM evaluator. The evaluator takesXandy_hat_genand produces a score, either binary (fail/pass) or on a Likert scale (1-5).y_judge: the ground truth for the LLM evaluator, produced by humans. Humans look atXandy_hat_genand score them.
- Both LLMs also need prompts:
- The evaluator needs a rubric prompt: task introduction, evaluation criteria, and evaluation steps.
- The generator needs a generation prompt: what it needs to generate.
1.2. Examples of LLM judge evaluation
Let’s look at two examples to make this concrete.
1.2.1. LLM summarizer
- The LLM generator is tasked with generating a summary of a raw article.
- The LLM judge is tasked with rating the summary, and we benchmark it against human ground truth.
- Evaluation set from humans
X: the original articley_judge: the true score from humans (givenXandy_hat_gen) on a Likert scale
- Evaluation set from the LLMs
y_hat_gen: the summary (produced by the LLM generator givenX)y_hat_judge: the Likert score (produced by the LLM judge givenXandy_hat_gen)
- Prompts for the LLM evaluator (rubric prompt)
- the task introduction
- the evaluation criteria
- the evaluation steps
- Prompt for the LLM generator (generator prompt)
- what it needs to generate (the summary)
- Offline evaluation
- Compare
y_hat_judgeagainsty_judgeon the offline evaluation set, using accuracy or other metrics.
- Compare
Source: Liu, Yang, et al. “G-Eval: NLG evaluation using GPT-4 with better human alignment.” Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 2023.
1.2.2. Netflix’s recommendation explainer
- The LLM generator is tasked with explaining why a movie is recommended to a user: “why is this movie being recommended to me?”.
- The LLM evaluator is tasked with judging whether the generated explanation is suitable given the movie and the user.
- Evaluation set from humans
X: the recommended movie and its metadata, the past movies the user has interacted with, etc.y_judge: the true score from humans (givenXandy_hat_gen) on a binary scale (PASS/FAIL)
- Evaluation set from the LLMs
y_hat_gen: the generated explanation of why this movie is recommended (produced by the LLM generator givenX)y_hat_judge: the binary score (produced by the LLM judge givenXandy_hat_gen)
- Prompts for the LLM evaluator (rubric prompt)
- the task introduction
- the evaluation criteria
- the evaluation steps
- Prompt for the LLM generator (generator prompt)
- what it needs to generate (an explanation of why the movie is recommended)
- Offline evaluation
- Compare
y_hat_judgeagainsty_judgeon the offline evaluation set. As we will see in section 3, the paper goes beyond plain accuracy.
- Compare
- Notes
- The paper also adds
y_hat_humanto the mix: explanations written by humans, as complementary evaluation data. - If a human labels an item as FAIL, they also write a free-text rationale against the guidelines (
rationale_judge). - This means the LLM evaluator must also generate a rationale (
rationale_hat_judge) for every decision. These rationales are among the components needed to build an LLM judge that can keep learning and adapting.
- The paper also adds
Source: Netflix paper (arXiv 2608.18300), Figure 1
1.3. LLM judge offline evaluation
With the information above, we can evaluate the LLM judge once, at the beginning. But once the judge is put to work in production, how do we make sure the evaluation stays relevant over time? The challenge with AI systems is that we need to keep evaluating them so they stay grounded in human judgement and follow the given guidelines.
For the rest of this post we will dive into the Netflix paper to see how to build a pipeline that makes the LLM judge a lifelong learner instead of a one-time fixed evaluator.
2. From static judge to dynamic judge
In the Netflix paper, they initially gathered 900 labeled examples from humans. For the sake of discussion, let’s assume that at the start 500 of those examples agree with the human labels and 400 do not.
Throughout the examples below we use the same item: recommending Dune: Part Two to a user whose history is Blade Runner 2049 and The Matrix.
Input/output example for the LLM generator
{
"component": "LLM_Generator",
"request_id": "req_gen_84729",
"inference_input": {
"generator_prompt": "You are a movie recommendation assistant. Your task is to write a concise, one-sentence explanation of why a specific movie is being recommended to the user. \nGuidelines:\n1. Base your explanation strictly on the user's interaction history and the target movie's metadata.\n2. Do not hallucinate plot points or connections that do not exist.\n3. Keep the tone helpful and personalized.",
"X": {
"recommended_movie": {
"title": "Dune: Part Two",
"metadata": {"genres": ["Sci-Fi", "Action", "Adventure"]}
},
"user_interaction_history": [
{"title": "Blade Runner 2049", "genres": ["Sci-Fi", "Thriller"], "interaction": "liked"},
{"title": "The Matrix", "genres": ["Sci-Fi", "Action"], "interaction": "binged"}
]
}
},
"inference_output": {
"y_hat_gen": "You will love Dune: Part Two because of its deeply emotional romantic subplot."
}
}
Note that this generation is flawed on purpose: nothing in the user’s history points to romance. This is the kind of output we want the judge to catch.
Input/output example for the LLM evaluator
// EXAMPLE 1: judging the LLM generator's output (y_hat_gen)
{
"component": "LLM_Judge",
"evaluation_id": "eval_req_1042",
"explanation_target_metadata": {
"source_of_explanation": "LLM_Generator",
"variable_name": "y_hat_gen"
},
"inference_input": {
"rubrics_prompt": "Task: Determine if a generated movie recommendation explanation is suitable based on Factuality, Personalization, and Tone.\n[...Full Rubric Text...]",
"context": {
"X": {
"recommended_movie": {
"title": "Dune: Part Two",
"metadata": {"genres": ["Sci-Fi", "Action", "Adventure"]}
},
"user_interaction_history": [
{"title": "Blade Runner 2049", "genres": ["Sci-Fi", "Thriller"], "interaction": "liked"},
{"title": "The Matrix", "genres": ["Sci-Fi", "Action"], "interaction": "binged"}
]
}
},
"text_to_evaluate": "You will love Dune: Part Two because of its deeply emotional romantic subplot."
},
"inference_output": {
"y_hat_judge": "FAIL",
"rationale_hat_judge": "The explanation fails because the tone is too assertive ('You will love') rather than offering a neutral recommendation."
},
"offline_human_ground_truth": {
"source_of_judgment": "Human_Ground_Truth",
"variable_names": ["y_judge", "rationale_judge"],
"y_judge": "FAIL",
"rationale_judge": "Misaligned with user profile. The user watches sci-fi, not romance."
}
}
// EXAMPLE 2: judging a human-written explanation (y_hat_human)
{
"component": "LLM_Judge",
"evaluation_id": "eval_req_1043",
"explanation_target_metadata": {
"source_of_explanation": "Human_Copywriter",
"variable_name": "y_hat_human"
},
"inference_input": {
"rubrics_prompt": "Task: Determine if a generated movie recommendation explanation is suitable based on Factuality, Personalization, and Tone.\n[...Full Rubric Text...]",
"context": {
"X": {
"recommended_movie": {
"title": "Dune: Part Two",
"metadata": {"genres": ["Sci-Fi", "Action", "Adventure"]}
},
"user_interaction_history": [
{"title": "Blade Runner 2049", "genres": ["Sci-Fi", "Thriller"], "interaction": "liked"},
{"title": "The Matrix", "genres": ["Sci-Fi", "Action"], "interaction": "binged"}
]
}
},
"text_to_evaluate": "Since you enjoy expansive, visually stunning sci-fi worlds like Blade Runner 2049, you'll be captivated by the epic scale of Dune: Part Two."
},
"inference_output": {
"y_hat_judge": "PASS",
"rationale_hat_judge": "The explanation perfectly aligns with the personalization and factuality criteria. It accurately connects the visual and sci-fi elements of a historically liked item (Blade Runner 2049) to the core attributes of the recommended movie."
},
"offline_human_ground_truth": {
"source_of_judgment": "Human_Ground_Truth",
"variable_names": ["y_judge", "rationale_judge"],
"y_judge": "PASS",
"rationale_judge": null
}
}
Example 1 is worth a second look. The judge and the human both say FAIL, so the labels agree. But they fail it for different reasons: the judge objects to the tone, the human to the personalization. Right label, wrong reason. Keep this case in mind, it comes back below.
Naturally, the next step is to improve the process so that more examples agree with the human labels. How do we do that?
One naive approach is to have humans write a better rubric prompt, hope the LLM evaluator now agrees with humans more on the evaluation set, and repeat until it is good enough: humans write a better prompt → evaluate on the evaluation set → if good, stop; if bad, repeat.
The paper approaches this by automating the process. In their process, they optimize the rubric prompt continuously without doing any weights updates to the LLM models. On top of that, they periodically appended their evaluation set so that it represent any distribution drifts that may happen over time.
First, they introduce two additional LLMs: an LLM meta-judge and an LLM reflector. Their jobs are:
- LLM meta-judge
- Generates an additional label on the reasoning agreement (
reasoning_agreement_hat). Say the LLM judge produces the same label as the human on an example in the validation set, but its reasoning is way off. The meta-judge then writes an explanation like “the LLM judge’s reasoning is wrong; here is why”. This is used as an additional signal for the LLM reflector. - It first generates a free-text reasoning explanation, followed immediately by a strict binary label (MATCH or MISMATCH).
- Generates an additional label on the reasoning agreement (
- LLM reflector
- Generates a new rubric prompt that the LLM judge will use to score better. The reflector takes the current rubric and the constructed error focus set (section 3, Step 4) as its prompt.
Input/output example for the LLM meta-judge
{
"component": "LLM_Meta_Judge",
"request_id": "req_meta_1042",
"inference_input": {
"meta_judge_prompt": "You are a meta-evaluator. Both a human and an AI judge rejected a movie recommendation explanation. Your task is to determine if their rationales for rejecting it are semantically aligned (MATCH) or if they rejected it for entirely different reasons (MISMATCH). Output your step-by-step reasoning first, then a final binary label.",
"context": {
"explanation_target": {
"source_of_explanation": "LLM_Generator",
"variable_name": "y_hat_gen",
"text": "You will love Dune: Part Two because of its deeply emotional romantic subplot."
}
},
"rationales_to_compare": {
"rationale_judge": "Misaligned with user profile. The user watches sci-fi, not romance.",
"rationale_hat_judge": "The explanation fails because the tone is too assertive ('You will love') rather than offering a neutral recommendation."
}
},
"inference_output": {
"meta_reasoning": "The human evaluator rejected the explanation due to a content personalization error (focusing on romance instead of sci-fi based on the user's history). The LLM Judge ignored the personalization aspect and rejected the explanation strictly based on a formatting/tone constraint ('too assertive'). These rationales evaluate completely distinct dimensions of the text.",
"reasoning_agreement_hat": "MISMATCH"
}
}
Input/output example for the LLM reflector
{
"component": "LLM_Reflector",
"request_id": "req_reflect_iter_4",
"inference_input": {
"reflector_prompt": "You are an expert prompt engineer. The current evaluation rubric is causing the LLM Judge to make specific errors compared to human ground truth. Analyze the Error Focus Set below. Rewrite the current rubric to explicitly prevent these errors in the next iteration. Add new criteria or clarify existing steps as needed.",
"current_rubric": "Task: Determine if a generated movie recommendation explanation is suitable.\nCriteria: 1. Factuality. 2. Personalization. 3. Tone (Do not be overly assertive).\nSteps: Read the explanation and check for factual errors, user alignment, and tone. Output FAIL if any criteria are missed.",
"error_focus_set": [
{
"error_type": "Reasoning_Mismatch",
"evaluation_id": "eval_req_1042",
"explanation_target": {
"source_of_explanation": "LLM_Generator",
"variable_name": "y_hat_gen",
"text": "You will love Dune: Part Two because of its deeply emotional romantic subplot."
},
"human_ground_truth_judgment": "FAIL - Misaligned with user profile. The user watches sci-fi, not romance.",
"llm_judge_prediction": "FAIL - The explanation fails because the tone is too assertive.",
"meta_judge_analysis": "MISMATCH - LLM focused on tone, human focused on personalization."
},
{
"error_type": "Label_Mismatch",
"evaluation_id": "eval_req_1088",
"explanation_target": {
"source_of_explanation": "LLM_Generator",
"variable_name": "y_hat_gen",
"text": "Since you liked Interstellar, you might enjoy Gravity."
},
"human_ground_truth_judgment": "PASS",
"llm_judge_prediction": "FAIL - The explanation is too short and does not explicitly list the shared genres.",
"meta_judge_analysis": "N/A - Label Mismatch"
}
]
},
"inference_output": {
"revised_rubric": "Task: Determine if a generated movie recommendation explanation is suitable.\n\nCriteria:\n1. Personalization (PRIMARY): The explanation must accurately connect to the user's core genre/thematic affinities. This is the most critical check.\n2. Factuality: Must reflect true movie metadata.\n3. Tone: Must not be overly assertive.\n4. Brevity (NEW): Concise, one-sentence explanations are acceptable and should not be failed purely for length if the semantic link is clear.\n\nSteps:\n1. First, verify Personalization. If the explanation highlights aspects of the movie (e.g., romance) that contradict the user's history (e.g., hard sci-fi), you must fail it for Personalization immediately.\n2. Only after confirming Personalization, check Tone and Factuality.\n3. Do not penalize explanations strictly for being short if they draw a logical, factual connection."
}
}
3. Tuning the rubric prompt
With the generator, evaluator, meta-judge and reflector together, here are the steps to optimize the rubric. One simplification: the paper tunes the rubric per criterion and also gives the reflector anchor examples. Here I treat the rubric as a single prompt to keep the explanation short.
Step 0: Generate explanations on the evaluation set
- The LLM generator produces
y_hat_genfrom the movie context and other inputs, for every item in the evaluation set.

Step 1: Scoring the data
- The current version of the rubric is inserted into the LLM judge’s fixed prompt.
- The evaluation set is split into training and validation sets. We optimize the rubric only on the training set, and keep the validation set to measure progress and decide when to stop.
- The LLM judge evaluates both sets, producing a PASS/FAIL label (
y_hat_judge) and a free-text rationale (rationale_hat_judge) for every item.

Step 2: Calculating the weighted score (the validation step)
- The weighted score is calculated entirely on the validation set.
- It combines specificity (fail-recall), recall (pass-recall) and reasoning agreement (how often the judge and the humans reject an item for the same reason) into a single number.
- The LLM meta-judge produces the reasoning agreement.

Step 3: Score tracking and early stopping (the control flow step)
- Tracking the best rubric
- If the current weighted score is higher than the best score seen in previous iterations, the system saves the current rubric as the new best rubric.
- Early stopping
- The system checks whether every individual metric inside the weighted score has cleared its target bound. If so, the loop ends successfully.

Step 4: Constructing the error focus set (the textual gradient)
- If the loop does not stop, the system looks at the training set to find where the judge went wrong. It builds a focus set with two types of errors:
- Label mismatches
- Items where the judge passed something the human failed, or vice versa.
- Reasoning mismatches
- Items where the judge and the human both said FAIL, but the meta-judge decided the judge’s rationale does not align with the human’s. This is the “right answer, wrong reason” failure from Example 1 above.
- Label mismatches

Step 5: Generating the new rubric
- The system sends the current rubric and the error focus set to the reflector.
- The reflector analyzes the misaligned examples and the human ground-truth rationales, and proposes a revised rubric.
- The goal of the new rubric is to fix those specific errors in the next iteration.

Step 6: Iteration
- The loop repeats: score the data with the new rubric, calculate a new weighted score, and continue until the metrics clear their thresholds or a maximum number of iterations is reached.

4. Putting the LLM judge in production
Once we have tuned the rubric prompt, the LLM judge is now ready to be used. In production we only use the LLM generator and the tuned LLM judge together to produce explanations in real time. Here is how:
Step 1: Initial generation
- The generator receives the user’s history and the recommended movie’s metadata (
X) and writes a first draft of the explanation (y_hat_gen).

Step 2: Real-time evaluation
- The tuned LLM judge immediately evaluates
y_hat_genwith the optimized rubric. It outputs a binary decision and a rationale (y_hat_judgeandrationale_hat_judge).

Step 3: The routing decision
- If PASS: the explanation is served to the user right away.
- If FAIL: the system intercepts the output and blocks it from being served.

Step 4: The reflection loop
- The judge’s free-text critique (
rationale_hat_judge) is appended to the generator’s prompt as negative feedback. The generator is told to rewrite the explanation and address the judge’s specific complaints (e.g., fix a tone issue or remove a hallucinated plot point).

Step 5: The boundary (fallback)
- This is a live recommendation environment, so the loop cannot run indefinitely. Strict latency budgets and the compute overhead of autoregressive decoding bound the retries, typically to 1 or 2 attempts. If the generator still has no PASS after the maximum retries, the system falls back: it can serve the recommendation without an explanation, or use a hardcoded generic string.

5. Updating the evaluation set
Once the LLM judge is in production, we need to make sure it stays aligned with human judgement. User behavior changes over time, so the rubric may stop being relevant. The paper proposes appending new annotated samples every week, so the rubric can be re-tuned when drift happens.
Step 1: Continuous traffic sampling
- Instead of pausing periodically to collect thousands of new annotations, the system continuously routes a small, manageable sample for manual review.
- In the Netflix study this is about 300 explanations per week. According to the paper’s figure, the sample consists of served and gated explanations, biased towards newer items. So it reflects recent production traffic, but it is not a uniform sample of it.

Step 2: Rolling human-in-the-loop (HITL) annotation
- Human expert annotators evaluate the weekly sample, providing binary PASS/FAIL labels and free-text rationales (
rationale_judge) for any failures. This creates a rolling ground-truth dataset that tracks the recent production distribution.

Step 3: Drift detection
- The production LLM judge evaluates the exact same weekly sample. The system computes the core alignment metrics (specificity/fail-recall, pass-recall and reasoning agreement) by comparing the judge’s predictions with the fresh human labels. This acts as a monitor for model degradation or concept drift.


Step 4: The rubric tuning loop
- As long as the metrics stay above their target thresholds, the current rubric stays in production.
- If the alignment score drops (e.g., the generator starts making a new type of personalization error that the judge misses), the system intervenes:
- The new weekly data is appended to the historical training and validation sets.
- The rubric tuning loop from section 3 is reactivated.
- The meta-judge and reflector analyze the new mismatches and produce a revised rubric that patches the newly found edge cases. The updated prompt is then deployed back into the serving loop from section 4.


6. Closing
We have seen a way to make an LLM-as-a-judge continuously updated, instead of treating it as a one-time evaluator. The ingredients are human-labeled data with rationales, a meta-judge to check reasoning, a reflector to rewrite the rubric, and a small weekly annotation stream to catch drift. The same framework can be adapted to any open-ended task where outputs cannot be verified by a deterministic rule.