What is a datasheet for a dataset?
By Plety. Updated
A datasheet for a dataset is a document that records why a dataset was created, what it contains, how it was collected and processed, and what it should and should not be used for. The idea comes from the paper Datasheets for Datasets by Timnit Gebru and colleagues, first posted in March 2018; data cards and dataset cards are later formats with the same aim.
What is a datasheet for a dataset?
A datasheet for a dataset is a structured set of answers about a dataset's origin, contents and intended uses, written by its creators for the people who will use it. Timnit Gebru and six co-authors proposed it in the paper Datasheets for Datasets, first posted on arXiv on 23 March 2018 and published in Communications of the ACM in December 2021.
The paper borrows from electronics, where it says every component, no matter how simple or complex, is accompanied with a datasheet. It names two audiences. For dataset creators, the aim is careful reflection on creating, distributing and maintaining a dataset. For dataset consumers, the aim is to have the information needed to make informed decisions about using it.
What questions does a datasheet answer?
A datasheet answers questions in seven sections that follow a dataset's life: motivation, composition, collection process, preprocessing and labelling, uses, distribution, and maintenance. The authors recommend answering as many questions as possible rather than skipping the datasheet entirely.
The order matters in practice. The paper says creators should read the composition and collection questions before collecting any data and answer them once collection is complete. After testing the questions with product teams, the authors reworded them to discourage yes or no answers, added the section on uses, and folded legal and ethical questions into the lifecycle stages, because teams were more likely to answer them there.
Several questions concern people. The paper asks whether individuals can be identified, directly or indirectly, from the dataset; whether it contains confidential data, such as the content of individuals' non-public communications; whether the people concerned were notified and consented; and whether an analysis of the impact on data subjects, such as a data protection impact analysis, was carried out. It advises a broad reading of whether a dataset relates to people, and says any dataset containing text written by people relates to people.
What are Google's Data Cards?
Data Cards are a dataset documentation format from Google Research, described by Mahima Pushkarna, Andrew Zaldivar and Oddur Kjartansson in a paper posted on arXiv on 3 April 2022 and submitted to the ACM FAccT 2022 conference. The paper describes them as structured summaries of essential facts about various aspects of machine learning datasets.
The facts it lists include upstream sources, collection and annotation methods, training and evaluation methods, and intended use. The authors report deploying over 20 Data Cards and set out frameworks for making them useful in practice to the different people who read them.
What is a Hugging Face dataset card?
A Hugging Face dataset card is the README.md file in a dataset's repository on the Hugging Face Hub, which the Hub displays on the dataset's main page. Hugging Face says dataset cards help users understand a dataset's contents and the context for using it, and its guide says the idea was inspired by Model Cards (Mitchell, 2018).
A YAML metadata section at the top of the file records details such as licence, language, size and task categories, which the Hub uses to help people find datasets. Hugging Face offers a template, and its guide says to write More Information Needed for any field that cannot be completed.
What should a datasheet for licensed business records contain?
A datasheet for licensed business records should answer the Gebru questions for records that were never built as a dataset, so a buyer can judge fitness and risk before delivery. The table maps the paper's seven sections to what a seller of email, chat, ticket or CRM records can state without revealing their contents.
Business records are usually documented after the fact, so the collection answers rest on system logs, export settings and the notices actually sent. A datasheet that states what was removed and how the removal was checked gives a buyer evidence for its own assessments, such as a DPIA, before any record is delivered.
| Section | What the paper's questions cover | For licensed business records |
|---|---|---|
| Motivation | Why the dataset was created and who funded it | Why the records are licensed, and who approved it: a director, or the office holder in an insolvency |
| Composition | What the instances are, how many, whether people can be identified, confidential or sensitive content | Record types, counts, date range, languages, and what was removed or kept |
| Collection process | How and from whom data was collected, whether people were notified and consented | Source systems, how exports were made, notices given and objections received |
| Preprocessing and labelling | What was done to the raw data | De-identification method, fields masked or generalised, results of checks |
| Uses | Tasks it has been used for and tasks it should not be used for | Permitted uses under the licence, such as training or evaluation, and excluded uses |
| Distribution | Who receives it, how, and under what licence or terms of use | Licence terms, delivery format and method, limits on onward transfer |
| Maintenance | Who maintains it, whether it will be updated, how to contact the owner | Contact point, handling of objections or erasure requests after delivery, deletion at the end |
Questions
- What is the difference between a datasheet, a data card and a dataset card?
- They share an aim. A datasheet is the question set from Gebru et al., a Data Card is Google Research's structured summary format, and a dataset card is the README file Hugging Face displays for a dataset on its Hub.
- Who writes the datasheet for licensed records?
- The seller, because it knows where the records came from and what was removed. The buyer can add its own answers about how it will use and maintain the data.
- Should a datasheet include personal data?
- No. It describes the records, such as counts, date ranges and removal methods, without reproducing their contents, so it can be shared with buyers before any records are delivered.
- Is a model card the same thing?
- No. Hugging Face's guide says dataset cards were inspired by Model Cards, which document trained models rather than the data used to build them.
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
- Gebru et al., Datasheets for Datasets (arXiv:1803.09010; Communications of the ACM, December 2021)
- Pushkarna, Zaldivar and Kjartansson, Data Cards: Purposeful and Transparent Dataset Documentation for Responsible AI (arXiv:2204.01075, 2022)
- Hugging Face Hub documentation, Dataset Cards
- Hugging Face Datasets documentation, Create a dataset card
This page is general information, not legal advice. Take advice on your own company's records and contracts.