Papers › Deep Learning on a Data Diet: Finding Important Examples Early in Training

Deep Learning on a Data Diet: Finding Important Examples Early in Training

15 Jul 2021NeurIPS 2021 12arXiv:2107.07075archive 2025-07-28

Mansheej Paul, Surya Ganguli, Gintare Karolina Dziugaite

Recent success in deep learning has partially been driven by training increasingly overparametrized networks on ever larger datasets. It is therefore natural to ask: how much of the data is superfluous, which examples are important for generalization, and how do we find them? In this work, we make the striking observation that, in standard vision datasets, simple scores averaged over several weight initializations can be used to identify important examples very early in training. We propose two such scores -- the Gradient Normed (GraNd) and the Error L2-Norm (EL2N) scores -- and demonstrate their efficacy on a range of architectures and datasets by pruning significant fractions of training data without sacrificing test accuracy. In fact, using EL2N scores calculated a few epochs into training, we can prune half of the CIFAR10 training set while slightly improving test accuracy. Furthermore, for a given dataset, EL2N scores from one architecture or hyperparameter configuration generalize to other configurations. Compared to recent work that prunes data by discarding examples that are rarely forgotten over the course of training, our scores use only local information early in training. We also use our scores to detect noisy examples and study training dynamics through the lens of important examples -- we investigate how the data distribution shapes the loss surface and identify subspaces of the model's data representation that are relatively stable over training.

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="2107.07075")

Code

Syntology Ran 4 of 24 code samples harvested from 1 repository linked to this paper; 20 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran with no contract checked.

By repository: official repository: 24 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mansheej/data_diet officialmentioned in paperjaxApache-2.0 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

24 samples harvested; 4 ran; 1 honoured the contract we drafted; 20 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.

1ran · honoured contract
3ran
20unverified

Licence: 0 of the 24 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 mansheej/data_diet. “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.

flatten_jacobian mansheej/data_diet/data_diet/gradients.py official repository ran · honoured contract Apache-2.0 (permissive) · 9c77ed5f1b2a5cb5 · report
get_apply_fn_test mansheej/data_diet/data_diet/models.py official repository ran Apache-2.0 (permissive) · c231223cd0275ac9 · report
get_num_params mansheej/data_diet/data_diet/models.py official repository ran Apache-2.0 (permissive) · 63410cdc89b2ca7a · report
record_ckpt mansheej/data_diet/data_diet/recorder.py official repository ran Apache-2.0 (permissive) · 1250d55ffe8b6887 · report
accuracy mansheej/data_diet/data_diet/metrics.py official repository unverified Apache-2.0 (permissive) · 9303a55485ebdf1b · report
compute_mean_logit_gradients mansheej/data_diet/data_diet/gradients.py official repository unverified Apache-2.0 (permissive) · 8a4a165bf94a5845 · report
correct mansheej/data_diet/data_diet/metrics.py official repository unverified Apache-2.0 (permissive) · 3d3a57e4ec59a580 · report
cross_entropy_loss mansheej/data_diet/data_diet/metrics.py official repository unverified Apache-2.0 (permissive) · b9fe6d146beff6d7 · report
get_fn_params_state mansheej/data_diet/data_diet/utils.py official repository unverified Apache-2.0 (permissive) · 139e98d082836d96 · report
get_grad_norm_fn mansheej/data_diet/data_diet/scores.py official repository unverified Apache-2.0 (permissive) · 9c1e915d16795b09 · report
get_lord_error_fn mansheej/data_diet/data_diet/scores.py official repository unverified Apache-2.0 (permissive) · 54b551623acee6e1 · report
get_margin_error mansheej/data_diet/data_diet/scores.py official repository unverified Apache-2.0 (permissive) · 1ed5a333966e05bc · report
get_mean_logit_gradients_fn mansheej/data_diet/data_diet/gradients.py official repository unverified Apache-2.0 (permissive) · 49a24aaf4e850cdd · report
get_model mansheej/data_diet/data_diet/models.py official repository unverified Apache-2.0 (permissive) · dcfbe7124e3a346a · report
init_forget_stats mansheej/data_diet/data_diet/forgetting.py official repository unverified Apache-2.0 (permissive) · ef7abf4c30fab72e · report
load_args mansheej/data_diet/data_diet/utils.py official repository unverified Apache-2.0 (permissive) · 28495435e5b289bd · report
load_forget_scores mansheej/data_diet/data_diet/forgetting.py official repository unverified Apache-2.0 (permissive) · d22d21e9bebc00c3 · report
normalize_cifar100_images mansheej/data_diet/data_diet/data.py official repository unverified Apache-2.0 (permissive) · fe13472aca3d2b25 · report
normalize_cifar10_images mansheej/data_diet/data_diet/data.py official repository unverified Apache-2.0 (permissive) · a3ec54a961982702 · report
one_hot mansheej/data_diet/data_diet/data.py official repository unverified Apache-2.0 (permissive) · f8f057d94b1824fe · report
record_test_stats mansheej/data_diet/data_diet/recorder.py official repository unverified Apache-2.0 (permissive) · 3410e08123d11a74 · report
record_train_stats mansheej/data_diet/data_diet/recorder.py official repository unverified Apache-2.0 (permissive) · c9266e79ba8131c8 · report
save_args mansheej/data_diet/data_diet/utils.py official repository unverified Apache-2.0 (permissive) · 2c63f727aab9dd2b · report
update_forget_stats mansheej/data_diet/data_diet/forgetting.py official repository unverified Apache-2.0 (permissive) · 067a8c8180f18f38 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruning

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