Robustmix: Improving Robustness by Regularizing the Frequency Bias of Deep Nets

Jonas Ngnawe, Marianne Abemgnigni Njifon, Jonathan Heek, Yann Dauphin · OpenReview

Abstract

Deep networks have achieved impressive results on a range of well-curated benchmark datasets. Surprisingly, their performance remains sensitive to perturbations that have little effect on human performance. In this work, we propose a novel extension of Mixup called Robustmix that regularizes networks to classify based on lower-frequency spatial features. We show that this type of regularization improves robustness on a range of benchmarks such as Imagenet-C and Stylized Imagenet. It adds little computational overhead and, furthermore, does not require a priori knowledge of a large set of image transformations. We find that this approach further complements recent advances in model architecture and data augmentation, attaining a state-of-the-art mCE of 44.8 with an EfficientNet-B8 model and RandAugment, which is a reduction of 16 mCE compared to the baseline.

Introduction

Despite achieving superhuman performance on curated datasets, deep neural networks remain notoriously fragile. Minor perturbations like blur, digital noise, or weather effects—which humans easily ignore—can cause model accuracy to plummet. This fragility often stems from frequency bias: convolutional neural networks (CNNs) tend to rely on high-frequency image details (fine textures) for classification. While effective for clean data, these signals are easily distorted by real-world corruptions. In contrast, humans exhibit a "shape bias," prioritizing stable, low-frequency structures. Robustmix aims to bridge this gap by teaching models to prioritize these reliable low-frequency signals.

Methods: Frequency-Aware Regularization

Robustmix evolves the standard Mixup algorithm by introducing frequency-domain filtering and energy-based label weighting. Standard Mixup trains models on linear interpolations of image pairs; Robustmix adds a frequency-aware twist:

  1. Frequency Splitting: Input images are decomposed into low-pass and high-pass components using a Discrete Cosine Transform (DCT).
  2. Band-wise Mixing: Mixup is performed independently within the low-frequency and high-frequency bands.
  3. Energy-Weighted Labeling: This core innovation calculates the relative L2 energy of each band to weight the final label. Since natural images concentrate most energy in low frequencies, Robustmix assigns higher weight to labels associated with the low-frequency "shape" component.
The Robustmix pipeline: splitting images into frequency bands, performing independent Mixup, and weighting labels by band energy.

This process forces the network to recognize that the low-frequency signal is the primary carrier of object identity, aligning the model's inductive bias with natural image statistics.

Key Results and Evaluation

The researchers evaluated Robustmix across ImageNet, ImageNet-C (robustness), and Stylized-ImageNet (shape bias).

State-of-the-Art Robustness

Robustmix significantly improves model reliability without sacrificing clean accuracy. An EfficientNet-B8 model using Robustmix and RandAugment achieved a mean Corruption Error (mCE) of 44.8, a 16-point improvement over the baseline. This performance matches massive Vision Transformers trained on significantly larger proprietary datasets.

mCE vs. Clean Error for various models. Robustmix (bottom-most points) consistently improves both robustness and clean accuracy compared to standard Mixup and baselines.

Doubling Shape Bias

On Stylized-ImageNet, Robustmix nearly doubled the shape bias of a ResNet-50 from 19% to 37%. This shift indicates that the model makes decisions more like a human, focusing on global structure rather than local texture.

Efficiency and Compatibility

Robustmix is computationally efficient, adding only ~0.2 GFLOPs to a ResNet50 training pass. Furthermore, it is highly complementary to existing augmentations like RandAugment, suggesting it addresses a fundamental bias not covered by standard data transformations.

Conclusion

Robustmix provides a simple yet powerful method to improve neural network robustness by regularizing frequency bias. By aligning model training with the energy distribution of natural images, it enhances stability across a wide range of corruptions. Future work could extend these principles to other modalities, such as audio spectrograms, or explore more sophisticated frequency separation methods like Wavelets.

Summary updated

BibTeX
@inproceedings{ngnawe2022robustmix,
  author = {Jonas Ngnawe and Marianne Abemgnigni Njifon and Jonathan Heek and Yann Dauphin},
  title = {{Robustmix: Improving Robustness by Regularizing the Frequency Bias of Deep Nets}},
  booktitle = {DistShift @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=Na64z0YpOx},
}
Figure