Towards Accountability for Machine Learning Datasets: Practices from Software Engineering and Infrastructure

Ben Hutchinson, Andrew Smart, Alex Hanna, Emily Denton, Christina Greer, Oddur Kjartansson, Parker Barnes, Margaret MitchellarXiv 2020

TL;DR

This paper argues that machine learning datasets should be treated as critical technical infrastructure and developed using rigorous engineering practices. By adapting the Software Development Lifecycle (SDLC) to data, the authors propose a framework of documentation and oversight designed to close the "accountability gap" in AI systems.

What Problem Does This Paper Address?

In the current machine learning (ML) landscape, algorithmic innovation is glamorized while "data work"—the collection, cleaning, and annotation of datasets—is often devalued as mere drudgework. Consequently, the datasets that power AI are frequently poorly documented, lack clear ownership, and have opaque creation processes.

This lack of transparency leads to a "crisis in accountability." When an ML model exhibits bias or fails in high-stakes scenarios (like predictive policing or medical diagnosis), it is often impossible to trace which deliberative decisions during data collection led to that failure. The authors argue that datasets are not neutral "facts" but are engineered models of reality that inherit the politics and biases of their creators. Without a rigorous framework for documenting these decisions, we risk "bias laundering," where historical injustices are baked into data and then reproduced by "objective" algorithms.

Methods

The authors propose treating dataset development as a formal engineering discipline. They introduce the Dataset Development Lifecycle (DDL), a non-linear, cyclical process directly inspired by software engineering best practices.

Figure 1: The Dataset Development Lifecycle requires doc- umentation for each stage. See Table 3 for descriptions of each stage, and Table 1 for document types.

The core of their method is a requirement for specific "accounts" (documentation) at each of the five stages of the lifecycle:

  1. Requirements Analysis: Determining if data is the right solution and what specific properties it needs.
  2. Design: Deciding how to operationalize those requirements (e.g., sampling strategies, category definitions).
  3. Implementation: The actual collection and labeling, documented via a "diary" to capture unforeseen challenges.
  4. Testing: Rigorous evaluation, including adversarial testing to find hidden hazards.
  5. Maintenance: A long-term plan for fixing errors and handling "data staleness."

The paper provides detailed templates (found in the Appendices) for these documents to help practitioners move from theory to practice.

Datasets

This paper does not introduce a new training dataset; rather, it provides a meta-framework for how all datasets should be handled. It references existing benchmarks like ImageNet to illustrate how problems—such as offensive labels or demographic underrepresentation—often take years to be discovered because the original design intentions were never documented.

Key Insights and Ideas

  • Datasets as Infrastructure: The authors posit that datasets are a form of technical infrastructure. Like bridges or power grids, they are essential components that we often take for granted until they break down.
  • "Knowledge-how" vs. "Knowledge-that": While science aims for "knowledge-that" (what is true), engineering aims for "knowledge-how" (how to achieve a goal). Dataset creation is an engineering task; it is goal-driven and involves trade-offs that are inherently value-laden.
  • Data Debt: Borrowing from the concept of "technical debt," the authors warn of "data debt." Prioritizing speed over quality in data collection creates long-term costs in maintenance and increases the risk of system failure.
  • The Problem of Many Hands: In large ML projects, responsibility is often diffused. The framework addresses this by assigning clear "Key Roles" to each document type (e.g., Requirements Owner, Data Contester), ensuring someone is answerable for specific decisions.
Table 1: Critical document types for accountable dataset development.

Key Results

The primary result is a comprehensive, actionable framework for dataset transparency. By mapping the DDL to specific questions and roles, the authors provide a roadmap for internal audits and external reviews.

Table 3: Stages of the Data Development Lifecycle.

Qualitatively, the paper highlights that better documentation leads to:

  • Improved Project Comprehension: Helping new team members understand the "why" behind data choices.
  • Risk Mitigation: Identifying "unintended artifacts" through adversarial testing before deployment.
  • Contestability: Providing the necessary information for impacted stakeholders to challenge automated decisions.

Limitations and Future Work

The authors acknowledge that the primary barrier to this framework is cultural. The ML community currently rewards new models more than careful data stewardship. Future work is needed to empirically measure the cost-benefit ratio of this documentation—specifically, whether the upfront effort of creating a "Dataset Maintenance Plan" actually saves time and money during the system's operational life.

Additionally, while the paper addresses accountability and answerability, it explicitly leaves the complex legal question of liability for future discussion. The authors conclude that for ML to survive its current accountability crisis, the field must move away from "hacker culture" and toward a mature engineering culture that values data as much as code.

Summary updated

BibTeX
@misc{hutchinson2020towards,
  author = {Ben Hutchinson and Andrew Smart and Alex Hanna and Emily Denton and Christina Greer and Oddur Kjartansson and Parker Barnes and Margaret Mitchell},
  title = {{Towards Accountability for Machine Learning Datasets: Practices from Software Engineering and Infrastructure}},
  year = {2020},
  eprint = {2010.13561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.13561},
}
Figure