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

ConjNorm: Tractable Density Estimation for Out-of-Distribution Detection

About

Post-hoc out-of-distribution (OOD) detection has garnered intensive attention in reliable machine learning. Many efforts have been dedicated to deriving score functions based on logits, distances, or rigorous data distribution assumptions to identify low-scoring OOD samples. Nevertheless, these estimate scores may fail to accurately reflect the true data density or impose impractical constraints. To provide a unified perspective on density-based score design, we propose a novel theoretical framework grounded in Bregman divergence, which extends distribution considerations to encompass an exponential family of distributions. Leveraging the conjugation constraint revealed in our theorem, we introduce a \textsc{ConjNorm} method, reframing density function design as a search for the optimal norm coefficient $p$ against the given dataset. In light of the computational challenges of normalization, we devise an unbiased and analytically tractable estimator of the partition function using the Monte Carlo-based importance sampling technique. Extensive experiments across OOD detection benchmarks empirically demonstrate that our proposed \textsc{ConjNorm} has established a new state-of-the-art in a variety of OOD detection setups, outperforming the current best method by up to 13.25$\%$ and 28.19$\%$ (FPR95) on CIFAR-100 and ImageNet-1K, respectively.

Bo Peng, Yadan Luo, Yonggang Zhang, Yixuan Li, Zhen Fang• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-10 vs SVHN (test)
AUROC0.9632
137
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC87.46
101
Out-of-Distribution DetectionCIFAR-10 (in-distribution) TinyImageNet (out-of-distribution) (test)
AUROC90.74
79
Multi-Class Out-of-Distribution DetectionCIFAR-10 (in-distribution) vs Textures (out-of-distribution) (test)
FPR@9523.78
35
OOD DetectionCIFAR-100 vs SVHN (test)--
18
OOD DetectionIn: CIFAR-100, Out: TinyImageNet (test)
FPR@95%82.3
16
Multi-Class Out-of-Distribution DetectionCIFAR-10 (in-distribution) vs Places365 (out-of-distribution) (test)
FPR@9536.02
14
OOD DetectionCIFAR-100 vs LSUN (test)
FPR @ FNR=0.0579.82
13
Out-of-Distribution DetectionCIFAR-10 vs OOD Average (Mean) (test)
FPR@95% TPR31.95
8
OOD DetectionCIFAR-100 Texture (test)
FPR@95%77.21
8
Showing 10 of 13 rows

Other info

Follow for update