Noisy Feature Mixup

Soon Hoe Lim, N. Benjamin Erichson, Francisco Utrera, Winnie Xu, Michael W. Mahoney

TL;DR Noisy Feature Mixup (NFM) is a powerful yet computationally inexpensive data augmentation method that combines the benefits of interpolation-based training (mixup) and noise injection. By applying noise-perturbed convex combinations of data points in both input and hidden feature spaces, NFM significantly enhances model robustness against various perturbations while maintaining or even improving predictive accuracy on clean data.

The Challenge: Overfitting and Fragility

Deep neural networks are notorious for two main weaknesses: overfitting (failing to generalize to new data) and fragility (making wildly different predictions when faced with tiny amounts of noise or adversarial attacks).

Existing solutions often tackle these issues separately. "Mixup" trains models on linear interpolations of image pairs, encouraging the model to behave linearly between classes. "Noise injection" adds random jitter to inputs or features to "smear" the data distribution, making the model less sensitive to small changes. While effective, these methods alone often face a trade-off where increasing robustness leads to a drop in standard accuracy. The authors seek a unified approach that provides better smoothing of decision boundaries and stronger generalization without this accuracy penalty.

Introducing Noisy Feature Mixup (NFM)

The authors introduce Noisy Feature Mixup (NFM), which generalizes both input mixup and manifold mixup.

Comparison of standard mixup and Noisy Feature Mixup (NFM)

The training process follows these steps:

  1. Layer Selection: A random layer $k$ (which could be the input layer 0) is chosen for each training iteration.
  2. Feature Extraction: Two random minibatches are passed through the network up to layer $k$.
  3. Noisy Interpolation: Instead of a standard weighted average (mixup), NFM creates a "noisy" mixed minibatch. It applies a convex combination to the features and then injects both additive and multiplicative noise: $$\tilde{\tilde{g}}_k = (1 + \sigma_{mult}\xi_k^{mult}) \odot \text{Mixup}(g_k(x), g_k(x')) + \sigma_{add}\xi_k^{add}$$
  4. Forward/Backward Pass: The rest of the network processes these noisy, blended features to compute the loss and update weights.

This approach is computationally "cheap" because it only adds a few element-wise operations on top of existing manifold mixup implementations.

Key Insights: Smoothing the Decision Boundary

NFM acts as a "super-regularizer." It doesn't just add noise; it effectively penalizes the network's Jacobians (first derivatives) and Hessians (second derivatives). This mathematical "smoothing" prevents the model from having sharp, erratic decision boundaries.

Decision boundaries across different regularization methods, showing NFM's superior smoothing
  • Synergistic Effects: NFM is more than the sum of its parts. By injecting noise on top of interpolated features, it imposes regularization on a larger natural region surrounding the dataset compared to using either method in isolation.
  • Adversarial Connection: The paper proves that minimizing the NFM loss is approximately equivalent to minimizing an upper bound on an adversarial loss. This explains why a model trained with simple random noise becomes surprisingly resilient to calculated adversarial attacks.
  • Breaking the Trade-off: Unlike many robust training methods that sacrifice clean accuracy, NFM often improves both. This suggests that the "noisy" regions it creates help the model find flatter, more generalizable minima in the loss landscape.

Empirical Results

The researchers evaluated NFM across several standard computer vision benchmarks (CIFAR-10, CIFAR-100, ImageNet, and CIFAR-10C) using various architectures, including ResNet-18, Wide ResNet-18, ResNet-50, and Vision Transformers (ViT).

  • Superior Robustness: On CIFAR-10, a ResNet-18 trained with NFM achieved 95.4% clean accuracy while maintaining high performance under heavy white noise and "salt and pepper" noise, significantly outperforming standard mixup and manifold mixup.
  • State-of-the-Art Generalization: On CIFAR-100 with Wide ResNet-18, NFM reached 80.9% accuracy, surpassing standard mixup (80.3%) and manifold mixup (79.7%).
  • ImageNet Success: For ResNet-50 on ImageNet, NFM improved clean accuracy to 77.0% (up from 76.0% baseline) while simultaneously boosting robustness across all tested noise levels.
  • Vision Transformers: NFM proved effective for ViTs, showing a 25% improvement in robustness against salt-and-pepper noise compared to the baseline.

Limitations and Future Work

While NFM shows a favorable trade-off, the authors acknowledge that at extremely high noise levels, clean accuracy will eventually begin to degrade. The current study focuses almost exclusively on computer vision; exploring NFM in other domains like Natural Language Processing (NLP) or audio processing is a promising next step. Additionally, future work could investigate how NFM affects model calibration—the ability of a model to provide accurate confidence estimates for its predictions.

Summary updated

BibTeX
@inproceedings{lim2022noisy,
  author = {Soon Hoe Lim and N. Benjamin Erichson and Francisco Utrera and Winnie Xu and Michael W. Mahoney},
  title = {{Noisy Feature Mixup}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=vJb4I2ANmy},
}
Figure