Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Variational Optimization

Thomas Bird, Julius Kunze|arXiv (Cornell University)|Sep 13, 2018
Metaheuristic Optimization Algorithms ResearchComputer Science9 references15 citations
TL;DR

This paper introduces Stochastic Variational Optimization (SVO) as a differentiable upper bound for non-differentiable or discrete objectives, showing that methods like Gaussian Perturbation and Natural Evolution Strategies are special cases of SVO using Gaussian sampling. It demonstrates that for differentiable objectives, Stochastic Directional Derivatives outperform SVO-based methods due to significantly lower variance, making them preferable for parallel stochastic gradient descent.

ABSTRACT

Variational Optimization forms a differentiable upper bound on an objective. We show that approaches such as Natural Evolution Strategies and Gaussian Perturbation, are special cases of Variational Optimization in which the expectations are approximated by Gaussian sampling. These approaches are of particular interest because they are parallelizable. We calculate the approximate bias and variance of the corresponding gradient estimators and demonstrate that using antithetic sampling or a baseline is crucial to mitigate their problems. We contrast these methods with an alternative parallelizable method, namely Directional Derivatives. We conclude that, for differentiable objectives, using Directional Derivatives is preferable to using Variational Optimization to perform parallel Stochastic Gradient Descent.

Motivation & Objective

  • To formalize Stochastic Variational Optimization (SVO) as a principled, differentiable upper bound for optimization of non-differentiable or discrete objectives.
  • To analyze the bias and variance of the Gaussian Perturbation (GP) gradient estimator, showing high variance limits its practicality without variance reduction.
  • To evaluate the effectiveness of antithetic sampling and baseline methods in reducing GP estimator variance, demonstrating their critical role in stabilizing training.
  • To compare SVO-based methods with an alternative parallelizable gradient estimator based on Directional Derivatives (DD), especially for differentiable objectives.
  • To establish that for differentiable objectives, DD is preferable to SVO due to lower variance and lack of hyperparameter tuning for noise scale.

Proposed method

  • Formulate SVO as minimizing an upper bound $ U(\theta) = \mathbb{E}_{p(x|\theta)}[f(x)] $, where $ \theta $ parameterizes a variational distribution $ p(x|\theta) $, enabling differentiable optimization.
  • Apply Monte Carlo sampling to approximate the gradient of $ U(\theta) $, yielding $ \nabla_\theta U \approx \frac{1}{S} \sum_{s=1}^S f(x^s) \nabla_\theta \log p(x^s|\theta) $, with $ x^s \sim p(x|\theta) $.
  • Specialize SVO to Gaussian perturbations by setting $ p(x|\theta) = \mathcal{N}(\mu, \sigma^2 I) $, leading to the GP estimator $ \nabla_\mu U = \frac{1}{\sigma^2} \mathbb{E}_\epsilon [\epsilon f(\mu + \epsilon)] $.
  • Introduce antithetic sampling by pairing $ \epsilon $ and $ -\epsilon $ to reduce variance in the GP estimator, and derive an approximation for the resulting variance reduction.
  • Use a moving average baseline to further reduce variance in the GP estimator, showing it achieves similar performance to antithetic sampling.
  • Propose and analyze the Stochastic Directional Derivative (DD) estimator as an alternative, which computes gradients via directional perturbations and avoids the need for a noise scale hyperparameter.

Experimental results

Research questions

  • RQ1How does Stochastic Variational Optimization (SVO) relate to existing evolutionary and gradient approximation methods like Gaussian Perturbation and Natural Evolution Strategies?
  • RQ2What is the bias and variance structure of the Gaussian Perturbation gradient estimator, and how do antithetic sampling and baselines affect them?
  • RQ3How does the performance of the GP estimator with antithetic sampling compare to the SPSA gradient estimator?
  • RQ4For differentiable objectives, does a parallelizable gradient estimator exist that outperforms SVO-based methods in terms of variance and stability?
  • RQ5Can Stochastic Directional Derivatives provide a parameter-free, lower-variance alternative to SVO with Gaussian perturbations?

Key findings

  • The Gaussian Perturbation (GP) estimator is a special case of SVO when the variational distribution is Gaussian, and it suffers from high variance unless mitigated by antithetic sampling or baselines.
  • Antithetic sampling reduces the variance of the GP estimator significantly without affecting bias, and the variance reduction is well-approximated by the derived analytical expression.
  • Using a baseline in the GP estimator achieves variance reduction comparable to antithetic sampling, making the method viable when properly tuned.
  • The GP estimator with antithetic sampling is closely related to the SPSA gradient estimator, sharing similar bias and variance properties.
  • For differentiable objectives, the Stochastic Directional Derivative (DD) estimator has substantially lower variance than standard GP, and outperforms GP with antithetic sampling in both synthetic and neural network experiments.
  • In training a 3-layer fully connected network on MNIST, the DD method achieved superior convergence and lower loss compared to GP without antithetic sampling, and matched or exceeded the performance of GP with antithetic sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.