[Paper Review] Revisiting One-vs-All Classifiers for Predictive Uncertainty and Out-of-Distribution Detection in Neural Networks
This paper proposes a one-vs-all (OVA) classifier formulation and distance-based logits to improve predictive uncertainty estimation and out-of-distribution (OOD) detection in neural networks. By replacing standard softmax with OVA normalization and using negative Euclidean distance as logits, the model naturally captures 'none of the above' predictions, achieving better calibration and OOD detection without added training or inference cost, outperforming standard cross-entropy and existing methods on CIFAR and ImageNet benchmarks.
Accurate estimation of predictive uncertainty in modern neural networks is critical to achieve well calibrated predictions and detect out-of-distribution (OOD) inputs. The most promising approaches have been predominantly focused on improving model uncertainty (e.g. deep ensembles and Bayesian neural networks) and post-processing techniques for OOD detection (e.g. ODIN and Mahalanobis distance). However, there has been relatively little investigation into how the parametrization of the probabilities in discriminative classifiers affects the uncertainty estimates, and the dominant method, softmax cross-entropy, results in misleadingly high confidences on OOD data and under covariate shift. We investigate alternative ways of formulating probabilities using (1) a one-vs-all formulation to capture the notion of "none of the above", and (2) a distance-based logit representation to encode uncertainty as a function of distance to the training manifold. We show that one-vs-all formulations can improve calibration on image classification tasks, while matching the predictive performance of softmax without incurring any additional training or test-time complexity.
Motivation & Objective
- To address the poor calibration and overconfidence of standard softmax classifiers on out-of-distribution (OOD) inputs.
- To investigate how the parametrization of probability distributions affects predictive uncertainty estimation in discriminative models.
- To propose a simple, efficient alternative to softmax that enables natural OOD detection via 'none of the above' predictions.
- To evaluate whether distance-based logits improve uncertainty quantification under dataset shift and distributional shift.
- To demonstrate that the proposed method achieves state-of-the-art OOD detection and calibration with no increase in training or inference complexity.
Proposed method
- Replaces standard softmax cross-entropy with a one-vs-all (OVA) normalization scheme that does not force all inputs to assign probability to one of K classes.
- Uses negative Euclidean distance between input embeddings and class weights as logits: $ z_k = -\| f_\theta(x) - w_k \| $.
- Applies softmax to the distance-based logits to produce class probabilities, enabling natural uncertainty estimation for OOD inputs.
- Trains models using cross-entropy loss on the OVA-probability distribution, maintaining the same training and inference complexity as standard models.
- Combines OVA with distance-based logits (OVA-DM) to further improve uncertainty calibration and OOD detection.
- Employs standard neural network architectures (e.g., Wide ResNet, ResNet-50, BERT-Mini) with minimal architectural changes.
Experimental results
Research questions
- RQ1Does replacing standard softmax with a one-vs-all normalization improve model calibration on in-distribution and OOD data?
- RQ2Can distance-based logits that encode proximity to the training manifold enhance uncertainty estimation under dataset shift?
- RQ3Does the OVA formulation with distance-based logits outperform standard cross-entropy and existing OOD detection methods like ODIN and Mahalanobis distance?
- RQ4Can improved uncertainty estimation be achieved without increasing training or inference cost?
- RQ5How does the OVA approach perform across diverse benchmarks, including image and text classification tasks?
Key findings
- The one-vs-all (OVA) loss achieved higher calibration error reduction than standard cross-entropy on CIFAR-10, CIFAR-100, and ImageNet, with AUROC scores of 0.8934 and 0.8019 on OOD detection tasks.
- The OVA-DM (distance-based logits with OVA) formulation achieved the best AUROC of 0.8940 on CIFAR-10 vs. CIFAR-100 OOD detection, outperforming standard cross-entropy and ODIN.
- On the ImageNet dataset, the OVA loss achieved an AUROC of 0.8003 and AUPRC of 0.7587 on CIFAR-100 OOD detection, significantly outperforming baseline methods.
- The OVA method maintained predictive performance comparable to standard softmax while improving uncertainty calibration and OOD detection without additional training or inference cost.
- On the CLINC intent classification benchmark, the OVA method achieved a 0.8259 AUROC for OOD detection, outperforming baseline models.
- The OVA formulation effectively reduced overconfidence on OOD inputs, with model confidence dropping significantly on out-of-distribution samples, especially when combined with distance-based logits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.