DAT: Improving Adversarial Robustness via Generative Amplitude Mix-up in Frequency Domain

Fengpeng Li, Kemou Li, Haiwei Wu, Jinyu Tian, Jiantao Zhou

Introduction

Deep neural networks (DNNs) have achieved remarkable success in computer vision, yet they remain notoriously vulnerable to adversarial attacks—subtle, human-imperceptible perturbations designed to trigger misclassification. While Adversarial Training (AT) is the most effective defense to date, it often comes with a "robustness tax," where gains in security lead to significant drops in natural accuracy and increased computational overhead.

This paper introduces Dual Adversarial Training (DAT), a novel framework that shifts the focus from the spatial domain to the frequency domain. By intentionally manipulating the amplitude spectrum of images during training, DAT forces models to prioritize robust semantic features over fragile textures, enhancing both robustness and natural accuracy without increasing training time.

The Frequency Domain Perspective

To understand DAT, one must look at images through the lens of the Discrete Fourier Transform (DFT). In the frequency domain, an image is decomposed into two components:

  1. Amplitude Spectrum: Captures low-level information such as style, texture, and lighting.
  2. Phase Spectrum: Captures high-level semantics, shapes, and structural configurations.

Recent research indicates that adversarial attacks disproportionately corrupt the phase spectrum while leaving the amplitude relatively intact. Because DNNs often rely on superficial textures (amplitude) for classification, the corruption of the semantic phase leads to failure. DAT aims to break this dependency by making the amplitude spectrum unreliable during training, thereby forcing the model to extract features from the more stable phase spectrum.

Dual Adversarial Training (DAT)

DAT implements a multi-pronged approach to robustify the training process:

1. Adversarial Amplitude Generator (AAG)

Previous attempts to regularize models via the frequency domain involved swapping the amplitude of a training image with that of a random distractor image. However, random swaps can be too disruptive, destroying the image's manifold. DAT instead uses a tiny, 4-layer neural network called the Adversarial Amplitude Generator (AAG). This generator is trained to produce an "adversarial" amplitude spectrum specifically designed to maximize the model's loss, ensuring the perturbation is challenging but meaningful.

2. Generative Amplitude Mix-up

The generated adversarial amplitude is linearly mixed with the original image's amplitude. The image is then reconstructed using an Inverse Discrete Fourier Transform (IDFT). This process creates a training sample where the texture and style are intentionally confusing, leaving the phase-based structural information as the only reliable signal for the model to learn.

3. Efficient Adversarial Example Generation

Standard AT is computationally expensive, often requiring 10 or more iterations of Projected Gradient Descent (PGD) to generate adversarial examples for every batch. DAT introduces a more efficient loss function ($L_{AE}$) based on the Kullback-Leibler (KL) divergence between predictions for benign and attacked images. This allows the attack to reach maximum perturbation in just 5 steps, effectively halving the time spent on attack generation and offsetting the cost of the AAG.

4. Split Batch Normalization

Because amplitude-mixed images possess different statistical properties than natural images, using a single set of Batch Normalization (BN) layers can lead to training instability. DAT employs Split Batch Normalization, using separate BN layers for original and recombined data to ensure the model converges smoothly.

Experimental Results

The authors evaluated DAT on CIFAR-10, CIFAR-100, and Tiny ImageNet. The results demonstrate that DAT consistently outperforms state-of-the-art (SOTA) methods like TRADES and MART.

  • Robustness Gains: On CIFAR-10, DAT improved robust accuracy against AutoAttack and PGD by approximately 2.1% over baselines. Similar gains (~2.2% to 2.3%) were observed on CIFAR-100 and Tiny ImageNet.
  • Natural Accuracy: Unlike many AT methods that degrade performance on clean images, DAT improved natural accuracy. For instance, on CIFAR-10, DAT achieved 84.17% natural accuracy, compared to 82.78% for standard PGD-AT.
  • Efficiency: Despite the addition of the AAG, the 5-step efficient AE generation ensures that DAT's training time per epoch is comparable to standard 10-step PGD-AT (e.g., 218s vs 187s on CIFAR-10).
  • Complementarity: DAT is highly compatible with other robustness-boosting techniques. When combined with Adversarial Weight Perturbation (AWP), it achieves even higher levels of protection.

Conclusion and Future Work

DAT represents a significant step forward in understanding the relationship between frequency components and adversarial vulnerability. By treating amplitude as a source of adversarial noise, the method forces DNNs to learn more human-like, geometric features from the phase spectrum.

While DAT shows great promise, the authors note that it can still be susceptible to robust overfitting if not paired with regularizers like AWP. Future research will focus on scaling DAT to larger datasets like ImageNet and exploring whether frequency-domain training provides a defense against common natural corruptions such as blur and weather effects.

Summary updated

BibTeX
@inproceedings{li2024dat,
  author = {Fengpeng Li and Kemou Li and Haiwei Wu and Jinyu Tian and Jiantao Zhou},
  title = {{DAT: Improving Adversarial Robustness via Generative Amplitude Mix-up in Frequency Domain}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=TeQvz5AlI8},
}
Figure