Understanding Softmax Confidence and Uncertainty
Tim Pearce, Alexandra Brintrup, Jun Zhu
TL;DR
This work analyzes why softmax confidence often correlates with epistemic uncertainty in standard OOD detection tasks and identifies two implicit biases that drive this behavior: (i) an approximately optimal final-layer decision boundary structure and (ii) a depth-enabled filtering of task-specific features. It formalizes the notion of a valid OOD region for common uncertainty estimators, and provides theoretical and empirical support for the role of boundary geometry and feature filtering in improving OOD detection. Diagnostics reveal that overlap between training and OOD representations in the final layer largely explains softmax failures, while pre-training or fine-tuning reduces this overlap and substantially improves reliability. The findings offer a practical reframing of softmax-based uncertainty, highlight the limits of low-dimensional intuition, and point to design strategies—such as promoting bijective or more diverse final-layer representations and leveraging pre-training—to enhance uncertainty estimation in real-world systems.
Abstract
It is often remarked that neural networks fail to increase their uncertainty when predicting on data far from the training distribution. Yet naively using softmax confidence as a proxy for uncertainty achieves modest success in tasks exclusively testing for this, e.g., out-of-distribution (OOD) detection. This paper investigates this contradiction, identifying two implicit biases that do encourage softmax confidence to correlate with epistemic uncertainty: 1) Approximately optimal decision boundary structure, and 2) Filtering effects of deep networks. It describes why low-dimensional intuitions about softmax confidence are misleading. Diagnostic experiments quantify reasons softmax confidence can fail, finding that extrapolations are less to blame than overlap between training and OOD data in final-layer representations. Pre-trained/fine-tuned networks reduce this overlap.
