DICE: Leveraging Sparsification for Out-of-Distribution Detection

Yiyou Sun, Yixuan Li
11/18/2021
cs.LG

Official code: deeplearning-wisc/dice (42 stars, Python, MIT, last commit 2022-09-28).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Code for ECCV 2022 paper "DICE: Leveraging Sparsification for Out-of-Distribution Detection"

426Python, ShellNov 23, 20214 years agoMIT

Similar Papers

Cite this paper

@article{sun2021dice,
  title  = {DICE: Leveraging Sparsification for Out-of-Distribution Detection},
  author = {Yiyou Sun and Yixuan Li},
  year   = {2021},
  eprint = {2111.09805},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.09805}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.09805.svg)](https://codeofpaper.com/paper/2111.09805)

Discussion