Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← Week 19: Evaluation and Observability

Week 19 / Lesson 2

Calibrating model-based evaluation

Use a judge only for properties supported by a clear rubric and calibration evidence.

Section 2.1 1 of 7

Overview

Focus

Use a judge only for properties supported by a clear rubric and calibration evidence.

Your route through the lesson

  • 2.2 Objective checks and reference judgments
  • 2.3 Model judges, order bias, and disagreements
  • 2.4 Human calibration and limits of automated grading
  • 2.5 Put it into practice
  • 2.6 Guided comparison
  • 2.7 A judge preferring the longer wrong answer

All required teaching is included here. Review selections are saved. Choose a correct answer for every question to continue; retries are unlimited. Study time and personal notes are optional.

Section 2.2 2 of 7

Objective checks and reference judgments

Focus

Select objective properties before using an uncertain evaluator.

An objective check compares an observable result against a precise rule. Examples include valid structured syntax, an allowed tool name, an existing citation identifier, or a required denial. A reference judgment evaluates a property requiring interpretation, such as whether a summary preserves an essential qualification. The reference still needs a written rubric: a rule defining what counts and what evidence supports the label.

Suppose a source says a backup succeeded except for two locked files. Summary A preserves the exception; summary B says every file was backed up. A completeness rubric should favor A. The check is about the missing qualification, not elegance or length. A citation checker can independently verify whether each cited document exists, but existence alone does not show that the document supports the claim.

Keep supplied adjudicated examples explicitly labeled as supplied labels. They allow learners to test scoring mechanics without inventing a teacher or implying real expert review occurred. Where genuine human review is later obtained, record who reviewed what under which rubric, resolve disagreements, and retain uncertainty. A reference is evidence with provenance rather than an unquestionable oracle.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. A citation uses doc-9 but the allowed set is doc-1 and doc-2. Which check is decisive?
2. A source excludes two locked files; a summary says every file copied. Which rubric dimension fails?
3. Labels are supplied with a training exercise. How should they be described?

Section 2.3 3 of 7

Model judges, order bias, and disagreements

Focus

Test a model judge for position preference and disagreement with known labels.

A model judge is a model asked to score another output. It can help screen subjective properties, but it introduces its own errors, prompt sensitivity, and preferences. Specify the task, evidence, rubric, and allowed score format. Keep candidate outputs as quoted data so an answer containing instructions cannot legitimately rewrite the grading rule.

For pairwise evaluation, present answer A and answer B, then repeat with their order reversed. Map the second result back to the original answer identities before comparison. A judge that chooses the first displayed answer in both presentations changes its substantive preference. That is order sensitivity, even if both responses look internally consistent.

With four reference choices A, B, A, B, a fixture choosing A every time agrees on two cases: two divided by four equals one half. If reversed display order produces original choices B, B, B, B, all four preferences flip. Those figures describe this fixture and rubric. They are not measured performance of an unnamed real judge, and agreement with a reference is not the same quantity as downstream user benefit.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. A judge selects the first displayed answer in both swapped presentations. What is exposed?
2. Reference choices are A,B,A,B; predictions are A,A,A,A. What is agreement?
3. An answer tells the judge to ignore its rubric. How should that text be treated?

Section 2.4 4 of 7

Human calibration and limits of automated grading

Focus

Calibrate an evaluator and preserve disagreements rather than inventing human authority.

Calibration compares judge decisions with a reference on cases spanning the intended rubric. Include clearly correct answers, clearly incorrect answers, near misses, unsupported claims, and attractive but wrong prose. A judge tested only on obvious extremes may fail exactly where its decisions matter most.

Record a disagreement table containing case identifier, reference label, judge label, evidence, and rubric version. A disagreement can indicate judge failure, ambiguous instructions, or a mistaken reference. Inspect the evidence before deciding which. If the rubric changes, rerun both old and new candidates under the revised rubric; otherwise the comparison mixes different standards.

Human review is an optional external source of calibration, not an assumed academy service. Two reviewers can disagree because the task is ambiguous. A documented resolution process improves consistency, but hiding disagreement makes the result look more certain than it is. Use a judge to prioritize inspection where useful, while retaining deterministic release gates for properties such as authorization and required evidence. A judge's confident prose cannot override an executor record showing a forbidden action.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. A judge and reference disagree on an ambiguous summary. What is the next step?
2. A rubric changes after candidate testing. What preserves comparison?
3. A judge approves an answer after a forbidden tool action. Which release decision is justified?

Section 2.5 5 of 7

Put it into practice

Focus

Run a counterbalanced fixture and distinguish calibration mechanics from model evaluation.

Save week19.py and run python week19.py --lesson 2. The script requires only the standard library. Python lists preserve ordered values, zip pairs corresponding elements, and a generator expression produces one comparison at a time. sum counts true comparisons because Boolean true behaves numerically as one. Dividing by the number of references gives agreement.

Expected output labels the evaluator as a judge fixture, reports reference agreement of 0.5, and reports four order flips after mapping back to original identities. A separate membership assertion rejects doc-9 when only doc-1 and doc-2 are allowed. These are deterministic checks of evaluation logic, not a model's actual judgments.

Extend the same artifact with one near-miss pair: one answer includes a required caveat and the other removes it. Write the rubric criterion beside the supplied reference choice. If you later use a real local judge, preserve both presentations and its raw structured labels. Do not replace the fixture flag with a model name unless inference actually ran; optional external human adjudication must likewise be recorded only when obtained.

Download this week’s Python lab ↓

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. The command prints judge_fixture_only=true. What has been tested?
2. Four original answer preferences all flip after swapping order. What count should appear?
3. A near-miss pair differs only in a required caveat. What should its rubric emphasize?

Section 2.6 6 of 7

Guided comparison

Focus

Explain agreement, order changes, and objective failures as different evidence.

The worked fixture separates three quantities. Reference agreement measures whether a judge matches the supplied preferred answer. Order flips measure whether its preference changes when display order changes. Citation membership checks whether an identifier exists in the allowed source set. None substitutes for the others.

A judge could match every reference on the first presentation and flip every preference on the second. First-order agreement would look excellent, but position sensitivity would still make it unreliable. Another judge could be stable yet consistently prefer a wrong interpretation. Stability is necessary for repeatable evaluation, but stable error remains error.

For a release comparison, objective checks run first where their rules apply. A candidate with invented citations fails the citation requirement even if a model judge praises its readability. For claims requiring interpretation, keep evidence and rubric beside the judge's decision and review disagreement cases. Report the calibration sample size and composition. Four supplied labels can demonstrate an arithmetic mechanism; they cannot establish a broad error rate across languages, domains, or high-stakes decisions.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. A judge is stable but always prefers an unsupported claim. What does stability establish?
2. A candidate has invented citations and high readability ratings. What happens to its citation requirement?
3. Four calibration cases all concern backups. What remains unsupported?

Section 2.7 7 of 7

A judge preferring the longer wrong answer

Focus

Apply evidence-first judging to an attractive but incorrect long answer.

A network assistant is asked whether a maintenance window includes database replication. The source explicitly excludes replication. Candidate A says, in one sentence, that replication is excluded. Candidate B gives a polished three-paragraph schedule and states that replication is included. A judge trained by examples emphasizing helpful detail may favor B unless the rubric anchors correctness to the source.

The repaired rubric makes the exclusion mandatory and treats unsupported additions as errors. It evaluates correctness before presentation. Both candidates are shown in both orders, with their wording preserved. A deterministic phrase check may help flag the missing exclusion, but it cannot fully prove the rest of the answer is supported; that still requires claim-to-evidence inspection.

Suppose the judge prefers B in both orders. That is a stable substantive error, not an order effect. If it chooses whichever answer appears first, there is an additional position problem. Distinguishing these mechanisms guides repair: stronger evidence rules address content preference, while counterbalancing exposes positional bias. Merely making the wrong answer shorter would change presentation without fixing its factual claim.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. A source excludes replication; a polished answer includes it. Which answer property fails?
2. A judge prefers the same wrong answer in both orders. What is demonstrated?
3. A repaired rubric checks exclusions before style. Why?

Your personal notes

Optional, ungraded, and saved only in this browser. Export a backup from the Academy homepage to keep them.

References and further reading
Ask your own AI assistant

Copy this prompt into an assistant you already use. Nothing is sent automatically, and your personal notes are not included.

Next lesson: Tracing latency, tokens, and failures →