Medix: Out-of-Distribution Detection from Unlabeled Wild Data via Robust Gradient Statistics
About
Out-of-distribution (OOD) detection plays a crucial role in ensuring the robustness of machine learning systems deployed in real-world applications. Recent approaches have explored the use of unlabeled data, showing potential for enhancing OOD detection capabilities. However, effectively utilizing unlabeled in-the-wild data remains challenging due to the mixed nature of both in-distribution (InD) and OOD samples. The lack of a distinct set of OOD samples complicates the task of training an optimal OOD classifier. In this work, we introduce Medix, a novel framework designed to identify potential outliers from unlabeled data using the median-based robust gradient statistics. We use the median because it provides a stable estimate of the central tendency, as an OOD detection mechanism, due to its robustness against noise and outliers. Using these identified outliers, along with labeled InD data, we train a robust OOD classifier. From a theoretical perspective, we derive error bounds that demonstrate Medix achieves a low error rate. Empirical results further substantiate our claims, as Medix outperforms existing methods across the board in open-world settings.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| OOD Detection | CIFAR-10 (IND) SVHN (OOD) | AUROC0.9998 | 152 | |
| OOD Detection | CIFAR-10 (ID) vs Places 365 (OOD) | AUROC99.1 | 131 | |
| Out-of-Distribution Detection | CIFAR-100 SVHN in-distribution out-of-distribution (test) | AUROC87.25 | 111 | |
| OOD Detection | LSUN-Resize (OOD) with CIFAR-10 (ID) (test) | FPR@950.01 | 84 | |
| OOD Detection | CIFAR-10 IND LSUN C OOD | AUROC99.98 | 74 | |
| OOD Detection | CIFAR-10 Average OOD ID (test) | FPR@950.8 | 54 | |
| Out-of-Distribution Detection | CIFAR100 (ID) SVHN (OOD) | AUROC99.87 | 53 | |
| Out-of-Distribution Detection | Places365 (Out-of-distribution) vs CIFAR-100 (In-distribution) | FPR@9524.52 | 42 | |
| Out-of-Distribution Detection | CIFAR-100 ID LSUN-C OOD | AUROC (%)99.84 | 38 | |
| Out-of-Distribution Detection | ImageNet-1K (ID) vs Textures (OOD) (test) | FPR957.53 | 36 |