Skip to content
aiqbenchAI & Quantum Intelligence
NewsInsightsBenchmarksSkillsAsk AILearnAbout
...Loading your session
NewsInsightsBenchmarksSkillsAsk AILearnAbout
  1. Future Jobs
  2. ›
  3. AI Safety & Evaluation Engineer
  4. ›
  5. Lesson 2 of 8

Building an Eval: Task Design, Rubrics, Agreement and Statistics

Intermediate¶ Read · 4 min⚑ Mission · 40 min◆ Quiz · 4 questions

You'll be able to:

You can design an eval from a question ('is the model good at X?') to a scored dataset: write unambiguous tasks, a rubric two people apply the same way, measure inter-rater agreement, and report a result with a confidence interval and an honest sample size.

From a question to a scored dataset

Every eval starts as a vague question: "is the model good at summarising contracts?" The craft is turning that into something that produces the same number whoever runs it. That takes four decisions — what the tasks are, what counts as success, whether graders agree, and how many items you need — and each one has a standard failure.

Task design: write the item you would want to be graded on

An item is an input, an expected behaviour and enough context that a grader does not have to guess. The commonest mistake is writing items that test what is easy to write rather than what you care about. If your users paste 30-page contracts, a 200-word toy contract is a different task. If users ask sloppy, underspecified questions, an eval of crisp questions measures a model you will never deploy.

Three practical rules:

  • Sample from the real distribution where you can: anonymised logs, support tickets, past tasks. Where you cannot, write items in several deliberately different styles so one quirk does not dominate.
  • Decide the failure modes first. Before writing items, list the five ways the model could be wrong (drops a clause, invents a date, over-hedges, refuses, answers the wrong question). Then make sure your items can elicit each one. An eval that cannot produce a failure has no power.
  • Keep a hard tail. If every item is easy, the eval saturates immediately (module 1). Aim for a spread where the current model gets perhaps 60–80%.

Rubrics: a scoring rule two people apply the same way

For closed-form tasks (maths answers, code with tests, classification) the scoring rule is mechanical. For open-ended output you need a rubric, and the test of a rubric is not whether it reads sensibly — it is whether two graders produce the same score on the same output.

Write rubrics as observable checks, not adjectives. "Response is clear" is an opinion; "every number in the summary appears in the source" is a check. A workable pattern is 0–2 per criterion: 0 = fails, 1 = partially meets with a defined shortfall, 2 = meets. Three or four criteria is usually enough; ten criteria produce graders who skim.

Pilot the rubric on ten outputs before you commit. You will find criteria that never fire, criteria that are impossible to apply, and outputs that reveal a failure mode you had not listed.

Inter-rater agreement: measure it, do not assume it

Percent agreement is the obvious statistic and it is misleading on its own, because two graders who both mark almost everything "pass" will agree by chance. Cohen's kappa corrects for that by comparing observed agreement to what random grading with the same marginals would produce. The Hallgren tutorial in this module's materials walks through kappa for two raters and Krippendorff's alpha and intraclass correlation for more raters or ordinal scales.

A worked example. Two graders each score 40 outputs pass/fail. They agree on 32. Grader A passes 30 items, grader B passes 28.

  1. Observed agreement: 32 / 40 = 0.80.
  2. Chance agreement on "pass": (30/40) × (28/40) = 0.525. Chance agreement on "fail": (10/40) × (12/40) = 0.075. Total expected by chance: 0.60.
  3. Kappa = (0.80 − 0.60) / (1 − 0.60) = 0.50.

Eighty percent agreement sounds reassuring; a kappa of 0.5 says the rubric is only moderately reliable and probably needs sharper criteria before you let a single grader — or a model judge — loose on it. Conventions for what counts as "good" vary by field, so report the number rather than the label.

Statistical power and confidence intervals

An eval with 20 items cannot distinguish 70% from 80%. The standard error of a proportion is roughly √(p(1−p)/n); at p = 0.75 and n = 20 it is about 0.097, so the 95% interval spans roughly ±19 points. At n = 200 it shrinks to about ±6. If you need to detect a 5-point change between model versions, you need several hundred items — or you need paired items, where the same inputs are scored under both models and you analyse the differences, which cuts the variance considerably. Evan Miller's Adding Error Bars to Evals makes exactly this argument and gives the formulas, including the correction for the fact that a model's answers to similar questions are not independent.

Two habits that follow:

  • Pre-register the threshold. Decide what score counts as "good enough" before you run, and write it down. Deciding afterwards is how every result becomes a success.
  • Report the interval, not the point. "72% (95% CI 63–81, n = 100)" is a result. "72%" is a hint.

Hamel Husain's essay is the practitioner's counterweight to all this rigour: the first eval you write will be wrong in ways only looking at outputs reveals, so start by reading a hundred model responses before you write a single rubric line.

What to remember

  • Sample tasks from the real distribution, and design items so each known failure mode can actually occur.
  • Rubrics are observable checks, not adjectives. Pilot them before committing.
  • Measure agreement with kappa (or alpha); percent agreement flatters you.
  • The confidence interval on a 20-item eval is enormous. Use paired comparisons and hundreds of items when a few points matter.
  • Pre-register thresholds and report intervals. Read raw outputs before and after.

Check Yourself

Loading the questions…

Module Mission

35–45 min

Write a 12-item eval for one narrow skill (for example 'rewrites a paragraph to a reading-age-10 level without dropping facts'). For each item write the input, the reference or rubric, and a 0–2 score guide. Grade six model outputs (or six outputs you write yourself at varying quality) independently with a friend or a second pass a day later, compute percent agreement and Cohen's kappa, and compute the 95% confidence interval on the mean score. Write three sentences on what the interval tells you about the eval's size.

Loading your work…

Curated Materials

1.9h

The deep work happens here — the lesson is your briefing.

  • Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations — Miller (Anthropic)Paper· 45 min
  • Computing Inter-Rater Reliability for Observational Data: An Overview and Tutorial — HallgrenTutorial· 40 min
  • Your AI Product Needs Evals — Hamel HusainTutorial· 30 min

Live on aiqbench

This lesson's subject on the rest of the site, today.

In the news, last 30 days

  • Alignment as a dot product of morality?LessWrong · Nov 26
  • Shuffle the Questions to Catch an LLM That Memorized Its BenchmarkTowards Data Science · Nov 26
  • Recursive Self Alignment: The Model is the EstimatorLessWrong · Nov 26
More news on this subject →

Go further

  • How the leaderboards workHow scores are combined, and what a rank cannot tell you.
  • Ask AI about this lessonOpens Ask AI with a question about this lesson, answered from the news archive with sources.
  • Agent skills for this workReady-made skills for AI coding agents, checked and rated.
← Previous lesson1. What an Evaluation Is — and Why Benchmarks MisleadNext lesson →3. Automated Grading and LLM-as-Judge
aiqbench
AI & Quantum Intelligence© aiqbench. All rights reserved.

Feeds:RSS·JSON Feed

LanguageEnglish·Românăbeta
NewsAI & TechQuantumInsights
ExploreBenchmarksLearn
CompanyAboutTrustLegal noticeTerms of ServicePrivacy PolicyCopyright noticesData erasureReport content

The aiqbench take, the insights, the daily digest and Ask answers are written by AI models from the sources shown, without editorial review before publication. They may contain errors — check the source. How the model is used →

  • News
  • Insights
  • Ask AI
  • Benchmarks
  • Account