Long-Tailed Out-of-Distribution Detection via Normalized Outlier Distribution Adaptation

Wenjun Miao, Guansong Pang, Jingyi Zheng, Xiaolong Bai
2/3/2026

No official code found. Best implementation: mala-lab/AdaptOD (8 stars, Apache-2.0, last commit 2024-12-05).

Abstract

One key challenge in Out-of-Distribution (OOD) detection is the absence of ground-truth OOD samples during training. One principled approach to address this issue is to use samples from external datasets as outliers (i.e., pseudo OOD samples) to train OOD detectors. However, we find empirically that the outlier samples often present a distribution shift compared to the true OOD samples, especially in Long-Tailed Recognition (LTR) scenarios, where ID classes are heavily imbalanced, \ie, the true OOD samples exhibit very different probability distribution to the head and tailed ID classes from the outliers. In this work, we propose a novel approach, namely normalized outlier distribution adaptation (AdaptOD), to tackle this distribution shift problem. One of its key components is dynamic outlier distribution adaptation that effectively adapts a vanilla outlier distribution based on the outlier samples to the true OOD distribution by utilizing the OOD knowledge in the predicted OOD samples during inference. Further, to obtain a more reliable set of predicted OOD samples on long-tailed ID data, a novel dual-normalized energy loss is introduced in AdaptOD, which leverages class- and sample-wise normalized energy to enforce a more balanced prediction energy on imbalanced ID samples. This helps avoid bias toward the head samples and learn a substantially better vanilla outlier distribution than existing energy losses during training. It also eliminates the need of manually tuning the sensitive margin hyperparameters in energy losses. Empirical results on three popular benchmarks for OOD detection in LTR show the superior performance of AdaptOD over state-of-the-art methods. Code is available at https://github.com/mala-lab/AdaptOD.

View on arXivView PDF

Code Implementations(1)

mala-lab/AdaptODCommunity100%
Apache-2.0

Official implementation for "Long-Tailed Out-of-Distribution Detection via Normalized Outlier Distribution Adaptation" (NeurIPS'24)

81Shell, PythonOct 23, 20241 years agoApache-2.0
distribution-adaptationlong-tailed-recognitionout-of-distribution-detectionoutlier-exposure

Similar Papers

Cite this paper

@article{miao2026longtailed,
  title  = {Long-Tailed Out-of-Distribution Detection via Normalized Outlier Distribution Adaptation},
  author = {Wenjun Miao and Guansong Pang and Jingyi Zheng and Xiaolong Bai},
  year   = {2026},
  eprint = {2410.20807},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.20807},
  url    = {https://arxiv.org/abs/2410.20807},
  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/2410.20807.svg)](https://codeofpaper.com/paper/2410.20807)

Discussion