ATOM: Robustifying Out-of-distribution Detection Using Outlier Mining
About
Detecting out-of-distribution (OOD) inputs is critical for safely deploying deep learning models in an open-world setting. However, existing OOD detection solutions can be brittle in the open world, facing various types of adversarial OOD inputs. While methods leveraging auxiliary OOD data have emerged, our analysis on illuminative examples reveals a key insight that the majority of auxiliary OOD examples may not meaningfully improve or even hurt the decision boundary of the OOD detector, which is also observed in empirical results on real data. In this paper, we provide a theoretically motivated method, Adversarial Training with informative Outlier Mining (ATOM), which improves the robustness of OOD detection. We show that, by mining informative auxiliary OOD data, one can significantly improve OOD detection performance, and somewhat surprisingly, generalize to unseen adversarial attacks. ATOM achieves state-of-the-art performance under a broad family of classic and adversarial OOD evaluation tasks. For example, on the CIFAR-10 in-distribution dataset, ATOM reduces the FPR (at TPR 95%) by up to 57.99% under adversarial OOD inputs, surpassing the previous best baseline by a large margin.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Out-of-Distribution Detection | SUN OOD with ImageNet-1k In-distribution (test) | FPR@9555.87 | 159 | |
| OOD Detection | CIFAR-100 standard (test) | AUROC (%)96.69 | 94 | |
| Out-of-Distribution Detection | ImageNet-1k ID iNaturalist OOD | FPR957.07 | 87 | |
| Out-of-Distribution Detection | ImageNet-1k (ID) with 4 OOD datasets (iNaturalist, SUN, Places, Textures) | FPR9549.36 | 45 | |
| Out-of-Distribution Detection | ImageNet (ID) vs Places365 (OOD) 1.0 (test) | FPR9574.3 | 41 | |
| OOD Detection | CIFAR-10 (test) | AUROC99.09 | 40 | |
| OOD Detection | CIFAR-10 standard (test) | AUROC0.983 | 25 | |
| OOD Detection | CIFAR-100 | Average FPR9537.84 | 23 | |
| OOD Detection | CIFAR-10 | FPR95 (SVHN)1 | 22 | |
| Out-of-Distribution Detection | CIFAR-100 In-distribution vs Smooth (OOD) | AUC98.2 | 22 |