What is a golden dataset in AI?
By Plety. Updated
A golden dataset in AI is a curated set of inputs paired with trusted reference answers, written or checked by people who know the task, that a team treats as the standard for scoring an AI system. Microsoft's Azure guidance describes it as trusted input-output pairs, typically created or validated by humans. Its value depends on how carefully it is built and kept apart from training.
What is a golden dataset in AI?
A golden dataset is a fixed set of example inputs, each with a reference answer that experts have written or approved, used as the yardstick for an AI system's output. Microsoft's Azure Well-Architected Framework guidance on testing AI workloads says this evaluation dataset, often referred to as the golden dataset, consists of trusted input-output pairs, typically created or validated by humans, and serves as the objective benchmark for judging model performance against quality metrics.
The word golden marks the set as the agreed source of truth. Microsoft's guidance for teams building Copilot experiences, published in its promptflow resource hub on GitHub, describes a golden dataset as a collection of realistic customer questions along with expert answers, used to assess answer quality and not as source data for training or prompting. The general difference between training, validation and test sets is explained at https://plety.net/about/for-buyers/what-is-an-ai-evaluation-dataset. This page covers the curated reference set itself and how it is built.
What does each record in a golden dataset hold?
Each record in a golden dataset holds an input, a reference answer and enough information to grade a new answer against it. The fields in the table come from vendors' and labs' own published guidance.
| Field | What it holds | Published example |
|---|---|---|
| Input | The question or task, written so that it stands on its own | Microsoft's Copilot guidance says each question must be self-contained, because it is sent to the model as it is |
| Reference answer | The correct and complete answer, written or corrected by an expert | Microsoft's guidance asks a domain expert to craft a response that is both correct and complete |
| Source references | The documents the answer relies on | Optional in Microsoft's guidance, used to compare the model's citations with the expert's |
| Grading rule | How a new answer is scored: exact match, a rubric, or a model acting as judge | Anthropic's guide to building evaluations describes code-based, human and model-based grading |
| Difficulty and tags | Labels for hard cases, edge cases and task type | Annotators for OpenAI's SWE-bench Verified estimated the difficulty of each task |
How is a golden dataset built?
A golden dataset is built in four steps: gather realistic inputs, have experts write reference answers, have a second person check them, and remove anything faulty. Microsoft's Copilot guidance says questions should be written the way a non-expert customer would ask them, not from what the source documents contain, and advises against using a language model to generate the questions when the aim is to measure real customer experience. A model may draft first answers, but experts must review and correct them, and an optional second expert reviews the whole set.
Screening matters as much as writing. OpenAI published SWE-bench Verified on 13 August 2024 after 93 software developers experienced in Python screened 1,699 random samples from the SWE-bench test set, with each sample labelled three times by separate annotators. OpenAI said 68.3% of the samples were filtered out for underspecified problem statements, unfair tests or other issues, and it released 500 samples that its annotators verified.
Hard sets are also checked against people. GPQA, posted on arXiv on 20 November 2023 by David Rein and colleagues, is a set of 448 multiple-choice questions written by experts in biology, physics and chemistry. Experts who have or are pursuing PhDs in those fields reached 65% accuracy (74% after discounting clear mistakes they identified later), while highly skilled non-experts reached 34% despite spending over 30 minutes on average with unrestricted web access.
How big should a golden dataset be?
A golden dataset is usually small enough for experts to check every record: Microsoft's Copilot guidance recommends about 150 question and answer pairs, and certainly not fewer than 100, for statistical relevance. Microsoft's Azure guidance adds that a limited sample size can lead to poor evaluation quality, and that the set should be representative of the domain or task, with diverse, high-quality examples and minimal noise.
Anthropic's guide to building evaluations takes the other side of the trade-off for automated tests. It says more questions with slightly lower-signal automated grading are better than fewer questions graded by hand, and asks teams to mirror their real task distribution and include edge cases, such as irrelevant or overly long input and ambiguous cases where even humans would struggle to agree. The two pieces of advice fit together: a small golden core that experts check record by record, with a larger automated set beside it.
How is a golden dataset kept trustworthy?
A golden dataset stays trustworthy only while it is kept out of training and kept in line with reality. Microsoft's Azure guidance says to keep training, evaluation and test datasets separate and non-overlapping, and not to reuse training data for evaluation. Its Copilot guidance says that when answer quality drifts significantly, the dataset may no longer be up to date with reality and should be revised, for example after changes to the source documents, the model version or the prompt.
Novelty is part of the design. The HumanEval paper by Mark Chen and colleagues at OpenAI, posted on arXiv on 7 July 2021, describes 164 hand-written programming problems with an average of 7.7 unit tests each. It says hand-writing mattered because the models were trained on a large fraction of GitHub, which already held solutions to problems from many sources. How a model comes to learn a test set is explained at https://plety.net/about/for-buyers/what-is-data-contamination-in-ai.
Why do real business records make good golden data?
Real business records make good golden data because they hold real requests next to answers that experienced staff gave and the business accepted. A resolved support ticket pairs a customer's own wording with the reply that fixed the problem, which matches Microsoft's advice to use realistic questions phrased as customers ask them. Records that were never published are also unlikely to be in any model's training data.
Records still need work before they become a golden set. Someone has to pick representative cases, check that each answer is correct and decide how to grade it. Personal data has to be removed, and the licence should allow evaluation only, with no training on the records. Where Plety is involved, personal data is removed inside the company's own systems before anything leaves, and Plety never holds or views the records.
Questions
- Is a golden dataset the same as ground truth?
- Not quite. Ground truth is the correct answer for a single example, while a golden dataset is the whole curated set of inputs with their ground-truth answers and grading rules.
- Can a golden dataset be synthetic?
- Partly. Microsoft's Azure guidance suggests synthetic data where real samples lack diversity or coverage, but its Copilot guidance advises against model-generated questions when the aim is to measure real customer experience.
- Who should write the reference answers?
- People who do the task for a living. Microsoft's guidance asks domain experts to write or correct each answer, GPQA used domain experts, and SWE-bench Verified used experienced software developers.
- Should a golden dataset be published?
- Publishing makes scores comparable between teams but lets the set leak into future training data. A private golden set avoids that, at the cost of outsiders being unable to check the scores.
Looking for licensed records from UK companies?
Email Herman or book a 30-minute call with what you license: record types, languages, volume, date range and terms.
Sources
- Microsoft Learn, Azure Well-Architected Framework: test and evaluate AI workloads
- Microsoft promptflow resource hub: guidance for creating golden datasets for Copilot quality assurance
- Anthropic, Define success criteria and build evaluations
- OpenAI, Introducing SWE-bench Verified (13 August 2024)
- Rein and others, GPQA: a graduate-level Google-proof Q&A benchmark (arXiv, 2023)
- Chen and others, Evaluating large language models trained on code (HumanEval, arXiv, 2021)
This page is general information, not legal advice. Take advice on your own company's records and contracts.