[Paper Review] Natural and Adversarial Error Detection using Invariance to Image Transformations
This paper proposes a unified, plug-and-play framework for detecting both natural and adversarial classification errors by leveraging classifier invariance under simple image transformations (e.g., horizontal flip, contrast change). It achieves state-of-the-art performance by measuring output instability via KL-divergence between transformed and original predictions, with an MLP-enhanced version surpassing prior methods even under strong known-detector attacks.
We propose an approach to distinguish between correct and incorrect image classifications. Our approach can detect misclassifications which either occur $\it{unintentionally}$ ("natural errors"), or due to $\it{intentional~adversarial~attacks}$ ("adversarial errors"), both in a single $\it{unified~framework}$. Our approach is based on the observation that correctly classified images tend to exhibit robust and consistent classifications under certain image transformations (e.g., horizontal flip, small image translation, etc.). In contrast, incorrectly classified images (whether due to adversarial errors or natural errors) tend to exhibit large variations in classification results under such transformations. Our approach does not require any modifications or retraining of the classifier, hence can be applied to any pre-trained classifier. We further use state of the art targeted adversarial attacks to demonstrate that even when the adversary has full knowledge of our method, the adversarial distortion needed for bypassing our detector is $\it{no~longer~imperceptible~to~the~human~eye}$. Our approach obtains state-of-the-art results compared to previous adversarial detection methods, surpassing them by a large margin.
Motivation & Objective
- To address the critical challenge of detecting misclassifications in deep learning models, especially in safety-critical applications like healthcare and autonomous systems.
- To unify the detection of both natural errors (unintentional misclassifications) and adversarial errors (intentionally crafted) under a single framework.
- To develop a detection method that is robust against strong adversarial attacks, including those with full knowledge of the detector (known-detector attacks).
- To create a detector that requires no retraining or modification of the pre-trained classifier, enabling broad applicability.
Proposed method
- The method evaluates the stability of a classifier’s output by applying simple image transformations (e.g., horizontal flip, small translation, gamma correction) to the input image.
- For each transformed image, the model’s softmax output is compared to the original using Kullback-Leibler (KL) divergence to quantify output instability.
- A high KL-divergence score indicates instability, signaling a likely misclassification—whether due to natural or adversarial causes.
- An additional multi-layer perceptron (MLP) is trained on transformation-based features to improve detection performance beyond the basic KL score.
- The detector is applied post-hoc to any pre-trained classifier without retraining or architectural changes.
- The approach is evaluated under both unknown-detector (UD) and known-detector (KD) attack scenarios, including the strong Carlini & Wagner (C&W) attack.
Experimental results
Research questions
- RQ1Can classifier output invariance under simple image transformations reliably distinguish between correct and incorrect classifications, regardless of error type?
- RQ2Can a detection method based on transformation invariance remain effective even when the attacker has full knowledge of the detector (known-detector scenario)?
- RQ3Does enhancing the basic KL-divergence score with an MLP improve detection performance for both natural and adversarial errors?
- RQ4How does the proposed method compare to state-of-the-art detection techniques in terms of robustness and AUROC across diverse datasets and attack types?
Key findings
- The proposed method achieves state-of-the-art AUROC of 0.875 on ImageNet (Top-1) and 0.884 on Top-5 using the MLP-enhanced detector, surpassing the MSR baseline (0.842 and 0.806 respectively).
- On CIFAR-100, the MLP-based detector achieves 0.869 AUROC under the AT (adversarial training) configuration, outperforming the SOTA DBC method (0.858) and other baselines.
- Even under the most challenging known-detector (KD) attack scenario using the C&W attack, the method forces attackers to use perceptible distortions, undermining the stealth of adversarial examples.
- The KL-divergence score alone already outperforms MSR and dropout baselines on STL-10 and CIFAR-100, demonstrating the effectiveness of transformation invariance as a detection proxy.
- The method maintains strong performance across diverse datasets (ImageNet, CIFAR-100, STL-10) and classifier types, including those fine-tuned with adversarial loss.
- The detector is universally applicable: it requires no retraining or modification of the pre-trained classifier, enabling plug-and-play deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.