[论文解读] Deep Learning on a Data Diet: Finding Important Examples Early in Training
本研究表明,简单分数在多次初始化取平均后,能够在训练早期识别出重要的训练样本,从而实现对数据的大幅裁剪(例如在 CIFAR-10 上裁剪 50% 数据),而不影响测试准确率。
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.
研究动机与目标
- 通过识别并裁剪多余的训练样本来促进数据高效训练。
- 提出在训练早期量化样本重要性的分数(GraNd 和 EL2N)。
- 在标准视觉数据集和架构上展示数据裁剪的有效性。
- 探讨数据重要性子群体如何塑造损失表面和训练动力学。
- 展示分数在跨架构上的泛化性及对噪声标签的含义。
提出的方法
- 将 GraNd 分数定义为一个训练样本在权重初始化上的梯度范数的期望值。
- 将 EL2N 分数定义为训练早期预测误差的 L2 范数的期望值(p(w,x) - y)。
- 对多个初始化取平均获得稳定的排序。
- 基于分数排序经验性裁剪训练数据并在子集上重新训练。
- 将基于 GraNd/EL2N 的裁剪与基于遗忘的裁剪以及基线的全数据进行比较。
- 研究数据相关的 NTK 速度以及线性连通模式,以将分数与训练动力学联系起来。
实验结果
研究问题
- RQ1早期训练中的样本级分数是否能够识别对泛化至关重要的数据?
- RQ2在训练早期能裁剪多少训练数据而不在各数据集上牺牲测试准确率?
- RQ3EL2N/GraNd 分数是否在不同架构和超参数下具有泛化性?
- RQ4高分样本与训练动力学之间的关系,包括 NTK 演变和损失景观连通性?
- RQ5标签噪声如何影响 EL2N/GraNd 分数所认定的重要样本?
主要发现
- 在经过若干训练轮次后计算的 EL2N 分数可以裁剪大约 50% 的 CIFAR-10 数据而不损失准确率,且裁剪大约 25% 的 CIFAR-100 数据仅导致约 1% 的准确率下降。
- 来自一个架构或超参数配置的 EL2N 分数可以泛化到其他配置,支持跨配置裁剪。
- 基于高 EL2N/GraNd 分数的裁剪,在中等裁剪程度下可以达到甚至超过全数据训练的性能。
- 最高分样本并不总是最关键的;裁剪一小部分极高分样本有时可以提升性能,特别是在有标签噪声的情形。
- 低 EL2N 分数子集很快使训练误差屏障消失,而高分子集则维持更高的屏障,表明不同的损失景观动力学。
- 与高分样本相关的 NTK 子矩阵演化更快,表明这些样本驱动学习和特征空间的变化。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。