a builder's codex
codex · operators · Hamel Husain · ins_husain-judge-context-rot

Excess context in LLM judge prompts degrades accuracy; judges need only the evidence relevant to the specific failure

By Hamel Husain with Shreya Shankar · Independent AI consultant and researcher · 2026-09-18 · essay · AI Evals: Everything You Need to Know

Tier B · TL;DR
Excess context in LLM judge prompts degrades accuracy; judges need only the evidence relevant to the specific failure

Claim

Adding context to an LLM judge prompt past the minimum needed for the specific failure being evaluated reduces accuracy. Judges do better with less.

Mechanism

LLM judges are asked to assess whether an output meets a criterion. When the prompt includes context beyond what that criterion requires, the judge's attention distributes across the irrelevant material. The irrelevant material can introduce confounding signals, cause the judge to partially rationalize the excess context when forming its verdict, or simply dilute the signal the judge needs. Husain and Shankar call this context rot. The fix is to give each judge only the information it needs to evaluate the specific failure class it is responsible for.

Conditions

Holds when: the judge prompt contains context that is not directly relevant to the criterion being evaluated (e.g., full conversation history when the criterion only requires the final response, or system prompt boilerplate when the criterion is factual accuracy).

Fails when: the failure criterion genuinely requires broad context to evaluate correctly (e.g., detecting a contradiction between the current response and something stated earlier in the conversation). In those cases, the relevant history is load-bearing, not excess.

Evidence

From Husain and Shankar's September 2026 FAQ on AI evals:

"Extra context can cause context rot and make the judge worse"

Their guidance is to scope each judge to the minimum context needed for its specific failure class, rather than passing the full conversation and system prompt by default.

Signals

Counter-evidence

Building per-failure-class judges adds system complexity: more prompts to maintain, more evaluation runs per output. Teams with limited eval infrastructure may find a single general-purpose judge easier to operate even at reduced accuracy. The tradeoff is valid at small scale. Context rot becomes the dominant problem as scale and accuracy requirements rise.

Cross-references

Open the interactive view → View original source → Markdown source →