Skip to content
Duoduo Mediaevidence to decision

Package 11 · Section 6.3

Evaluation Dataset and Label Design

Create a representative and maintainable evaluation set that reveals system failure before deployment.

Track
C · Generation and evaluation
Level
Practitioner
Version
v1.0
Status
In validation · catalog only
Explanation depthDepth

Learning objectives

  • Define units of evaluation and gold evidence.
  • Sample normal, edge, adversarial and temporal cases.
  • Manage ambiguity and reviewer disagreement.

In brief

Evaluation is only as good as its dataset. A well-designed set covers real query types, includes hard and unanswerable cases, has gold evidence labels and is split so that tuning does not contaminate testing.

Core concepts

11.1Coverage and slices

Sample queries from real logs where possible, then fill gaps by slice: query type, region, document type, difficulty and risk level. Each slice needs enough cases to detect a meaningful regression.

Include unanswerable, ambiguous and adversarial cases. A set without them rewards overconfident systems.

11.2Labels

Label gold evidence (which passages should be retrieved), expected answer facts and the correct behavior (answer, clarify, abstain, escalate). Write labeling guidelines with examples and edge cases.

Measure inter-annotator agreement. Low agreement means the task or the guideline is ambiguous.

11.3Splits and versioning

Keep development, validation and locked test sets. The test set is used rarely and never for tuning. Version everything with a data card.

When the corpus changes, gold evidence may move. Re-validate labels when documents are revised.

Worked example

Building a 300-case policy evaluation set

Situation: Start from 2,000 anonymized user queries.

  1. 1Cluster queries and sample proportionally, then add 40 unanswerable and 30 adversarial cases.
  2. 2Two annotators label gold passages and expected behavior; agreement κ = 0.71.
  3. 3Resolve disagreements and add five new guideline examples.
  4. 4Split 150 / 50 / 100 dev / validation / test, stratified by slice.

Outcome: The set reveals that "exceptions" queries score 0.21 lower than average, which an aggregate metric had hidden.

Decision rules

  • Every slice that matters to the decision must have its own minimum case count.
  • Include unanswerable cases in every evaluation set.
  • Never tune on the locked test set.
  • Publish a data card with sources, labeling guidelines and known gaps.

Common pitfalls

  • Using model-generated questions only, which mirror model strengths.
  • Letting the test set leak into prompts or few-shot examples.
  • Treating labels as permanent after the corpus changes.

Key vocabulary

Gold evidence
The passages an evaluation case expects retrieval to return.
Slice
A subset of cases sharing an attribute, used for targeted metrics.
Cohen's kappa
Agreement between two annotators corrected for chance.
Data card
Documentation of a dataset purpose, sources, labeling and limitations.

Tutorial outline

  1. 11.1Query taxonomy; expected documents, passages, claims and actions.
  2. 11.2Synthetic versus observed cases; leakage and benchmark overfitting.
  3. 11.3Labeling guides, adjudication, inter-rater reliability and dataset versions.

Glossary

Gold evidence
The source or passage expected to be retrieved for an evaluation case.

Required artifacts

Evaluation set, labeling guide, adjudication log and data card.

Evaluation evidence

Coverage matrix, inter-rater agreement, leakage checks and challenge-set performance.