Abstract
Control variates are a powerful tool for variance reduction in Bayesian inference. Many modern implementations utilize the Langevin-Stein operator to construct estimators that leverage gradient information. However, standard parametric approaches like Zero-Variance Control Variates (ZVCV) often face over-parameterization in high-dimensional settings, requiring computationally expensive regularized regression. We propose Ensemble ZVCV, a framework that uses averaging-based ensemble learning to construct Stein-based control variates. By ensembling Ordinary Least Squares (OLS) estimators with random feature subsets, we achieve statistical efficiency comparable to regularized methods at a fraction of the computational cost.
Introduction
In Bayesian statistics, expectations of interest are typically estimated using Markov Chain Monte Carlo (MCMC) methods. While robust, MCMC can be computationally demanding, especially when the target density is expensive to evaluate. Control variates (CVs) offer a path to improved efficiency by reducing the variance of these estimates.
A prominent class of CVs is based on the Langevin-Stein operator, which utilizes the gradient of the log-target density—information already available in many modern samplers like the No-U-Turn Sampler (NUTS). The Zero-Variance Control Variate (ZVCV) method fits a function (often a polynomial) to the samples to minimize variance. However, as dimensionality increases, the number of terms in these polynomials grows factorially, leading to an over-determined system that necessitates regularization.
The Bottleneck of Regularization
To handle the explosion of features in high-dimensional ZVCV, researchers typically turn to penalized regression techniques such as LASSO or Ridge regression. While effective at reducing variance, these methods require cross-validation to tune hyperparameters. In the context of MCMC, where the goal is to speed up inference, the time spent tuning these penalties often outweighs the gains in statistical precision. This creates a need for a method that provides the benefits of regularization without the associated computational overhead.
Ensemble ZVCV: A Faster Alternative
We introduce Ensemble ZVCV, which replaces a single, complex regularized model with an ensemble of simpler base learners. This approach draws inspiration from ensemble methods like random forests to provide implicit regularization.
Feature Subsampling and the "Semi-Exact" Trick
The core of the method involves training multiple OLS models on different subsets of the polynomial feature space. However, purely random selection can be problematic; if low-order terms are omitted, the estimator may lose its ability to perfectly reduce variance even for simple Gaussian targets.
To address this, we employ a "semi-exact" strategy:
- Base Features: Every base learner in the ensemble is forced to include all low-order polynomial terms. This ensures a guaranteed baseline of performance.
- Random Features: Higher-order interaction terms are randomly sampled to fill out the remainder of each learner's feature set.
Combining the Ensemble
Once the base OLS models are trained, their predictions must be aggregated. We explored several strategies:
- Simple Averaging (SA): A straightforward mean of all base learner outputs.
- Markowitz Optimization (MO): Weighting learners based on their estimated covariance to minimize total variance.
- Double OLS (DO): A second-stage regression to find optimal weights.
Experimental Evaluation
We evaluated Ensemble ZVCV on two challenging Bayesian models simulated via Stan:
- Lotka-Volterra Model (8 dimensions): A system of ordinary differential equations (ODEs) modeling predator-prey dynamics.
- Friberg-Karlson Model (11 dimensions): A semi-mechanistic pharmacokinetic-pharmacodynamic (PK-PD) model used to study drug-induced myelosuppression.
Statistical vs. Computational Efficiency
Our results demonstrate that Ensemble ZVCV matches the statistical variance reduction of LASSO and Ridge regression. More importantly, when considering overall efficiency—which accounts for the time taken to compute the control variate—the ensemble methods significantly outperformed regularized alternatives. This is particularly evident for smaller sample sizes ($N \le 1000$), where the overhead of cross-validation is most punishing.
Implicit Regularization
The success of the ensemble approach stems from its implicit regularization. By averaging over different feature subsets, the ensemble behaves similarly to a Ridge regressor but avoids the need for explicit hyperparameter optimization. Furthermore, we found that relatively small ensembles (e.g., $k=25$) are sufficient to capture most of the variance reduction benefits.
Conclusion
Ensemble Control Variates provide a scalable and computationally efficient framework for variance reduction in Bayesian inference. By leveraging the "semi-exact" feature selection and simple averaging, practitioners can achieve high-quality estimates without the bottleneck of traditional regularization. While future work is needed to scale these methods to extremely high-dimensional spaces, the ensemble framework represents a significant step forward in making Stein-based control variates practical for a wider range of applications.
Summary updated