WeMix: How to Better Utilize Data Augmentation

Yi Xu, Asaf Noy, Ming Lin, Qi Qian, Hao Li, Rong Jin

Abstract

Data augmentation (DA) is a cornerstone of modern deep learning, yet its tendency to introduce "data bias" by shifting training distributions away from real-world data remains a significant challenge. We introduce WeMix, a framework comprising two novel techniques—AugDrop and MixLoss—designed to theoretically and empirically correct this bias. By analyzing DA in non-convex optimization settings, we demonstrate that WeMix significantly improves generalization across standard benchmarks and maintains robustness even under extreme augmentation conditions.

Introduction

While techniques like image flipping and "mixup" are standard for preventing overfitting, strong augmentation can paradoxically increase standard error. This phenomenon stems from data distribution bias: the discrepancy between the augmented distribution ($\tilde{\mathcal{D}}$) and the original distribution ($\mathcal{D}$). If this bias is excessive, models may learn spurious features. This research addresses two critical questions: the conditions under which deep models benefit from DA and the design of algorithms that leverage augmented data without being compromised by its inherent bias.

Methodology

Moving beyond simple linear models, we analyze DA using the Polyak-Lojasiewicz (PL) condition, a realistic assumption for modern deep neural network loss landscapes. We propose three primary components:

AugDrop (Augmentation Dropping)

AugDrop is a two-stage training strategy. In Stage I, the model trains on augmented data to navigate toward a favorable region in the parameter space, benefiting from an improved condition number. In Stage II, the augmentation is "dropped," and the model trains exclusively on original data to correct distribution bias and center the final solution.

MixLoss

Designed for label-mixing augmentations like mixup, MixLoss replaces standard loss functions that might force a model toward biased labels. Instead, it minimizes loss over a set of possible labels within a defined "bias distance" ($\delta_y$) of the augmented label, providing a more flexible and accurate learning signal.

WeMix

The unified WeMix algorithm combines these approaches. It utilizes a weighted sum of original loss and MixLoss during the initial stage, followed by an AugDrop stage where all augmentations are removed to finalize the model on the true data distribution.

Experimental Evaluation

The effectiveness of WeMix was evaluated on CIFAR-10 and CIFAR-100 using ResNet-18 and Wide-ResNet-28-10 architectures. We tested both label-mixing (Mixup) and label-preserving (Contrast) transformations.

Key Results

As shown in the table below, WeMix consistently outperforms standard baselines.

Comparison of classification accuracy on CIFAR-100 and CIFAR-10 datasets.

On CIFAR-100, standard Mixup achieved 78.31% accuracy, while WeMix reached 80.61%. Similar gains were observed on CIFAR-10. Notably, WeMix demonstrates exceptional robustness to "extreme" augmentation. In scenarios mixing 10 images simultaneously—where standard Mixup performance plummeted to 60.36%—WeMix maintained a stable 78.08% accuracy, demonstrating its ability to filter out noise introduced by heavy augmentation.

Discussion and Conclusion

Our findings suggest that while augmented data aids optimization early in training by smoothing the loss landscape, the original data distribution is essential for final generalization. WeMix provides a theoretically grounded method to balance these needs.

Future work will focus on establishing a unified theoretical guarantee for the combined WeMix algorithm and exploring its application to more complex, automated augmentation strategies like AutoAugment. Additionally, optimizing the transition point between the two training stages (the "dropping" epoch) remains an area for further refinement across diverse architectures.

Summary updated

BibTeX
@misc{xu2020wemix,
  author = {Yi Xu and Asaf Noy and Ming Lin and Qi Qian and Hao Li and Rong Jin},
  title = {{WeMix: How to Better Utilize Data Augmentation}},
  year = {2020},
  eprint = {2010.01267},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01267},
}
Figure