A Closer Look at the Learnability of Out-of-Distribution (OOD) Detection
Konstantin Garov, Kamalika Chaudhuri
TL;DR
This work reframes OOD detection as a PAC-style learning problem and distinguishes uniform from non-uniform learnability. By introducing structured assumptions such as Disjoint Supports Assumption (DSA), τ-Far Supports (τ-FSA), ConvexID, ContID, and Hölder continuity, it identifies conditions under which OOD detection is learnable and provides concrete algorithms with sample-complexity analyses when possible. A key contribution is the principled Maximal Zero OOD Risk Procedure and its variants, which yield zero OOD risk under several assumptions and illuminate when uniform learnability is achievable (e.g., with τ-FSA plus bounded-in-distribution diameter or Hölder-continuous distributions combined with DSA). The results also extend No Free Lunch-type theorems to OOD detection, showing impossibilities in broad settings, while explaining why practical detectors often succeed in real data due to favorable distributional properties. Overall, the paper clarifies the theoretical landscape of OOD detection, bridging theory and practice, and outlining directions for future work under weaker or alternative modeling assumptions.
Abstract
Machine learning algorithms often encounter different or "out-of-distribution" (OOD) data at deployment time, and OOD detection is frequently employed to detect these examples. While it works reasonably well in practice, existing theoretical results on OOD detection are highly pessimistic. In this work, we take a closer look at this problem, and make a distinction between uniform and non-uniform learnability, following PAC learning theory. We characterize under what conditions OOD detection is uniformly and non-uniformly learnable, and we show that in several cases, non-uniform learnability turns a number of negative results into positive. In all cases where OOD detection is learnable, we provide concrete learning algorithms and a sample-complexity analysis.
