Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancement

About

The capacity of a modern deep learning system to determine if a sample falls within its realm of knowledge is fundamental and important. In this paper, we offer insights and analyses of recent state-of-the-art out-of-distribution (OOD) detection methods - extremely simple activation shaping (ASH). We demonstrate that activation pruning has a detrimental effect on OOD detection, while activation scaling enhances it. Moreover, we propose SCALE, a simple yet effective post-hoc network enhancement method for OOD detection, which attains state-of-the-art OOD detection performance without compromising in-distribution (ID) accuracy. By integrating scaling concepts into the training process to capture a sample's ID characteristics, we propose Intermediate Tensor SHaping (ISH), a lightweight method for training time OOD detection enhancement. We achieve AUROC scores of +1.85\% for near-OOD and +0.74\% for far-OOD datasets on the OpenOOD v1.5 ImageNet-1K benchmark. Our code and models are available at https://github.com/kai422/SCALE.

Kai Xu, Rongyu Chen, Gianni Franchi, Angela Yao• 2023

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1k (val)--
1453
Out-of-Distribution DetectioniNaturalist
FPR@959.5
200
Out-of-Distribution DetectionPlaces
FPR9536.86
110
Out-of-Distribution DetectionTexture
AUROC96.75
109
Out-of-Distribution DetectionOpenImage-O
AUROC94
107
Out-of-Distribution DetectionAverage (iNaturalist, SUN, Places, Textures)
FPR@9521.89
74
Out-of-Distribution DetectionSUN
FPR@9525.78
71
OOD DetectionSVHN (test)
AUROC0.8491
61
Out-of-Distribution DetectionImageNet-1K
FPR@9521.89
59
Out-of-Distribution DetectionNINCO
AUROC0.854
59
Showing 10 of 34 rows

Other info

Code

Follow for update