Evaluation and safety · about 20 minutes of study

LLM-as-judge

An LLM judge scores another output using a rubric. It can scale review but can exhibit position, verbosity and model-preference biases.

Before you start: Review Evals first. Python-like examples use variables, lists and functions.

Guided concept walkthrough

Follow the mechanism

Rubric

Define observable scoring criteria.

1 / 4

A conceptual animation, not a live model trace. Play advances every five seconds and stops at the final stage.

Start with an everyday explanation

A second student can help mark an essay with a guide. You still compare their marking with a teacher and check whether they reward longer answers unfairly.

See a concrete example

If a judge flags four of six bad answers, recall on those bad cases is 4/6 ≈ 66.7%. You also need false positives on good answers to understand usability.

A claim to question

An always-pass judge can have high agreement on an easy dataset while missing every harmful answer.

Try before revealing the answer

Use the judge calculator to separate precision, recall and agreement. Explain why accuracy can mislead on rare failures.

Show the worked answer

With few bad examples, always saying pass can look accurate. Report missed bad cases and false alarms, calibrate by risk slice and inspect a confusion matrix.

Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.

Your explanation and revision notes

Loading local notes…

Read the primary reference

Judging LLM-as-a-Judge

The explanation and exercises are original teaching material. The linked source provides background; examples and assumed numbers here are not claims about a particular company.