Selective Classification via One-Sided Prediction

Aditya Gangrade, Anil Kag, Venkatesh Saligrama

Abstract

We propose a novel method for selective classification (SC), a problem which allows a classifier to abstain from predicting some instances, thus trading off accuracy against coverage (the fraction of instances predicted). In contrast to prior gating or confidence-set based work, our proposed method optimises a collection of class-wise decoupled one-sided empirical risks, and is in essence a method for explicitly finding the largest decision sets for each class that have few false positives. This one-sided prediction (OSP) based relaxation yields an SC scheme that attains near-optimal coverage in the practically relevant high target accuracy regime, and further admits efficient implementation, leading to a flexible and principled method for SC. We theoretically derive generalization bounds for SC and OSP, and empirically we show that our scheme strongly outperforms state of the art methods in coverage at small error levels.

Introduction

In high-stakes domains such as medical diagnosis or autonomous security, the cost of an incorrect prediction can be catastrophic. Selective Classification (SC) addresses this by enabling models to "abstain" from making a prediction when uncertainty is high, effectively trading off coverage (the proportion of samples classified) for higher accuracy.

The core challenge in SC is the "coupling" problem: the decision to reject a sample is intrinsically linked to the classifier's performance on the remaining data. Traditional approaches often utilize separate "gating" functions or complex surrogate losses, yet they frequently struggle to significantly outperform simple baselines, such as thresholding the softmax confidence of a standard model. This research introduces a new paradigm to overcome these limitations.

Methodology: Decoupling via One-Sided Prediction

The proposed method redefines SC through the lens of disjoint classification regions. Instead of a single global gate, the model defines regions $S_k$ for each class $k$.

Illustration of classification regions $S_1, S_2$ and the rejection region $\mathcal{R}$.

1. One-Sided Prediction (OSP) Relaxation

The authors relax the strict disjointness constraint during training, treating the problem as $K$ independent OSP tasks. For each class $k$, the goal is to identify the largest possible set $S_k$ while ensuring the false positive rate (predicting $k$ when the true label is not $k$) remains below a specified, minimal threshold.

2. Minimax Optimization and Architecture

To account for varying difficulty across classes, a minimax formulation is employed. A Lagrangian multiplier ($\mu$) balances the trade-off between overall error and coverage. The implementation utilizes a standard Deep Neural Network (DNN) backbone (e.g., ResNet-32) with a specialized training regime. This includes a "warm start" on standard cross-entropy followed by a two-timescale optimization process to stabilize the learning of the final classification layer relative to the shared backbone.

Key Insights

  • The Small Overlap Phenomenon: Theoretical analysis and empirical evidence suggest that at very low error rates, the optimal one-sided regions for different classes naturally exhibit minimal overlap. This justifies the OSP relaxation, as the "disjointness" constraint is nearly satisfied even when not explicitly enforced.
  • Adherence to Vapnik’s Principle: By focusing directly on decision sets rather than estimating full class probabilities, the method avoids solving a more general intermediate problem, leading to better statistical efficiency.
  • Consistent Rejection: The models demonstrate a hierarchical uncertainty property: samples rejected at a 2% error target are almost always rejected at a 1% target, indicating a meaningful internal representation of difficulty.

Empirical Results

The OSP-based method was evaluated against state-of-the-art (SOTA) techniques, including Softmax Response (SR), SelectiveNet (SN), and Deep Gamblers (DG), across benchmarks like CIFAR-10, SVHN-10, and Cats & Dogs.

Coverage vs. Error Rate comparison showing OSP-based method outperforming SR, Selective Net, and Deep Gamblers.

The OSP approach consistently provides superior coverage, particularly in the critical low-error regime:

  • CIFAR-10: At a 0.5% target error, OSP achieved 64.1% coverage, compared to 59.3% for the next best method (SR).
  • Cats & Dogs: At a 0.5% target error, OSP reached 78.7% coverage versus 73.2% for SR.
  • High Coverage Performance: Even at 95% coverage, OSP maintained lower error rates (e.g., 2.97% on Cats & Dogs vs. 3.46% for SR).

Conclusion

By decomposing selective classification into class-wise one-sided prediction tasks, this method breaks the performance plateau of previous SC techniques. It offers a principled, efficient, and high-performing solution for applications where maintaining a strict error budget is paramount. Future work may explore utilizing the "consistent rejection" property to develop efficient model cascades.

Summary updated

BibTeX
@inproceedings{gangrade2021selective,
  author = {Aditya Gangrade and Anil Kag and Venkatesh Saligrama},
  title = {{Selective Classification via One-Sided Prediction}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=QTgHn4SE2Pl},
}
Figure