Abstract
Adversarial fine-tuning (AFT) is a cost-effective alternative to full adversarial training for enhancing the robustness of Deep Neural Networks. However, existing AFT methods often suffer from a widening "feature gap" between natural and adversarial samples during training. This paper introduces Adversarial Fine-tuning via Disentanglement (AFD), a novel framework that explicitly separates adversarial features into intrinsic components for classification and confused components representing noise. By aligning intrinsic features with a naturally pre-trained model and eliminating confused features, AFD achieves state-of-the-art robustness on benchmarks like CIFAR-10 and Tiny-ImageNet with significantly reduced training overhead.
Introduction
Deep Neural Networks (DNNs) are highly susceptible to adversarial attacks—small, intentional perturbations that lead to incorrect predictions. While Adversarial Training (AT) is the standard defense, its high computational cost makes it impractical for many applications. Adversarial Fine-tuning (AFT) offers a faster path by tuning a pre-trained clean model.
A critical observation in AFT is the "feature gap": the internal representations of clean and adversarial images tend to drift apart as training progresses. This divergence indicates that the model is failing to reconcile adversarial noise with the underlying object features. As shown in Figure 1(a), standard AFT methods often see this gap increase, leading to a performance trade-off.
Adversarial Fine-tuning via Disentanglement (AFD)
To address the feature gap, the authors propose AFD, which treats adversarial features as a combination of intrinsic features (object-related) and confused features (noise-related).
Methodology
The AFD architecture introduces two linear blocks, $D_1$ and $D_2$, following the feature extractor. The training process involves three main components:
- Disentanglement: The model is trained to isolate "confused" features in $D_2$ by forcing it to predict the incorrect labels typically induced by attacks. An "exclusive force" distance loss ensures that $D_1$ (intrinsic) and $D_2$ (confused) capture distinct information.
- Alignment: Intrinsic features from $D_1$ are aligned with features from a naturally pre-trained "teacher" model. This prevents the model from losing its ability to classify clean images accurately.
- Inference Optimization: During deployment, the $D_1$ block is mathematically integrated into the final classification layer. This allows the model to maintain robustness without any additional computational cost during inference.
Experimental Evaluation
The authors evaluated AFD on CIFAR-10, CIFAR-100, and Tiny-ImageNet using ResNet18 and WideResNet-34-10 architectures.
Key Results
AFD consistently outperforms existing AFT baselines like ARREST and RiFT:
- Robustness: On CIFAR-10 with ResNet18, AFD achieved a robustness score of 61.66%, outperforming ARREST (61.05%).
- Scalability: On WideResNet-34-10, AFD's robust accuracy lead increased to approximately 1.62% over the next best baseline.
- Efficiency: AFD reaches competitive robustness in just 20 epochs, a fraction of the time required for standard AT (typically 100+ epochs).
Discussion and Conclusion
The success of AFD stems from its explicit modeling of "confused" features. Rather than simply trying to ignore noise, AFD identifies the specific latent features that lead to misclassification and removes them from the decision process.
While highly effective on medium-scale datasets, future work includes testing on ImageNet-1k and exploring the application of disentanglement to full adversarial training regimes. AFD presents a significant step toward efficient and robust deep learning by bridging the feature gap through structured representation learning.
Summary updated