Sample Efficiency of Data Augmentation Consistency Regularization

Shuo Yang, Yijun Dong, Rachel A. Ward, Inderjit S. Dhillon, Sujay Sanghavi, Qi Lei

Abstract

Data augmentation is popular in the training of large neural networks; however, currently, theoretical understanding of the discrepancy between different algorithmic choices of leveraging augmented data remains limited. In this paper, we take a step in this direction – we first present a simple and novel analysis for linear regression with label invariant augmentations, demonstrating that data augmentation consistency (DAC) is intrinsically more efficient than empirical risk minimization on augmented data (DA-ERM). The analysis is then generalized to misspecified augmentations (i.e., augmentations that change the labels), which again demonstrates the merit of DAC over DA-ERM. Further, we extend our analysis to non-linear models (e.g., neural networks) and present generalization bounds. Finally, we perform experiments that make a clean and apples-to-apples comparison (i.e., with no extra modeling or data tweaks) between DAC and DA-ERM using CIFAR-100 and WideResNet; these together demonstrate the superior efficacy of DAC.

Introduction

Data augmentation (DA) is a cornerstone of modern deep learning, enabling models to generalize better by artificially expanding training sets through transformations like rotations or color shifts. However, a fundamental question remains: how should these augmented samples be utilized?

Practitioners typically follow one of two paths: DA-ERM, which treats augmented samples as new labeled points, or DAC, which enforces consistency between the model's output for original and augmented versions of the same sample. This research provides a rigorous comparison between these methods, proving that DAC is fundamentally more sample-efficient.

Theoretical Framework: DAC as Dimension Reduction

The core insight of this work is that DAC acts as a form of implicit dimension reduction. By enforcing invariance to specific transformations, DAC effectively projects the learning problem into a lower-dimensional subspace, removing the "noise" introduced by those transformations.

In a linear regression setup, the authors demonstrate that while DA-ERM's error scales with the input dimension, DAC can achieve significantly lower excess risk. This is because DAC focuses the model's learning capacity on the invariant features of the data, rather than trying to fit the specific perturbations of the augmentation.

Comparison of Excess Risk for DAC and DA-ERM across different induced dimensions $d^0$. DAC maintains low, stable risk compared to the rising risk of DA-ERM.

Robustness to Misspecified Augmentations

A common challenge in DA is "misspecification," where an augmentation might inadvertently change the semantic label (e.g., rotating a '6' into a '9'). In DA-ERM, the model is forced to accept the potentially incorrect label. In contrast, DAC utilizes a tunable regularization parameter ($\lambda$) that allows for controlling the degree of trust placed in the augmentation.

This flexibility makes DAC more robust to complex or noisy augmentations. As the dimensionality of the augmentation ($d_{aug}$) increases, DAC's error rate remains relatively stable, whereas DA-ERM's performance degrades as it struggles to reconcile the increased complexity with fixed labels.

Excess risk as a function of augmentation dimensionality $d_{aug}$. DAC remains efficient even as the complexity of augmentations increases, whereas DA-ERM's performance degrades.

Empirical Results

The theoretical findings were validated through controlled experiments on CIFAR-100 using a WideResNet-28-2 architecture. To ensure a fair comparison, the only variable changed was the loss function applied to augmented data.

  • Superior Accuracy: With 10,000 samples, DAC achieved 70.56% accuracy, outperforming DA-ERM's 69.40%.
  • Efficiency in Scarcity: The gap widened in low-data regimes. With only 1,000 labeled samples, DAC reached 33.59% accuracy versus 31.11% for DA-ERM.
  • Semi-Supervised Integration: Adding a DAC term to the FixMatch algorithm improved performance by approximately 3.5% when unlabeled data was scarce.

Conclusion

This study establishes that Data Augmentation Consistency is intrinsically more sample-efficient than standard training on augmented data. By enforcing consistency, DAC reduces the effective dimensionality of the problem and provides a robust mechanism for handling potentially misspecified transformations. Future work may explore automated tuning of the consistency parameter $\lambda$ and the application of these principles to non-linear, complex augmentations like MixUp.

Summary updated

BibTeX
@inproceedings{yang2023sample,
  author = {Shuo Yang and Yijun Dong and Rachel A. Ward and Inderjit S. Dhillon and Sujay Sanghavi and Qi Lei},
  title = {{Sample Efficiency of Data Augmentation Consistency Regularization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=ZZEsLTurtJ},
}
Figure