Skip to main content

METHODS article

Front. Big Data
Sec. Data Mining and Management
Volume 7 - 2024 | doi: 10.3389/fdata.2024.1444634

Efficient Out-of-Distribution Detection via Layer-Adaptive Scoring and Early Stopping

Provisionally accepted
  • 1 The University of Texas at Dallas, Richardson, United States
  • 2 Baylor University, Waco, Texas, United States

The final, formatted version of the article will be published soon.

    Multi-layer aggregation is key to the success of out-of-distribution (OOD) detection in deep neural networks. Moreover, in real-time systems, the efficiency of OOD detection is equally important as its effectiveness.We propose a novel early stopping OOD detection framework for deep neural networks. By attaching multiple OOD detectors to the intermediate layers, this framework can detect OODs early to save computational cost. Additionally, through a layer-adaptive scoring function, it can adaptively select the optimal layer for each OOD based on its complexity, thereby improving OOD detection accuracy.Extensive experiments demonstrate that our proposed framework is robust against OODs of varying complexity. Adopting the early stopping strategy can increase OOD detection efficiency by up to 99.1% while maintaining superior accuracy.Discussion: OODs of varying complexity are better detected at different layers. Leveraging the intrinsic characteristics of inputs encoded in the intermediate latent space is important for achieving high OOD detection accuracy. Our proposed framework, incorporating early stopping, significantly enhances OOD detection efficiency without compromising accuracy, making it practical for real-time applications.

    Keywords: Out-of-Distribution Detection, Early stopping, Layer-Adaptive, deep neural networks, One-class support vector machine

    Received: 06 Jun 2024; Accepted: 25 Oct 2024.

    Copyright: © 2024 Wang, Zhao and Chen. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence: Haoliang Wang, The University of Texas at Dallas, Richardson, United States

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.