Introduction
Adversarial attacks pose a significant threat to deep learning systems by introducing imperceptible perturbations that lead to catastrophic classification failures. While traditional defenses operate in the "low-level" image space—utilizing denoising or specialized training—these approaches often incur high computational costs and require access to raw input data. This research explores a novel alternative: Adversarial Logits Correction. By analyzing the high-level semantic information contained in the model's logits (pre-softmax scores), the authors demonstrate that adversarial attacks leave detectable "fingerprints" that can be corrected to recover original predictions.
Methodology
The proposed defense mechanism employs a simple two-layer fully-connected neural network with 10,000 hidden neurons. Unlike complex image-processing pipelines, this "defender" takes only the 1,000-dimensional logit vector from a pre-trained classifier (e.g., ResNet-50) as input.
The defender is trained on a dataset comprising both "clean" and "adversarial" logits generated by common attack methods like Projected Gradient Descent (PGD). The objective is to map these perturbed vectors back to a corrected logit vector that aligns with the original, ground-truth label. This approach is highly efficient and preserves data privacy, as it does not require access to the original images.
Adversarial Fingerprints and Supporting Classes
A key discovery of this work is that adversarial attacks do not merely shift the top prediction; they alter the statistical distribution of all class scores. For instance, PGD attacks tend to increase the mean value of logits across all categories.
By analyzing the partial derivatives of the defender's output with respect to its input, the researchers identified "supporting classes"—specific categories that serve as indicators of an attack. Surprisingly, certain classes act as universal fingerprints. For example, in PGD attacks on ImageNet, the class "manhole cover" (index 640) consistently shows a high response regardless of the input image's actual content.
Experimental Results
The defense was evaluated on the ILSVRC2012 (ImageNet) dataset using VGG-16, ResNet-50, and DenseNet-121 architectures against four major attacks: PGD, MIM, DeepFool, and C&W.
The results demonstrate significant recovery capabilities. For a ResNet-50 model under a strong PGD attack—which initially reduced accuracy to 0%—the defender successfully recovered the correct classification in 75.4% of cases. Interestingly, the defender also exhibited a "super-accuracy" effect on DenseNet-121, improving clean accuracy from 74.47% to 88.29%, suggesting it extracts more signal from the logits than the standard softmax layer.
The study also explored transferability. Defenders trained on $\ell_\infty$ attacks (like PGD) transfer effectively to other $\ell_\infty$ attacks (like MIM) due to similar logit fingerprints. However, transferring to $\ell_2$ attacks (like DeepFool) is more challenging, as these attacks trigger different supporting classes.
Conclusion and Future Work
Adversarial Logits Correction provides a computationally efficient and interpretable defense against adversarial perturbations. By operating at the semantic level, it bypasses the need for image-space processing and offers insights into how models fail.
Current limitations include a degree of attack specificity; a defender trained on one attack type may struggle against novel methods that produce different fingerprints. Future research will focus on identifying more universal logit signatures to develop broader, more robust defenses that can function even in "black-box" scenarios where only limited probability information is available.
Summary updated