NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Out-of-Distribution Detection & Applications With Ablated Learned Temperature Energy

Will LeVine, Benjamin Pikus, Jacob Phillips, Berk Norman, Fernando Amat Gil, Sean Hendryx · DOI

Abstract

Deep neural networks often exhibit dangerous overconfidence when encountering Out-of-Distribution (OOD) data. We present AbeT (Ablated Learned Temperature Energy), a simple yet effective architectural modification that replaces fixed temperature scalars with learned, input-dependent ones. By "ablating" a specific constant in the energy score calculation, AbeT achieves a 43.43% reduction in False Positive Rate (FPR@95) across classification tasks without requiring complex hyperparameters or multi-stage training.

Introduction

In safety-critical applications like autonomous driving or medical diagnosis, a model's ability to identify "unknown" inputs is as crucial as its predictive accuracy. Standard neural networks tend to assign high-confidence labels to OOD samples rather than signaling uncertainty. Existing solutions often rely on computationally expensive test-time backward passes or require fine-tuning on auxiliary OOD datasets. AbeT addresses these challenges by providing a "plug-and-play" uncertainty metric that integrates directly into the model's architecture with negligible overhead.

The AbeT Method: Ablating for Separability

The core innovation of AbeT lies in the refinement of energy-based OOD detection. Traditional energy scores use a fixed temperature. AbeT instead employs a learned temperature function $T(x)$, which predicts an optimal temperature for each specific input.

The authors discovered that when a learned temperature is used, the standard energy formula contains a "Forefront Temperature Constant" (a multiplier outside the log-sum-exp) that actually degrades the model's ability to separate In-Distribution (ID) and OOD samples. By ablating (removing) this constant, the resulting AbeT score significantly enhances the margin between ID and OOD distributions.

Figure 1: Comparison of score distributions. Ablating the forefront temperature constant (left) yields superior AUROC (0.96) compared to using the full energy score with learned temperature (middle, 0.79).

The final score is defined as: $$\text{AbeT}(x) = -\log \sum_{c=1}^{C} e^{L_c(x) / T_{learned}(x)}$$ This modification requires minimal code changes and adds negligible parameter overhead—only about 64 parameters for a ResNet-20, with a mere 1% increase in inference time.

Experimental Evaluation

AbeT was evaluated across classification, semantic segmentation, and object detection tasks. In classification benchmarks using CIFAR and ImageNet-1k, AbeT consistently outperformed established baselines like MSP, ODIN, and standard Energy scores.

Figure 6: Performance comparison on CIFAR and ImageNet-1k. AbeT and its variants (AbeT + ASH/DICE) achieve the lowest FPR@95 and highest AUROC across most benchmarks.

Beyond classification, AbeT demonstrated significant gains in complex vision tasks:

  • Semantic Segmentation: A 41.48% decrease in FPR@95 on the RoadAnomaly and LostAndFound datasets, effectively identifying unexpected road hazards.
  • Object Detection: A 5.15% increase in AUROC for identifying OOD bounding boxes when trained on PASCAL VOC and tested against COCO.

Discussion and Future Work

The success of AbeT is hypothesized to stem from the learned temperature's ability to "deflate" confidence on difficult ID samples. Because OOD samples share similar "difficulty" characteristics, the model naturally assigns them higher uncertainty scores.

A notable limitation is the method's reliance on training errors; if a model overfits perfectly to simple training data (e.g., MNIST), the temperature function lacks the necessary "failure cases" to learn robust uncertainty. Future research will explore applying AbeT to Large Language Models (LLMs) for hallucination detection and combining it with Outlier Exposure for further performance gains.

Summary updated

BibTeX
@misc{levine2024out,
  author = {Will LeVine and Benjamin Pikus and Jacob Phillips and Berk Norman and Fernando Amat Gil and Sean Hendryx},
  title = {{Out-of-Distribution Detection \& Applications With Ablated Learned Temperature Energy}},
  year = {2024},
  eprint = {2401.12129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.12129},
}
Figure