ArticleslgStudy

biology

Natural evolution strategy

Natural evolution strategy is a biology topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Natural evolution strategy rather than just read about it. In short: 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.

Natural evolution strategy — main illustration
Natural evolution strategy — illustration

Key takeaways

  • Natural evolution strategy belongs to biology; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Natural evolution strategy to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Natural evolution strategy from memory before moving on to harder problems.

Reference excerpt

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 with respect to 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 π(x|θ) and f(x) the fitness function evaluated at x. NES then pursues the objective of maximizing the expected fitness under the search distribution

J(θ)=Eθ[f(x)]=∫f(x)π(x|θ)dx through gradient ascent. The gradient can be rewritten as

∇θJ(θ)=∇θ∫f(x)π(x|θ)dx =∫f(x)∇θπ(x|θ)dx =∫f(x)∇θπ(x|θ)π(x|θ)π(x|θ)dx =∫[f(x)∇θlog⁡π(x|θ)]π(x|θ)dx =Eθ[f(x)∇θlog⁡π(x|θ)] that is, the expected value of f(x) times the log-derivatives at x. In practice, it is possible to use the Monte Carlo approximation based on a finite number of λ samples

∇θJ(θ)≈1λ∑k=1λf(xk)∇θlog⁡π(xk|θ). Finally, the parameters of the search distribution can be updated iteratively

θ←θ+η∇θJ(θ)

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

θ←θ+η𝐅−1∇θJ(θ), where 𝐅 is the Fisher information matrix. The Fisher matrix can sometimes be computed exactly, otherwise it is estimated from samples, reusing the log-derivatives ∇θlog⁡π(x|θ).

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 u1≥⋯≥uλ. Let xi denote the ith best individual. Replacing fitness with utility, the gradient estimate becomes

∇θJ(θ)=∑k=1λuk∇θlog⁡π(xk|θ). The choice of utility function is a free parameter of the algorithm.

Pseudocode input: f,θinit

1 repeat 2 for k=1…λ do // λ is the population size 3 draw sample xk∼π(⋅|θ) 4 evaluate fitness f(xk) 5 calculate log-derivatives ∇θlog⁡π(xk|θ) 6 end 7 assign the utilities uk // based on rank 8 estimate the gradient ∇θJ←1λ∑k=1λuk⋅∇θlog⁡π(xk|θ) 9 estimate 𝐅←1λ∑k=1λ∇θlog⁡π(xk|θ)∇θlog⁡π(xk|θ)⊤ // or compute it exactly 10 update parameters θ←θ+η⋅𝐅−1∇θJ // η 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

Illustrations

Natural evolution strategy illustration

Worked examples

Example 1 — a first encounter with Natural evolution strategy

Start with the simplest possible case. Write down what Natural evolution strategy claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Natural evolution strategy before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Natural evolution strategy ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Natural evolution strategy

In research
Natural evolution strategy appears in biology research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Natural evolution strategy in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Natural evolution strategy is common in secondary-school and first-year university syllabi. It links to neighbouring topics Evolution strategy, Stochastic optimization, so understanding it makes those chapters shorter.
In everyday life
Look for Natural evolution strategy outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Natural evolution strategy” →

How to study Natural evolution strategy in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Natural evolution strategy means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Natural evolution strategy out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Natural evolution strategy in simple terms?

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.

Why does Natural evolution strategy matter?

Because it connects several biology ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Natural evolution strategy?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Natural evolution strategy.

Tags

  • Evolution strategy
  • Stochastic optimization

Keep exploring