Abstract
Adversarial training (AT) is the primary defense against adversarial attacks but suffers from slow convergence and a significant trade-off with clean accuracy. This paper introduces Phase-shifted Adversarial Training (PhaseAT), a method that leverages the Frequency Principle—the tendency of neural networks to learn low-frequency patterns before high-frequency ones. By shifting high-frequency adversarial components into lower frequency ranges, PhaseAT enables more efficient learning of robust features. Experimental results on CIFAR-10 and ImageNet-100 demonstrate that PhaseAT achieves superior robustness and clean accuracy compared to existing iterative and non-iterative methods while maintaining high training efficiency.
Introduction
Deep neural networks are notoriously fragile; small, imperceptible perturbations can easily trick them into making incorrect predictions. Adversarial Training (AT)—the process of including these "attack" samples in the training set—is the gold-standard defense. However, AT has two major drawbacks: slow convergence and the robustness-accuracy trade-off, where robust models often perform worse on clean images.
The authors investigate this phenomenon through the lens of response frequency. They observe that AT causes networks to converge very slowly on high-frequency information, leading to highly oscillatory predictions near data points. This suggests that the network struggles to "digest" the complex, high-frequency patterns introduced by adversarial noise, creating a bottleneck in the training process.
The Frequency Bottleneck in Adversarial Training
The researchers build their solution on the Frequency Principle (F-principle), which states that neural networks naturally learn low-frequency components (smooth patterns) before high-frequency ones (fine details).
To confirm this applies to robust training, the authors first mathematically prove that the F-principle still holds during adversarial training. This confirms that the primary obstacle in AT is indeed the slow learning of high-frequency adversarial content. While standard training and AT learn low frequencies at similar speeds, AT lags significantly behind on high frequencies, which accounts for the extended training times required for robustness.
Phase-shifted Adversarial Training (PhaseAT)
To bypass this bottleneck, the authors propose PhaseAT, which adapts a technique called PhaseDNN for computer vision tasks. The method essentially provides a "mathematical shortcut" to robustness by presenting the network with a smoother, low-frequency boundary that it can grasp quickly.
Key Components:
- Frequency Shifting: The method identifies high-frequency components in the adversarial data and "shifts" them into the low-frequency range. This allows the network to learn these difficult features using its natural bias toward low frequencies.
- Multi-headed Architecture: To maintain efficiency, the model uses a shared feature extractor with multiple small "heads," each dedicated to a specific frequency band.
- Dimensionality Reduction: Since images are high-dimensional, the authors project the data onto the first principal component (PCA) to identify the most important frequency directions to shift.
- Stochastic Sampling: The system dynamically samples which frequencies to shift based on the difference between clean and adversarial samples in the Fourier domain.
Experimental Results
PhaseAT was evaluated on CIFAR-10 and ImageNet-100, demonstrating a superior balance of speed, clean accuracy, and robustness.
CIFAR-10 Performance
On the ResNet-18 architecture, PhaseAT achieved 52.1% accuracy against the formidable AutoAttack (AA), outperforming strong iterative baselines like AWP (51.1%) and TRADES (48.5%). Notably, PhaseAT maintained a clean accuracy of 86.2%, significantly higher than competitors like TRADES (79.5%).
Efficiency and Scalability
PhaseAT is a non-iterative method, meaning it generates attacks quickly. It achieves robustness comparable to slow, iterative methods but at a fraction of the training time. These benefits scaled to the larger ImageNet-100 dataset, where PhaseAT outperformed the next best non-iterative method (NuAT) by 3.6% on robust accuracy.
To ensure these results were not the product of gradient masking, the authors designed a rigorous adaptive attack using Expectation Over Transformation (EOT), proving that the robustness achieved by PhaseAT is genuine.
Limitations and Future Work
While effective, PhaseAT relies on calculating the first principal component of the dataset, a pre-processing step that can become a bottleneck as datasets grow. Furthermore, high-dimensional data contains many frequency directions beyond the first principal component; future work could explore more sophisticated ways to derive these components. Finally, while this study focuses on images, the potential for frequency-based shifting to robustify discrete data types, such as text in Large Language Models, remains an open area for research.
Summary updated