Abstract
Dual Head Adversarial Training (DH-AT) is a novel framework designed to improve both the adversarial robustness and clean accuracy of deep neural networks. By attaching a second classification "head" to an intermediate layer and training these heads with diverse hyperparameters or at different training stages, the framework achieves state-of-the-art defense results. Merged via a lightweight CNN aggregator, DH-AT provides a more efficient alternative to simply scaling up network width or depth.
Introduction
Adversarial training (AT) is currently the most effective defense against adversarial attacks—small, intentional perturbations that fool a model. However, AT faces two major hurdles: the accuracy-robustness trade-off, where resistance to attacks often comes at the cost of performance on clean data, and robust overfitting, where models reach a peak in robustness and then degrade as training continues. Existing solutions often involve "scaling up" network capacity, which is computationally expensive and fails to address the underlying trade-offs fundamentally.
Methodology
The authors propose Dual Head Adversarial Training (DH-AT), which modifies both the network architecture and the training pipeline:
- Architecture: The model branches into two separate heads after an early residual block. These can be symmetric (identical structures) or asymmetric (e.g., a ResNet-34 main head and a smaller ResNet-18 second head).
- The Aggregator: Instead of a simple average, a lightweight CNN subnetwork merges the outputs (logits) of the two heads. This subnetwork uses head-wise and class-wise convolutions to learn complex correlations between how each head responds to clean vs. adversarial data.
- Training Strategy: Training occurs in three stages: first, training the main head using a standard AT method (like TRADES); second, freezing the main head and training the second head (often with different hyperparameters to encourage diversity); and finally, freezing both heads to train the lightweight aggregator.
Key Insights: Diversity as a Defense
A core finding of DH-AT is that diversity in the adversarial space acts as a potent defense. Models trained with different trade-off parameters ($\lambda$) produce distinct adversarial noise patterns. By combining heads that "see" the adversarial landscape differently, the aggregate model becomes significantly harder to fool.
Furthermore, DH-AT effectively exploits robust overfitting. By using the "best" checkpoint (highest robustness) for the main head and the "last" checkpoint (which has suffered from overfitting) for the second head, the aggregator learns to extract useful features from both, turning a training liability into a source of model diversity.
Key Results
The quantitative improvements are significant across multiple base training methods, including SAT, TRADES, and MART. Against TRADES on CIFAR-10, DH-AT improved robustness against PGD40 by 3.4% and against AutoAttack by 2.3%. Crucially, it also boosted clean accuracy by 1.8%, mitigating the traditional accuracy-robustness trade-off. Even on the more difficult CIFAR-100 dataset, DH-AT consistently improved both metrics. Notably, DH-AT adds only about 0.95x more parameters to a WRN-34-10 model, yet it outperforms a WRN-34-20 model which has 4x more parameters.
Conclusion and Future Work
DH-AT suggests that structural diversity is more important for robustness than raw capacity. While the multi-stage training process increases total training time (roughly 1.2x to 2.2x), the efficiency and performance gains are substantial. Future work is needed to see how well this dual-head approach scales to high-resolution datasets like ImageNet or to non-vision domains like Natural Language Processing.
Summary updated