[Paper Review] Certifiably Adversarially Robust Detection of Out-of-Distribution Data
This paper proposes GOOD (Guaranteed Out-of-distribution Detection), a method that certifiably ensures low classifier confidence on out-of-distribution (OOD) data within an l∞-ball of radius ε around any OOD point. By leveraging interval bound propagation (IBP) to minimize an upper bound on the maximum confidence in such balls during training, GOOD achieves provable robustness to adversarial OOD perturbations without significant accuracy drop on in-distribution tasks.
Deep neural networks are known to be overconfident when applied to out-of-distribution (OOD) inputs which clearly do not belong to any class. This is a problem in safety-critical applications since a reliable assessment of the uncertainty of a classifier is a key property, allowing the system to trigger human intervention or to transfer into a safe state. In this paper, we aim for certifiable worst case guarantees for OOD detection by enforcing not only low confidence at the OOD point but also in an $l_\infty$-ball around it. For this purpose, we use interval bound propagation (IBP) to upper bound the maximal confidence in the $l_\infty$-ball and minimize this upper bound during training time. We show that non-trivial bounds on the confidence for OOD data generalizing beyond the OOD dataset seen at training time are possible. Moreover, in contrast to certified adversarial robustness which typically comes with significant loss in prediction performance, certified guarantees for worst case OOD detection are possible without much loss in accuracy.
Motivation & Objective
- To provide provable, worst-case guarantees that deep neural network classifiers maintain low confidence on out-of-distribution (OOD) data, even under adversarial perturbations.
- To extend certified robustness beyond in-distribution adversarial examples to OOD inputs, which are often overlooked despite their safety-critical implications.
- To develop a training scheme that generalizes OOD detection guarantees to OOD datasets not seen during training, such as EMNIST letters when training on MNIST digits.
- To achieve certified OOD robustness without significant performance degradation on in-distribution classification tasks, unlike traditional certified adversarial robustness methods.
Proposed method
- Uses interval bound propagation (IBP) to compute a certified upper bound on the maximum classifier confidence within an l∞-ball of radius ε around any given OOD point.
- Minimizes this IBP-derived upper bound during training via a novel objective function, ensuring that the model cannot assign high confidence to any point within the ε-ball around OOD inputs.
- Introduces the GOOD (Guaranteed Out-of-distribution Detection) training scheme, which explicitly optimizes for worst-case OOD confidence bounds.
- Applies the certified bound minimization on a diverse set of OOD data during training, enabling generalization to related but unseen OOD datasets.
- Employs a differentiable relaxation of the IBP bound to allow end-to-end training with standard backpropagation.
- Validates the certified guarantees using AAUC and GAUC metrics across multiple datasets and ε values, demonstrating generalization beyond the training OOD distribution.
Experimental results
Research questions
- RQ1Can we provide provable guarantees that a deep neural network maintains low confidence on out-of-distribution inputs under adversarial perturbations in the l∞-norm?
- RQ2Does certifying OOD robustness via IBP training incur a significant accuracy cost on in-distribution classification tasks, as seen in adversarial robustness?
- RQ3Can the certified OOD detection guarantees generalize to OOD datasets not present during training, such as EMNIST letters when training on MNIST digits?
- RQ4How does the performance of GOOD compare to state-of-the-art OOD detection methods like Outlier Exposure (OE), ACET, and CCU in terms of certified robustness and generalization to larger perturbation radii?
- RQ5Can we achieve meaningful worst-case confidence bounds on l∞-balls around OOD points that are close to the in-distribution manifold, where existing methods fail?
Key findings
- GOOD achieves certified worst-case confidence bounds for OOD detection: for ε = 0.01, the model guarantees confidence < 22.7% on all classes within an l∞-ball around a chimpanzee image from CIFAR-100.
- GOOD maintains near-sota in-distribution accuracy (e.g., 99.1% on CIFAR-10 with ε = 0.03) while providing certified OOD robustness, unlike adversarial robustness methods that suffer significant accuracy drops.
- On the MNIST → EMNIST letters OOD detection task, GOOD achieves 84.5% GAUC at ε = 0.08, outperforming ACET (52.1%) and OE (63.6%), and generalizes to unseen OOD data.
- GOOD generalizes well to larger ε values: at ε = 0.1, it achieves 77.3% GAUC on CIFAR-10 when trained on MNIST, significantly outperforming ACET (52.1%) and OE (63.6%) in generalization.
- GOOD achieves state-of-the-art AAUC and GAUC across all evaluated datasets and ε values, demonstrating superior generalization of certified OOD robustness beyond the threat model used during training.
- GOOD’s certified bounds are non-trivial and meaningful: for example, it guarantees confidence < 22.7% on the l∞-ball around a chimpanzee image, even though the model was never trained on such images.
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.