The good, the bad and the ugly sides of data augmentation: An implicit spectral regularization perspective

Chi-Heng Lin, Chiraag Kaushik, Eva L. Dyer, Vidya Muthukumar
10/10/2022
cs.LGstat.ML

Official code: nerdslab/augmentation-theory (2 stars, Jupyter Notebook, last commit 2022-11-06).

Abstract

Data augmentation (DA) is a powerful workhorse for bolstering performance in modern machine learning. Specific augmentations like translations and scaling in computer vision are traditionally believed to improve generalization by generating new (artificial) data from the same distribution.

Show full abstract

However, this traditional viewpoint does not explain the success of prevalent augmentations in modern machine learning (e.g. randomized masking, cutout, mixup), that greatly alter the training data distribution. In this work, we develop a new theoretical framework to characterize the impact of a general class of DA on underparameterized and overparameterized linear model generalization. Our framework reveals that DA induces implicit spectral regularization through a combination of two distinct effects: a) manipulating the relative proportion of eigenvalues of the data covariance matrix in a training-data-dependent manner, and b) uniformly boosting the entire spectrum of the data covariance matrix through ridge regression. These effects, when applied to popular augmentations, give rise to a wide variety of phenomena, including discrepancies in generalization between over-parameterized and under-parameterized regimes and differences between regression and classification tasks. Our framework highlights the nuanced and sometimes surprising impacts of DA on generalization, and serves as a testbed for novel augmentation design.

View on arXivView PDF

Code Implementations(1)

20Jupyter NotebookSep 22, 20214 years ago

Similar Papers

Cite this paper

@article{lin2022good,
  title  = {The good, the bad and the ugly sides of data augmentation: An implicit spectral regularization perspective},
  author = {Chi-Heng Lin and Chiraag Kaushik and Eva L. Dyer and Vidya Muthukumar},
  year   = {2022},
  eprint = {2210.05021},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05021}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.05021.svg)](https://codeofpaper.com/paper/2210.05021)

Discussion