Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Unleashing Mask: Explore the Intrinsic Out-of-Distribution Detection Capability

About

Out-of-distribution (OOD) detection is an indispensable aspect of secure AI when deploying machine learning models in real-world applications. Previous paradigms either explore better scoring functions or utilize the knowledge of outliers to equip the models with the ability of OOD detection. However, few of them pay attention to the intrinsic OOD detection capability of the given model. In this work, we generally discover the existence of an intermediate stage of a model trained on in-distribution (ID) data having higher OOD detection performance than that of its final stage across different settings, and further identify one critical data-level attribution to be learning with the atypical samples. Based on such insights, we propose a novel method, Unleashing Mask, which aims to restore the OOD discriminative capabilities of the well-trained model with ID data. Our method utilizes a mask to figure out the memorized atypical samples, and then finetune the model or prune it with the introduced mask to forget them. Extensive experiments and analysis demonstrate the effectiveness of our method. The code is available at: https://github.com/tmlr-group/Unleashing-Mask.

Jianing Zhu, Hengzhuang Li, Jiangchao Yao, Tongliang Liu, Jianliang Xu, Bo Han• 2023

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10--
875
Out-of-Distribution DetectionTextures
AUROC0.8835
186
Out-of-Distribution DetectionCIFAR-10
AUROC97.6
121
Out-of-Distribution DetectionCIFAR-100
AUROC92.95
107
OOD DetectionPlaces (OOD)
AUROC86.99
100
OOD DetectioniNaturalist
AUROC94.71
95
Out-of-Distribution DetectionAverage (iNaturalist, SUN, Places, Textures)
FPR@9540.94
89
OOD DetectionSUN (OOD)
AUROC86.92
81
Out-of-Distribution DetectionImageNet Far-OOD
AUROC91.62
58
Out-of-Distribution DetectionImageNet-1K Near-OOD OpenOOD v1.5
AUROC81.08
51
Showing 10 of 16 rows

Other info

Code

Follow for update