[Paper Review] Confidence from Invariance to Image Transformations
This paper proposes a black-box method for detecting classification errors and novel inputs by measuring a visual classifier's invariance to natural image transformations. It trains a multilayer perceptron on classifier outputs across transformed versions of the same input, achieving state-of-the-art performance on error and novelty detection across STL-10, CIFAR-100, and ImageNet datasets, including the first SOTA on ImageNet for error detection.
We develop a technique for automatically detecting the classification errors of a pre-trained visual classifier. Our method is agnostic to the form of the classifier, requiring access only to classifier responses to a set of inputs. We train a parametric binary classifier (error/correct) on a representation derived from a set of classifier responses generated from multiple copies of the same input, each subject to a different natural image transformation. Thus, we establish a measure of confidence in classifier's decision by analyzing the invariance of its decision under various transformations. In experiments with multiple data sets (STL-10,CIFAR-100,ImageNet) and classifiers, we demonstrate new state of the art for the error detection task. In addition, we apply our technique to novelty detection scenarios, where we also demonstrate state of the art results.
Motivation & Objective
- To develop a general-purpose error detection method that works with any pre-trained visual classifier without requiring retraining or architectural changes.
- To improve confidence estimation beyond maximal softmax scores by analyzing output stability under natural image transformations.
- To extend the approach to novelty detection, including out-of-domain and out-of-class scenarios, where standard classifiers fail.
- To establish a new state of the art in error detection on large-scale benchmarks like ImageNet, which have been underexplored in prior work.
Proposed method
- The method collects classifier responses (e.g., softmax outputs) for multiple transformed versions of the same input image, using a diverse set of natural image transformations.
- It constructs a representation of the classifier's output variability across transformations, capturing invariance patterns that distinguish correct from incorrect predictions.
- A multilayer perceptron (MLP) is trained as a binary detector to predict the probability of misclassification based on the transformed response patterns.
- The approach is fully black-box: it only requires access to the classifier’s output on transformed inputs, not its internal structure or gradients.
- For novelty detection, the method is adapted to detect inputs from unknown domains or classes by leveraging the same invariance signal.
- The detector is further improved by cross-training on data from unfamiliar domains (e.g., using CIFAR-100 to improve SVHN detection), enhancing robustness to domain shift.
Experimental results
Research questions
- RQ1Can classifier output invariance under natural image transformations be used to detect misclassifications without access to model internals?
- RQ2Does measuring stability across transformations improve error detection beyond relying on the maximum softmax score?
- RQ3Can this invariance-based method generalize to novelty detection, including out-of-domain and out-of-class scenarios?
- RQ4Is the method effective on large-scale benchmarks like ImageNet, where prior SOTA methods have not achieved strong results?
Key findings
- The method achieves state-of-the-art AUROC of 0.902 on the STL-10 error detection benchmark, surpassing prior methods including DBC and MC-dropout.
- On ImageNet with a ResNet-50 classifier, the method achieves an AUROC of 0.879, marking the first reported SOTA for error detection on this dataset.
- For out-of-domain novelty detection (e.g., SVHN images fed to a STL-10 classifier), the method reaches AUROC of 0.860 when cross-trained on the novel domain, significantly outperforming MSR and other baselines.
- When detecting novel classes within the same dataset (e.g., treating two classes as novel), the method achieves an average AUROC of 0.762, a substantial improvement over MSR’s 0.715.
- The cross-training variant ('Ours, Cross-train') consistently improves performance across all settings, demonstrating the value of domain-informed data augmentation for detector generalization.
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.