Selective Ensembles for Consistent Predictions

Emily Black, Klas Leino, Matt Fredrikson

Deep learning models trained on the exact same data with different random seeds often disagree on individual predictions and explanations. This phenomenon, known as "predictive inconsistency," poses a significant challenge for deploying machine learning in high-stakes environments. To address this, researchers have introduced selective ensembles, a method that uses statistical hypothesis testing to decide when a model should provide a prediction and when it should abstain. This approach provides a provable guarantee on prediction consistency while maintaining high accuracy and surprisingly low abstention rates.

The Problem: Predictive Inconsistency

Imagine two doctors looking at the same patient's X-ray. If both doctors have a 95% historical accuracy rate but disagree on this specific diagnosis, your trust in their assessment wavers. In machine learning, this is a pervasive issue: two models with identical architectures, trained on the same dataset to the same aggregate accuracy, can behave very differently on individual test points. This inconsistency stems from seemingly arbitrary choices during training, such as random weight initialization or minor shuffles in the training data batches.

This instability is particularly dangerous in high-stakes fields like medical diagnosis, criminal justice, or credit scoring, where individual fairness and reliability are paramount. Furthermore, this duplicitous behavior extends beyond the final predictions to feature attributions—the explanations of why a model made a certain choice.

Illustration of how two functions can yield similar thresholded predictions while exhibiting vastly different local gradients, highlighting the instability of feature attributions.

As demonstrated by the authors, it is entirely possible to construct models that give identical predictions almost everywhere but have completely different gradients. If a model denies a loan because of "income" today, but a retrained version denies it because of "zip code" tomorrow, the explanation is effectively meaningless. Consistent predictions do not automatically guarantee consistent explanations.

The Solution: Selective Ensembling

To mitigate these inconsistencies, the authors propose a framework called Selective Ensembling. Unlike standard ensembles that simply take a majority vote across multiple models, selective ensembles incorporate a rigorous statistical check.

Here is how the mechanism works:

  1. The Learning Pipeline: The system defines a pipeline that produces a model based on a "random state" (e.g., random seeds, data shuffles).
  2. The Mode Predictor: The "true" prediction is defined theoretically as the mode (the most frequent label) across the entire infinite distribution of possible models the pipeline could produce.
  3. Hypothesis Testing: The selective ensemble performs a binomial power test on a small, trained sample of these models. It asks: "Is the most frequent class in my sample significantly more likely than the runner-up?"
  4. Strategic Abstention: If the statistical test fails to reach a specified confidence level ($\alpha$), the ensemble abstains (returns an "I don't know" or "abstain" signal).

By allowing the model to stay silent on unstable points, the framework provides a mathematical bound on the probability that two different selective ensembles will ever disagree. Abstention acts as a critical signal, identifying points where the data doesn't provide a clear enough signal for the training process to converge on a single stable rationale.

Key Results and Insights

The researchers evaluated selective ensembles across seven datasets spanning finance (e.g., UCI German Credit), medicine (e.g., Seizure EEG recordings), and computer vision (e.g., Fashion MNIST).

Theoretical abstention and consistency rates for selective ensembles across different ensemble sizes (n) and confidence levels (α). Larger ensembles allow for sharper transitions between abstention and confident prediction.

The empirical results demonstrate that stability does not have to come at the cost of utility:

  • Zero Inconsistency: On several benchmark datasets, selective ensembles achieved exactly zero inconsistently predicted points in the test set.
  • Low Cost of Stability: This guarantee came at a surprisingly low price. For most datasets, the ensemble only needed to abstain on 1.5% to 5% of points to achieve these strict consistency guarantees.
  • Better Explanations: Ensembling significantly stabilized feature attributions. For example, on the German Credit dataset, individual models often agreed on fewer than two of the top five most important features. Selective ensembling doubled the agreement on these key explanatory metrics.
  • High Efficiency: While the theoretical framework scales infinitely, the authors found that ensembles of just 10 to 20 models were sufficient to reach high levels of consistency in practice, making the approach computationally viable for many applications.

Limitations and Future Directions

While selective ensembles offer a robust solution to predictive inconsistency, they are not without limitations. Training 10 to 20 deep learning models incurs a significant computational overhead compared to training a single model. While feasible for tabular data and smaller medical datasets, this poses a substantial challenge for massive-scale vision or language models.

Additionally, the framework relies on a "human-in-the-loop" assumption. Abstention is only useful if there is a fallback mechanism—such as a human expert reviewing the flagged case. In a fully automated, high-throughput pipeline, an "ABSTAIN" result might be just as disruptive as an inconsistent prediction. Finally, while the authors found minimal accuracy disparities across demographic groups in their tests, they caution that selective classification can sometimes amplify existing biases, making fairness monitoring a critical area for future work.

Summary updated

BibTeX
@inproceedings{black2022selective,
  author = {Emily Black and Klas Leino and Matt Fredrikson},
  title = {{Selective Ensembles for Consistent Predictions}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=BkGwQOeVUO},
}
Figure