Item

Provable discriminative hyperspherical embedding for out-of-distribution detection

Zou, Zhipeng
Wan, Sheng
Li, Guangyu
Han, Bo
Liu, Tongliang
Zhao, Lin
Gong, Chen
Supervisor
Department
Machine Learning
Embargo End Date
Type
Conference proceeding
Date
2025
License
Language
English
Collections
Research Projects
Organizational Units
Journal Issue
Abstract
Out-of-distribution (OOD) detection aims to identify the test examples that do not belong to the distribution of training data. The distance-based methods, which identify OOD examples based on their distances from the centroids of in-distribution (ID) examples, have demonstrated promising OOD detection performance. However, the objectives utilized in prior approaches are typically designed for classification and thus might not yield sufficient discriminative power to distinguish between ID and OOD examples. Therefore, this paper proposes a prototype-based contrastive learning framework for OOD detection, which is termed provable Discriminative Hyperspherical Embedding (DHE). The proposed framework provides a theoretical analysis of inter-class dispersion, which is proved to be fundamental in reducing the false positive rate (FPR) on OOD examples. Based on this, we devise an angular spread loss to achieve the maximal dispersion of the prototypes of different classes prior to training. Subsequently, a prototype-enhanced contrastive loss is introduced to align embeddings of ID examples closely with their corresponding prototypes. In our proposed DHE, the maximal prototype dispersion is theoretically proved, thereby avoiding the pitfalls of local optima commonly encountered by most existing methods. Experimental results demonstrate the effectiveness of our proposed DHE, which showcases a remarkable reduction in FPR95 (i.e., 5.37% on CIFAR-100) and more than doubling the computational efficiency when compared with the state-of-the-art methods.
Citation
Z. Zou et al., “Provable Discriminative Hyperspherical Embedding for Out-of-Distribution Detection,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 12, pp. 13483–13491, Apr. 2025, doi: 10.1609/AAAI.V39I12.33472
Source
Proceedings of the AAAI Conference on Artificial Intelligence
Conference
39th AAAI Conference on Artificial Intelligence
Keywords
Subjects
Source
39th AAAI Conference on Artificial Intelligence
Publisher
Association for the Advancement of Artificial Intelligence
Full-text link