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

Dang Nguyen, Paymon Haddad, Eric Gan, Baharan Mirzasoleiman

Deep learning models often suffer from "simplicity bias," a phenomenon where they latch onto easy-to-learn features and ignore more complex, generalizable ones. To combat this, researchers have introduced USEFUL (UpSample Early For Uniform Learning), a simple yet powerful method that identifies "hard" examples early in training and upsamples them. This forces the model to learn features more uniformly, leading to state-of-the-art generalization on standard benchmarks.

The Problem: Simplicity Bias

Standard training assumes that the training and test data should come from the same distribution. However, neural networks are prone to simplicity bias (SB): they tend to prioritize simple, often non-robust features (like a specific background color) over complex, robust ones (like the actual shape of an object). This happens because simple features provide a quick way to reduce training loss, causing the optimizer to "starve" the more useful, harder-to-learn features.

While advanced optimizers like Sharpness-Aware Minimization (SAM) help by finding "flatter" minima that generalize better, they often double the training time. The authors ask a provocative question: Can we instead modify the data distribution itself to achieve these generalization benefits without the massive computational overhead of complex optimizers?

The Solution: USEFUL

To address this, the authors propose USEFUL, a "one-shot" data intervention strategy consisting of three main steps:

  1. Early Probing: The model is trained on the original dataset for a very small number of epochs (typically 5-10% of the total training time).
  2. Clustering & Identification: The authors prove that "easy" and "hard" examples become separable in the model's output space very early on. USEFUL applies k-means clustering to the last-layer activation vectors of the examples in each class. It identifies two clusters: one with lower average loss (fast-learnable/simple features) and one with higher average loss (slow-learnable/complex features).
Examples of slow-learnable vs. fast-learnable images across different classes.
  1. One-Shot Upsampling: The "hard" (slow-learnable) examples are upsampled, typically by a factor of 2. The model is then re-initialized and trained from scratch on this modified distribution.
PCA projection showing clear separability between slow-learnable and fast-learnable examples in the model's output space.

Unlike dynamic reweighting schemes that change every iteration, USEFUL changes the distribution once and stays fixed, making it compatible with standard training pipelines and various optimizers.

Key Insights

  • SAM as a Uniform Learner: The paper provides a rigorous theoretical proof that SAM generalizes better than standard Gradient Descent (GD) specifically because it learns different features at a more uniform speed, effectively mitigating simplicity bias.
  • The "Aha" Moment on Separability: A key finding is that you don't need to train a model to completion to know which images are "hard." The features that lead to simplicity bias are learned so early that a quick probe is enough to cluster the data effectively.
  • Data vs. Optimizer: Changing the data distribution can "recover" the benefits of SAM using standard SGD. In fact, combining USEFUL with SAM yields even better results, suggesting the two approaches are complementary.
  • Simplicity Bias is an ID Problem: Most research treats simplicity bias as an "Out-of-Distribution" (OOD) problem. This paper demonstrates that SB significantly hurts In-Distribution (ID) performance as well—fixing it makes the model better at its primary task.

Results and Performance

The researchers evaluated USEFUL across a wide range of standard image classification benchmarks, including CIFAR10, CIFAR100, STL10, CINIC10, and Tiny-ImageNet, using architectures like ResNet18, VGG19, and even Vision Transformers (ViT-S).

  • State-of-the-Art Performance: When combined with SAM and TrivialAugment (TA), USEFUL achieved state-of-the-art performance for ResNet18 on CIFAR10, STL10, CINIC10, and Tiny-ImageNet.
  • Consistent Gains: On CIFAR10, USEFUL reduced the test error of SGD from 5.07% to 4.79%. When applied to SAM, it further reduced the error from 4.23% to 4.04%.
  • Efficiency: While SAM doubles training time, USEFUL only adds a small "probing" phase (5-10% overhead). Even with the full restart, it is often more computationally efficient than training with SAM for the same number of total iterations.

Limitations and Future Work

While highly effective, the method does have limitations. The rigorous proofs are currently limited to two-layer CNNs, and extending this theory to deeper architectures remains an open challenge. Additionally, the method requires restarting training from scratch after the upsampling step; finding a way to adapt the distribution "on the fly" could further improve efficiency. Finally, while the authors provide a heuristic for choosing the "separating epoch," it still requires some manual monitoring or domain knowledge. Future work could also explore if simplicity bias in Large Language Models (LLMs) can be mitigated using similar data-centric clustering and upsampling.

Summary updated

BibTeX
@inproceedings{nguyen2024changing,
  author = {Dang Nguyen and Paymon Haddad and Eric Gan and Baharan Mirzasoleiman},
  title = {{Changing the Training Data Distribution to Reduce Simplicity Bias Improves In-distribution Generalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=yySpldUsU2},
}
Figure