TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/DICE: Leveraging Sparsification for Out-of-Distribution De...

DICE: Leveraging Sparsification for Out-of-Distribution Detection

Yiyou Sun, Yixuan Li

2021-11-18AttributeOut of Distribution (OOD) DetectionOut-of-Distribution Detection
PaperPDFCode(official)

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.

Results

TaskDatasetMetricValueModel
Out-of-Distribution DetectionImageNet-1k vs iNaturalistAUROC96.24DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs iNaturalistFPR9518.64DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs TexturesAUROC92.74DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs TexturesFPR9528.07DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs TexturesAUROC90.3DICE (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs TexturesFPR9531.72DICE (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs PlacesAUROC90.67DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs PlacesFPR9536.86DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs PlacesAUROC87.48DICE (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs PlacesFPR9546.49DICE (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs SUNAUROC93.94DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs SUNFPR9525.45DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs SUNAUROC90.83DICE (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs SUNFPR9535.15DICE (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs Curated OODs (avg.)AUROC93.4DICE + ReAct (ResNet-50)
Out-of-Distribution DetectionImageNet-1k vs Curated OODs (avg.)FPR9527.25DICE + ReAct (ResNet-50)

Related Papers

MGFFD-VLM: Multi-Granularity Prompt Learning for Face Forgery Detection with VLM2025-07-16Non-Adaptive Adversarial Face Generation2025-07-16Attributes Shape the Embedding Space of Face Recognition Models2025-07-15COLIBRI Fuzzy Model: Color Linguistic-Based Representation and Interpretation2025-07-15ZClassifier: Temperature Tuning and Manifold Approximation via KL Divergence on Logit Space2025-07-14Ref-Long: Benchmarking the Long-context Referencing Capability of Long-context Language Models2025-07-13Model Parallelism With Subnetwork Data Parallelism2025-07-11Bradley-Terry and Multi-Objective Reward Modeling Are Complementary2025-07-10