High-Quality Prediction Intervals for Deep Learning: A Distribution-Free, Ensembled Approach

Tim Pearce, Alexandra Brintrup, Mohamed Zaki, Andy NeelyICML 2018

Deep neural networks are highly effective at making point predictions, but they often struggle to communicate their level of certainty. In high-stakes fields like finance, medicine, or autonomous systems, a single predicted number is rarely sufficient. Instead, practitioners require a Prediction Interval (PI)—a range of values that we are highly confident (e.g., 95%) will contain the true outcome.

Historically, generating PIs with neural networks has relied on two flawed paradigms:

  1. Distributional methods (like Mean Variance Estimation, MVE): These assume the data noise follows a specific shape, typically Gaussian. If the real-world noise is skewed or heavy-tailed, these models fail to produce accurate intervals.
  2. Distribution-free methods (like LUBE): While these avoid restrictive assumptions by optimizing PI quality directly, early approaches were incompatible with Gradient Descent (GD). This forced researchers to rely on slow, "black-box" optimization algorithms like Particle Swarm Optimization (PSO).

This paper introduces a novel Quality-Driven (QD) loss function that allows neural networks to generate high-quality, distribution-free prediction intervals using standard gradient descent. By combining this loss function with ensembling techniques, the method produces intervals that are roughly 10% narrower than previous state-of-the-art techniques while maintaining desired coverage.

The Quality-Driven (QD) Loss Function

The core contribution of this research is the QD loss function, built on the principle that a high-quality PI should be as narrow as possible while still capturing a specified proportion of the data.

Key technical innovations include:

  • Likelihood-Based Derivation: Rather than relying on heuristics, the authors derived the loss mathematically by treating "captured" data points as Bernoulli variables and using the Central Limit Theorem to approximate their distribution.
  • The "Softening" Trick: To make the loss function differentiable—a strict requirement for Gradient Descent—the authors replaced the discrete "is the point inside the interval?" step function with a continuous sigmoid function. This allows gradients to flow through the network even when a prediction is just outside the target boundary.
The Softening Trick: Smoothing the step-like QD loss function to enable Gradient Descent.
  • Smart Width Penalization: The loss function utilizes a metric called $MPIW_{capt}$, which only penalizes the width of intervals for points that are actually captured. This prevents the network from artificially lowering its loss by shrinking intervals to zero for outlier points it has already missed.
  • Ensembling for Epistemic Uncertainty: Because a single network only accounts for data noise (aleatoric uncertainty), the authors train an ensemble of networks (typically five) and combine their outputs using a variance-based formula to account for model (epistemic) uncertainty.

Key Insights and Results

The authors evaluated their QD-Ensemble method across ten standard benchmark regression datasets from the UCI Machine Learning Repository, representing a wide variety of scales and features.

1. Gradient Descent Outperforms PSO The paper debunks the long-held belief that direct PI optimization is incompatible with gradient descent. Thanks to the sigmoid softening trick, GD not only works but actually produces smoother, tighter, and more consistent interval boundaries than evolutionary algorithms like PSO.

2. The Distribution-Free Advantage In experiments featuring non-Gaussian noise, traditional methods like MVE failed significantly because their underlying Gaussian assumptions were violated. The QD method, being distribution-free, successfully adapted to the actual shape of the noise.

MVE struggling to fit data with non-Gaussian (Exponential) noise.

3. State-of-the-Art Performance On the benchmark datasets, the QD-Ensemble method reduced the average PI width by approximately 11.6% compared to the previous state-of-the-art (MVE-Ensembles). Furthermore, the method consistently stayed closer to the target 95% coverage rate than competing models. Because it relies on standard GD and small ensembles, it remains computationally efficient for real-world deployment.

Limitations and Future Work

While highly effective, the QD-Ensemble approach does have limitations:

  • Training Fragility: The training process can be sensitive. It generally requires a lower learning rate, is highly sensitive to decay rates compared to standard MSE-based training, and often takes 2 to 10 times more epochs to converge.
  • Hyperparameter Sensitivity: The Lagrangian multiplier ($\lambda$), which balances interval width against coverage, requires careful tuning to hit exact coverage targets.

Future work may explore alternative ways to estimate model uncertainty, such as Dropout or Conformal Prediction, which could prove more robust than the simple parameter resampling used in standard ensembles.

Summary updated

BibTeX
@inproceedings{pearce2018high,
  author = {Tim Pearce and Alexandra Brintrup and Mohamed Zaki and Andy Neely},
  title = {{High-Quality Prediction Intervals for Deep Learning: A Distribution-Free, Ensembled Approach}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SyWv3ib_WS},
}
Figure