Papers › Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics

Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics

22 Sep 2020EMNLP 2020 11arXiv:2009.10795archive 2025-07-28

Swabha Swayamdipta, Roy Schwartz, Nicholas Lourie, Yizhong Wang, Hannaneh Hajishirzi, Noah A. Smith, Yejin Choi

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. 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2009.10795")

Code

Syntology Ran 7 of 16 code samples harvested from 5 repositories linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · violated contract; 2 ran · our draft was wrong; 2 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 0 ran; community (archive-listed): 8 samples from 4 repositories, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

allenai/cartography officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
DorBernsohn/TrainingDynamics mentioned on GitHubtf report
dyahadila/ood_cartography mentioned on GitHubpytorch report
szhang42/uneven_training_data mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 7 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
2ran · our draft was wrong
2ran · fixture could not drive it
1ran
9unverified

Licence: 3 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

adapted_glue_compute_metrics allenai/cartography/cartography/classification/glue_utils.py official repository unverified Apache-2.0 (permissive) · c1dc8ee8436bbb66 · report
convert_mc_examples_to_features allenai/cartography/cartography/classification/multiple_choice_utils.py official repository unverified Apache-2.0 (permissive) · 0356041f7d4f1629 · report
convert_string_to_unique_number allenai/cartography/cartography/data_utils_glue.py official repository unverified Apache-2.0 (permissive) · 18829c005e571204 · report
convert_tsv_entries_to_dataframe allenai/cartography/cartography/data_utils.py official repository unverified Apache-2.0 (permissive) · d976a22c80de6352 · report
determine_categories_by_fields allenai/cartography/cartography/classification/diagnostics_evaluation.py official repository unverified Apache-2.0 (permissive) · 8668f4254aab1786 · report
label_balance allenai/cartography/cartography/classification/diagnostics_evaluation.py official repository unverified Apache-2.0 (permissive) · 17a0e1fc45469b30 · report
read_glue_tsv allenai/cartography/cartography/data_utils_glue.py official repository unverified Apache-2.0 (permissive) · b03cdf908937ca31 · report
read_jsonl allenai/cartography/cartography/data_utils.py official repository unverified Apache-2.0 (permissive) · d4036398be7d8fc9 · report
DataMapCallback eliorc/tavolo/tavolo/learning.py community (archive-listed) ran MIT (permissive) · 63892da82b9ce195 · report
compute_correctness szhang42/uneven_training_data/cartography/selection/train_dy_filtering.py community (archive-listed) ran · violated contract fingerprinted Apache-2.0 (permissive) · b53e0e5cc0667b0b · report
compute_correctness beyondguo/TrainingDynamics/dy_filtering.py community (archive-listed) ran · violated contract fingerprinted no licence file found · pointer only · ebca92d1e4b67794 · report
compute_forgetfulness szhang42/uneven_training_data/cartography/selection/train_dy_filtering.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · bd88c7f0a36c7e6a · report
compute_forgetfulness beyondguo/TrainingDynamics/dy_filtering.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 270d424da751f2cf · report
compute_train_dy_metrics szhang42/uneven_training_data/cartography/selection/train_dy_filtering.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 9aac3b7014417968 · report
compute_train_dy_metrics beyondguo/TrainingDynamics/dy_filtering.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · fbb1ac1ee7b9badd · report
compute_train_dy_metrics_per_epoch dyahadila/ood_cartography/cartography/selection/train_dy_filtering.py community (archive-listed) unverified Apache-2.0 (permissive) · 13e0257678f83c36 · report

Tasks

Model OptimizationOut-of-Distribution Generalization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections