Bridging OOD Detection and Generalization: A Graph-Theoretic View

Han Wang, Yixuan Li
9/26/2024
cs.LGstat.ML

Official code: deeplearning-wisc/graph-spectral-ood (4 stars, Apache-2.0, last commit 2024-10-07).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS 2024] Official Implementation of "Bridging OOD Generalization and Detection: A Graph-Theoretic View"

40Shell, PythonSep 30, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2024bridging,
  title  = {Bridging OOD Detection and Generalization: A Graph-Theoretic View},
  author = {Han Wang and Yixuan Li},
  year   = {2024},
  eprint = {2409.18205},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2409.18205},
  url    = {http://arxiv.org/abs/2409.18205v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.18205.svg)](https://codeofpaper.com/paper/2409.18205)

Discussion