Abstract
In machine learning, an agent needs to estimate uncertainty to efficiently explore and adapt and to make effective decisions. A common approach to uncertainty estimation maintains an ensemble of models. In recent years, several approaches have been proposed for training ensembles, and conflicting views prevail with regards to the importance of various ingredients of these approaches. In this paper, we aim to address the benefits of two ingredients -- prior functions and bootstrapping -- which have come into question. We show that prior functions can significantly improve an ensemble agent's joint predictions across inputs and that bootstrapping affords additional benefits if the signal-to-noise ratio varies across inputs. Our claims are justified by both theoretical and experimental results.
Introduction
Reliable uncertainty estimation is a cornerstone of robust machine learning. For an agent to explore novel environments or make safety-critical decisions, it must distinguish between what it knows and what it does not. Ensembles—collections of models whose disagreement serves as a proxy for uncertainty—are widely used, yet the optimal configuration for training them remains a subject of intense debate.
A common belief is that "Deep Ensembles," which rely solely on random parameter initialization and data shuffling, are sufficient. However, this paper demonstrates that such an approach fails to capture essential "epistemic" diversity. We investigate two specific components: randomized prior functions and bootstrapping, showing they are critical for high-quality uncertainty estimation, particularly in sequential decision-making tasks.
The Ensemble Framework
To systematically evaluate these components, we define three distinct ensemble agents within a unified "perturbed loss function" framework. These agents represent a progression in complexity and theoretical grounding.
- ensemble-N (Neither): The baseline approach where models differ only by random parameter initialization and data shuffling.
- ensemble-P (Prior): Each ensemble member is augmented with a randomized, fixed "prior function." This ensures that in data-sparse regions, the models do not collapse to a single value, maintaining a Bayesian-like prior.
- ensemble-BP (Bootstrapping + Prior): Combines prior functions with bootstrapping, where each model is trained on a different weighted version of the dataset.
Joint Predictions and the Role of Prior Functions
Most uncertainty research focuses on marginal predictions (uncertainty at a single point). However, for agents making a sequence of decisions, joint predictions—how uncertainty correlates across different inputs—are paramount.
Our analysis reveals a "sanity check" failure for ensemble-N. In simple linear regression, where the loss function is strictly convex, random initialization alone produces zero diversity between models. This proves that ensemble-N cannot represent uncertainty in even the simplest well-understood models. In contrast, prior functions are the primary driver of quality in joint uncertainty, allowing the ensemble to maintain diversity across the input space.
Bootstrapping and Heteroscedasticity
While prior functions improve joint predictions, bootstrapping provides a critical advantage when the signal-to-noise ratio (SNR) varies across the data (heteroscedasticity). If noise is uniform, bootstrapping may offer marginal gains if priors are well-tuned. However, in environments where some actions or regions are noisier than others, bootstrapping prevents the model from becoming overconfident in high-noise areas.
Furthermore, bootstrapping enhances robustness. As shown in the tuning specifications above, ensemble-BP follows a principled approach that tends to perform better across a wider range of settings, even without exhaustive hyperparameter optimization. The authors provide a new theorem showing that without bootstrapping, an ensemble's error in uncertainty estimation is lower-bounded by the variation in signal-to-noise ratios across the input space.
Empirical Results
We validated our findings across three diverse domains:
- Neural Testbed: In synthetic classification,
ensemble-Pandensemble-BPsignificantly outperformedensemble-Non joint metrics. - CIFAR-10 with Corrupted Labels: By flipping labels in specific classes to create varying SNR, we observed that
ensemble-BPmaintained a clear advantage in joint Negative Log-Likelihood (NLL) overensemble-P. - Heteroscedastic Linear Bandits: In Thompson Sampling tasks,
ensemble-BPachieved the lowest cumulative regret, whileensemble-Nfailed to explore effectively, resulting in regret orders of magnitude higher.
Conclusion
The evidence suggests that random initialization is insufficient for robust uncertainty estimation. For practitioners building agents for exploration or sequential decision-making, the inclusion of randomized prior functions is essential for capturing correlations across inputs. Additionally, bootstrapping should be employed to ensure robustness against varying noise levels in the data. Future work will look to extend these theoretical guarantees from linear models to the complex regimes of deep reinforcement learning.
Summary updated