Writing the LLM-as-judge prompt for an eval pipeline: name three biases to design against and one mitigation each.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Writing the LLM-as-judge prompt for an eval pipeline: name three biases to design against and one mitigation each.
Position bias (randomize order), length bias (penalize verbosity in rubric), self-preference bias (cross-family judging). Each distorts scores systematically if unmitigated.
Imagine a cooking contest where the same judge always rates the first dish higher, prefers bigger portions even when the food is the same, and gives extra points to dishes that taste like their own cooking. That is what LLM judges do without mitigation. You fix it by shuffling the tasting order, telling the judge that bigger is not better, and using a judge who cooks differently from the contestants.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Open with the framing that judge biases are systematic, not random. Walk the three biases in order: position (randomize order, run both orderings), verbosity (rubric penalty, length-controlled scoring), self-preference (cross-family judging). Explain how all three compound in a single comparison. Close with the production discipline: measure bias diagnostics as part of the eval pipeline before trusting scores.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Designing the judge prompt without addressing any systematic biases, then trusting the scores as ground truth when they are influenced by presentation order, answer length, and model family matching.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.