Affiliations 

  • 1 Dongguan University of Technology, Songshan Lake, Dongguan, Guangdong, 523808, China; University of Nottingham Malaysia, Semenyih, Jalan Broga, Selangor, 43500, Malaysia
  • 2 Sun Yet-set University, Higher Education Mega Center, Guangzhou, Guangdong, 510006, China
  • 3 Dongguan University of Technology, Songshan Lake, Dongguan, Guangdong, 523808, China. Electronic address: likuan@dgut.edu.cn
  • 4 University of Nottingham Malaysia, Semenyih, Jalan Broga, Selangor, 43500, Malaysia
  • 5 Dongguan University of Technology, Songshan Lake, Dongguan, Guangdong, 523808, China
Neural Netw, 2027 Feb;206(Pt A):109754.
PMID: 42906426 DOI: 10.1016/j.neunet.2026.109754

Abstract

Out-of-distribution (OOD) detection is essential for ensuring the reliability and safety of machine learning systems in open-world scenarios. Most existing methods rely on global representations of the entire image to determine whether a sample is OOD, assuming that the most informative features are uniformly distributed or sufficiently captured at a coarse spatial level. A common yet underexplored failure case arises when in-distribution (ID) images contain small foreground objects and large background regions, which often leads to high false positive rates (FPRs) across various visual recognition models. We attribute this issue to inherent spatial biases, scale sensitivity, and limitations in global feature extraction that limit clear foreground-background separation. To tackle this challenge, we propose a simple yet effective selection-then-calculation strategy, which generates multiple randomly local views of an input image and selects the one with the lowest predictive entropy for final OOD scoring. This process implicitly emphasizes salient foreground regions while suppressing irrelevant background noise, thereby improving the ability to distinguish between ID and OOD inputs. Our method is model-agnostic and can be seamlessly integrated into existing OOD detection pipelines as a plug-and-play component. Experiments demonstrate consistent improvements in OOD detection performance across various architectures.

* Title and MeSH Headings from MEDLINE®/PubMed®, a database of the U.S. National Library of Medicine.