Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics

Swabha Swayamdipta, Roy Schwartz, Nicholas Lourie, Yizhong Wang, Hannaneh Hajishirzi +2 more
9/22/2020
678 citations
cs.CL

Official code: allenai/cartography (225 stars, Jupyter Notebook, Apache-2.0, last commit 2022-07-19).

Abstract

Large datasets have become commonplace in NLP research. However, the increased emphasis on data quantity has made it challenging to assess the quality of data.

Show full abstract

We introduce Data Maps---a model-based tool to characterize and diagnose datasets. We leverage a largely ignored source of information: the behavior of the model on individual instances during training (training dynamics) for building data maps. This yields two intuitive measures for each example---the model's confidence in the true class, and the variability of this confidence across epochs---obtained in a single run of training. Experiments across four datasets show that these model-dependent measures reveal three distinct regions in the data map, each with pronounced characteristics. First, our data maps show the presence of "ambiguous" regions with respect to the model, which contribute the most towards out-of-distribution generalization. Second, the most populous regions in the data are "easy to learn" for the model, and play an important role in model optimization. Finally, data maps uncover a region with instances that the model finds "hard to learn"; these often correspond to labeling errors. Our results indicate that a shift in focus from quantity to quality of data could lead to robust models and improved out-of-distribution generalization.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics

22567Jupyter Notebook, PythonOct 1, 20204 years agoApache-2.0

Similar Papers

Cite this paper

@article{swayamdipta2020dataset,
  title  = {Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics},
  author = {Swabha Swayamdipta and Roy Schwartz and Nicholas Lourie and Yizhong Wang and Hannaneh Hajishirzi and Noah A. Smith and Yejin Choi},
  year   = {2020},
  eprint = {2009.10795},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.10795}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.10795.svg)](https://codeofpaper.com/paper/2009.10795)

Discussion