Stein Variational Evolution Strategies

Cornelius V. Braun, Robert T. Lange, Marc Toussaint · OpenReview

TL;DR

This paper introduces Stein Variational Evolution Strategies (SV-CMA-ES), a novel gradient-free method that combines the strengths of Stein Variational Gradient Descent (SVGD) and Evolution Strategies (ES). By integrating ES updates into SVGD, SV-CMA-ES achieves efficient sampling and optimization for complex, non-differentiable objectives, outperforming existing gradient-free SVGD methods on various benchmarks.

What Problem Does This Paper Address?

Many real-world optimization and sampling problems, particularly in fields like robotics and reinforcement learning, involve objective functions that are either non-differentiable or for which gradients are unreliable. Traditional methods like Stein Variational Gradient Descent (SVGD) excel at sampling from complex distributions but require gradients. Existing gradient-free SVGD approaches, such as those using Monte Carlo gradients or surrogate distributions, suffer from high variance, slow convergence, or difficulty in fitting surrogates, especially in high dimensions. This paper aims to bridge this gap by developing a gradient-free method that retains the efficiency and robustness of SVGD while leveraging the exploration capabilities of Evolution Strategies.

Methods

The core innovation is Stein Variational Evolution Strategies (SV-CMA-ES). It builds upon SVGD by replacing the score function (gradient of the log-density) in the SVGD update with an update derived from the Covariance Matrix Adaptation Evolution Strategy (CMA-ES). Specifically, each SVGD particle is represented by the mean of an ES search distribution. The update for each particle then combines a "driving force" from the ES update (which aims to improve solution quality) and a "repulsive force" from SVGD (which encourages diversity and prevents mode collapse). This approach allows for parallel updates of multiple ES search distributions, mimicking the SVGD particle update. The authors also propose practical considerations, including a simplified particle update and the use of an annealed SVGD schedule for better performance.

Datasets

The paper evaluates SV-CMA-ES on a variety of tasks:

  • Synthetic Densities: Gaussian Mixture, Double Banana, and Motion Planning densities.
  • Bayesian Logistic Regression: Covtype, Spambase, and German credit datasets.
  • Reinforcement Learning: Pendulum, CartPole, MountainCar, Halfcheetah, Hopper, and Walker environments.

No new benchmarks were introduced; existing, well-established datasets and environments were used.

Key Insights and Ideas

  • Bridging SVGD and ES: The paper successfully demonstrates that combining the particle-based repulsion of SVGD with the adaptive search of CMA-ES creates a powerful gradient-free optimization and sampling framework.
  • Gradient-Free Efficiency: By replacing the need for explicit score functions with ES updates, SV-CMA-ES offers a viable solution for problems where gradients are unavailable or unreliable.
  • Improved Exploration: The ES component inherently provides better exploration capabilities than standard gradient-free SVGD methods, leading to more robust performance on challenging, multi-modal, or sparse reward landscapes.
  • Scalability: The parallel nature of updating multiple ES search distributions makes the method amenable to modern hardware, offering computational advantages.
  • Robustness on Sparse Rewards: SV-CMA-ES shows particular strength in sparse reward environments (like MountainCar), where its exploration capabilities help it escape local optima that trap other methods.

Key Results

  • Superior Sampling: SV-CMA-ES consistently produces higher quality samples than other gradient-free SVGD methods (GF-SVGD, SV-OpenAI-ES) across synthetic densities and reinforcement learning tasks.
  • Faster Convergence: The method demonstrates faster convergence rates in Bayesian logistic regression and reinforcement learning tasks compared to gradient-free baselines.
  • Competitive Performance: In many cases, SV-CMA-ES achieves performance comparable to gradient-based SVGD (V-SVGD), highlighting its effectiveness without requiring gradients.
  • RL Performance: SV-CMA-ES is the only gradient-free method that consistently achieves high scores across all tested RL tasks, including those with sparse rewards.
  • Runtime: While SV-CMA-ES can have higher computational costs per iteration due to covariance matrix decomposition, its faster convergence often leads to competitive or superior wall-clock times for achieving good results.

Limitations and Future Work

  • Kernel Bandwidth Selection: The authors acknowledge that selecting the kernel bandwidth via grid search is computationally expensive and suggest exploring median heuristics or adaptive methods in the future.
  • Computational Complexity: The decomposition of covariance matrices leads to a complexity of $O(\rho^2d + \rho d^3)$ for $\rho$ particles in $d$ dimensions, which can be high. Future work could explore diagonal covariance matrices to reduce this.
  • Variance: While generally robust, the paper notes that SV-CMA-ES can exhibit higher variance compared to some other methods in certain scenarios. Investigating mechanisms to improve stability is suggested.
  • Scaling Laws: Exploring how SV-CMA-ES scales with a very large number of particles and understanding scaling laws would be an interesting avenue for future research.
  • Theoretical Analysis: A more in-depth theoretical analysis of the algorithm's convergence properties and its deviation from canonical SVGD is left for future work.

Summary updated

BibTeX
@inproceedings{braun2025stein,
  author = {Cornelius V. Braun and Robert T. Lange and Marc Toussaint},
  title = {{Stein Variational Evolution Strategies}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=3sRWakRii6},
}
Figure