Back to the curriculum

L2-M05 · Level 2 · ~12.5 h

Human Evaluation and Evaluator Reliability

What you build: Human review protocol and agreement analysis

lessons
4
lesson hours (estimate)
≈ 8 h
0/4 lessons marked done · Progress is saved in this browser only. No account, nothing is sent to a server.
In review. The curriculum, module overviews and Levels 1–3 lessons are drafts written with AI assistance and reviewed by AI. Human review is still pending. English translation: AI-assisted, not human-reviewed.

Levels 1–3 lessons, exercises and quizzes are published as drafts, in Vietnamese with an AI-assisted English translation. They may change after human review.

Module path

  1. Lesson 1 · L2-M05-L01≈ 2 h

    Designing a human-review protocol

    What you build: Protocol with reviewer instructions

    Needs: L2-M04-L05

    Key terms (7)
    • Review protocolGiao thức rà soát (gồm số người, lấy mẫu, phân xử, báo cáo; guideline chỉ định nghĩa nhãn)
    • AnnotatorNgười gắn nhãn ("người chấm" của L2-M03)
    • Stratified sample / stratumMẫu phân tầng / tầng
    • Gold itemMục chuẩn: điểm do chuyên gia đặt sẵn
    • QualificationKiểm tra đầu vào bằng mục chuẩn
    • Straight-liningGán một nhãn cho mọi mục
    • Overlap (k)Độ chồng lấn: số người mỗi mục
  2. Lesson 2 · L2-M05-L02≈ 2 h

    Inter-annotator agreement (for example Cohen's kappa)

    What you build: Agreement computed on sample labels

    Needs: L2-M05-L01

    Key terms (6)
    • Weighted kappaKappa có trọng số
    • Krippendorff's alphaAlpha của Krippendorff
    • Fleiss's kappa / Scott's piKappa của Fleiss / pi của Scott
    • Observed / expected disagreementBất đồng quan sát / kỳ vọng (D_o, D_e)
    • Bootstrap intervalKhoảng bootstrap (lấy mẫu lại mục có hoàn lại)
    • PrevalenceTỷ lệ của một loại nhãn; nhãn lệch (skew) khi một loại chiếm phần lớn
  3. Lesson 3 · L2-M05-L03≈ 2 h

    Disagreement analysis and guideline iteration

    What you build: Revised guideline with rationale

    Needs: L2-M05-L02

    Key terms (7)
    • Disagreement analysisPhân tích bất đồng
    • Hard itemMục khó (điểm chênh từ hai mức)
    • Rater offsetThiên lệch có hướng (offset) của người chấm so với những người còn lại; khác leniency của judge (L2-M04-L03)
    • Anchor itemMục neo: mục rõ ràng có điểm chuyên gia, giấu lẫn trong mẫu (khác "ví dụ neo" của rubric, L2-M03-L03)
    • AdjudicatorNgười phân xử
    • Change logNhật ký thay đổi của guideline
    • Criteria driftTiêu chí đổi theo điều đã thấy khi chấm (khác "trôi" của người)
  4. Lesson 4 · L2-M05-L04≈ 2 h

    Error analysis: from raw failures to a failure taxonomy

    What you build: Taxonomy built from transcripts

    Needs: L2-M05-L03

    Key terms (8)
    • Error analysisPhân tích lỗi (đọc lỗi thật để biết cái gì sai)
    • Failure taxonomyPhân loại lỗi
    • Open noteGhi chú mở (ghi chú tự do, chưa gán loại)
    • PrecedenceThứ tự quyết (khi một ghi chú khớp nhiều loại; khác "thứ tự ưu tiên sửa")
    • CoderNgười gán loại (hai người cùng gán loại cho các lỗi để đo độ tin cậy)
    • ParetoBảng Pareto (xếp loại từ nhiều đến ít, cộng dồn tỷ lệ)
    • SaturationBão hòa (đọc thêm không còn thêm loại mới)
    • Other bucketPhần "other" (ghi chú chưa gán được loại)

A. Module overview

Field Value
Module ID L2-M05
Level 2 - AI Quality Engineer (Evaluation)
Description Design and run a round of human evaluation so that the labels are measurable and trustworthy: a review protocol (the question, the scale and anchors, the number of raters, entry checks with gold items, independence, adjudication, reporting), stratified sampling and load-balanced assignment; the agreement coefficients (Cohen's kappa, weighted kappa, pi, Fleiss, Krippendorff's alpha) with bootstrap intervals; disagreement analysis by item, by kind and by person, drift detection with anchor items, rule-based adjudication and guideline improvement with a change log; and error analysis to build a failure taxonomy from notes. The lab continues the fictional HocVui Tutor product from L2-M01 to L2-M04 and runs offline with seeded simulated annotators (no real people, no model calls, no API key). What is known about real human evaluation is quoted from sources that were read, with access dates; sources that were only read as a summary are marked in each lesson.
Why this module matters Human labels are the standard for calibrating graders and the source of many "quality" figures, but people disagree, get tired, read the guideline differently and change how they score over time. A figure such as "agreement 0.8" says nothing unless you know which coefficient, which distance, how many items, who labelled and how the guideline changed. This module teaches measuring the evaluators themselves and turning raw failures into specific fixes.
Target professional competency Level 2: "Run human-review protocols and measure evaluator reliability; turn raw failures into a failure taxonomy".
Estimated duration 4 lessons × 120 minutes = 8 hours + module assignment ~4 hours + quiz 0.5 hours ≈ 12.5 hours for someone who has completed L2-M04. An estimate, not yet measured with real learners.
Prerequisites L2-M04 (the judge and calibration; binary kappa was introduced in L2-M04-L04 and this module goes further). High-school math. No API key needed.
Module output A human review protocol and an agreement analysis: a protocol with instructions for reviewers, a sampling and assignment plan, an agreement report with intervals, a revised guideline with reasons, and a failure taxonomy built from notes
Cost 0 VND

What learners build. Step by step, in code-labs/l2-m05: (L01) a review protocol as data with a lint, sample size for a margin of error, stratified allocation and weighted estimation, load-balanced assignment, checking annotators with gold items against the floor of a random assigner; (L02) nominal, linear and quadratic kappa, pi, Fleiss, alpha with missing labels, a pairwise table with a threshold on shared items, a deterministic bootstrap interval, and a published example as an independent reference; (L03) hard items, level-confusion pairs, a report by item kind, a rater's relative offset against anchor items, rule-based adjudication that does not choose silently, a data check of the guideline's change log and a comparison of two rounds on new items; (L04) a failure taxonomy applied with contiguous keywords, a lint, Pareto, Wilson intervals, a saturation check and kappa between two coders. The lab is independent of the earlier labs and needs only pytest.

What the module does not do. It does not measure real people: every number in the lab describes the simulation, not a property of any person, team or model. The module does not discuss pay, training or protection of annotators, and gives no legal opinion; where it mentions the NIST risk management framework it only quotes what the framework says (L01 §6.2). The lab does not teach how to write anchors or a guideline that readers understand better; that takes real people labelling. The promises "kappa is taught in L2-M05-L02" in L2-M01 to L2-M04 are fulfilled in L02; the detailed disagreement analysis and guideline improvement that L2-M02-L03 promised are in L03.

B. Learning objectives

ID Objective
MO1 Write a complete human review protocol and run the lint to find what is missing.
MO2 Sample (sample size, stratification, weighted estimation), assign with balanced load and check annotators with gold items against the random floor.
MO3 Compute the agreement coefficients (kappa, weighted kappa, alpha, Fleiss) with bootstrap intervals and read them correctly, including the case of skewed labels.
MO4 Analyse disagreement by item, kind and person, detect drift with anchor items, adjudicate with rules and improve the guideline with a log, re-measuring on new items.
MO5 Build a failure taxonomy from notes, measure its reliability and decide what to fix first.

C. Lessons

ID Lesson Duration Prerequisite Concepts Practical output
L2-M05-L01 Designing a human review protocol: questions, scales, sampling and assignment 120' L2-M04-L05 a protocol differs from a guideline, independence, sample size, stratified sample and weights, assignment, gold items, random floor A protocol with instructions for reviewers
L2-M05-L02 Agreement between annotators: weighted kappa, Krippendorff's alpha and confidence intervals 120' L01 common formula, distance, weighted kappa, pi, Fleiss, alpha, bootstrap, skewed labels Agreement computed on sample labels
L2-M05-L03 Disagreement analysis, adjudication and improving the guideline 120' L02 hard items, rater offset, drift and anchor items, adjudication, change log, comparing two rounds A revised guideline with reasons
L2-M05-L04 Error analysis: from raw failures to a failure taxonomy 120' L03 open notes, taxonomy, priority order, Pareto, saturation, reliability of the taxonomy A failure taxonomy built from notes

D. Hands-on assignment (module assignment)

The module assignment (one round of human evaluation for one criterion: a protocol, an agreement report with intervals, a revised guideline and a failure taxonomy) is in exercises.md. The four standalone exercises for the individual lessons are in code-labs/l2-m05/exercises/ and in §9 of each lesson.

E. Module assessment

The module quiz quiz.md, the module assignment rubric in exercises.md, and the practice-0N.md practice for each lesson. The solutions and the instructor guide are for instructors only and are not published.

F. References

The shared list references.md; each lesson also has its own references table in §12 with the access date and how much of each source was read.

Objectives ↔ assessment matrix

Objective Lesson Standalone exercise (§9) Module quiz Module assignment criterion
MO1 L01 exercises/test_l01_protocol.py Q8 AC1
MO2 L01 exercises/test_l01_protocol.py Q1, Q2, Q6, Q10 AC1
MO3 L02 exercises/test_l02_agreement.py Q3, Q9 AC2
MO4 L03 exercises/test_l03_disagree.py Q4, Q7, Q12 AC3, AC4
MO5 L04 exercises/test_l04_taxonomy.py Q5, Q11 AC5