Exploring feature sparsity for out-of-distribution detection
- PMID: 39558072
- PMCID: PMC11574038
- DOI: 10.1038/s41598-024-79934-7
Exploring feature sparsity for out-of-distribution detection
Abstract
Out-of-distribution (OOD) detection is a crucial problem in practice, especially, for the safe deployment of machine learning models in industrial settings. Previous work has used free energy as a score function and proposed a fine-tuning method that utilized OOD data in the training phase of the classification model, which achieves a higher performance on the OOD detection task compared with traditional methods. One key drawback, however, is that the loss function parameters are highly dependent on involved datasets, which means it cannot be dynamically adapted and implemented in others settings; in other words, the general ability of the energy score is considerably limited. In this work, our point of departure is to enlarge distinguishability between in-distribution features and OOD data. Consequently, we present a simple yet effective sparsity-regularized (SR) tuning framework for this purpose. Our framework has two types of workflows depending on if external OOD data is available, the complexity of the original training loss is sharply reduced by adopting this modification, meanwhile, the adapted ability and detection performance are enhanced. Also, we contribute a mini dataset as a light and efficient alternative of the previous large-scale one. In the experiments, we verify the effectiveness of our framework in a wide range of typical datasets along with common network architectures.
© 2024. The Author(s).
Conflict of interest statement
Figures





References
-
- He, K., Zhang, X., Ren, S. & Sun, J. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision 1026–1034 (2015).
-
- Hu, Y. et al. Planning-oriented autonomous driving. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR) 17853–17862 (2023).
Grants and funding
- 20221800905182/Dongguan Science and Technology of Social Development Program
- 20231800940522/Dongguan Science and Technology of Social Development Program
- 20231800936132/Dongguan Science and Technology of Social Development Program
- 62206054/National Natural Science Foundation of China (National Science Foundation of China)
- 2022YFF0606303/National Key Research and Development Program of China
LinkOut - more resources
Full Text Sources
Research Materials