arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.17768cs.LGcs.AIcs.CV
收藏

改变训练数据分布以减少简单性偏差以提高分布内泛化能力

Changing the Training Data Distribution to Reduce Simplicity Bias Improves In-distribution Generalization

Department of Computer Science, UCLA(计算机科学系, UCLA)

Dang Nguyen, Paymon Haddad, Eric Gan, Baharan Mirzasoleiman

AI总结:

通过改变训练数据分布以减少简单性偏差,提高分布内泛化能力,该方法在多种数据集上实现了最先进的性能。

摘要:

我们能否通过修改训练数据分布来促使底层优化方法寻找在分布内数据上具有更优泛化性能的解决方案?在本文中,我们首次通过比较梯度下降(GD)与尖锐度感知最小化(SAM)的归纳偏差来回答这个问题。通过研究一个两层CNN,我们严格证明SAM学习特征更加均匀,特别是在早期 epoch 中。也就是说,SAM比GD更少受到简单性偏差的影响。我们还显示,包含早期学习特征的示例可以根据模型的输出与其余示例分离。基于这一观察,我们提出了一种方法,即(i)在训练早期根据网络输出对示例进行聚类,(ii)识别具有相似网络输出的示例簇,(iii)仅对其余示例进行一次上采样以缓解简单性偏差。我们证明了在使用各种梯度方法(包括(S)GD和SAM)进行训练时,USEFUL有效地提高了在原始数据分布上的泛化性能。值得注意的是,我们展示我们的方法可以与SAM变体和现有数据增强策略结合,以在CIFAR10、STL10、CINIC10、Tiny-ImageNet上训练ResNet18,在CIFAR100上训练ResNet34,在CIFAR10上训练VGG19和DenseNet121时,达到目前最佳的性能。我们的代码可在https://github.com/BigML-CS-UCLA/TADA上获得。

英文摘要:

Can we modify the training data distribution to encourage the underlying optimization method toward finding solutions with superior generalization performance on in-distribution data? In this work, we approach this question for the first time by comparing the inductive bias of gradient descent (GD) with that of sharpness-aware minimization (SAM). By studying a two-layer CNN, we rigorously prove that SAM learns different features more uniformly, particularly in early epochs. That is, SAM is less susceptible to simplicity bias compared to GD. We also show that examples containing features that are learned early are separable from the rest based on the model's output. Based on this observation, we propose a method that (i) clusters examples based on the network output early in training, (ii) identifies a cluster of examples with similar network output, and (iii) upsamples the rest of examples only once to alleviate the simplicity bias. We show empirically that USEFUL effectively improves the generalization performance on the original data distribution when training with various gradient methods, including (S)GD and SAM. Notably, we demonstrate that our method can be combined with SAM variants and existing data augmentation strategies to achieve, to the best of our knowledge, state-of-the-art performance for training ResNet18 on CIFAR10, STL10, CINIC10, Tiny-ImageNet; ResNet34 on CIFAR100; and VGG19 and DenseNet121 on CIFAR10. Our code is available at https://github.com/BigML-CS-UCLA/TADA.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑