AI Academy · Book
Engineering Managers · Module 05 · Chapter 006

Automated Evals, LLM Judges and Regression Gates

Automated scoring lets a team run its evals on every change, but a score is only meaningful once the scorer has been checked against people. Pick the cheapest grader that works, calibrate any model judge on cases humans have labeled, and set gates that block a regression without blocking on noise.

≈ 12 min read

After this chapter you can

  • Assign each quality property to the cheapest trustworthy grader: a code check, a model judge or a human reviewer.
  • Name four model-judge biases, position, verbosity, self-favoring and weak reasoning, and a defense a team can adopt for each.
  • Calibrate a model judge on about 100 human-graded cases, reporting agreement and false-pass rate separately against thresholds fixed in advance.
  • Design a tiered regression gate that scores candidate and production on the same cases and allows for run-to-run variance.
  • Measure a gate's false-alarm rate by rerunning an unchanged system, and require a written reason for every override.

An engineer on your team changes a prompt on Tuesday. By Thursday, nobody can say whether the feature got better, worse or simply different, because the only way to find out is for two people to read 200 answers. That does not happen weekly, so changes ship on instinct. The manager’s question is how to run evals automatically and know the scores are meaningful. Two halves belong together. Automation makes the check cheap enough to run on every change. Calibration makes the number worth believing. A team with the first and not the second has a fast way to be wrong.

A documented case, offered as an analogy and not as a judge failure, shows how a score can drift away from what it was meant to measure. LMArena ranks by human votes, not by an automated judge, but the pattern is the one to watch for. In April 2025, Meta launched Llama 4 and wrote in its launch post that an experimental chat version of its Maverick model scored an Elo of 1417 on LMArena, a public leaderboard where people vote between two anonymous answers. The Register reported that this placed it second at the time. The entry was labeled “Llama-4-Maverick-03-26-Experimental,” and Meta confirmed it was a chat-optimized version. LMArena said that Meta’s interpretation of its policy did not match what it expects from model providers, and it updated its policies1. When the unmodified release was added, TechCrunch reported it at 32nd place on 11 April2. The tuned version had been shaped toward what the voters liked, which is a different thing from being the model people would use. Any automated score your team builds carries the same risk, on a smaller scale.

Pick the cheapest grader that works

A test result is evidence and approval is a separate decision; this chapter is about producing better evidence at lower cost. The first rule is to match the grader to the property being checked, and to use the cheapest one that is trustworthy.

Anthropic’s engineering team describes three kinds of grader for agent evals: code-based, model-based and human, and recommends combining them, with deterministic checks where possible, model-based graders for flexibility, and occasional human review3. Applied to a feature, that becomes a ladder.

Three graders compared. Code checks are nearly free but shallow, model judges are cheap but biased, and humans cost the most but handle nuance.GraderChecks wellCost of 1000 casesMain weaknessCode or rulesFormat, fields, exactfacts, tool callsNear zeroCannot judge meaningor toneModel judgeFaithfulness, tone,checklist coverageLow to moderateHas its own biases;needs calibrationHumanreviewerJudgment, domainnuance, new failure typesHighest, hours ofstaff timeSlow; raters disagree too
Figure 5.6.1 Use the cheapest grader that is trustworthy for each property, and spend human time on calibration and on new kinds of failure.

A useful habit is to split each quality into pieces a code check can handle and pieces that need judgment. “The summary names the affected service” can be a string match against a field. “The summary does not overstate the cause” cannot. Teams that push everything to a model judge pay more, get noisier scores and hide simple bugs inside a judge’s opinion.

What the research says about model judges

A model judge is a language model given the input, the feature’s output and a rubric, and asked to grade. The best known study is Zheng and colleagues’ 2023 paper, which tested strong models as judges on two datasets of human preference. They reported that GPT-4 as a judge agreed with human preferences more than 80 percent of the time, which matched the level of agreement between humans themselves4. That is the evidence behind much practice, and its scope is narrow: one judge model, pairwise comparisons of chat answers, and the benchmarks the authors built. It does not show that any judge is reliable for your feature.

The same paper named the weaknesses, and they are the ones to design around. Judges showed position bias (favoring an answer for where it appears), verbosity bias (favoring longer answers) and self-enhancement bias (favoring answers written by the same model family), along with limited reasoning ability on hard questions4. A later study of AlpacaEval, an automatic benchmark, adjusted its scores for length and reported that their correlation with LMArena rose to 0.98, and that the change made the benchmark harder to game by making answers longer5. The common thread is that a judge rewards features of an answer, such as its length, that are cheap to produce.

Four model-judge weaknesses, position, verbosity, self-enhancement and weak reasoning, each with a practical defense.BiasWhat it looks likeA defense your team can adoptPositionPrefers the first (or second) answer shownScore both orders and keep a result only if they agreeVerbosityPrefers the longer answerGrade against a checklist, not overall preference;report answer lengthSelf-favoringPrefers its own model familyUse a judge from a different family than thefeature's modelWeakreasoningMisses a wrong calculation or a subtle fact errorGive it the reference answer, or use a code check
Figure 5.6.2 Four judge weaknesses reported by Zheng and colleagues, each paired with a defense a team can implement without new tooling.

Calibrate the judge before you trust it

Calibration means checking the judge against people on your own cases. It takes a day and prevents months of confident nonsense. The procedure is short.

  1. Take 100 cases from your eval set (see Building Evaluation Sets), including known bad outputs, and have two qualified people grade them. Settle their disagreements by discussion. These are your reference grades.
  2. Run the judge on the same outputs, using a fixed rubric of one criterion per question, such as “does the summary state the current status: yes or no”.
  3. Compare, and look beyond the headline. Overall agreement matters, but so does where the judge errs. The error that hurts is the false pass: the judge approves an output that people marked bad. Report agreement on the good cases and on the bad cases separately.
  4. Set thresholds before you look, then keep or change the judge. An illustrative starting default, to be tuned by each team, is at least 85 percent overall agreement, a false-pass rate on known-bad outputs of at most 10 percent, and no more than a few points between the judge’s pass rate and the human pass rate.
  5. Record the judge’s version. The model, the rubric and the date belong in the eval run’s record. When any of them changes, repeat the calibration.

Shopify’s engineers reported the same discipline in their assistant project: they built a model-based judge and measured it against human graders, finding a Cohen’s kappa of 0.61 for the judge against 0.69 for the humans among themselves6. Kappa is a measure of agreement corrected for chance; the next chapter returns to it. The point here is that they could say how close the judge was to people, and a team that cannot say so has not calibrated.

Calibration also expires. A judge is a model, and models are updated by their providers, so a judge that was right in spring may differ in autumn. Pin the judge to a specific version where the provider allows it, re-run the 100 reference cases every quarter or on any change, and keep a 10 percent random sample of judged outputs flowing to human review indefinitely. If agreement on that sample drops below your threshold, the judge is suspended until recalibrated.

Gates: a number that blocks a change

A regression gate is an automated check in the delivery pipeline that stops a change when quality drops. Level 2’s Pipeline Gates and Safe Release for AI-Assisted Change covers the pipeline mechanics for code; here the question is what a gate for an AI feature should say. Gates fail in two ways: too loose to catch anything, and so tight that engineers learn to rerun until they pass.

Three design choices keep a gate honest.

Run in tiers. A small smoke set of 30 cases, mostly code checks, runs on every commit in under five minutes. The full development set with the judge runs when a prompt, model, retrieval setting or tool changes, and finishes within 30 minutes. The locked set, plus a human sample, runs before release. Each tier has a time and cost budget, written down; the 30 cases, five minutes and 30 minutes here are illustrative starting values, not standards.

Compare to the baseline on the same cases. Score the current production version and the candidate on the same cases in the same run. A paired comparison cancels some of the noise that a comparison of two separate averages leaves in. Block on the number of cases that got worse, not only on the mean: for example, “net loss of 5 or more cases out of 125 development cases, or any failure on the 15 critical cases.”

Account for variance. Outputs vary between runs, so one run is a single draw. Run each candidate three times and use the median, or a stricter rule such as “fails in 2 of 3 runs”. Then measure the gate itself: rerun the unchanged production version 20 times. If the gate blocks it more than once in 20 runs (a 5 percent false-alarm rate, an illustrative starting default), it is too tight for its noise and needs more cases or a wider margin.

Four tiers of checks, from a fast smoke set on every commit to full development scoring, a release set with human review, and production sampling.Smoke30 cases,every commitFull dev setJudge scoring oneach changeReleaseLocked set,human sampleProductionSampled livetrafficEach tier has a time budget and a rule for who may override it
Figure 5.6.3 A gate in tiers keeps feedback fast for engineers and puts the expensive checks where a release decision is made.

Two governance points belong to you rather than the pipeline. First, decide who may override a failed gate, and require the override to be written down with a reason. A gate that anyone can bypass in silence is a suggestion. Second, review the thresholds quarterly, because the set, the judge and the product all move. The gate gives evidence, and a named person decides on an override, which is the separation between test result and approval that Level 1 asked executives to keep.

Guarding against optimizing the scorer

The Maverick episode, an analogy rather than a judge failure, has a smaller version inside every team. Engineers see the judge’s rubric, notice what it rewards and adjust the prompt until the score rises. Some of that is legitimate: a clearer rubric means a clearer product. Some of it is not, such as longer answers, hedged phrases that earn partial credit, or formatting that the judge likes. Three practices limit it. Keep the locked set and a human sample outside the optimization loop. Report answer length and refusal rate next to every score, so a gain that comes from verbosity is visible. And change the rubric when you find the gaming, which needs a version, a changelog line and a recalibration like any other change.

A team-sized worked example

Consider a fictional team; its setup and every number below were made up to show how a gate is read. A team of seven engineers has a 200-case set for an incident-ticket summarizer, split into 125 development cases, 15 critical cases and 60 locked cases (125 + 15 + 60 = 200), and wants a gate before the next prompt change.

The team splits the checks. Code checks cover four properties (service named, start time present, status present, summary under 120 words) and run on all 200 cases in 40 seconds. All thresholds and budgets in this example are illustrative starting values. A model judge from a different family than the summarizer handles two questions: “does the summary overstate the cause” and “does it invent a fact not in the ticket.”

For calibration, a senior engineer and the on-call lead grade 100 outputs, 30 of which are known bad. The judge agrees with their reference grades on 88 of 100 cases, which clears the 85 percent threshold. But it passes 9 of the 30 bad outputs, a false-pass rate of 30 percent against a limit of 10 percent. The team rewrites the two questions into five narrower yes-or-no questions, adds the ticket text as a reference, and repeats. Agreement is now 90 of 100 and the false-pass rate is 3 of 30, or 10 percent, at the limit. The team accepts the judge, schedules the quarterly recheck, and keeps a 10 percent human sample.

An illustrative judge agreed with people on 88 of 100 cases but passed 30 percent of bad outputs, so the team rewrote it and then accepted it at 10 percent.CheckFirst attemptAfter rewriteThresholdOverall agreementwith people88 of 10090 of 100At least 85%False passes on 30known-bad outputs9 (30%)3 (10%)At most 10%DecisionReject judgeAccept, recheck quarterlyBoth limits met
Figure 5.6.4 Illustrative composite: a judge that looks good on overall agreement can still fail the bad cases that matter.

The gate has the form discussed above: run the production version and the candidate on the 125 development cases and the 15 critical cases three times, take the median, and block if the net loss on the development cases is 5 or more or any critical case fails. The locked 60 cases are scored at release only. The team then runs the unchanged production version 20 times to measure false alarms. The tuning run shows 2 false blocks in 20, which is 10 percent, so the team grows the development set and tightens the judge’s rubric. A second run shows 1 in 20, and the gate goes live. Two weeks later it blocks a prompt change that improved tone and silently dropped the status line on long tickets, a regression that no one had read for.

What this means for engineering managers

Check yourself

  1. A model judge that agreed with humans more than 80 percent of the time in a study can be trusted on your feature without checks.
  2. A judge can prefer longer answers even when they are not better.
  3. High overall agreement with human graders shows a judge is safe to use as a gate.
  4. A gate should be measured by rerunning an unchanged system and counting false blocks.
  5. Calibration of a judge is a one-time task done at setup.
  6. A score that rises after tuning to the rubric shows the feature got better.

Reflection

What comes next

Calibration depends on people whose own grades hold up, and for some quality only expert judgment will do. The next chapter, Human Review and Domain-Expert Evaluation, covers when you need human reviewers, how to measure whether they agree, and how to run them without a bottleneck.

References

  1. The Register. Meta accused of Llama 4 bait-n-switch to juice LMArena rank. The Register. 2025.
  2. TechCrunch. Meta's vanilla Maverick AI model ranks below rivals on a popular chat benchmark. TechCrunch. 2025.
  3. Anthropic Engineering. Demystifying evals for AI agents. Anthropic. 2026.
  4. Lianmin Zheng and colleagues. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. NeurIPS 2023 Datasets and Benchmarks Track (arXiv 2306.05685). 2023.
  5. Yann Dubois and colleagues. Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluators. arXiv 2404.04475. 2024.
  6. Shopify Engineering. Building production-ready agentic systems: Lessons from Shopify Sidekick. Shopify Engineering blog. 2025.

Further reading

Sources last verified 2026-10-12.