Bridging OOD Detection and Generalization: A Graph-Theoretic View
About
In the context of modern machine learning, models deployed in real-world scenarios often encounter diverse data shifts like covariate and semantic shifts, leading to challenges in both out-of-distribution (OOD) generalization and detection. Despite considerable attention to these issues separately, a unified framework for theoretical understanding and practical usage is lacking. To bridge the gap, we introduce a graph-theoretic framework to jointly tackle both OOD generalization and detection problems. By leveraging the graph formulation, data representations are obtained through the factorization of the graph's adjacency matrix, enabling us to derive provable error quantifying OOD generalization and detection performance. Empirical results showcase competitive performance in comparison to existing methods, thereby validating our theoretical underpinnings. Code is publicly available at https://github.com/deeplearning-wisc/graph-spectral-ood.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Out-of-Distribution Detection and Generalization | CIFAR-10 ID LSUN-C semantic OOD & CIFAR-10-C covariate OOD | OOD Accuracy85.88 | 74 | |
| Generalized OOD Detection | CIFAR-10 with Places365 (semantic OOD) and CIFAR-10-C (covariate OOD) (test) | OOD Accuracy87.04 | 38 | |
| Out-of-Distribution Detection and Generalization | CIFAR-10 ID Textures semantic OOD CIFAR-10-C covariate OOD | OOD Accuracy81.4 | 38 | |
| Out-of-Distribution Detection and Generalization | CIFAR-10 ID SVHN semantic OOD CIFAR-10-C covariate OOD | OOD Accuracy0.8662 | 38 | |
| Out-of-Distribution Detection | ImageNet-100 | Average FPR9521 | 22 | |
| Open Set Domain Adaptation | Office-Home (test) | OOD Accuracy (Ar -> Cl)54.2 | 8 |