GEN: Pushing the Limits of Softmax-Based Out-of-Distribution Detection

Xixi Liu, Yaroslava Lochman, C. Zach
2/14/2026

No official code found. Best implementation: XixiLiu95/GEN (19 stars, Apache-2.0, last commit 2024-09-25).

Abstract

Out-of-distribution (OOD) detection has been exten-sively studied in order to successfully deploy neural networks, in particular, for safety-critical applications. More-over, performing OOD detection on large-scale datasets is closer to reality, but is also more challenging. Sev-eral approaches need to either access the training data for score design or expose models to outliers during training. Some post-hoc methods are able to avoid the afore-mentioned constraints, but are less competitive. In this work, we propose Generalized ENtropy score (GEN), a simple but effective entropy-based score function, which can be applied to any pre-trained softmax-based classifier. Its performance is demonstrated on the large-scale ImageNet-lk OOD detection benchmark. It consistently improves the average AUROC across six commonly-used CNN-based and visual transformer classifiers over a num-ber of state-of-the-art post-hoc methods. The average AU- ROC improvement is at least 3.5%. Furthermore, we used GEN on top of feature-based enhancing methods as well as methods using training statistics to further improve the OOD detection performance. The code is available at: https://github.com/XixiLiu95/GEN.

DOISemantic Scholar

Code Implementations(1)

XixiLiu95/GENCommunity62%
Apache-2.0

Official repository for CVPR2023 publication, GEN: Pushing the Limits of Softmax-Based Out-of-Distribution Detection

192PythonMar 23, 20232 years agoApache-2.0

Cite this paper

@article{liu2026gen,
  title  = {GEN: Pushing the Limits of Softmax-Based Out-of-Distribution Detection},
  author = {Xixi Liu and Yaroslava Lochman and C. Zach},
  year   = {2026},
  doi    = {10.1109/CVPR52729.2023.02293},
  url    = {https://doi.org/10.1109/CVPR52729.2023.02293},
  journal = {CVPR 2023 2023}
}

Discussion