HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

DICE: Leveraging Sparsification for Out-of-Distribution Detection

Yiyou Sun Yixuan Li

DICE: Leveraging Sparsification for Out-of-Distribution Detection

Abstract

Detecting out-of-distribution (OOD) inputs is a central challenge for safely deploying machine learning models in the real world. Previous methods commonly rely on an OOD score derived from the overparameterized weight space, while largely overlooking the role of sparsification. In this paper, we reveal important insights that reliance on unimportant weights and units can directly attribute to the brittleness of OOD detection. To mitigate the issue, we propose a sparsification-based OOD detection framework termed DICE. Our key idea is to rank weights based on a measure of contribution, and selectively use the most salient weights to derive the output for OOD detection. We provide both empirical and theoretical insights, characterizing and explaining the mechanism by which DICE improves OOD detection. By pruning away noisy signals, DICE provably reduces the output variance for OOD data, resulting in a sharper output distribution and stronger separability from ID data. We demonstrate the effectiveness of sparsification-based OOD detection on several benchmarks and establish competitive performance.

Code Repositories

deeplearning-wisc/dice
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
out-of-distribution-detection-on-imagenet-1k-10DICE + ReAct (ResNet-50)
AUROC: 92.74
FPR95: 28.07
out-of-distribution-detection-on-imagenet-1k-10DICE (ResNet-50)
AUROC: 90.3
FPR95: 31.72
out-of-distribution-detection-on-imagenet-1k-12DICE + ReAct (ResNet-50)
AUROC: 93.4
FPR95: 27.25
out-of-distribution-detection-on-imagenet-1k-3DICE + ReAct (ResNet-50)
AUROC: 96.24
FPR95: 18.64
out-of-distribution-detection-on-imagenet-1k-8DICE + ReAct (ResNet-50)
AUROC: 93.94
FPR95: 25.45
out-of-distribution-detection-on-imagenet-1k-8DICE (ResNet-50)
AUROC: 90.83
FPR95: 35.15
out-of-distribution-detection-on-imagenet-1k-9DICE (ResNet-50)
AUROC: 87.48
FPR95: 46.49
out-of-distribution-detection-on-imagenet-1k-9DICE + ReAct (ResNet-50)
AUROC: 90.67
FPR95: 36.86

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
DICE: Leveraging Sparsification for Out-of-Distribution Detection | Papers | HyperAI