Boosted Conformal Prediction Intervals

Ran Xie, Rina Foygel Barber, Emmanuel CandesNeurIPS 2024

In the world of machine learning, a point prediction (e.g., "this house is worth $500k") is rarely enough. For high-stakes decisions in medicine or finance, we need prediction intervals—a range that we are, say, 95% confident contains the true value.

While Conformal Prediction (CP) has become the gold standard for creating these intervals with mathematical guarantees, it has a "one-size-fits-all" problem. A new paper from researchers at Stanford and the University of Chicago, titled "Boosted Conformal Prediction Intervals," introduces a clever way to use gradient boosting to tailor these intervals for better accuracy and usefulness without ever retraining the underlying model.

Summary

The authors introduce a "boosted" conformal procedure that iteratively refines prediction intervals to achieve specific goals, like shorter interval lengths or more consistent coverage across different subgroups. By applying gradient boosting to the "conformity scores" post-training, they achieve significant improvements in interval efficiency and fairness without modifying the original black-box model.

What Problem Does This Paper Address?

Standard conformal prediction provides a "marginal coverage" guarantee: if you ask for 95% confidence, you’ll be right 95% of the time on average across your whole dataset.

However, this average can hide ugly truths. You might have 99% coverage for one demographic group and only 80% for another (poor conditional coverage). Furthermore, standard methods often produce intervals that are unnecessarily wide, making them less informative for decision-makers.

Existing fixes usually require "peeking" into the training process or retraining complex models from scratch. The challenge addressed here is: How can we systematically optimize these intervals for specific properties (like group fairness or tightness) using only the output of a pre-trained model?

Methods

The researchers propose adding a Boosting Stage between the initial model training and the final calibration step.

The boosted conformal prediction pipeline, inserting a boosting stage between standard training and calibration.
  1. Generalized Score Families: They define flexible families of "conformity scores" (the metric used to decide how "unusual" a data point is). These families encompass popular existing methods like CQR (Conformalized Quantile Regression) but allow for more tuning.
  2. Task-Specific Loss Functions: To improve the intervals, you need to know what "better" looks like. The authors developed differentiable loss functions that measure:
  3. Deviation from target coverage: Using "Contrast Trees" to find regions in the feature space where the model is under- or over-performing.
  4. Average interval length: To push the model toward the narrowest possible valid intervals.
  5. Gradient Boosting: They use standard tools like XGBoost or LightGBM to iteratively update the components of the conformity score. Because the loss functions are differentiable, the boosting algorithm can "learn" how to stretch or shrink intervals for specific types of data points to meet the user's goals.
  6. Cross-Validation: To prevent the boosting process from overfitting to the calibration data, they use a k-fold cross-validation approach to pick the optimal number of boosting rounds.

Datasets

The authors evaluated their method on 11 real-world regression datasets commonly used in the conformal prediction literature, including:

  • Medical Expenditure (meps-19, 20, 21): Predicting healthcare utilization.
  • Social/Economic: Bike rental counts, community crime rates, and Facebook comment volumes.
  • Physical Sciences: Concrete compressive strength and protein structure (bio).

These datasets represent a mix of dimensions (from 8 to 280 features) and sample sizes (from ~1,000 to ~80,000), providing a robust stress test for the algorithm.

Key Insights and Ideas

  • Post-Training Power: The most significant "aha moment" is that you don't need to touch the original model (e.g., a deep neural network). The boosting happens entirely on the outputs, making it a highly portable "wrapper" for any black-box system.
  • Differentiability is Key: Conformal prediction usually involves discrete operations (like sorting and taking quantiles) that don't have gradients. By creating smooth, differentiable approximations of these operations, the authors opened the door for gradient-based optimization.
  • Closing the Gap: The results show that "Local" conformal prediction (a simpler baseline) can be boosted to perform as well as, or better than, more complex state-of-the-art methods like CQR.

Key Results

The boosted procedure demonstrated clear wins across the board:

  • Interval Shrinkage: On the "blog" dataset, boosting reduced the average interval length by a staggering 52.74% compared to the baseline. Across other datasets like "meps-21," they saw improvements of up to 18.55%.
  • Better Conditional Coverage: In experiments aimed at coverage consistency, the boosted method significantly reduced the "maximum deviation" from the target 90% coverage. For the "meps-19" dataset, the deviation dropped by over 60%, meaning the intervals became much more reliable across different subgroups of patients.
Comparison of miscoverage across subgroups between the classical and boosted conformal procedures.
  • Efficiency: The method is computationally efficient enough to run on standard hardware, with runtimes ranging from minutes to a few hours depending on dataset size.

Limitations and Future Work

While powerful, the authors note a few caveats:

  • Greedy Optimization: Gradient boosting is a greedy algorithm; it doesn't guarantee the absolute best possible score function, just a significantly improved one.
  • Starting Points: The final performance still depends on the quality of the initial "base" conformity score.
  • Multi-Objective Trade-offs: Currently, the user chooses to optimize for either length or coverage. Future work could explore simultaneous optimization—finding the "Pareto frontier" where intervals are as short as possible without sacrificing conditional coverage.

This work represents a major step toward making uncertainty quantification not just a mathematical guarantee, but a tunable tool for fairer and more efficient machine learning.

Summary updated

BibTeX
@inproceedings{xie2024boosted,
  author = {Ran Xie and Rina Foygel Barber and Emmanuel Candes},
  title = {{Boosted Conformal Prediction Intervals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Tw032H2onS},
}
Figure