Towards Robust Artificial Intelligence: Self-Supervised Learning Approach for Out-of-Distribution Detection
Wissam Salhab, Darine Ameyed, Hamid Mcheick, Fehmi Jaafar
TL;DR
This work tackles robust OOD detection without relying on labeled data by marrying self-supervised contrastive learning with graph-based clustering and Mahalanobis-distance inference. The two-phase pipeline first learns in-distribution embeddings and constructs a KNN graph whose clusters approximate local Gaussian components, then uses the nearest-cluster Mahalanobis distance for OOD scoring. Empirical results on CIFAR-10, CIFAR-100, and SVHN show state-of-the-art AUROC (up to 0.999) and strong OOD discrimination, with ablations validating the importance of graph clustering and representation learning. The approach is scalable and suitable for safety-critical applications where labeled OOD data is scarce or unavailable.
Abstract
Robustness in AI systems refers to their ability to maintain reliable and accurate performance under various conditions, including out-of-distribution (OOD) samples, adversarial attacks, and environmental changes. This is crucial in safety-critical systems, such as autonomous vehicles, transportation, or healthcare, where malfunctions could have severe consequences. This paper proposes an approach to improve OOD detection without the need of labeled data, thereby increasing the AI systems' robustness. The proposed approach leverages the principles of self-supervised learning, allowing the model to learn useful representations from unlabeled data. Combined with graph-theoretical techniques, this enables the more efficient identification and categorization of OOD samples. Compared to existing state-of-the-art methods, this approach achieved an Area Under the Receiver Operating Characteristic Curve (AUROC) = 0.99.
