Medix: Out-of-Distribution Detection from Unlabeled Wild Data via Robust Gradient Statistics

· Source: stat.ML updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Machine Learning Robustness · Depth: Expert, extended

Summary

Medix is a novel framework for out-of-distribution (OOD) detection that utilizes unlabeled "in-the-wild" data, crucial for machine learning system robustness. It addresses the challenge of mixed in-distribution (InD) and OOD samples in unlabeled datasets by employing a median-centric approach. Medix first identifies potential outliers from wild data using robust gradient statistics and then trains a dedicated OOD classifier with these identified outliers and labeled InD data. The framework provides theoretical error bounds, demonstrating its robustness even with OOD contamination up to 50%. Empirically, Medix significantly outperforms 20 existing methods, reducing the average FPR95 by 40.98% compared to KNN+ on CIFAR-100 and by 1.32% against WOODS, while achieving an outlier extraction error rate as low as 12.5%. Experiments were conducted on NVIDIA A100-SXM4-80GB GPUs using datasets like CIFAR-10/100, PLACES365, and SVHN.

Key takeaway

For MLOps Engineers deploying models in open-world environments, Medix offers a robust strategy to enhance out-of-distribution detection without relying on clean, labeled OOD datasets. You should consider integrating its median-centric gradient filtering approach to effectively identify outliers from readily available unlabeled wild data. This method provides strong theoretical guarantees and demonstrated superior empirical performance, reducing false positive rates significantly, thereby improving model reliability and safety in production.

Key insights

Median-based gradient analysis robustly filters out-of-distribution samples from unlabeled wild data, enabling superior OOD detection.

Principles

Method

Medix involves two stages: 1) Outlier extraction from unlabeled wild data via iterative greedy optimization of element-wise median (EWM) gradients, and 2) Training a binary OOD detector using these extracted outliers and labeled in-distribution data.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by stat.ML updates on arXiv.org.