Catalyst: Out-of-Distribution Detection via Elastic Scaling
Abid Hassan, Tuan Ngo, Saad Shafiq, Nenad Medvidovic
TL;DR
Catalyst addresses the limitations of relying solely on penultimate GAP features for OOD detection by exploiting raw channel-wise statistics from the pre-pooling activation maps. It computes an input-dependent scaling γ from per-channel statistics (mean, std, max) with clipping, and elastically scales a baseline score, primarily via multiplicative fusion, to enlarge the ID–OOD separation. The approach is plug-and-play, improving a wide range of baselines (Energy, ReAct, DICE, ASH, SCALE, and KNN) without retraining and with negligible computational overhead. Across CIFAR and ImageNet, Catalyst demonstrates substantial, consistent improvements in FPR95 and AUROC, and ablations validate the design choices, including layer choice and the fusion strategy. The work highlights the untapped value of pre-pooling statistics for robust OOD detection and outlines avenues for extending the framework to transformer-based architectures.
Abstract
Out-of-distribution (OOD) detection is critical for the safe deployment of deep neural networks. State-of-the-art post-hoc methods typically derive OOD scores from the output logits or penultimate feature vector obtained via global average pooling (GAP). We contend that this exclusive reliance on the logit or feature vector discards a rich, complementary signal: the raw channel-wise statistics of the pre-pooling feature map lost in GAP. In this paper, we introduce Catalyst, a post-hoc framework that exploits these under-explored signals. Catalyst computes an input-dependent scaling factor ($γ$) on-the-fly from these raw statistics (e.g., mean, standard deviation, and maximum activation). This $γ$ is then fused with the existing baseline score, multiplicatively modulating it -- an ``elastic scaling'' -- to push the ID and OOD distributions further apart. We demonstrate Catalyst is a generalizable framework: it seamlessly integrates with logit-based methods (e.g., Energy, ReAct, SCALE) and also provides a significant boost to distance-based detectors like KNN. As a result, Catalyst achieves substantial and consistent performance gains, reducing the average False Positive Rate by 32.87 on CIFAR-10 (ResNet-18), 27.94% on CIFAR-100 (ResNet-18), and 22.25% on ImageNet (ResNet-50). Our results highlight the untapped potential of pre-pooling statistics and demonstrate that Catalyst is complementary to existing OOD detection approaches.
