Manifold Mixup: Better Representations by Interpolating Hidden States

Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas +3 more
6/13/2018
stat.MLcs.AIcs.LG

Official code: vikasverma1077/manifold_mixup (494 stars, PyTorch, last commit 2024-03-31).

Abstract

Deep neural networks excel at learning the training data, but often provide incorrect and confident predictions when evaluated on slightly different test examples. This includes distribution shifts, outliers, and adversarial examples. To address these issues, we propose Manifold Mixup, a simple regularizer that encourages neural networks to predict less confidently on interpolations of hidden representations. Manifold Mixup leverages semantic interpolations as additional training signal, obtaining neural networks with smoother decision boundaries at multiple levels of representation. As a result, neural networks trained with Manifold Mixup learn class-representations with fewer directions of variance. We prove theory on why this flattening happens under ideal conditions, validate it on practical situations, and connect it to previous works on information theory and generalization. In spite of incurring no significant computation and being implemented in a few lines of code, Manifold Mixup improves strong baselines in supervised learning, robustness to single-step adversarial attacks, and test log-likelihood.

View on arXivView PDF

Code Implementations(1)

PyTorch

Code for reproducing Manifold Mixup results (ICML 2019)

49462Shell, PythonJun 12, 20182 years ago
data-augumentationdeep-learningdeep-neural-networksicml2019pytorch+3 more

Cite this paper

@article{verma2018manifold,
  title  = {Manifold Mixup: Better Representations by Interpolating Hidden States},
  author = {Vikas Verma and Alex Lamb and Christopher Beckham and Amir Najafi and Ioannis Mitliagkas and Aaron Courville and David Lopez-Paz and Yoshua Bengio},
  year   = {2018},
  eprint = {1806.05236},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1806.05236}
}

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/1806.05236.svg)](https://codeofpaper.com/paper/1806.05236)

Discussion