Abstract
Zero-variance control variates (ZV-CV) are a post-processing method to reduce the variance of Monte Carlo estimators of expectations using the derivatives of the log target. Once the derivatives are available, the only additional computational effort lies in solving a linear regression problem. Significant variance reductions have been achieved with this method in low dimensional examples, but the number of covariates in the regression rapidly increases with the dimension of the target. In this paper, we present compelling empirical evidence that the use of penalized regression techniques in the selection of high-dimensional control variates provides performance gains over the classical least squares method. Another type of regularization based on using subsets of derivatives, or a priori regularization as we refer to it in this paper, is also proposed to reduce computational and storage requirements. Several examples showing the utility and limitations of regularized ZV-CV for Bayesian inference are given. The methods proposed in this paper are accessible through the R package ZVCV.
Introduction
Monte Carlo methods are the workhorse of modern Bayesian inference, yet they are often plagued by high variance, especially in complex, high-dimensional models. To achieve high precision, practitioners typically require a massive number of samples, which can be computationally prohibitive. Zero-Variance Control Variates (ZV-CV) provide a powerful post-processing framework to mitigate this noise by leveraging the information contained in the derivatives of the log-target distribution.
Traditionally, ZV-CV relies on Ordinary Least Squares (OLS) to estimate the coefficients of a polynomial expansion that cancels out variance. However, as the dimensionality ($d$) or the polynomial order ($Q$) increases, the number of terms in the regression ($J$) explodes. This "curse of dimensionality" often leads to situations where the number of terms exceeds the number of available samples ($J > N$), causing standard ZV-CV to fail. This paper introduces regularized ZV-CV to overcome these limitations.
Methodology
The authors propose two primary strategies to stabilize and scale ZV-CV for high-dimensional Bayesian tasks:
1. Penalized Regression
Instead of standard OLS, the framework incorporates penalized regression techniques, specifically LASSO ($L_1$) and Ridge ($L_2$) regression.
- LASSO is particularly effective because it promotes sparsity, automatically selecting only the most relevant polynomial terms (zerovariates) to reduce variance. This allows for the use of higher-order polynomials even when samples are scarce.
- Ridge Regression provides a stable alternative that prevents overfitting. Interestingly, the authors demonstrate that $L_2$-penalized ZV-CV is a computationally efficient special case of non-parametric Control Functionals (CF).
2. A Priori Regularization
In many high-dimensional problems, calculating derivatives for every parameter is computationally expensive. "A priori" regularization involves selecting a subset of important parameters before the regression step. This reduces the memory footprint and the computational burden of constructing the covariate matrix.
3. Automated Selection
To make the method accessible, the authors implement a cross-validation framework within the ZVCV R package. This allows for the automatic selection of the optimal polynomial order and regularization type based on the specific characteristics of the dataset.
Empirical Performance
The proposed methods were evaluated on several challenging benchmarks, including a 11-D bird recapture model and a Log-Gaussian Cox Point Process ranging from 16 to 256 dimensions.
In the 16-dimensional Cox Process, the regularized method achieved an "overall efficiency" gain—a metric accounting for both statistical precision and computation time—that was 1.6 million times higher than standard Monte Carlo integration. Even at 256 dimensions, where standard ZV-CV is mathematically impossible to implement due to the number of terms, regularized ZV-CV provided a 25x to 30x efficiency boost.
Key Insights
- Sparsity and Efficiency: LASSO generally outperformed Ridge regression, suggesting that variance reduction is often driven by a small subset of terms.
- Scalability: Unlike non-parametric methods like Control Functionals, which scale at $O(N^3)$, regularized ZV-CV scales linearly ($O(N)$). This makes it highly practical for the large sample sizes generated by MCMC or Sequential Monte Carlo samplers.
- The $N < J$ Barrier: Regularization allows researchers to apply complex variance reduction techniques even when the number of samples is smaller than the number of potential control variate terms.
Limitations and Future Directions
The primary requirement for ZV-CV is the availability of log-target derivatives. While these are common in gradient-based samplers like Hamiltonian Monte Carlo (HMC), they can be expensive to compute for models involving complex differential equations. Future work may involve using Automatic Differentiation to lower these costs or exploring neural networks as an alternative to polynomial basis functions for constructing control variates.
Reference: South, L. F., Oates, C. J., Mira, A., & Drovandi, C. (2023). Regularized Zero-Variance Control Variates. Bayesian Analysis, 18(3), 865–888.
Summary updated