On discriminative learning of prediction uncertainty

Vojtech Franc, Daniel Prusa

Introduction

In high-stakes fields like medical diagnosis or autonomous driving, it is often safer for a classifier to say "I don't know" rather than making a risky guess. This paradigm is known as classification with a reject option (or selective classification). Historically, researchers have optimized rejection using two distinct frameworks:

  1. Cost-based models: Assigning a specific penalty (cost) for rejecting a sample.
  2. Bounded-improvement models: Maximizing the number of classified samples (coverage) while keeping the error rate (selective risk) below a strict threshold.

Both models typically require knowing the true probability of making an error (conditional risk), which is rarely available. Practitioners often rely on "plug-in" methods—like using the softmax output of a neural network—but these are frequently poorly calibrated, leading to sub-optimal rejection decisions. This paper bridges the gap between these two major frameworks, proving they share the same optimal strategies, and introduces a novel discriminative loss function that learns to rank samples by uncertainty without needing exact posterior probabilities.

Methodology: Ranking Over Estimation

The paper's first major contribution is a theoretical equivalence: the authors prove that cost-based and bounded-improvement models are essentially two sides of the same coin. The rejection threshold in the cost-based model directly maps to the target risk in the bounded-improvement model. Both share the same optimal strategy of thresholding the conditional risk.

Building on this, the authors introduce an order-enforcing loss function. The core insight is that you do not need to know if a sample has exactly a 12.5% chance of error to reject it optimally; you only need to know that it is more uncertain than the samples you choose to keep. If sample A is more likely to be misclassified than sample B, the uncertainty function $s(x)$ should reflect that ranking ($s(A) > s(B)$).

To achieve this, they define a discriminative loss $\Delta$ representing the area under the risk-coverage curve. Because the original loss involves a non-differentiable step function, they introduce a convex surrogate (proxy-loss) based on the hinge loss. This allows the uncertainty function to be trained directly using standard optimization tools like SGD or ADAM, specifically tuning it for the task of rejection rather than relying on side-effects of classification training.

Experiments and Key Results

The authors evaluated their approach on 10 benchmark classification datasets from the UCI repository and libSVM (including AVILA, COVTYPE, LETTER, and SHUTTLE), ranging from binary to 26-class problems. They compared their learned uncertainty functions against two strong baselines: a Logistic Regression (LR) plug-in rule and an SVM "max-score" rule.

Risk-coverage curves across 10 benchmark datasets

The results demonstrated consistent superiority of the learned uncertainty functions. Whether using linear, quadratic, or MLP features, the proposed method outperformed the baselines on all 10 datasets, achieving lower risk for any given coverage level.

Quantitative comparison of AUC and Selective Risk at 90% coverage

As seen in the quantitative results, the method achieved significant error reduction in terms of both Area Under the risk-coverage Curve (AUC) and selective risk at 90% coverage (R@90). For instance, on the AVILA dataset, the selective risk at 90% coverage dropped from ~41% (baseline) to ~37% with the learned uncertainty. Furthermore, the method proved flexible, working effectively regardless of whether the underlying classifier was probabilistic (LR) or non-probabilistic (SVM).

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Two-Stage Approach: The current method requires first training a classifier, fixing it, and then learning the uncertainty function. Learning both simultaneously could be more efficient but introduces complexity.
  • Computational Complexity: The loss function evaluates pairs of samples, which can be computationally expensive for very large mini-batches, though stochastic approximations help mitigate this.
  • Statistical Consistency: While the proxy-loss works well empirically, a formal proof of its statistical consistency (convergence to the true optimal ranking with infinite data) remains an area for future research.

Summary updated

BibTeX
@inproceedings{franc2019discriminative,
  author = {Vojtech Franc and Daniel Prusa},
  title = {{On discriminative learning of prediction uncertainty}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure