请输入您要查询的百科知识:

 

词条 Natural evolution strategy
释义

  1. Method

     Search gradients  Natural gradient ascent  Fitness shaping  Pseudocode 

  2. See also

  3. Bibliography

  4. External links

{{Evolutionary algorithms}}{{no footnotes|date=March 2015}}

Natural evolution strategies (NES) are a family of numerical optimization algorithms for black box problems. Similar in spirit to evolution strategies, they iteratively update the (continuous) parameters of a search distribution by following the natural gradient towards higher expected fitness.

Method

The general procedure is as follows: the parameterized search distribution is used to produce a batch of search points, and the fitness function is evaluated at each such point. The distribution’s parameters (which include strategy parameters) allow the algorithm to adaptively capture the (local) structure of the fitness function. For example, in the case of a Gaussian distribution, this comprises the mean and the covariance matrix. From the samples, NES estimates a search gradient on the parameters towards higher expected fitness. NES then performs a gradient ascent step along the natural gradient, a second order method which, unlike the plain gradient, renormalizes the update w.r.t. uncertainty. This step is crucial, since it prevents oscillations, premature convergence, and undesired effects stemming from a given parameterization. The entire process reiterates until a stopping criterion is met.

All members of the NES family operate based on the same principles. They differ in the type of probability distribution and the gradient approximation method used. Different search spaces require different search distributions; for example, in low dimensionality it can be highly beneficial to model the full covariance matrix. In high dimensions, on the other hand, a more scalable alternative is to limit the covariance to the diagonal only. In addition, highly multi-modal search spaces may benefit from more heavy-tailed distributions (such as Cauchy, as opposed to the Gaussian). A last distinction arises between distributions where we can analytically compute the natural gradient, and more general distributions where we need to estimate it from samples.

Search gradients

Let denote the parameters of the search distribution and the fitness function evaluated at . NES then pursues the objective of maximizing the expected fitness under the search distribution

through gradient ascent. The gradient can be rewritten as

that is, the expected value of times the log-derivatives at . In practice, it is possible to use the Monte Carlo approximation based on a finite number of samples

.

Finally, the parameters of the search distribution can be updated iteratively

Natural gradient ascent

Instead of using the plain stochastic gradient for updates, NES

follows the natural gradient, which has been shown to

possess numerous advantages over the plain (vanilla) gradient, e.g.:

  • the gradient direction is independent of the parameterization of the search distribution
  • the updates magnitudes are automatically adjusted based on uncertainty, in turn speeding convergence on plateaus and ridges.

The NES update is therefore

,

where is the Fisher information matrix.

The Fisher matrix can sometimes be computed exactly, otherwise it is estimated from samples, reusing the log-derivatives .

Fitness shaping

NES utilizes rank-based fitness shaping in order to render the

algorithm more robust, and invariant under monotonically

increasing transformations of the fitness function.

For this purpose, the fitness of the population is transformed into a set of utility values

. Let denote the ith best individual.

Replacing fitness with utility, the gradient estimate becomes

.

The choice of utility function is a free parameter of the algorithm.

Pseudocode

 {{nowrap|'''input''': }}  1  '''repeat'''     2     {{nowrap|'''for '''  '''do'''}}                                              ''// {{mvar|λ}} is the population size''         3         {{nowrap|draw sample }}         4         {{nowrap|evaluate fitness }}         5         {{nowrap|calculate log-derivatives }}         6     '''end'''     7     {{nowrap|assign the utilities }}                                          ''// based on rank''     8     {{nowrap|estimate the gradient }}     9     {{nowrap|estimate }}           ''// or compute it exactly''      10    {{nowrap|update parameters }}                        ''// {{mvar|η}} is the learning rate''  11 '''until''' stopping criterion is met

See also

  • Evolutionary computation
  • Covariance matrix adaptation evolution strategy (CMA-ES)

Bibliography

  • D. Wierstra, T. Schaul, J. Peters and J. Schmidhuber (2008). Natural Evolution Strategies. IEEE Congress on Evolutionary Computation (CEC).
  • Y. Sun, D. Wierstra, T. Schaul and J. Schmidhuber (2009). Stochastic Search using the Natural Gradient. International Conference on Machine Learning (ICML).
  • T. Glasmachers, T. Schaul, Y. Sun, D. Wierstra and J. Schmidhuber (2010). Exponential Natural Evolution Strategies. Genetic and Evolutionary Computation Conference (GECCO).
  • T. Schaul, T. Glasmachers and J. Schmidhuber (2011). High Dimensions and Heavy Tails for Natural Evolution Strategies. Genetic and Evolutionary Computation Conference (GECCO).
  • T. Schaul (2012). Natural Evolution Strategies Converge on Sphere Functions. Genetic and Evolutionary Computation Conference (GECCO).

External links

  • Collection of NES implementations in different languages
{{Evolutionary computation}}

4 : Evolutionary algorithms|Stochastic optimization|Optimization algorithms and methods|Articles with example pseudocode

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 20:35:36