Skip to main content
QUICK REVIEW

[Paper Review] Guided evolutionary strategies: Augmenting random search with surrogate gradients

Niru Maheswaranathan, Luke Metz|arXiv (Cornell University)|Jun 26, 2018
Advanced Multi-Objective Optimization AlgorithmsComputer Science26 citations
TL;DR

This paper proposes Guided Evolutionary Strategies (Guided ES), a method that combines surrogate gradients with random search by shaping the search distribution along a low-dimensional subspace defined by surrogate gradients. It achieves improved optimization performance over both standard evolutionary strategies and first-order methods by analytically balancing bias and variance, demonstrating consistent gains in unrolled optimization, synthetic gradients, and discrete neural network training.

ABSTRACT

Many applications in machine learning require optimizing a function whose true gradient is unknown, but where surrogate gradient information (directions that may be correlated with, but not necessarily identical to, the true gradient) is available instead. This arises when an approximate gradient is easier to compute than the full gradient (e.g. in meta-learning or unrolled optimization), or when a true gradient is intractable and is replaced with a surrogate (e.g. in certain reinforcement learning applications, or when using synthetic gradients). We propose Guided Evolutionary Strategies, a method for optimally using surrogate gradient directions along with random search. We define a search distribution for evolutionary strategies that is elongated along a guiding subspace spanned by the surrogate gradients. This allows us to estimate a descent direction which can then be passed to a first-order optimizer. We analytically and numerically characterize the tradeoffs that result from tuning how strongly the search distribution is stretched along the guiding subspace, and we use this to derive a setting of the hyperparameters that works well across problems. Finally, we apply our method to example problems, demonstrating an improvement over both standard evolutionary strategies and first-order methods (that directly follow the surrogate gradient). We provide a demo of Guided ES at https://github.com/brain-research/guided-evolutionary-strategies

Motivation & Objective

  • To address optimization in settings where the true gradient is unavailable but correlated surrogate gradients are accessible.
  • To overcome the limitations of pure random search (high variance in high dimensions) and naive first-order methods (bias from inaccurate gradients).
  • To develop a principled method that optimally fuses surrogate gradient information with evolutionary strategies.
  • To analyze and tune the bias-variance trade-off inherent in using surrogate gradients within random search.
  • To demonstrate the method's effectiveness across diverse machine learning applications, including unrolled optimization and discrete variable training.

Proposed method

  • The method defines a search distribution elongated along a guiding subspace spanned by recent surrogate gradients, reducing variance in the descent direction estimate.
  • It uses finite-difference estimation of the descent direction via random perturbations within this low-dimensional subspace.
  • The algorithm adaptively tunes the stretch of the search distribution along the guiding subspace to balance bias and variance, derived from analytical characterization of the trade-off.
  • The optimal hyperparameter setting is derived analytically to maximize expected progress across problems.
  • The method is applied to problems with unrolled gradients, synthetic gradients, and discrete variables, where surrogate gradients are either biased or noisy.
  • It avoids issues with second-order optimizers (e.g., Adam) by recognizing that the Guided ES update is equivalent to scaling the true gradient by a positive semi-definite matrix.

Experimental results

Research questions

  • RQ1How can surrogate gradients be optimally combined with random search to improve convergence in black-box optimization?
  • RQ2What is the analytical trade-off between bias and variance when using surrogate gradients in evolutionary strategies?
  • RQ3Can a principled method be derived to tune the strength of guidance along the surrogate gradient subspace for robust performance across problems?
  • RQ4How does Guided ES compare to standard evolutionary strategies and first-order methods in settings with biased or noisy gradients?
  • RQ5Can Guided ES stabilize training when surrogate gradients are initially poor, such as in synthetic gradient training?

Key findings

  • Guided ES outperforms both standard evolutionary strategies and first-order methods using surrogate gradients on a quadratic test problem with injected gradient bias.
  • The method achieves consistent progress even when synthetic gradients are initially poor, unlike first-order methods that diverge or stall.
  • In unrolled optimization, Guided ES reduces the bias-induced error in learning rate prediction compared to standard methods.
  • The correlation between the synthetic gradient and true gradient remains low during training, yet Guided ES still makes steady progress, demonstrating robustness to gradient quality.
  • The optimal hyperparameter setting derived from the bias-variance analysis leads to strong performance across diverse problems without per-problem tuning.
  • The method's update direction is equivalent to applying a positive semi-definite matrix to the true gradient, suggesting caution when used with optimizers like Adam that also apply such matrices.

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.