Multi-model Ensemble Conformal Prediction in Dynamic Environments

Erfan Hajihashemi, Yanning Shen

Abstract

Standard Conformal Prediction (CP) provides rigorous uncertainty guarantees but often fails in dynamic environments where data distributions shift over time. This paper introduces SAMOCP (Strongly Adaptive Multi-model Ensemble Online Conformal Prediction), a framework that dynamically selects the optimal model from an ensemble to generate uncertainty-aware prediction sets. By employing a strongly adaptive expert-tracking mechanism, SAMOCP maintains required coverage while significantly improving prediction set efficiency compared to single-model and static ensemble approaches.

Introduction

In high-stakes AI applications like medical diagnostics or autonomous driving, point predictions are insufficient; reliable uncertainty quantification is critical. Conformal Prediction (CP) addresses this by generating prediction sets guaranteed to contain the true label with a user-defined probability (e.g., 90%). However, the fundamental assumption of "exchangeability" in CP—that future data looks like the past—is frequently violated in real-world scenarios due to temporal shifts like changing lighting or sensor degradation.

Existing adaptive CP methods typically rely on a single underlying model. The authors identify a major gap: no single model is optimal for every type of distribution shift. When a model struggles with a specific shift, the resulting prediction sets become bloated and impractical, even if they technically meet coverage guarantees. SAMOCP addresses this by leveraging model diversity and a multi-scale temporal adaptation strategy.

Methods

The authors propose two primary algorithms to bridge the gap between reliability and efficiency:

  1. MOCP (Multi-model Online Conformal Prediction): Designed for static environments, MOCP maintains $M$ candidate models. It assigns weights based on performance (using a pinball loss function) and selects the most "efficient" model—the one producing the smallest valid prediction set—on the fly.
  2. SAMOCP (Strongly Adaptive MOCP): To handle highly dynamic environments, SAMOCP treats instances of MOCP as "experts" within a strongly adaptive framework.
The Strongly Adaptive framework births experts at different time intervals to handle varying scales of distribution shifts.

As illustrated in the figure above, SAMOCP "births" new experts at various time steps, each with distinct lifetimes and learning rates. This hierarchical structure allows the system to "retire" outdated experts optimized for obsolete data distributions. Consequently, SAMOCP can react rapidly to sudden shifts (e.g., a sudden rainstorm affecting a camera) while maintaining stability during gradual drifts (e.g., seasonal changes). The authors prove that this approach achieves "strongly adaptive regret," ensuring performance is competitive with the best model choice over any arbitrary time interval.

Experimental Evaluation

The framework was tested against state-of-the-art baselines (such as FACI and SAOCP) using several benchmark datasets:

  • CIFAR-10C & CIFAR-100C: Image datasets corrupted with 15 types of noise at 5 levels of severity.
  • TinyImageNet-C: A 200-class dataset to test scalability.
  • Synthetic Datasets: Custom data featuring both gradual and sudden transformations to stress-test adaptivity.

Key Results

  • Smaller Prediction Sets: On CIFAR-100C with gradual shifts, SAMOCP achieved an average set width of 5.43, compared to 6.61 for the next best multi-model baseline.
  • Higher Precision: SAMOCP achieved a "Single Width" score of 0.29, meaning it was confident enough to provide a single, correct label 29% of the time—outperforming all single-model baselines.
  • Robustness to Sudden Shifts: In experiments where corruption levels jumped instantly, SAMOCP tracked changes more effectively than single-model methods, which often saw their error (regret) spike and remain high.

Conclusion

SAMOCP demonstrates that model diversity is a powerful tool for improving the efficiency of conformal prediction in non-stationary environments. By managing a hierarchy of experts with different temporal scales, it provides a robust solution for real-world deployment. While currently focused on classification, future work includes extending the framework to regression tasks and automating hyperparameter tuning for unknown environments.

Summary updated

BibTeX
@inproceedings{hajihashemi2024multi,
  author = {Erfan Hajihashemi and Yanning Shen},
  title = {{Multi-model Ensemble Conformal Prediction in Dynamic Environments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=J1Y70keorq},
}
Figure