Abstract
Deep neural networks excel at learning training data but often provide incorrect and confident predictions on test examples involving distribution shifts, outliers, or adversarial examples. We propose Manifold Mixup, a simple regularizer that trains networks on interpolations of hidden representations. This technique encourages smoother decision boundaries and flatter class representations with fewer directions of variance. Manifold Mixup leverages semantic interpolations as additional training signal, obtaining neural networks with smoother decision boundaries at multiple levels of representation. In spite of incurring no significant computation, Manifold Mixup improves strong baselines in supervised learning, robustness to single-step adversarial attacks, and test log-likelihood.
Introduction: The Problem of Overconfidence
Deep neural networks are notorious for being "confident but wrong." While they achieve incredible accuracy on training data, they often produce high-confidence predictions for examples that are slightly different from the training set—such as distribution shifts, outliers, or adversarial examples.
The authors identify two core issues in standard training:
- Sharp Decision Boundaries: Boundaries between classes are often jagged and located very close to the actual data points.
- Overconfidence in Empty Space: Most of the hidden representation space corresponds to high-confidence predictions, even in regions where the model has never seen data.
Essentially, standard training doesn't give the model enough incentive to be uncertain in the gaps between data clusters.
The Manifold Mixup Method
Manifold Mixup builds on Input Mixup, a technique where pairs of training images and their labels are linearly blended. However, Manifold Mixup takes this a step further by interpolating hidden states at various depths within the network.
For each training minibatch, the algorithm follows these steps:
- Random Layer Selection: A layer $k$ is randomly selected from a set of eligible layers (including the input layer).
- Hidden State Interpolation: Two different data points are passed through the network up to layer $k$. Their hidden states are then linearly blended: $\tilde{g}_k = \lambda g_k(x) + (1-\lambda)g_k(x')$.
- Label Interpolation: The corresponding one-hot labels are blended using the same mixing coefficient $\lambda$.
- Forward/Backward Pass: The mixed representation $\tilde{g}_k$ continues through the rest of the network to produce a prediction, and the loss is calculated against the mixed label.
By mixing at different depths, the network is forced to learn what "halfway between classes" looks like at multiple levels of abstraction—from raw pixels to high-level semantic features.
Key Insights: The Flattening Effect
One of the most striking findings is that Manifold Mixup "flattens" class representations. Using Singular Value Decomposition (SVD), the authors show that the hidden states for a specific class occupy a lower-dimensional subspace compared to vanilla training.
This compression is a hallmark of good generalization. By concentrating class information into fewer directions of variance, the network effectively filters out noise and focuses on the most discriminative features, a concept linked to the Information Bottleneck principle. Furthermore, by training on interpolations, the model is explicitly taught to be less confident in the regions between classes. This pushes the decision boundaries further away from the data points, creating a larger "margin."
Experimental Results
The authors evaluated Manifold Mixup across several standard computer vision benchmarks, including CIFAR-10/100, SVHN, and TinyImageNet.
- State-of-the-Art Generalization: Manifold Mixup consistently outperformed strong baselines like Dropout and Batch Normalization. For example, on CIFAR-100 using a PreActResNet18, it reduced test error from 24.01% (baseline) to 20.34%.
- Improved Calibration: The models were better calibrated, achieving up to a 50% relative improvement in test Negative Log-Likelihood (NLL) on CIFAR-10.
- Robustness: While not a complete fix for iterative attacks, it significantly improved robustness against single-step adversarial attacks like FGSM and handled novel geometric deformations (rotations, shearing) much better than standard models.
Conclusion and Limitations
Manifold Mixup is a highly effective regularization technique that requires only a few lines of code and adds no significant computational overhead. While it provides a "free lunch" for performance gains, it does have limitations, such as sensitivity to the mixing distribution hyperparameter and a lack of strong defense against sophisticated, multi-step adversarial attacks like PGD. Future work remains to bridge the gap between the idealized theoretical proofs of the "flattening" effect and the behavior of finite, practical networks.
Summary updated