Abstract
Adversarial training (AT) is essential for securing neural networks against adversarial attacks but often suffers from slow convergence and reduced accuracy on clean data. This work investigates these issues through the lens of response frequency. We observe that AT causes networks to converge slowly to high-frequency information, leading to oscillatory predictions. We prove that the "frequency principle"—where lower frequencies are learned first—persists in AT. Based on this, we propose Phase-shifted Adversarial Training (PhaseAT), which adaptively shifts high-frequency components into the low-frequency range to accelerate learning. Experiments on CIFAR-10 and ImageNet demonstrate that PhaseAT significantly improves convergence for high-frequency information and enhances overall adversarial robustness.
Introduction: The High-Frequency Bottleneck in Adversarial Training
Deep neural networks are notoriously vulnerable to adversarial attacks—small, calculated perturbations that can lead to incorrect classifications. While Adversarial Training (AT) is the primary defense, it is computationally intensive and often results in a "robustness-accuracy trade-off."
The authors investigate the root cause of AT's sluggishness by analyzing the Frequency Principle (F-principle). This principle states that neural networks naturally prioritize learning low-frequency patterns (smooth, global structures) before high-frequency ones (fine, oscillatory details). In the context of AT, the network must learn to be robust against adversarial noise, which often contains significant high-frequency components.
As shown in the figure above, while standard training and AT both reduce low-frequency errors relatively quickly, AT struggles significantly with high-frequency errors. This "high-frequency lag" is a primary driver of the slow convergence observed in adversarial training.
Methodology: Phase-shifted Adversarial Training (PhaseAT)
To overcome this bottleneck, the researchers developed Phase-shifted Adversarial Training (PhaseAT). The core strategy is to "phase-shift" difficult-to-learn high-frequency data into the low-frequency domain during training. By doing so, the method exploits the network's inherent efficiency at learning low frequencies.
Technical Components
- Multi-headed PhaseDNN: The architecture utilizes a shared feature extractor with multiple "heads," each optimized for specific frequency ranges. This allows for specialized learning without the overhead of multiple full models.
- Dimensionality Reduction via PCA: To handle the high dimensionality of image data, inputs are projected onto their first principal component (PC1). The phase-shifting logic is applied primarily along this axis of maximum variance.
- Stochastic Frequency Selection: Rather than shifting arbitrary frequencies, the model calculates the Fourier discrepancy between clean and adversarial batches. It then uses a multinomial distribution to stochastically sample the frequencies that require shifting the most.
- Regularization: A specialized loss term (Eq. 4.7) encourages the phase-shifted model to produce robust predictions that differ meaningfully from a standard model, preventing attackers from easily bypassing the defense.
Experimental Results
PhaseAT was evaluated on standard benchmarks including CIFAR-10 and ImageNet-100. The results indicate that making high-frequency information more "digestible" leads to superior performance.
Key Findings
- Enhanced Robustness: On CIFAR-10 using a ResNet-18 backbone, PhaseAT achieved 52.1% accuracy against the rigorous AutoAttack (AA), outperforming established baselines like AWP (51.1%) and TRADES (48.5%).
- Improved Clean Accuracy: PhaseAT mitigates the typical robustness-accuracy trade-off, maintaining a high clean accuracy of 86.2% on ResNet-18.
- Accelerated Convergence: By addressing the high-frequency lag, PhaseAT reaches peak robust accuracy in fewer training epochs than standard AT.
- Scalability: The method successfully scaled to ImageNet-100, where it outperformed other non-iterative adversarial training methods by over 3% in robust accuracy.
Conclusion and Future Directions
PhaseAT demonstrates that the slow convergence of adversarial training is not an inherent property of the task, but rather a consequence of how neural networks interact with different frequency components. By adaptively shifting frequencies, PhaseAT aligns the training data with the network's natural learning biases.
While effective, the current implementation relies on PCA for dimensionality reduction, which adds a pre-processing step. Future work may explore more efficient ways to identify critical frequency axes or extend the phase-shifting mechanism to multiple principal components to capture even more complex adversarial structures.
Summary updated