Evolution strategies

Also known as: ES

On this page 7

Evolution strategies (ES) are a family of black-box optimization algorithms in evolutionary computation that improve a vector of real-valued parameters by repeatedly sampling mutated candidates from a probability distribution, evaluating them and moving the distribution toward the best ones. Unlike classic genetic algorithms, they rely mainly on Gaussian mutation and on adapting the mutation step size during the run, rather than on crossover of binary strings.

The approach was developed in the 1960s and 1970s at the Technical University of Berlin for engineering design problems, such as shaping nozzles and plates through physical experiments. Today evolution strategies, and especially their most advanced form CMA-ES, are standard tools for continuous optimization without gradients, and scaled variants are also used to train neural network policies in reinforcement learning.

How an evolution strategy searches

An evolution strategy searches by keeping a search distribution, usually a multivariate normal distribution with a mean vector and a covariance or step size, and updating it from the results of each generation. One iteration follows a fixed cycle.

  1. Sample offspring: draw λ candidate vectors by adding Gaussian noise to the current mean or to selected parents.
  2. Evaluate fitness: compute the objective value of each candidate, treating the function as a black box.
  3. Select parents: keep the best μ candidates according to their ranking, not their absolute values.
  4. Recombine: combine the selected vectors, often as a weighted average, to form the new mean.
  5. Adapt the step size: increase or decrease mutation strength depending on recent progress.

Because selection uses only the rank order of fitness values, evolution strategies are invariant to monotonic transformations of the objective. This makes them robust to noise, plateaus and badly scaled functions, where gradient methods often fail or require careful tuning.

Notation and main variants

Evolution strategies are described with the (μ/ρ +, λ) notation, where μ is the number of parents, ρ the number of parents combined in recombination, and λ the number of offspring per generation. The separator between μ and λ defines how survivors are chosen.

SchemeSelection ruleTypical behavior
(1+1)-ESChild replaces parent only if betterSimple local search; uses the one-fifth success rule
(μ+λ)-ESBest μ chosen from parents and offspringElitist; stable but can stagnate
(μ,λ)-ESBest μ chosen from offspring onlyForgets old parents; supports self-adaptation
(μ/μ_w,λ)-ESWeighted recombination of best μ offspringBasis of modern CMA-ES
Classic evolution strategy schemes

The comma selection in (μ,λ) schemes deliberately discards parents, which lets the algorithm escape outdated step sizes and track moving optima. A common setting is λ roughly seven times μ, although CMA-ES uses a default population that grows only logarithmically with problem dimension.

Step-size control and self-adaptation

Step-size control decides how far offspring move from the mean, and it is the feature that most distinguishes evolution strategies from other evolutionary algorithms. A step size that is too large wastes evaluations; one that is too small causes slow progress or premature stagnation.

Three main mechanisms have been developed, and the following table compares them.

MechanismHow it worksStrengthLimitation
One-fifth success ruleEnlarge steps if over 20% of mutations succeed, shrink otherwiseVery simpleOnly suited to (1+1)-ES
Self-adaptationStep sizes are part of each genome and mutate tooNo external rule neededNeeds larger populations
Cumulative step-size adaptationCompares the evolution path length with its expected random lengthFast and reliableMore complex to implement
Covariance matrix adaptationLearns correlations and scaling between variablesHandles rotated, ill-conditioned problemsQuadratic memory in dimension
Mechanisms for adapting mutation strength

Covariance matrix adaptation effectively learns a second-order model of the landscape, similar in spirit to an inverse Hessian. This is why CMA-ES is widely regarded as a strong default for problems with roughly up to a few hundred variables.

Evolution strategies differ from other optimizers mainly in representation, variation operators and the use of gradients. The table places them among their closest neighbors in evolutionary computation and machine learning.

MethodTypical representationMain variation operatorUses gradients
Evolution strategiesReal-valued vectorsGaussian mutation with adaptive stepsNo
Genetic algorithmBit strings or discrete genesCrossover plus mutationNo
Differential evolutionReal-valued vectorsScaled vector differencesNo
Particle swarm optimizationReal-valued positionsVelocity updates toward best positionsNo
Gradient descentReal-valued parametersStep along the negative gradientYes
Evolution strategies and neighboring optimization methods

A useful modern interpretation treats an evolution strategy as stochastic gradient estimation on a smoothed objective. Natural evolution strategies make this explicit by following the natural gradient of expected fitness with respect to the distribution parameters.

Strengths, limits and practical use

Evolution strategies work best on continuous, nonconvex and noisy problems where gradients are unavailable or unreliable. Typical applications include engineering design, controller tuning, hyperparameter optimization and direct policy search in reinforcement learning.

  • Embarrassingly parallel evaluation: each offspring can be evaluated on a separate worker, so wall-clock time scales well with hardware.
  • Few tuning parameters: CMA-ES needs mainly an initial mean and an initial step size.
  • Sample cost: they usually need more function evaluations than gradient methods on smooth problems.
  • Dimensionality limits: full covariance adaptation becomes expensive beyond thousands of variables, so diagonal or low-rank variants are used.
  • Local focus: a single run can converge to a local optimum; restart strategies with growing populations improve global search.

A common mistake is an initial step size that does not match the variable ranges. Practitioners usually rescale variables to similar units and set the initial step size to roughly a quarter to a third of the search interval.

The simple explanation

An evolution strategy finds good settings by trial and improvement. It starts with a guess. It creates many slightly changed copies of that guess. It tests each copy and keeps the best ones. Then it repeats the process.

The clever part is the size of the changes. When progress is easy, the method takes bigger jumps. When it gets close to a good answer, it takes smaller, more careful steps. Imagine searching for the warmest spot in a dark room. You take long strides at first and short ones as the air gets warmer.

How it is used in practice

An engineering team designing a wind turbine blade wants to minimize mass while keeping stiffness above a required limit. Each design is described by 24 continuous variables, such as chord lengths and twist angles, and each evaluation runs a structural simulation that takes about two minutes. The simulation gives no gradients and its output is slightly noisy.

The team runs CMA-ES with a population of 14 candidates per generation, evaluating all of them in parallel on a compute cluster. After roughly 300 generations, about 4,200 simulations in total, the algorithm finds a design that is about six percent lighter than the hand-tuned baseline while meeting the stiffness constraint. Two restarts with larger populations confirm that the result is not a poor local optimum.