Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Feed Two Birds with One Scone: Exploiting Wild Data for Both Out-of-Distribution Generalization and Detection

About

Modern machine learning models deployed in the wild can encounter both covariate and semantic shifts, giving rise to the problems of out-of-distribution (OOD) generalization and OOD detection respectively. While both problems have received significant research attention lately, they have been pursued independently. This may not be surprising, since the two tasks have seemingly conflicting goals. This paper provides a new unified approach that is capable of simultaneously generalizing to covariate shifts while robustly detecting semantic shifts. We propose a margin-based learning framework that exploits freely available unlabeled data in the wild that captures the environmental test-time OOD distributions under both covariate and semantic shifts. We show both empirically and theoretically that the proposed margin constraint is the key to achieving both OOD generalization and detection. Extensive experiments show the superiority of our framework, outperforming competitive baselines that specialize in either OOD generalization or OOD detection. Code is publicly available at https://github.com/deeplearning-wisc/scone.

Haoyue Bai, Gregory Canal, Xuefeng Du, Jeongyeol Kwon, Robert Nowak, Yixuan Li• 2023

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-10 vs SVHN (test)
AUROC0.9548
137
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC91.24
101
Out-of-Distribution DetectionCIFAR-10 (in-distribution) TinyImageNet (out-of-distribution) (test)
AUROC93.48
79
Out-of-Distribution Detection and GeneralizationCIFAR-10 ID LSUN-C semantic OOD & CIFAR-10-C covariate OOD
OOD Accuracy84.58
74
Out-of-Distribution Detection and GeneralizationCIFAR-10 ID SVHN semantic OOD CIFAR-10-C covariate OOD
OOD Accuracy84.69
38
Out-of-Distribution Detection and GeneralizationCIFAR-10 ID Textures semantic OOD CIFAR-10-C covariate OOD
OOD Accuracy85.56
38
Generalized OOD DetectionCIFAR-10 with Places365 (semantic OOD) and CIFAR-10-C (covariate OOD) (test)
OOD Accuracy85.21
38
Multi-Class Out-of-Distribution DetectionCIFAR-10 (in-distribution) vs Textures (out-of-distribution) (test)
FPR@9518.26
35
OOD DetectionCIFAR-10 LSUN-Resize semantic OOD + CIFAR-10-C covariate OOD (test)
FPR0.87
22
Out-of-Distribution DetectionImageNet-100
Average FPR9527.13
22
Showing 10 of 22 rows

Other info

Follow for update