WDiscOOD: Out-of-Distribution Detection via Whitened Linear Discriminant Analysis

Yiye Chen, Yunzhi Lin, Ruinian Xu, P. Vela
2/14/2026

No official code found. Best implementation: ivalab/WDiscOOD (5 stars, last commit 2023-08-30).

Abstract

Deep neural networks are susceptible to generating overconfident yet erroneous predictions when presented with data beyond known concepts. This challenge underscores the importance of detecting out-of-distribution (OOD) samples in the open world. In this work, we propose a novel feature-space OOD detection score based on class-specific and class-agnostic information. Specifically, the approach utilizes Whitened Linear Discriminant Analysis to project features into two subspaces the discriminative and residual subspaces - for which the in-distribution (ID) classes are maximally separated and closely clustered, respectively. The OOD score is then determined by combining the deviation from the input data to the ID pattern in both subspaces. The efficacy of our method, named WDiscOOD, is verified on the large-scale ImageNet-1k benchmark, with six OOD datasets that cover a variety of distribution shifts. WDiscOOD demonstrates superior performance on deep classifiers with diverse backbone architectures, including CNN and vision transformer. Furthermore, we also show that WDiscOOD more effectively detects novel concepts in representation spaces trained with contrastive objectives, including supervised contrastive loss and multi-modality contrastive loss.

View on arXivView PDF

Code Implementations(1)

ivalab/WDiscOODCommunity62%

[ICCV2023] Official Implementation of ICCV 2023 paper, WDiscOOD: Out-of-Distribution Detection via Whitened Linear Discriminant Analysis

51Shell, PythonAug 30, 20233 years ago

Similar Papers

Cite this paper

@article{chen2026wdiscood,
  title  = {WDiscOOD: Out-of-Distribution Detection via Whitened Linear Discriminant Analysis},
  author = {Yiye Chen and Yunzhi Lin and Ruinian Xu and P. Vela},
  year   = {2026},
  eprint = {2303.07543},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.07543},
  journal = {ICCV 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/2303.07543.svg)](https://codeofpaper.com/paper/2303.07543)

Discussion