Ensemble Selective Classification

Sinian Zhang, Chongwei Chen, Guanchen Li, Ju SunNeurIPS 2026

TL;DR

Knowing when to say "I don't know" is crucial for reliable AI, yet no single off-the-shelf confidence score works reliably across different models, datasets, and real-world shifts. Instead of inventing yet another hand-crafted confidence metric, this paper introduces the first post-hoc ensemble framework that learns to combine existing confidence scores using a tiny calibration dataset. It gives you a lightweight, plug-and-play "wisdom of the crowd" abstention mechanism without ever touching or retraining your black-box model.

What Problem Does This Paper Address?

Selective classification (SC) lets a model abstain from making a prediction when it’s likely to be wrong, trading off coverage (how often it answers) for reliability (accuracy when it does answer). In the real world, we usually need post-hoc SC: our base model is already trained, frozen, or locked behind an API, and we just examine its outputs (like logits or intermediate features) to estimate confidence.

Over the years, researchers have invented dozens of hand-crafted post-hoc confidence scorers—maximum softmax probability, logit margins, energy scores, nearest-neighbor distances, and more. The catch? There is no universal winner. A scorer that shines on clean ImageNet might fail miserably when deployment data shifts or corrupts. Relying on a single static heuristic makes real-world deployments brittle.

Table 1: Overview of the ten post-hoc confidence-score baselines. Hyperparameter settings are provided in App. C.

Methods

Instead of searching for one magic formula, the authors combine $T$ existing base scorers (specifically, the 10 diverse baselines shown above) using a small labeled calibration set ($N \approx 1000$ examples) drawn from the deployment distribution. They label each calibration point by whether the frozen base classifier got it right or wrong, turning confidence estimation into a binary correctness-prediction problem.

Here is how the pipeline works:

  1. Robust Normalization: Because raw scores live on wildly different scales, each scorer is normalized into $(0, 1)$ using its median and median absolute deviation (MAD), preserving sample rankings while taming outliers.
  2. Selector Combination (SLR): Simply taking a weighted sum of normalized scores (SCR) can still suffer if different scorers have skewed distributions. The authors' primary model, SLR, instead learns an adaptive threshold $\gamma_t$ for each scorer and combines their binary votes: $\sum \omega_t \text{sign}(s_t(x) - \gamma_t)$ (smoothed with $\tanh$ during training). Think of it as a lightweight boosting model made of decision stumps.
  3. SoftRank-AURC Objective: Standard classification losses (like cross-entropy) don't optimize what SC actually cares about: the Area Under the Risk-Coverage Curve (AURC), where lower means fewer errors across all coverage levels. Starting from a rank-based formulation of AURC, the authors smooth out non-differentiable step functions using sigmoids to create SoftRank-AURC, a smooth plug-in loss optimized directly via L-BFGS. (They also test an existing pairwise surrogate loss called SELE over the same ensemble family.)

Datasets

No new benchmarks are introduced; instead, the authors stress-test their framework across existing datasets spanning clean data, synthetic corruptions, natural covariate shifts, label shifts, and biomedical tasks:

  • 13 Vision Datasets: ImageNet, ImageNet-O, OpenImage-O, CIFAR-10, CIFAR-10-C, CIFAR-100, iWildCam (ID and OOD splits), Rendered-SST2, Caltech101, PatchCamelyon, EyePACS, and NIH-CXR-LT.
  • 2 NLP Datasets: ADE-Corpus-V2 (adverse drug events) and Amazon Reviews.
  • 4 LLM Multiple-Choice Benchmarks: MMLU, MMLU-Pro, HellaSwag, and ARC-Easy, evaluated using candidate-option logits from frozen Mistral-7B-v0.1 and Qwen2.5-7B models.

Key Insights and Ideas

  • Thresholding beats raw averaging: By giving each base scorer its own learnable threshold before combining them, SLR cancels out quirky distribution differences across heterogeneous metrics (e.g., mixing an unbounded energy score with a bounded softmax probability).
  • Less is more for data efficiency: Why not just train a Multi-Layer Perceptron (MLP) directly on the raw logits? An MLP requires $O(K^2)$ parameters for $K$ classes, easily overfitting on small calibration sets when $K$ is large (like ImageNet's 1,000 classes). SLR only learns $2T$ parameters (20 numbers for 10 scorers!), Theoretical bounds confirm error scales at $\tilde{O}(\sqrt{T/N})$, meaning a few hundred calibration samples are plenty.
  • Direct metric optimization matters: Training ensembles directly on smooth AURC approximations ensures the model focuses specifically on pushing incorrect predictions down the confidence ranking, protecting high-reliability regions.

Key Results

Across the 15 vision and NLP tasks, the learned ensembles achieve the best or tied-best AURC on 10 out of 15 datasets, shining brightest under distribution shift. For example, on OpenImage-O, AURC-SLR drops AURC ($\times 100$, lower is better) to 11.07, compared to 12.02 (RL_max) and 12.39 (SIRC). On Caltech101, it reaches 0.68, beating the best individual score (SR_ent at 0.98) and the logit-trained AURC-MLP (3.41).

Table 2: AURC performance (×100) across 15 datasets. Blue-background rows are our methods. Green text marks best or tied-best scores, and Blue text marks second-best or tied second-best scores, both at displayed precision. Abbreviations: AMZ = Amazon, CAL = Caltech101, C10/C1C/C100 = CIFAR-10/CIFAR-10-C/CIFAR-100, EYE = EyePACS, IMN/INO = ImageNet/ImageNet-O, WID/- WOD = iWildCam-ID/OOD, OIO = OpenImage-O, NIH = NIH-CXR-LT, PCM = PatchCamelyon, SST = Rendered-SST2.

On LLM multiple-choice tasks, the learned ensembles achieve the best or tied-best AURC on all 8 benchmark-model pairs. While absolute gains over rescaled logit baselines are modest, the ensembles effortlessly ignore poorly performing metrics (like ViM and KNN, which spike above 55–78 AURC on Mistral) without manual intervention. Ablations on ADE-Corpus-V2 further show performance saturating quickly after just a few hundred calibration samples.

Limitations and Future Work

  • Garbage in, garbage out: Because the base classifier is strictly frozen, the ensemble can only re-rank predictions; it cannot fix systematic model errors if none of the base scorers pick up on a failure signal.
  • Calibration dependency: The method requires labeled samples from the deployment distribution. If the real-world environment drifts again later, the weights and thresholds will need recalibration.
  • Quadratic training cost: SoftRank-AURC computes pairwise comparisons across the calibration batch, scaling as $O(N^2)$. While fast for $N=1000$, scaling to massive calibration sets will require future approximations.

Summary updated

Abstract

Selective classification (SC) improves model reliability by allowing a classifier to abstain on potentially wrong predictions. In the practical post-hoc setting, where the base classifier is fixed and often accessed as a black box, many confidence scores have been proposed, yet no single score is consistently best across models, datasets, and deployment shifts. We address this limitation by proposing, to our knowledge, the first ensemble framework for post-hoc SC, which learns to combine a diverse set of existing confidence scores using a small labeled calibration set drawn from the deployment distribution. We cast this problem as learning to separate correct from incorrect predictions of the base classifier, and train the ensemble selector with SoftRank-AURC, a differentiable soft-rank plug-in objective for the area under the risk-coverage curve (AURC), the standard evaluation metric for SC. We also study the SElective classifier LEarning (SELE) loss as an alternative training objective. For SoftRank-AURC, our analysis suggests that the learned ensemble may be competitive with a strong individual scorer, up to estimation error and smoothing bias. Across 15 image and NLP classification tasks, with additional LLM multiple-choice experiments, the proposed method is consistently strong and often outperforms the best individual score, particularly under distribution shift, establishing ensemble post-hoc SC as a simple and effective way to improve reliability without retraining the base classifier.
BibTeX
@inproceedings{zhang2026ensemble,
  author = {Sinian Zhang and Chongwei Chen and Guanchen Li and Ju Sun},
  title = {{Ensemble Selective Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Qqq3JkX68b},
}
Figure