SLOVA: Uncertainty Estimation Using Single Label One-Vs-All Classifier

Bartosz Wójcik, Jacek Grela, Marek Smieja, Krzysztof Misztal, Jacek Tabor · DOI

Abstract

Deep neural networks are frequently prone to overconfidence, often assigning high probabilities to incorrect or out-of-distribution (OOD) samples. This behavior stems largely from the standard softmax function, which is designed to rank classes rather than provide absolute confidence measures. This paper introduces SLOVA (Single Label One-Vs-All), a post-hoc method that transforms standard One-Vs-All (OVA) classifiers into reliable uncertainty estimators. By redefining confidence to require that exactly one class is likely while all others are negligible, SLOVA provides state-of-the-art calibration and OOD detection with minimal computational overhead.

Introduction

Modern deep learning models are often described as "overconfident liars." When presented with data they have never encountered—such as samples from a different distribution—they typically assign a high probability to a random class. This occurs because the softmax function forces probabilities to sum to one, effectively hiding ambiguity and preventing the model from signaling "none of the above."

While One-Vs-All (OVA) classifiers, where each class has its own independent detector, are theoretically better suited for uncertainty, they still struggle with overconfidence when multiple classes appear plausible. SLOVA bridges this gap by creating a model that is robust to dataset shifts, accurately calibrated to its own performance, and capable of identifying OOD samples without the massive computational costs associated with Ensembles or Bayesian methods.

Methodology

The SLOVA approach introduces two primary innovations to the classification pipeline:

1. The SLOVA Confidence Score

Instead of simply selecting the maximum probability among independent classifiers, SLOVA calculates the joint probability that a specific class $k$ is "on" and all other classes are "off."

Mathematically, the score is defined as: $P_{SLOVA}(k|x) = p(k|x) \prod_{j \neq k} (1 - p(j|x))$

This product ensures that high confidence is only achieved if there is a single, clear winner. If multiple classes show high probability, the product of the $(1-p)$ terms will drop significantly, causing the overall confidence score to collapse and reflecting the model's internal confusion.

2. Exponential Calibration

Multiplying numerous probabilities tends to cause scores to drift toward zero, particularly as the number of classes increases. To counteract this, the authors implement a novel calibration step using a parametric transformation consisting of a sum of power functions: $p_k = \sum \beta_i \hat{p}_k^{\alpha_i}$. This "inverts" the multiplicative drift, aligning the model's confidence scores with its actual empirical accuracy.

As a post-hoc method, SLOVA can be applied to any pre-trained OVA model at test time without requiring changes to the core architecture or additional training cycles.

Experimental Setup

The researchers evaluated SLOVA across several rigorous benchmarks to test both accuracy and reliability:

  • In-Distribution Performance: Tested on CIFAR-10, CIFAR-100, and SVHN.
  • Dataset Shift: Evaluated using CIFAR-10-C, which applies 16 types of distortions (e.g., blur, noise, weather) at varying intensity levels to test robustness.
  • Out-of-Distribution (OOD) Detection: Models trained on one dataset (e.g., SVHN) were exposed to "alien" data from LSUN or ImageNet to determine if they could correctly assign low confidence to unknown inputs.

Key Insights and Results

The Power of "And"

By requiring the absence of other classes in the confidence calculation, SLOVA gains a theoretical advantage. The paper provides a guarantee (Theorem 3.1) that the model will return low confidence for samples located far from the training data distribution. This reinforces the idea that softmax is a ranking tool, whereas SLOVA acts as a true confidence tool.

Performance and Robustness

  • OOD Detection: SLOVA outperformed standard softmax and specialized detectors like ReAct in 9 out of 12 OOD test cases.
  • Calibration under Stress: On the corrupted CIFAR-10-C dataset, SLOVA’s Expected Calibration Error (ECE) remained consistently low. While other models became wildly overconfident as image quality degraded, SLOVA remained "honest" about its decreasing accuracy.
  • Efficiency: SLOVA performs comparably to Deep Ensembles (which require training 5-10 separate models) but requires only a single model, making it significantly more computationally efficient.

Limitations and Future Work

Despite its strengths, SLOVA faces challenges in extreme classification scenarios. In tasks involving thousands of classes (such as full ImageNet), the product of many $(1-p)$ terms may lead to numerical instability. The authors suggest that projecting class vectors to lower dimensions could mitigate this issue.

Additionally, because SLOVA requires an OVA-trained model, users cannot simply apply it to the many pre-trained Softmax models available online; retraining is necessary. Future research will explore the application of SLOVA in active learning and semi-supervised learning environments, where precise uncertainty estimation is critical for data selection.

Conclusion

SLOVA offers a simple yet mathematically grounded solution to the problem of neural network overconfidence. By shifting the focus from class ranking to the joint probability of class presence and absence, it provides a robust framework for uncertainty estimation that excels in OOD detection and maintains calibration even under significant dataset shift.

Summary updated

BibTeX
@article{wojcik2022slova,
  author = {Bartosz Wójcik and Jacek Grela and Marek Smieja and Krzysztof Misztal and Jacek Tabor},
  title = {{SLOVA: Uncertainty Estimation Using Single Label One-Vs-All Classifier}},
  journal = {Applied Soft Computing},
  year = {2022},
  doi = {10.1016/j.asoc.2022.109219},
}
Figure