TL;DR
This paper introduces a novel family of stochastic gradient estimators based on perturbative expansions of the sampling distribution. These methods offer improved convergence and reduced variance compared to existing techniques, particularly for challenging optimization problems in machine learning, including those involving discrete variables.
What Problem Does This Paper Address?
Optimizing complex machine learning models often relies on stochastic gradient descent (SGD), which requires estimating gradients of expected values. A common challenge is that these expectations can be difficult to compute analytically, especially when dealing with complex or discrete probability distributions. Existing methods like the reparameterization trick are limited in their applicability, while black-box estimators often suffer from high variance, hindering efficient training. This paper aims to bridge this gap by developing more robust and efficient stochastic gradient estimators that can handle a wider range of distributions and improve convergence.
Methods
The core contribution of this paper is a family of stochastic gradient estimators derived from the perturbative expansion of a function around the mean of the sampling distribution. This approach leverages Taylor series approximations of the target function.
- Taylor Expansion: The paper proposes approximating the function $f(z)$ with its Taylor expansion around a chosen point $\mu_0$. This allows the expectation $\mathbb{E}_{q(z;w)}[f(z)]$ to be approximated by a sum of moments of $q(z;w)$ around $\mu_0$.
- Perturbative Gradient Estimators ($G_T$): By taking the gradient of this Taylor approximation, the authors derive a family of gradient estimators. These estimators are generally biased but can be made unbiased in the limit of infinite order expansion, provided the function is analytic and its interval of convergence is within the support of the distribution.
- Poisson-Taylor Estimators ($G_{PT}$): To obtain practical unbiased estimators, the authors introduce Poisson-Taylor estimators. These combine deterministic terms with a Poisson expectation, offering unbiasedness for any finite order $K$ under certain conditions.
- Variance Reduction: The paper also presents methods for variance reduction by applying these perturbative corrections to existing gradient estimators, such as the black-box estimator. This involves subtracting the difference between the true function and its Taylor approximation from the black-box estimator.
- Analytic Continuation for Discrete Variables: A key innovation is the extension of these perturbative methods to discrete functions using analytic continuation. This allows for the computation of gradients for discrete distributions by finding a meromorphic function that matches the discrete function.
Datasets
The paper evaluates its methods on standard machine learning datasets for logistic regression:
- Iris
- Boston
- Diabetes
These datasets are used for both Gaussian and Bernoulli weight settings.
Key Insights and Ideas
- Taylor Expansion as a Gradient Tool: The paper demonstrates that Taylor expansions of functions, when combined with moments of the sampling distribution, can form the basis of effective gradient estimators. This offers a new perspective on approximating gradients in complex scenarios.
- Bridging Continuous and Discrete: The use of analytic continuation to apply continuous gradient estimation techniques to discrete variables is a significant conceptual leap, opening up new possibilities for training models with discrete components (e.g., binary weights).
- Bias-Variance Trade-off Control: The perturbative approach offers a tunable trade-off between bias and variance. By increasing the order of the Taylor expansion, bias can be reduced, while variance can be managed through techniques like Poisson-Taylor estimators or corrections to black-box methods.
- Practicality of First-Order Corrections: The paper highlights that even first-order perturbative corrections can offer substantial improvements in convergence and variance reduction, making them practical for large-scale models where higher-order computations might be prohibitive.
Key Results
- Variance Reduction: Table 1 shows significant variance reduction for analytic functions using perturbative corrections. For example, $\nabla \mathbb{E}[\exp(z)]$ shows a 64% variance reduction with a 1st-order correction and 86% with a 2nd-order correction compared to the uncorrected black-box estimator. Similar improvements are seen for other functions like $\sin(z)$ and $\log(\Gamma(z+3))$.
- Improved Convergence: Figures 2 and 3 demonstrate that the perturbative corrections lead to faster convergence (lower negative ELBO) in Bayesian logistic regression models with both Gaussian and Bernoulli weights. The improvements are particularly noticeable when using fewer samples for gradient estimation.
- Effectiveness on Discrete Variables: In Section 9.3, the paper shows that the Taylor estimator and corrected black-box estimator exhibit faster convergence than the regular black-box estimator for Bernoulli weights, with the difference being greatest when the number of samples is small.
Limitations and Future Work
- Computational Cost of Higher Orders: While higher-order Taylor expansions can reduce bias, they increase computational complexity due to the need for higher-order moments and derivatives. The paper notes that for multivariate cases, the number of terms grows exponentially with the order.
- Analyticity Requirements: The theoretical guarantees for unbiasedness of the ideal $G_T(\omega, \infty)$ estimator rely on the analyticity of the function $f(z)$ and its interval of convergence. For non-analytic functions, bias can persist.
- Future Work: The authors suggest that future work should focus on the efficient implementation of first- and second-order corrections on large models with both continuous and discrete variables. This implies that while the theoretical framework is established, practical, scalable implementations are still an active area of research.
Summary updated