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

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

TL;DR

This paper introduces Robustmix, a novel data augmentation technique that improves the robustness of deep neural networks against common image corruptions. By regularizing networks to rely more on lower-frequency spatial features, Robustmix enhances performance on challenging benchmarks like ImageNet-C without requiring prior knowledge of specific transformations or incurring significant computational overhead.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success on curated datasets, but their performance often degrades significantly when faced with real-world scenarios involving subtle image perturbations. These perturbations, which might be imperceptible to humans, can drastically alter a network's predictions, leading to a lack of robustness. Existing methods to address this often require extensive knowledge of specific image transformations or are computationally expensive. This paper tackles the challenge of improving DNN robustness in a computationally efficient and generalizable manner, without needing to pre-define a vast array of potential corruptions.

Methods

The core contribution of this paper is Robustmix, an extension of the popular Mixup data augmentation technique. While standard Mixup interpolates input images and their labels linearly, Robustmix introduces a frequency-based regularization. The key idea is to encourage networks to prioritize lower-frequency spatial features for classification.

Here's how it works:

  • Frequency Separation: Input images are decomposed into their low-frequency and high-frequency components using low-pass and high-pass filters.
  • Band Interpolation: Instead of directly interpolating the raw images, Robustmix interpolates these frequency-banded versions. This allows for more nuanced mixing of image characteristics.
  • Energy-Based Weighting: The interpolation is guided by the relative energy of the frequency bands in natural images. This means that lower-frequency components, which typically carry more energy in natural images, are given more weight. This mechanism biases the network to rely on these more stable features.
  • Label Mixing: The labels are also mixed, but in a way that is conditioned by the frequency band mixing.

Crucially, Robustmix does not require a predefined set of image transformations and adds minimal computational overhead during training, with no impact on evaluation speed.

Datasets

The paper evaluates its method on the following datasets:

  • ImageNet: Used for evaluating standard classification accuracy (clean accuracy).
  • ImageNet-C (Corrupted ImageNet): A benchmark dataset comprising 15 types of corruptions across four categories (noise, blur, weather, digital) at varying severity levels. This is the primary dataset for evaluating robustness, measured by mean corruption error (mCE).
  • Stylized-ImageNet (SIN): A dataset created by replacing the texture of ImageNet images with styles that create a conflict with the original object label. This dataset is used to evaluate classification accuracy and measure the model's shape bias.

Key Insights and Ideas

  • Frequency Bias is Key: The paper strongly suggests that DNNs often exhibit a "frequency bias," meaning they can be overly reliant on high-frequency features, which are easily perturbed. Robustmix directly addresses this by encouraging a shift towards lower-frequency reliance.
  • Natural Image Statistics Matter: The method leverages the inherent property of natural images where most energy is concentrated in lower frequencies. This insight is used to guide the regularization, making it data-driven rather than rule-based.
  • Generalization Without Specifics: Unlike methods that require a catalog of known corruptions, Robustmix is generalizable because it operates on the fundamental frequency characteristics of images, making it effective against a broad range of perturbations.
  • Efficiency is Achievable: The proposed method achieves significant robustness improvements with minimal computational cost, making it practical for widespread adoption.

Key Results

  • Improved Robustness on ImageNet-C: Robustmix consistently improves robustness across various network architectures. For instance, it achieved a 15-point decrease in mCE over the baseline for ResNet-50.
  • State-of-the-Art Performance: When combined with RandAugment on an EfficientNet-B8 model, Robustmix achieved a state-of-the-art mCE of 44.8, representing a 16 mCE reduction compared to the baseline.
  • Enhanced Shape Bias: On Stylized-ImageNet, Robustmix significantly increased shape bias, with ResNet-50 almost doubling its shape bias from 19 to 37, indicating a better ability to discern object shapes over textures.
  • Trade-off Management: Robustmix offers a favorable trade-off between clean accuracy and robustness, often outperforming standard Mixup in this regard.

Limitations and Future Work

  • Hyperparameter Tuning: While Robustmix has fewer hyperparameters than some methods, the choice of the alpha parameter for the Beta distribution and the cutoff frequency c still requires careful tuning. The paper notes that for smaller or less-trained models, fixing a minimum cutoff c might be beneficial.
  • Future Directions: The authors suggest several avenues for future research:
  • Exploring other modalities like audio.
  • Investigating more advanced frequency separation techniques, such as Wavelets.
  • Developing alternative metrics for mixing labels.
  • Further exploring the use of DCT for frequency separation and its implications.

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