Abstract
Bayesian neural networks (BNNs) with latent variables are probabilistic models which can automatically identify complex stochastic patterns in the data. We describe and study in these models a decomposition of predictive uncertainty into its epistemic and aleatoric components. First, we show how such a decomposition arises naturally in a Bayesian active learning scenario by following an information theoretic approach. Second, we use a similar decomposition to develop a novel risk sensitive objective for safe reinforcement learning (RL). This objective minimizes the effect of model bias in environments whose stochastic dynamics are described by BNNs with latent variables. Our experiments illustrate the usefulness of the resulting decomposition in active learning and safe RL settings.
Introduction
In machine learning, distinguishing between different types of uncertainty is crucial for robust decision-making. Epistemic uncertainty refers to uncertainty due to a lack of data, which can theoretically be reduced with more observations. In contrast, aleatoric uncertainty represents inherent randomness in the system that cannot be reduced.
While standard Bayesian Neural Networks (BNNs) capture epistemic uncertainty through distributions over weights, they often struggle with complex, non-Gaussian noise. Integrating latent variables allows BNNs to model such patterns (e.g., bimodality), but it complicates the separation of uncertainty types. This paper presents a formal framework to disentangle these components to improve active learning and reinforcement learning (RL) safety.
Information-Theoretic Decomposition
The authors propose a BNN architecture where the output $y$ depends on synaptic weights $W$ and a latent variable $z$. Using a factorized Gaussian approximation for the posterior and training via black-box $\alpha$-divergence minimization, they derive a decomposition based on information theory.
The total predictive uncertainty is measured by the entropy $H(y|x, \mathcal{D})$. This is decomposed into:
- Aleatoric Component: The expected entropy of the output given the weights, $E_{p(W|\mathcal{D})}[H(y|x, W)]$. This captures the noise modeled by the latent variables.
- Epistemic Component: The mutual information between the weights and the output, $I(W; y|x, \mathcal{D}) = H(y|x, \mathcal{D}) - E_{p(W|\mathcal{D})}[H(y|x, W)]$. This represents the information gain about the model parameters.
Active Learning and Model Bias
In active learning, the goal is to select data points that maximize information gain. The decomposition reveals that one should sample where epistemic uncertainty is high, rather than just where total uncertainty is high. Sampling in high-aleatoric regions with low epistemic uncertainty provides no new information about the underlying model.
For Reinforcement Learning, the authors introduce a "model bias" risk criterion. By penalizing only the epistemic variance (variance arising from the distribution over $W$), the agent learns to avoid regions where the model's predictions are unreliable due to lack of data, while remaining indifferent to inherent environmental noise.
Experimental Results
The framework was tested on toy regression problems and a complex industrial benchmark.
In the bimodal task (Figure 2), the decomposition accurately identifies regions of high epistemic uncertainty. Plot (f) shows that the mutual information (epistemic component) peaks in areas with low data density, guiding an active learner effectively. In contrast, the total entropy (d) might be high simply due to the bimodal nature of the data (aleatoric noise).
In the RL industrial benchmark, the risk-sensitive objective successfully produced policies that minimized model bias. As the risk-aversion parameter $\beta$ increased, agents prioritized safety, avoiding unobserved or poorly modeled states even at the cost of higher expected rewards.
Conclusion
Disentangling epistemic and aleatoric uncertainty in BNNs with latent variables provides a powerful tool for both active learning and safe RL. By isolating the uncertainty that stems from a lack of knowledge, models can more effectively seek out informative data and agents can avoid potentially catastrophic model biases in stochastic environments.
Summary updated