Problem
A single accuracy number cannot score the output of a generative model in a product. The output is free text, it varies between runs, and quality has several parts: accuracy, toxicity, format, completeness and hallucination. A cheap automated judge is tempting, but an unchecked one produces scores that cannot be trusted to rank models. Teams that check a few labels and move on find the weaknesses only in pre-production, when they are harder to fix.
Example from the article: Stack Overflow's data science team compares candidate models on summarization (explored for its search experience) and on code answers across programming languages and packages, from common to rare.
Solution in brief
Use a second LLM as a judge, but validate it first against expert human labels, with human-to-human agreement as the reference point. Then run candidate models through the judge on a benchmark built from your own task data and rank them. This is offline evaluation, so online tests still follow.
Questions this case answers
- How to measure the quality of generated text at scale when outputs vary and there is no single reference answer
- How to validate an automated grader against human labels when the humans themselves disagree
- How to evaluate free-form LLM output when there is no single correct answer?
- How to check that an LLM used as a judge can be trusted?
Tools and methods
- LLM-as-a-judge — a second model scores the first model's outputs, singly or with a reference answer
- Pairwise comparison — the judge states which of two answers it prefers
- Inter-rater reliability — agreement among human raters, used as the benchmark for the judge
- Custom benchmark — task-specific inputs built from your own data, after public benchmarks shortlist models
Google or a one-time email code. No password.