Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalization

Yibing Liu, Chris Xing Tian, Haoliang Li, Lei Ma, Shiqi Wang
6/5/2023
cs.LG

No official code found. Best implementation: BierOne/ood_coverage (34 stars, MIT, last commit 2026-03-12).

Abstract

The out-of-distribution (OOD) problem generally arises when neural networks encounter data that significantly deviates from the training data distribution, i.e., in-distribution (InD). In this paper, we study the OOD problem from a neuron activation view. We first formulate neuron activation states by considering both the neuron output and its influence on model decisions. Then, to characterize the relationship between neurons and OOD issues, we introduce the \textit{neuron activation coverage} (NAC) -- a simple measure for neuron behaviors under InD data. Leveraging our NAC, we show that 1) InD and OOD inputs can be largely separated based on the neuron behavior, which significantly eases the OOD detection problem and beats the 21 previous methods over three benchmarks (CIFAR-10, CIFAR-100, and ImageNet-1K). 2) a positive correlation between NAC and model generalization ability consistently holds across architectures and datasets, which enables a NAC-based criterion for evaluating model robustness. Compared to prevalent InD validation criteria, we show that NAC not only can select more robust models, but also has a stronger correlation with OOD test performance.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2024 Spotlight] Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalization

342Shell, PythonApr 21, 20237 months agoMIT

Similar Papers

Cite this paper

@article{liu2023neuron,
  title  = {Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalization},
  author = {Yibing Liu and Chris Xing Tian and Haoliang Li and Lei Ma and Shiqi Wang},
  year   = {2023},
  eprint = {2306.02879},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.02879v3},
  journal = {ICLR 2023 2023}
}

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/2306.02879.svg)](https://codeofpaper.com/paper/2306.02879)

Discussion