Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Out of Distribution Detection with Neural Network Anchoring

Software ·
DOI:https://doi.org/10.11578/dc.20220907.10· OSTI ID:code-80817 · Code ID:80817
This is code to reproduce and build on OOD detection from the paper "Out of Distribution Detection with Neural Network Anchoring". Our goal here is to exploit heteroscedastic temperature scaling as a calibration strategy for out of distribution (OOD) detection. Heteroscedasticity here refers to the fact that the optimal temperature parameter for each sample can be different, as opposed to conventional approaches that use the same value for the entire distribution. To enable this, we propose a new training strategy called anchoring that can estimate appropriate temperature values for each sample, leading to state-of-the-art OOD detection performance across several benchmarks. Using NTK theory, we show that this temperature function estimate is closely linked to the epistemic uncertainty of the classifier, which explains its behavior. In contrast to some of the best-performing OOD detection approaches, our method does not require exposure to additional outlier datasets, custom calibration objectives, or model ensembling. Through empirical studies with different OOD detection settings - far OOD, near OOD, and semantically coherent OOD - we establish a highly effective OOD detection approach.
Short Name / Acronym:
AMP
Site Accession Number:
LLNL-CODE-838619
Software Type:
Scientific
License(s):
GNU General Public License v2.0
Research Organization:
Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)
Sponsoring Organization:
USDOE National Nuclear Security Administration (NNSA)

Primary Award/Contract Number:
AC52-07NA27344
DOE Contract Number:
AC52-07NA27344
Code ID:
80817
OSTI ID:
code-80817
Country of Origin:
United States

Similar Records

PI3NN: Out-of-distribution-aware Prediction Intervals from Three Neural Networks
Conference · Fri Apr 01 00:00:00 EDT 2022 · OSTI ID:1871879

Deep neural network uncertainty quantification for LArTPC reconstruction
Journal Article · Wed Dec 20 19:00:00 EST 2023 · Journal of Instrumentation · OSTI ID:2326991

Out-of-distribution detection with non-parametric density estimation for models predicting processing history of uranium ore concentrates
Journal Article · Tue Aug 05 20:00:00 EDT 2025 · Computational Materials Science · OSTI ID:2997126

Related Subjects