EPA: Neural Collapse Inspired Robust Out-of-Distribution Detector

Jiawei Zhang, Yufan Chen, Cheng Jin, Lei Zhu, Yuantao Gu
1/3/2024
cs.LGcs.CR

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Out-of-distribution (OOD) detection plays a crucial role in ensuring the security of neural networks. Existing works have leveraged the fact that In-distribution (ID) samples form a subspace in the feature space, achieving state-of-the-art (SOTA) performance. However, the comprehensive characteristics of the ID subspace still leave under-explored. Recently, the discovery of Neural Collapse ($\mathcal{NC}$) sheds light on novel properties of the ID subspace. Leveraging insight from $\mathcal{NC}$, we observe that the Principal Angle between the features and the ID feature subspace forms a superior representation for measuring the likelihood of OOD. Building upon this observation, we propose a novel $\mathcal{NC}$-inspired OOD scoring function, named Entropy-enhanced Principal Angle (EPA), which integrates both the global characteristic of the ID subspace and its inner property. We experimentally compare EPA with various SOTA approaches, validating its superior performance and robustness across different network architectures and OOD datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2024epa,
  title  = {EPA: Neural Collapse Inspired Robust Out-of-Distribution Detector},
  author = {Jiawei Zhang and Yufan Chen and Cheng Jin and Lei Zhu and Yuantao Gu},
  year   = {2024},
  eprint = {2401.01710},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.01710v1}
}

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

Discussion