AdaSCALE: Adaptive Scaling for OOD Detection

Sudarshan Regmi
3/11/2025
11 citations
cs.CV

Official code: sudarshanregmi/AdaSCALE (6 stars, Python, MIT, last commit 2026-05-02).

Abstract

The ability of the deep learning model to recognize when a sample falls outside its learned distribution is critical for safe and reliable deployment. Recent state-of-the-art out-of-distribution (OOD) detection methods leverage activation shaping to improve the separation between in-distribution (ID) and OOD inputs.

Show full abstract

These approaches resort to sample-specific scaling but apply a static percentile threshold across all samples regardless of their nature, resulting in suboptimal ID-OOD separability. In this work, we propose \textbf{AdaSCALE}, an adaptive scaling procedure that dynamically adjusts the percentile threshold based on a sample's estimated OOD likelihood. This estimation leverages our key observation: OOD samples exhibit significantly more pronounced activation shifts at high-magnitude activations under minor perturbation compared to ID samples. AdaSCALE enables stronger scaling for likely ID samples and weaker scaling for likely OOD samples, yielding highly separable energy scores. Our approach achieves state-of-the-art OOD detection performance, outperforming the latest rival OptFS by 14.94% in near-OOD and 21.67% in far-OOD datasets in average FPR@95 metric on the ImageNet-1k benchmark across eight diverse architectures. The code is available at: https://github.com/sudarshanregmi/AdaSCALE/

View on arXivView PDF

Code Implementations(1)

MIT

Official code for ICML'26: "AdaSCALE: Adaptive Scaling for OOD Detection"

61Python, ShellMar 8, 20257 months agoMIT
confidence-based-ood-detectionnovelty-detectionood-detectionout-of-distribution-detectionoutlier-detection

Similar Papers

Cite this paper

@article{regmi2025adascale,
  title  = {AdaSCALE: Adaptive Scaling for OOD Detection},
  author = {Sudarshan Regmi},
  year   = {2025},
  eprint = {2503.08023},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08023v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08023.svg)](https://codeofpaper.com/paper/2503.08023)

Discussion