DEUP: Direct Epistemic Uncertainty Prediction

Moksh Jain, Salem Lahlou, Hadi Nekoei, Victor Butoi, Paul Bertin, Jarrid Rector-Brooks, Maksym Korablyov, Yoshua Bengio

TL;DR

This paper introduces DEUP, a novel framework for directly predicting epistemic uncertainty by estimating "excess risk." Unlike traditional methods that rely on variance, DEUP accounts for model misspecification, leading to more reliable uncertainty estimates, especially in interactive learning and reinforcement learning scenarios.

What Problem Does This Paper Address?

In machine learning, understanding uncertainty is crucial for tasks like active learning, sequential model optimization, and reinforcement learning. Epistemic uncertainty, specifically, quantifies a learner's lack of knowledge. Existing methods often measure this by looking at the variance of Bayesian posterior predictions. However, the authors argue that this approach fails to capture uncertainty arising from model misspecification – when the chosen model is fundamentally ill-suited for the data. This can lead to confidently wrong decisions. The paper aims to address this by proposing a method that directly estimates a more comprehensive measure of epistemic uncertainty, one that includes the impact of model misspecification.

Methods

The core of DEUP is to directly estimate the "excess risk," which is defined as the difference between a predictor's generalization error and the theoretical minimum error achievable by a Bayes predictor. This excess risk is proposed as a more robust measure of epistemic uncertainty.

DEUP achieves this by:

  1. Training an "error predictor": A secondary model is trained to predict the generalization error (or "risk") of the main predictor. This error predictor is trained on observed out-of-sample errors.
  2. Subtracting aleatoric uncertainty: If an estimate of aleatoric uncertainty (intrinsic randomness) is available, it's subtracted from the predicted error to isolate the epistemic component. If not, the predicted error itself serves as a conservative estimate.

For interactive learning settings, DEUP introduces "stationarizing features" to help the error predictor generalize across different versions of the main predictor as it's retrained with new data.

Datasets

The paper uses several datasets for evaluation:

  • Synthetic datasets: Used for illustrating concepts and in initial experiments (e.g., 1D and 2D functions for sequential model optimization).
  • DrugComb and LINCS L1000: Real-world datasets for predicting drug combination synergy.
  • CIFAR-10: Used for probabilistic image classification and OOD detection tasks.
  • CIFAR-10-C: A corrupted version of CIFAR-10 used to evaluate uncertainty under distribution shift.

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Excess Risk as a Superior Uncertainty Measure: The paper's central argument is that "excess risk" is a more comprehensive measure of epistemic uncertainty than just posterior variance because it inherently accounts for model misspecification. This is a significant conceptual shift from many existing methods.
  • Directly Learning Error: Instead of relying on indirect measures like variance, DEUP directly learns to predict the error, making it more adaptable and potentially more accurate, especially when models are not perfectly specified.
  • Stationarizing Features for Interactive Learning: The introduction of stationarizing features is a clever way to handle the non-stationarity introduced by retraining the main predictor in interactive settings, allowing the error predictor to remain relevant.
  • DEUP's Versatility: The framework is shown to be applicable across diverse tasks, including sequential model optimization, reinforcement learning, drug synergy prediction, and OOD detection, highlighting its broad utility.

Key Results

  • Improved Sequential Model Optimization: DEUP-EI consistently outperformed baselines like GP-EI, MC-Dropout-EI, and Ensemble-EI, reaching global maxima more effectively, especially in higher dimensions and under budget constraints. For instance, on the 10D Ackley function, DEUP-EI reached the global maximum consistently, while GP-EI got stuck in local optima.
  • Enhanced Reinforcement Learning Exploration: DEUP-DQN achieved lower regret faster than baselines on the CartPole task, demonstrating DEUP's ability to drive more efficient exploration.
  • Better Uncertainty Estimates in Drug Combinations: DEUP showed a higher correlation between predicted uncertainty and model residuals on drug combination synergy prediction, indicating more accurate uncertainty estimates compared to MC-Dropout and Deep Ensembles.
  • Robustness to Distribution Shift: DEUP's uncertainty estimates correlated better with errors on corrupted CIFAR-10 images (CIFAR-10-C) than baselines, showing its effectiveness in shifted distribution settings.
  • Competitive OOD Detection: DEUP achieved competitive AUROC scores for OOD detection, comparable to strong baselines, and a high rank correlation between predicted uncertainty and generalization error.

Limitations and Future Work

  • Computational Cost: While DEUP is presented as efficient, training the error predictor, especially with complex stationarizing features or in interactive settings, can still be computationally intensive. The paper mentions that training DEUP with density and model variance features is on-par with training a 5-network ensemble.
  • Estimating Aleatoric Uncertainty: The paper acknowledges that in some scenarios, estimating aleatoric uncertainty might be challenging, and proposes using the predicted error as a conservative proxy.
  • Theoretical Guarantees: The authors suggest that theoretically studying DEUP's properties under model misspecification is an important future direction.
  • Improving Efficiency: Future work could explore ways to improve DEUP's computational efficiency, such as by considering different stationarizing features or alternative ways of incorporating dataset information into the secondary predictor.
  • Handling Noisy Data: The paper briefly touches upon DEUP in the presence of aleatoric uncertainty (noisy training data) and suggests that more out-of-sample data might be needed for reliable estimates.

Summary updated

Abstract

Epistemic Uncertainty (EU) is the part of out-of-sample prediction error due to the lack of knowledge of the learner. While existing work focuses on model variance as a proxy of EU, we propose a principled framework for directly estimating it by learning to predict the generalization error and subtracting an estimate of aleatoric uncertainty, i.e., intrinsic unpredictability, using a secondary learner. We discuss the merits of this novel interpretation of EU, and highlight how it differs from variance-based proxies of EU and addresses their shortcomings. Our framework, Direct Epistemic Uncertainty Prediction (DEUP) is particularly interesting in interactive learning environments, where the learner is allowed to acquire novel examples in each round. Through a wide set of experiments, we illustrate how existing methods in sequential model optimization can be improved with EU estimates from DEUP, and how DEUP can be used to drive exploration in reinforcement learning. We also evaluate the quality of uncertainty estimates from DEUP for probabilistic image classification and predicting synergies of drug combinations.
BibTeX
@article{jain2023deup,
  author = {Moksh Jain and Salem Lahlou and Hadi Nekoei and Victor Butoi and Paul Bertin and Jarrid Rector-Brooks and Maksym Korablyov and Yoshua Bengio},
  title = {{DEUP: Direct Epistemic Uncertainty Prediction}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure