LHAct: Rectifying Extremely Low and High Activations for Out-of-Distribution Detection
Yue Yuan, Rundong He, Zhongyi Han, Yilong Yin
Abstract
In recent years, out-of-distribution (OOD) detection has emerged as a crucial research area, especially when deploying AI products in real-world scenarios. OOD detection researchers have made significant efforts to mitigate the adverse effects of abnormal activation values (abbr. activations) that refer to the outputs of the activation function acted on feature maps. Since abnormal activations would cause difficulty in separating ID and OOD data, the previous unified solution is to rectify the extremely high abnormal activations by clipping them with a pre-defined threshold or filtering them with a low-pass filter. However, it ignores the extremely low abnormal activations, and the proposed rectification strategy is always suboptimal because the used rectification function is non-convergence or high-intensity convergence, leading to under-rectification or over-rectification. In this paper, we propose an approach called Rectifying Extremely Low and High Activations (LHAct). LHAct includes a newly-designed function to rectify the extremely low and high activations at the same time. Specifically, LHAct increases the difference of means between ID and OOD activation distributions while decreasing their variances after processing the original activations. Our theoretical analyses demonstrate that LHAct significantly enhances the separability of ID and OOD data. By conducting extensive experiments, we demonstrate that LHAct surpasses previous activation-based methods significantly and generalizes well to other architectures and OOD scores. Code is available at: https://github.com/ystyuan/LHAct.git.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 5225cf75-7661-40dd-9fb3-411a8f3f6049Cited by top-tier papers5
- CORES: Convolutional Response-based Score for Out-of-distribution DetectionKeke Tang, Chao Hou, Weilong Peng, Runnan Chen et al.CVPR 2024 · 15 citations
- Discriminability-Driven Channel Selection for Out-of-Distribution DetectionYue Yuan, Rundong He, Yicong Dong, Zhongyi Han et al.CVPR 2024 · 7 citations
- TagOOD: A Novel Approach to Out-of-Distribution Detection via Vision-Language Representations and Class Center LearningJinglun Li, Xinyu Zhou, Kaixun Jiang, Lingyi Hong et al.ACM MM 2024 · 1 citation
- Simplification Is All You Need against Out-of-Distribution OverconfidenceKeke Tang, Chao Hou, Weilong Peng, Xiang Fang et al.CVPR 2025
- H2ST: Hierarchical Two-Sample Tests for Continual Out-of-Distribution DetectionYuhang Liu, Wenjie Zhao, Yunhui GuoCVPR 2025
Related papers
- VRA: Variational Rectified Activation for Out-of-distribution DetectionMingyu Xu, Zheng Lian, Bin Liu, Jianhua TaoNeurIPS 2023 · 20 citations
- ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
- Scaling for Training Time and Post-hoc Out-of-distribution Detection EnhancementKai Xu, Rongyu Chen, Gianni Franchi, Angela YaoICLR 2024 · 81 citations
- Activation Subspaces for Out-of-Distribution DetectionBaris Zöngür, Robin Hesse, Stefan RothICCV 2025 · 2 citations
- Activation Shape Matters: OOD Detection with Norm-Entropy FusionJiawei Gu, Ziyue Qiao, Zechao LiACM MM 2025 · 2 citations
