Revisiting Out-of-Distribution Detection in Semantic Difference Space
The primary goal of most existing out-of-distribution (OOD) detection works is to identify inputs with "Semantic Shifts". However, the existing definition of "Semantic Shift" in previous studies remains vague, resulting in controversial choices of OOD samples in many benchmarks. Consequently, some benchmarks are too trivial for evaluating OOD detection, whereas others include OOD instances that are practically undetectable. In this paper, we propose a formal definition of "Semantic Difference Space", which reflects the scope of a model's OOD detection capability after training convergence. The definition is grounded in an analysis of how the loss-based optimization shapes the model's perceptual toward OOD inputs, offering theoretical explanations for the controversies regarding the selection of OOD samples across existing benchmarks. To validate the correctness of our analysis, we construct multiple datasets, primarily in the context of image classification, and we find that compared to different OOD detection methods, different OOD settings play a more decisive role in the detection results. Finally, we propose a simple yet effective OOD Separability Probe (OSP) method to evaluate whether the existing OOD detection benchmarks are reasonable, identifying issues in some benchmarks and highlighting a few that are worth further exploration.