Frequency-Based Vulnerability Analysis of Deep Learning Models against Image Corruptions

Harshitha Machiraju, Michael H. Herzog, Pascal FrossardarXiv 2023

Abstract

Deep learning models often face challenges when handling real-world image corruptions. In response, researchers have developed image corruption datasets to evaluate the performance of deep neural networks in handling such corruptions. However, these datasets have a significant limitation: they do not account for all corruptions encountered in real-life scenarios. To address this gap, we present MUFIA (Multiplicative Filter Attack), an algorithm designed to identify the specific types of corruptions that can cause models to fail. Our algorithm identifies the combination of image frequency components that render a model susceptible to misclassification while preserving the semantic similarity to the original image. We find that even state-of-the-art models trained to be robust against known common corruptions struggle against the low visibility-based corruptions crafted by MUFIA. This highlights the need for more comprehensive approaches to enhance model robustness against a wider range of real-world image corruptions.

Introduction

Deep learning models are world-class at identifying objects in pristine conditions, but their performance often crumbles when faced with environmental factors like fog, snow, or motion blur. While researchers have built benchmarks like the "Common Corruptions" (CC) dataset to track this, these static benchmarks only represent a fraction of the messy, real-world noise a model might encounter. A core challenge is the generalization gap: models trained to be robust against specific types of noise, such as Gaussian noise or defocus blur, may simply be overfitting to those specific corruptions rather than achieving true robustness.

Real-world image degradation is complex, often involving a subtle mix of low-frequency brightness shifts and mid-frequency blurring. To find these "unknown unknowns," researchers at EPFL introduced MUFIA (Multiplicative Filter Attack), an algorithm that hunts for the specific combinations of image frequencies that a model is most vulnerable to.

Methodology: The MUFIA Algorithm

MUFIA moves away from standard additive adversarial attacks and instead operates in the frequency domain using the Discrete Cosine Transform (DCT)—the same mathematical foundation as JPEG compression. By working in this domain, the attack can precisely tune different frequency bands (low, mid, and high).

Key components of the MUFIA approach include:

  • Luma-Focus: The algorithm converts images to YCbCr and manipulates only the Luma (Y) channel, ensuring changes affect brightness and structure rather than creating unrealistic color artifacts.
  • Multiplicative Filter Bank ($Q$): Instead of adding noise, MUFIA optimizes a filter bank that multiplies frequency coefficients, allowing it to systematically amplify or attenuate specific frequencies.
  • Cosine Similarity Loss: To maintain visual quality and semantic similarity, the authors used a loss function based on Cosine Similarity, which produces more stable adversarial images than standard Cross-Entropy loss.

Results: The Robustness Illusion

The authors evaluated MUFIA across CIFAR-10, CIFAR-100, and ImageNet, testing standard ResNets alongside state-of-the-art (SOTA) robust models like Card and DeiT-B (a Vision Transformer). The results were a wake-up call for the field of model robustness.

Table 1: Performance comparison across datasets and models. MUFIA causes a near-total collapse in accuracy for standard models and significantly degrades SOTA robust models.

As shown in Table 1, standard models saw their accuracy drop to near 0% under MUFIA attacks. Even powerful Vision Transformers like DeiT-B on ImageNet dropped from 67.55% accuracy on common corruptions to a staggering 6.75% under MUFIA. The Card model showed the most resilience on CIFAR-10, maintaining 38.71% accuracy, suggesting that model compression might help focus networks on more essential features.

Visual Fidelity and Frequency Bias

Despite the catastrophic drop in accuracy, the adversarial images generated by MUFIA remain remarkably similar to the originals to a human observer. The LPIPS (Learned Perceptual Image Patch Similarity) scores remained low, averaging between 0.13 and 0.24, indicating that the changes are often subtle brightness shifts or blurs.

Figure 1: Visual comparison of original images and adversarial examples generated by MUFIA. The attack successfully fools models while preserving the semantic content of the images.

Analysis of the generated filter banks reveals a significant "frequency bias." Standard models are often biased toward high-frequency details like edges and textures. MUFIA exploits this by suppressing these details while subtly shifting low-frequency brightness, causing the models to lose their "anchor" and misclassify. This suggests that popular defense methods like Augmix or Prime, which use random data augmentations, do not necessarily cover the worst-case frequency combinations that an intelligent adversary or specific real-world scenario might produce.

Conclusion

MUFIA demonstrates that current "robust" models are still looking at the world through a narrow frequency window. While the algorithm serves as a powerful diagnostic tool, the next step is to use these findings to improve model training. By incorporating MUFIA-generated samples into training pipelines, researchers may be able to "plug" these frequency-based vulnerabilities and build truly resilient AI systems capable of handling the full spectrum of real-world image corruptions.

Summary updated

BibTeX
@misc{machiraju2023frequency,
  author = {Harshitha Machiraju and Michael H. Herzog and Pascal Frossard},
  title = {{Frequency-Based Vulnerability Analysis of Deep Learning Models against Image Corruptions}},
  year = {2023},
  eprint = {2306.07178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.07178},
}
Figure