AFD: Mitigating Feature Gap for Adversarial Robustness by Feature Disentanglement
Nuoyan Zhou, Dawei Zhou, Decheng Liu, Nannan Wang, Xinbo Gao
TL;DR
This work tackles the persistent feature-gap problem observed during adversarial fine-tuning by introducing Adversarial Fine-tuning via Disentanglement (AFD). It explicitly disentangles adversarial features into intrinsic and confused components with a learnable feature disentangler and further aligns the intrinsic features with pre-trained natural features to reduce misclassification under attack. The approach combines a targeted disentanglement loss and a alignment loss into a unified objective, demonstrating superior robustness across CIFAR-10/100 and Tiny-ImageNet on multiple architectures, while maintaining competitive clean accuracy and modest computational overhead. Overall, AFD offers a principled mechanism to mitigate feature-gap-induced vulnerabilities, advancing practical adversarial robustness with efficient fine-tuning.
Abstract
Adversarial fine-tuning methods enhance adversarial robustness via fine-tuning the pre-trained model in an adversarial training manner. However, we identify that some specific latent features of adversarial samples are confused by adversarial perturbation and lead to an unexpectedly increasing gap between features in the last hidden layer of natural and adversarial samples. To address this issue, we propose a disentanglement-based approach to explicitly model and further remove the specific latent features. We introduce a feature disentangler to separate out the specific latent features from the features of the adversarial samples, thereby boosting robustness by eliminating the specific latent features. Besides, we align clean features in the pre-trained model with features of adversarial samples in the fine-tuned model, to benefit from the intrinsic features of natural samples. Empirical evaluations on three benchmark datasets demonstrate that our approach surpasses existing adversarial fine-tuning methods and adversarial training baselines.
