Rethinking Out-of-Distribution Detection on Imbalanced Data Distribution

Kai Liu, Zhihang Fu, Sheng Jin, Chao Chen, Ze Chen +4 more
2/3/2026

No official code found. Best implementation: D2I-ai/imood (8 stars, MIT, last commit 2025-03-30).

Abstract

Detecting and rejecting unknown out-of-distribution (OOD) samples is critical for deployed neural networks to void unreliable predictions. In real-world scenarios, however, the efficacy of existing OOD detection methods is often impeded by the inherent imbalance of in-distribution (ID) data, which causes significant performance decline. Through statistical observations, we have identified two common challenges faced by different OOD detectors: misidentifying tail class ID samples as OOD, while erroneously predicting OOD samples as head class from ID. To explain this phenomenon, we introduce a generalized statistical framework, termed ImOOD, to formulate the OOD detection problem on imbalanced data distribution. Consequently, the theoretical analysis reveals that there exists a class-aware bias item between balanced and imbalanced OOD detection, which contributes to the performance gap. Building upon this finding, we present a unified training-time regularization technique to mitigate the bias and boost imbalanced OOD detectors across architecture designs. Our theoretically grounded method translates into consistent improvements on the representative CIFAR10-LT, CIFAR100-LT, and ImageNet-LT benchmarks against several state-of-the-art OOD detection approaches. Code is available at https://github.com/alibaba/imood.

View on arXivView PDF

Code Implementations(1)

D2I-ai/imoodCommunity100%
MIT

[NeurIPS 2024] Official implementation of the paper "Rethinking Out-of-Distribution Detection on Imbalanced Data Distribution"

80Shell, PythonOct 29, 20241 years agoMIT

Similar Papers

Cite this paper

@article{liu2026rethinking,
  title  = {Rethinking Out-of-Distribution Detection on Imbalanced Data Distribution},
  author = {Kai Liu and Zhihang Fu and Sheng Jin and Chao Chen and Ze Chen and Rongxin Jiang and Fan Zhou and Yao-Shen Chen and Jieping Ye},
  year   = {2026},
  eprint = {2407.16430},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2407.16430},
  url    = {https://arxiv.org/abs/2407.16430},
  journal = {NEURIPS 2024 2024}
}

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

Discussion