Sensitivity analysis for predictive uncertainty

Stefan Depeweg, José Miguel Hernández-Lobato, Steffen Udluft, Thomas A. RunklerESANN 2018

TL;DR

This paper introduces a novel sensitivity analysis technique for Bayesian Neural Networks (BNNs) that specifically targets predictive uncertainty. By decomposing uncertainty into its epistemic (model ignorance) and aleatoric (inherent randomness) components, the method reveals which input features drive each type of uncertainty, offering crucial interpretability for complex black-box models.

What Problem Does This Paper Address?

Understanding how input features influence the predictions of complex machine learning models, especially neural networks, is a significant challenge. While traditional sensitivity analysis can tell us which features affect the prediction itself, it often overlooks the uncertainty associated with that prediction. This is particularly problematic in safety-critical applications where knowing why a model is uncertain is as important as knowing its prediction. Bayesian Neural Networks (BNNs) offer a way to quantify predictive uncertainty, but dissecting which features contribute to which type of uncertainty (epistemic vs. aleatoric) has remained an open problem. This paper aims to bridge this gap by providing a method to attribute feature importance to both the predictive mean and its epistemic and aleatoric uncertainty components.

Methods

The core contribution is an extension of traditional sensitivity analysis to the realm of predictive uncertainty in BNNs. The authors leverage Bayesian Neural Networks with latent variables, a model class capable of capturing complex stochastic patterns and explicitly modeling both parameter uncertainty (epistemic) and irreducible noise (aleatoric).

  1. Uncertainty Decomposition: They first utilize the property of BNNs with latent variables to decompose the predictive variance into epistemic and aleatoric components using the law of total variance.
  2. Sampling-Based Sensitivity Analysis: To calculate the sensitivity of these decomposed uncertainty components with respect to input features, they employ a sampling-based approach. For each test input, they perform numerous forward passes through the BNN:
  3. They sample multiple sets of model parameters from the approximate posterior distribution $q(W)$.
  4. For each sampled set of parameters, they sample multiple latent variables $z$.
  5. This allows for empirical estimation of the expected predictive value and the epistemic and aleatoric uncertainty components.
  6. Partial Derivatives: Finally, they compute the partial derivative of these estimated uncertainty components with respect to each input feature. This yields measures of how much each feature influences epistemic uncertainty and aleatoric uncertainty.

Datasets

The authors evaluate their method on:

  • Artificial Toy Dataset: A synthetic regression task designed to explicitly control the sources of epistemic and aleatoric uncertainty.
  • UCI Repository Datasets: Eight real-world regression datasets from the UCI Machine Learning Repository, covering various domains and sizes (e.g., Energy Efficiency, Concrete Strength, Boston Housing).

Key Insights and Ideas

  • Disentangling Uncertainty Sources: The most significant insight is the ability to attribute feature importance not just to the prediction itself, but specifically to the sources of uncertainty. This is crucial for understanding model behavior.
  • Interpreting Feature Roles:
    • High epistemic sensitivity for a feature suggests that limited data for that feature region leads to high model ignorance. This highlights areas where more data or careful monitoring is needed.
  • High aleatoric sensitivity for a feature indicates a strong dependence on unobserved or latent factors. This suggests that the feature's behavior is inherently noisy or influenced by external, unmeasured variables.
  • Model Behavior Insights: The analysis can reveal how features interact with the model's learned structure and the underlying data generation process. For instance, a feature that is constant in the dataset might show high epistemic sensitivity if its value deviates from the learned constant.

Key Results

  • Toy Data Validation: On the toy dataset, the method correctly identified the feature responsible for the function's shape (epistemic uncertainty) and the feature controlling the noise level (aleatoric uncertainty), aligning with the generative model.
  • Real-World Data Application: For UCI datasets, the analysis revealed diverse patterns:
  • Some problems showed prominent aleatoric sensitivity (e.g., Wine Quality Red, Boston Housing).
  • Others exhibited predominantly epistemic sensitivity (e.g., Kin8nm, Protein Structure).
  • Many showed a mixture of both.
  • The power-plant example showed features like temperature and pressure as main sources of aleatoric uncertainty, likely due to complex combustion processes not fully captured by the features.
  • The naval propulsion example highlighted features with high epistemic sensitivity due to their limited variation in the dataset.

Limitations and Future Work

  • General Drawbacks of Sensitivity Analysis: The authors acknowledge that, like standard sensitivity analysis, their method considers each variable in isolation, which might overlook complex interactions between features.
  • Computational Cost: The sampling-based approach for estimating uncertainty components can be computationally intensive.
  • Future Work: The paper suggests that this method can provide useful insights for active learning and reliable reinforcement learning, and can be applied to other probabilistic models beyond BNNs. Further exploration into more sophisticated uncertainty decomposition and sensitivity analysis techniques is also implied.

Summary updated

BibTeX
@inproceedings{depeweg2018sensitivity,
  author = {Stefan Depeweg and José Miguel Hernández-Lobato and Steffen Udluft and Thomas A. Runkler},
  title = {{Sensitivity analysis for predictive uncertainty}},
  booktitle = {ESANN},
  year = {2018},
  url = {https://openreview.net/forum?id=vTH44v4UHpf},
}
Figure