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

VRA: Variational Rectified Activation for Out-of-distribution Detection

About

Out-of-distribution (OOD) detection is critical to building reliable machine learning systems in the open world. Researchers have proposed various strategies to reduce model overconfidence on OOD data. Among them, ReAct is a typical and effective technique to deal with model overconfidence, which truncates high activations to increase the gap between in-distribution and OOD. Despite its promising results, is this technique the best choice for widening the gap? To answer this question, we leverage the variational method to find the optimal operation and verify the necessity of suppressing abnormally low and high activations and amplifying intermediate activations in OOD detection, rather than focusing only on high activations like ReAct. This motivates us to propose a novel technique called ``Variational Rectified Activation (VRA)'', which simulates these suppression and amplification operations using piecewise functions. Experimental results on multiple benchmark datasets demonstrate that our method outperforms existing post-hoc strategies. Meanwhile, VRA is compatible with different scoring functions and network architectures. \textcolor[rgb]{0.93,0.0,0.47}{Our code can be found in Supplementary Material}.

Mingyu Xu, Zheng Lian, Bin Liu, Jianhua Tao• 2023

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectioniNaturalist
FPR@9515.48
200
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9530.65
159
Out-of-Distribution DetectionTextures
AUROC0.9608
141
Out-of-Distribution DetectionImageNet OOD Average 1k (test)
FPR@9528.53
137
Out-of-Distribution DetectionPlaces
FPR9534.62
110
Out-of-Distribution DetectionTexture
AUROC98.76
109
Out-of-Distribution DetectionPlaces with ImageNet-1k OOD In-distribution (test)
FPR9539.94
99
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR9516.82
87
OOD DetectionSUN (OOD)
AUROC94.91
72
Out-of-Distribution DetectionImageNet-1k vs Textures (test)
FPR9526.72
65
Showing 10 of 16 rows

Other info

Follow for update