Adaptive Adversarial Logits Pairing

Shangxi Wu, Jitao Sang, Kaiyan Xu, Guanhua Zheng, Changsheng XuACM TOMM 2020

Abstract

Adversarial examples provide an opportunity as well as impose a challenge for understanding image classification systems. Based on the analysis of the adversarial training solution Adversarial Logits Pairing (ALP), we observed in this work that: (1) The inference of adversarially robust model tends to rely on fewer high-contribution features compared with vulnerable ones. (2) The training target of ALP doesn't fit well to a noticeable part of samples, where the logits pairing loss is overemphasized and obstructs minimizing the classification loss. Motivated by these observations, we design an Adaptive Adversarial Logits Pairing (AALP) solution by modifying the training process and training target of ALP. Specifically, AALP consists of an adaptive feature optimization module with Guided Dropout to systematically pursue fewer high-contribution features, and an adaptive sample weighting module by setting sample-specific training weights to balance between logits pairing loss and classification loss. The proposed AALP solution demonstrates superior defense performance on multiple datasets with extensive experiments.

Introduction

Deep learning models are notoriously fragile when faced with adversarial examples—images with tiny, invisible-to-humans perturbations that cause the model to misclassify them. One popular defense is Adversarial Logits Pairing (ALP), which forces the model to produce similar outputs (logits) for both a clean image and its adversarial counterpart. However, research into ALP has identified two major flaws: feature overload and a "one-size-fits-all" constraint that can hinder learning on difficult samples.

The Limitations of Standard ALP

The authors observed that robust models naturally tend to rely on a small set of highly important features. Standard training, however, does not encourage this "lean" behavior. Furthermore, ALP applies the same pairing pressure to every image. For "inconsistent" samples—where the model struggles to classify even the clean version correctly—forcing a pair with an adversarial version actually obstructs the model's ability to learn basic classification.

Loss behavior for consistent vs. inconsistent sample sets during training. The divergence justifies the need for adaptive sample weighting.

As shown in the training curves above, the loss for inconsistent sets often fails to converge or even increases over time, suggesting that rigid pairing constraints can be counterproductive for difficult samples.

The AALP Framework

To address these issues, Adaptive Adversarial Logits Pairing (AALP) introduces two novel modules designed to make the defense more flexible and focused:

1. Guided Dropout (Adaptive Feature Optimization)

Unlike standard dropout, which randomly deactivates neurons, Guided Dropout uses a Grad-CAM-like approach to identify features that contribute most to classification. It preserves the top 50% of these high-contribution neurons and discards the rest. This forces the model to focus intensely on the most critical parts of an image, making it harder for subtle adversarial noise to distract the network.

Visual comparison of feature contribution maps across different training methods. Robust models tend to concentrate on fewer, high-contribution features.

2. Adaptive Sample Weighting

AALP weights the pairing loss by the model's confidence score on the clean sample. If the model is unsure about the clean image, it relaxes the pairing constraint, allowing the model to prioritize learning basic classification before enforcing adversarial consistency.

Experimental Results

The authors evaluated AALP on MNIST, SVHN, and CIFAR-10 against various attacks, including Projected Gradient Descent (PGD) and Carlini-Wagner (CW) attacks.

  • MNIST: AALP improved defense by nearly 2% over ALP, even in a high-accuracy environment.
  • CIFAR-10: AALP achieved 52.38% accuracy against PGD100, significantly outperforming the 48.60% achieved by standard ALP.
  • Efficiency: Training curves show that AALP reaches peak performance in fewer epochs compared to ALP, as it avoids wasting computational effort on impossible constraints for difficult samples.

Conclusion

AALP makes adversarial defense "smarter" by aligning the training process with the natural characteristics of robust models. By focusing on critical features and dynamically weighting constraints, it provides a more efficient and effective shield against adversarial attacks. Future work will explore the deeper theoretical foundations of feature sparsity and test the method on larger-scale datasets like ImageNet.

Summary updated

BibTeX
@article{wu2020adaptive,
  author = {Shangxi Wu and Jitao Sang and Kaiyan Xu and Guanhua Zheng and Changsheng Xu},
  title = {{Adaptive Adversarial Logits Pairing}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2020},
  url = {https://openreview.net/forum?id=-oWcPB_RB0I},
}
Figure