HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Feature Space Singularity for Out-of-Distribution Detection

Haiwen Huang Zhihan Li Lulu Wang Sishuo Chen Bin Dong Xinyu Zhou

Feature Space Singularity for Out-of-Distribution Detection

Abstract

Out-of-Distribution (OoD) detection is important for building safe artificial intelligence systems. However, current OoD detection methods still cannot meet the performance requirements for practical deployment. In this paper, we propose a simple yet effective algorithm based on a novel observation: in a trained neural network, OoD samples with bounded norms well concentrate in the feature space. We call the center of OoD features the Feature Space Singularity (FSS), and denote the distance of a sample feature to FSS as FSSD. Then, OoD samples can be identified by taking a threshold on the FSSD. Our analysis of the phenomenon reveals why our algorithm works. We demonstrate that our algorithm achieves state-of-the-art performance on various OoD detection benchmarks. Besides, FSSD also enjoys robustness to slight corruption in test data and can be further enhanced by ensembling. These make FSSD a promising algorithm to be employed in real world. We release our code at \url{https://github.com/megvii-research/FSSD_OoD_Detection}.

Code Repositories

megvii-research/FSSD_OoD_Detection
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
out-of-distribution-detection-on-cifar-10ResNet 34 + FSSD
AUROC: 99.5
out-of-distribution-detection-on-fashionLeNet + FSSD
AUROC: 0.996
out-of-distribution-detection-on-imagenetResNet34 + FSSD
AUROC: 93.1
out-of-distribution-detection-on-ms-1m-vs-ijbResNeXt50 + FSSD
AUROC: 86.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Feature Space Singularity for Out-of-Distribution Detection | Papers | HyperAI