CMA-ES
Covariance matrix adaptation evolution strategy (CMA-ES) is a particular kind of strategy for numerical optimization. Evolution strategies (ES) are stochastic, derivative-free methods for numerical optimization of non-linear or non-convex continuous optimization problems. They belong to the class of evolutionary algorithms and evolutionary computation. An evolutionary algorithm is broadly based on the principle of biological evolution, namely the repeated interplay of variation (via recombination and mutation) and selection: in each generation (iteration) new individuals (candidate solutions, denoted as x ) are generated by variation of the current parental individuals, usually in a... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Covariance matrix adaptation evolution strategy (CMA-ES) is a particular kind of strategy for numerical optimization. Evolution strategies (ES) are stochastic, derivative-free methods for numerical optimization of non-linear or non-convex continuous optimization problems. They belong to the class of evolutionary algorithms and evolutionary computation. An evolutionary algorithm is broadly based on the principle of biological evolution, namely the repeated interplay of variation (via recombination and mutation) and selection: in each generation (iteration) new individuals (candidate solutions, denoted as x ) are generated by variation of the current parental individuals, usually in a stochastic way. Then, some individuals are selected to become the parents in the next generation based on their fitness or objective function value f(x) . Like this, individuals with better and better f -values are generated over the generation sequence. In an evolution strategy, new candidate solutions are usually sampled according to a multivariate normal distribution in \mathbb{R}^n . Recombination amounts to selecting a new mean value for the distribution. Mutation amounts to adding a random vector, a perturbation with zero mean. Pairwise dependencies between the variables in the distribution are represented by a covariance matrix. The covariance matrix adaptation (CMA) is a method to update the covariance matrix of this distribution. This is particularly useful if the function f is ill-conditioned. Adaptation of the covariance matrix amounts to learning a second order model of the underlying objective function similar to the approximation of the inverse Hessian matrix in the quasi-Newton method in classical optimization. In contrast to most classical methods, fewer assumptions on the underlying objective function are made. Because only a ranking (or, equivalently, sorting) of candidate solutions is exploited, neither derivatives nor even an (explicit) objective function is required by the method. For example, the ranking could come about from pairwise competitions between the candidate solutions in a Swiss-system tournament. initialize m , \sigma , C=I , p_\sigma=0 , p_c=0 // initialize state variables while not terminate do // iterate for i in \{1\ldots\lambda\} do // sample \lambda new solutions and evaluate them x_i ={} sample_multivariate_normal(mean {}=m , covariance_matrix {}=\sigma^2 C ) f_i = \operatorname{fitness}(x_i) x_{1\ldots\lambda} ← x_{s(1)\ldots s(\lambda)} with s(i) = \operatorname{argsort}(f_{1\ldots\lambda}, i) // sort solutions m' = m // we need later m - m' and x_i - m' m ← update_m (x_1, \ldots ,x_\lambda) // move mean to better solutions p_\sigma ← update_ps (p_\sigma,\sigma^{-1} C^{-1/2} (m - m')) // update isotropic evolution path p_c ← update_pc (p_c,\sigma^{-1}(m - m'),\|p_\sigma\|) // update anisotropic evolution path C ← update_C (C,p_c,(x_1 - m')/\sigma,\ldots ,(x_\lambda - m')/\sigma) // update covariance matrix \sigma ← update_sigma (\sigma,\|p_\sigma\|) // update step-size using isotropic path length return m or x_1 The order of the five update assignments is relevant: m must be updated first, p_\sigma and p_c must be updated before C , and \sigma must be updated last. The update equations for the five state variables are specified in the following. Given are the search space dimension n and the iteration step k . The five state variables are m_k\in\mathbb{R}^n , the distribution mean and current favorite solution to the optimization problem, \sigma_k>0 , the step-size, C_k , a symmetric and positive-definite n\times n covariance matrix with C_0 = I and p_\sigma\in\mathbb{R}^n, p_c\in\mathbb{R}^n , two evolution paths, initially set to the zero vector. The iteration starts with sampling \lambda>1 candidate solutions x_i\in\mathbb{R}^n from a multivariate normal distribution \textstyle \mathcal{N}(m_k,\sigma_k^2 C_k) , i.e. for i=1,\ldots,\lambda \begin{align} x_i \ &\sim\ \mathcal{N}(m_k,\sigma_k^2 C_k) \\&\sim\ m_k + \sigma_k\times\mathcal{N}(0,C_k) \end{align} The second line suggests the interpretation as unbiased perturbation (mutation) of the current favorite solution vector m_k (the distribution mean vector). The candidate solutions x_i are evaluated on the objective function f:\mathbb{R}^n\to\mathbb{R} to be minimized. Denoting the f -sorted candidate solutions as \{x_{i:\lambda} \mid i=1\dots\lambda\} = \{x_i\mid i=1\dots\lambda\} \text{ and } f(x_{1:\lambda})\le\dots\le f(x_{\mu:\lambda})\le f(x_{\mu+1:\lambda}) \le \cdots, the new mean value is computed as \begin{align} m_{k+1} &= \sum_{i=1}^\mu w_i\, x_{i:\lambda} \\ &= m_k + \sum_{i=1}^\mu w_i\, (x_{i:\lambda} - m_k) \end{align} where the positive (recombination) weights w_1 \ge w_2 \ge \dots \ge w_\mu > 0 sum to one. Typically, \mu \le \lambda/2 and the weights are chosen such that \textstyle \mu_w := 1 / \sum_{i=1}^\mu w_i^2 \approx \lambda/4 . The only feedback used from the objective function here and in the following is an ordering of the sampled candidate solutions due to the indices i:\lambda . The step-size \sigma_k is updated using cumulative step-size adaptation (CSA), sometimes also denoted as path length control. The evolution path (or search path) p_\sigma is updated first. p_\sigma \gets \underbrace{(1-c_\sigma)}_{\!\!\!\!\!\text{discount factor}\!\!\!\!\!}\, p_\sigma + \overbrace{\sqrt{1 - (1-c_\sigma)^2}}^{ \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\text{complements for discounted variance} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} \underbrace{\sqrt{\mu_w} \,C_k^{\;-1/2} \, \frac{\overbrace{m_{k+1} - m_k}^{\!\!\!\text{displacement of } m\!\!\!}}{\sigma_k}}_{\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! \text{distributed as } \mathcal{N}(0,I) \text{ under neutral selection} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} \sigma_{k+1} = \sigma_k \times \exp\bigg(\frac{c_\sigma}{d_\sigma} \underbrace{\left(\frac{\|p_\sigma\|}{\operatorname E\|\mathcal{N}(0,I)\|} - 1\right)}_{\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! \text{unbiased about 0 under neutral selection} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! }\bigg) where c_\sigma^{-1}\approx n/3 is the backward time horizon for the evolution path p_\sigma and larger than one ( c_\sigma \ll 1 is reminiscent of an exponential decay constant as (1-c_\sigma)^k\approx\exp(-c_\sigma k) where c_\sigma^{-1} is the associated lifetime and c_\sigma^{-1}\ln(2)\approx0.7c_\sigma^{-1} the half-life), \mu_w=\left(\sum_{i=1}^\mu w_i^2\right)^{-1} is the variance effective selection mass and 1 \le \mu_w \le \mu by definition of w_i , C_k^{\;-1/2} = \sqrt{C_k}^{\;-1} = \sqrt{C_k^{\;-1}} is the unique symmetric square root of the inverse of C_k , and d_\sigma is the damping parameter usually close to one. For d_\sigma=\infty or c_\sigma=0 the step-size remains unchanged. The step-size \sigma_k is increased if and only if \|p_\sigma\| is larger than the expected value \begin{align} \operatorname E\|\mathcal{N}(0,I)\| &= \sqrt{2} \; \frac{\Gamma((n+1)/2)}{\Gamma(n/2)} \\[1ex] &\approx \sqrt{n}\, \left(1 - \frac{1}{4 n} + \frac{1}{21\,n^2}\right) \end{align} and decreased if it is smaller. For this reason, the step-size update tends to make consecutive steps C_k^{-1} -conjugate, in that after the adaptation has been successful \textstyle\left(\frac{m_{k+2}-m_{k+1}}{\sigma_{k+1}}\right)^T\! C_k^{-1} \frac{m_{k+1}-m_{k}}{\sigma_k} \approx 0 . Finally, the covariance matrix is updated, where again the respective evolution path is updated first. p_c \gets \underbrace{(1-c_c)}_{\!\!\!\!\!\text{discount factor}\!\!\!\!\!}\, p_c + \underbrace{\mathbf{1}_{[0,\alpha\sqrt{n}]}(\|p_\sigma\|)}_{\text{indicator function}} \overbrace{\sqrt{1 - (1-c_c)^2}}^{ \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\text{complements for discounted variance} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} \underbrace{\sqrt{\mu_w} \, \frac{m_{k+1} - m_k}{\sigma_k}}_{\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! \text{distributed as}\; \mathcal{N}(0,C_k)\;\text{under neutral selection} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} C_{k+1} = \underbrace{(1 - c_1 - c_\mu + c_s)}_{\!\!\!\!\!\text{discount factor}\!\!\!\!\!} \, C_k + c_1 \underbrace{p_c p_c^T}_{ \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! \text{rank one matrix} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} + \,c_\mu \underbrace{\sum_{i=1}^\mu w_i \frac{x_{i:\lambda} - m_k}{\sigma_k} \left( \frac{x_{i:\lambda} - m_k}{\sigma_k} \right)^T}_{ \operatorname{rank} \min(\mu,n) \text{ matrix}} where T denotes the transpose and c_c^{-1}\approx n/4 is the backward time horizon for the evolution path p_c and larger than one, \alpha\approx 1.5 and the indicator function \mathbf{1}_{[0,\alpha\sqrt{n}]}(\|p_\sigma\|) evaluates to one if and only if \|p_\sigma\|\in[0,\alpha\sqrt{n}] or, in other words, \|p_\sigma\|\le\alpha\sqrt{n} , which is usually the case, c_s = (1 - \mathbf{1}_{[0,\alpha\sqrt{n}]}(\|p_\sigma\|)^2) \,c_1 c_c (2-c_c) makes partly up for the small variance loss in case the indicator is zero, c_1 \approx 2 / n^2 is the learning rate for the rank-one update of the covariance matrix and c_\mu \approx \mu_w / n^2 is the learning rate for the rank- \mu update of the covariance matrix and must not exceed 1 - c_1 . The covariance matrix update tends to increase the likelihood for p_c and for (x_{i:\lambda} - m_k)/\sigma_k to be sampled from \mathcal{N}(0,C_{k+1}) . This completes the iteration step. The number of candidate samples per iteration, \lambda , is not determined a priori and can vary in a wide range. Smaller values, for example \lambda=10 , lead to more local search behavior. Larger values, for example \lambda=10n with default value \mu_w \approx \lambda/4 , render the search more global. Sometimes the algorithm is repeatedly restarted with increasing \lambda by a factor of two for each restart. Besides of setting \lambda (or possibly \mu instead, if for example \lambda is predetermined by the number of available processors), the above introduced parameters are not specific to the given objective function and therefore not meant to be modified by the user. ==Example code in MATLAB/Octave== function xmin=purecmaes % (mu/mu_w, lambda)-CMA-ES % --------- User defined input parameters (need to be edited) --------- strfitnessfct = 'frosenbrock'; % name of objective/fitness function N = 20; % number of objective variables/problem dimension xmean = rand(N,1); % objective variables initial point sigma = 0.3; % coordinate wise standard deviation (step size) stopfitness = 1e-10; % stop if fitness lambda/(c1+cmu)/N/10 % to achieve O(N^2) eigeneval = counteval; C = triu(C) + triu(C,1)'; % enforce symmetry [B,D] = eig(C); % eigen decomposition, B==normalized eigenvectors D = sqrt(diag(D)); % D is a vector of standard deviations now invsqrtC = B * diag(D.^-1) * B'; end % Break, if fitness is good enough or condition exceeds 1e14, better termination methods are advisable if arfitness(1) 1e7 * min(D) break; end end % while, end generation loop xmin = arx(:, arindex(1)); % Return best point of last iteration. % Notice that xmean is expected to be even % better. end % --------------------------------------------------------------- function f=frosenbrock(x) if size(x,1) f(x) = {\textstyle\frac{1}{2}}(x-x^*)^T H (x-x^*) the covariance matrix C_k adapts to the inverse of the Hessian matrix H , up to a scalar factor and small random fluctuations. More general, also on the function g \circ f , where g is strictly increasing and therefore order preserving, the covariance matrix C_k adapts to H^{-1} , up to a scalar factor and small random fluctuations. For selection ratio \lambda/\mu\to\infty (and hence population size \lambda\to\infty ), the \mu selected solutions yield an empirical covariance matrix reflective of the inverse-Hessian even in evolution strategies without adaptation of the covariance matrix. This result has been proven for \mu=1 on a static model, relying on the quadratic approximation. m_{k+1} = \arg\max_m \sum_{i=1}^\mu w_i \log p_\mathcal{N}(x_{i:\lambda} \mid m) where \log p_\mathcal{N}(x) = - \tfrac{1}{2} \log\det(2\pi C) - \tfrac{1}{2} (x-m)^T C^{-1} (x-m) denotes the log-likelihood of x from a multivariate normal distribution with mean m and any positive definite covariance matrix C . To see that m_{k+1} is independent of C remark first that this is the case for any diagonal matrix C , because the coordinate-wise maximizer is independent of a scaling factor. Then, rotation of the data points or choosing C non-diagonal are equivalent. The rank- \mu update of the covariance matrix, that is, the right most summand in the update equation of C_k , maximizes a log-likelihood in that \sum_{i=1}^\mu w_i \frac{x_{i:\lambda} - m_k}{\sigma_k} \left( \frac{x_{i:\lambda} - m_k}{\sigma_k} \right)^T = \arg\max_{C} \sum_{i=1}^\mu w_i \log p_\mathcal{N}\left(\left.\frac{x_{i:\lambda} - m_k}{\sigma_k} \right| C\right) for \mu\ge n (otherwise C is singular, but substantially the same result holds for \mu ). Here, p_\mathcal{N}(x | C) denotes the likelihood of x from a multivariate normal distribution with zero mean and covariance matrix C . Therefore, for c_1=0 and c_\mu=1 , C_{k+1} is the above maximum-likelihood estimator. See estimation of covariance matrices for details on the derivation. Akimoto et al. and Glasmachers et al. discovered independently that the update of the distribution parameters resembles the descent in direction of a sampled natural gradient of the expected objective function value E f(x) (to be minimized), where the expectation is taken under the sample distribution. With the parameter setting of c_\sigma=0 and c_1=0 , i.e. without step-size control and rank-one update, CMA-ES can thus be viewed as an instantiation of Natural Evolution Strategies (NES). The natural gradient is independent of the parameterization of the distribution. Taken with respect to the parameters of the sample distribution , the gradient of E f(x) can be expressed as \begin{align} {\nabla}_{\!\theta} E(f(x) \mid \theta) &= \nabla_{\!\theta} \int_{\mathbb R^n}f(x) p(x) \, \mathrm{d}x \\ &= \int_{\mathbb R^n}f(x) \nabla_{\!\theta} p(x) \, \mathrm{d}x \\ &= \int_{\mathbb R^n}f(x) p(x) \nabla_{\!\theta} \ln p(x) \, \mathrm{d}x \\ &= \operatorname E(f(x) \nabla_{\!\theta} \ln p(x\mid\theta)) \end{align} where p(x)=p(x\mid\theta) depends on the parameter vector \theta . The so-called score function, \nabla_{\!\theta} \ln p(x\mid\theta) = \frac{\nabla_{\!\theta} p(x)}{p(x)} , indicates the relative sensitivity of w.r.t. , and the expectation is taken with respect to the distribution . The natural gradient of E f(x) , complying with the Fisher information metric (an informational distance measure between probability distributions and the curvature of the relative entropy), now reads \begin{align} \tilde{\nabla} \operatorname E(f(x) \mid \theta) &= F^{-1}_\theta \nabla_{\!\theta} \operatorname E(f(x) \mid \theta) \end{align} where the Fisher information matrix F_\theta is the expectation of the Hessian of and renders the expression independent of the chosen parameterization. Combining the previous equalities we get \begin{align} \tilde{\nabla} \operatorname E(f(x) \mid \theta) &= F^{-1}_\theta \operatorname E(f(x) \nabla_{\!\theta} \ln p(x\mid\theta)) \\ &= \operatorname E(f(x) F^{-1}_\theta \nabla_{\!\theta} \ln p(x\mid\theta)) \end{align} A Monte Carlo approximation of the latter expectation takes the average over samples from \tilde{\nabla} \widehat{E}_\theta(f) := -\sum_{i=1}^\lambda \overbrace{w_i}^{\!\!\!\!\text{preference weight}\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} \underbrace{F^{-1}_\theta \nabla_{\!\theta} \ln p(x_{i:\lambda}\mid \theta)}_{\!\!\!\!\!\text{candidate direction from }x_{i:\lambda}\!\!\!\!\!} \quad\text{with } w_i = -f(x_{i:\lambda})/\lambda where the notation i:\lambda from above is used and therefore w_i are monotonically decreasing in i . Ollivier et al. finally found a rigorous derivation for the weights, w_i , as they are defined in the CMA-ES. The weights are an asymptotically consistent estimator of the CDF of f(X) at the points of the i th order statistic f(x_{i:\lambda}) , as defined above, where X\sim p(.|\theta) , composed with a fixed monotonically decreasing transformation w , that is, w_i = w\left(\frac{\mathsf{rank}(f(x_{i:\lambda})) - 1/2}{\lambda}\right). These weights make the algorithm insensitive to the specific f -values. More concisely, using the CDF estimator of f instead of f itself let the algorithm only depend on the ranking of f -values but not on their underlying distribution. This renders the algorithm invariant to strictly increasing f -transformations. Now we define \theta = [m_k^T \operatorname{vec}(C_k)^T \sigma_k]^T \in \mathbb{R}^{n+n^2+1} such that p(\cdot\mid\theta) is the density of the multivariate normal distribution \mathcal N(m_k,\sigma_k^2 C_k) . Then, we have an explicit expression for the inverse of the Fisher information matrix where \sigma_k is fixed F^{-1}_{\theta \mid \sigma_k} = \left[\begin{array}{cc}\sigma_k^2 C_k&0\\ 0&2 C_k\otimes C_k\end{array}\right] and for \begin{align} \ln p(x\mid\theta) &= \ln p(x\mid m_k,\sigma_k^2 C_k) \\[1ex] &= -\tfrac{1}{2}(x-m_k)^T \sigma_k^{-2} C_k^{-1} (x-m_k) - \tfrac{1}{2}\ln\det(2\pi\sigma_k^2 C_k) \end{align} and, after some calculations, the updates in the CMA-ES turn out as \begin{align} m_{k+1} &= m_k - \underbrace{[\tilde{\nabla} \widehat{E}_\theta(f)]_{1,\dots, n}}_{ \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! \text{natural gradient for mean} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! } \\ &= m_k + \sum_{i=1}^\lambda w_i (x_{i:\lambda} - m_k) \end{align} and \begin{align} C_{k+1} &= C_k + c_1(p_c p_c^T - C_k) - c_\mu\operatorname{mat}(\overbrace{[\tilde{\nabla} \widehat{E}_\theta(f)]_{n+1,\dots,n+n^2}}^{ \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! \text{natural gradient for covariance matrix} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! })\\ &= C_k + c_1(p_c p_c^T - C_k) + c_\mu \sum_{i=1}^\lambda w_i \left(\frac{x_{i:\lambda} - m_k}{\sigma_k} \left(\frac{x_{i:\lambda} - m_k}{\sigma_k}\right)^T - C_k\right) \end{align} where mat forms the proper matrix from the respective natural gradient sub-vector. That means, setting c_1=c_\sigma=0 , the CMA-ES updates descend in direction of the approximation \tilde{\nabla} \widehat{E}_\theta(f) of the natural gradient while using different step-sizes (learning rates 1 and c_\mu ) for the orthogonal parameters m and C respectively. More recent versions allow a different learning rate for the mean m as well. The most recent version of CMA-ES also use a different function w for m and C with negative values only for the latter (so-called active CMA). \operatorname E(m_{k+1}\mid m_k) = m_k and under some mild additional assumptions on the initial conditions \operatorname E(\log \sigma_{k+1} \mid \sigma_k) = \log \sigma_k and with an additional minor correction in the covariance matrix update for the case where the indicator function evaluates to zero, we find \operatorname E(C_{k+1} \mid C_k) = C_k Invariance under rotation of the search space in that for any h:\mathbb{R}^n\to \mathbb{R} and any z\in\mathbb{R}^n the behavior on f:x\mapsto h(R x) is independent of the orthogonal matrix R , given m_0=R^{-1} z . More general, the algorithm is also invariant under general linear transformations R when additionally the initial covariance matrix is chosen as R^{-1}{R^{-1}}^T . Any serious parameter optimization method should be translation invariant, but most methods do not exhibit all the above described invariance properties. A prominent example with the same invariance properties is the Nelder–Mead method, where the initial simplex must be chosen respectively. \|m_k - x^*\| \;\approx\; \|m_0 - x^*\| \times e^{-ck} for some c>0 , and more rigorously \frac{1}{k}\sum_{i=1}^k\log\frac{\|m_i - x^*\|}{\|m_{i-1} - x^*\|} \;=\; \frac{1}{k}\log\frac{\|m_k - x^*\|}{\|m_{0} - x^*\|} \;\to\; -c or similarly, \operatorname E\log\frac{\|m_k - x^*\|}{\|m_{k-1} - x^*\|} \;\to\; -c This means that on average the distance to the optimum decreases in each iteration by a "constant" factor, namely by \exp(-c) . The convergence rate c is roughly 0.1\lambda/n , given \lambda is not much larger than the dimension n . Even with optimal \sigma and C , the convergence rate c cannot largely exceed 0.25\lambda/n , given the above recombination weights w_i are all non-negative. The actual linear dependencies in \lambda and n are remarkable and they are in both cases the best one can hope for in this kind of algorithm. Linear convergence of CMA-ES with probability one has been demonstrated for convex quadratic functions. ===Interpretation as coordinate-system transformation=== Using a non-identity covariance matrix for the multivariate normal distribution in evolution strategies is equivalent to a coordinate system transformation of the solution vectors, mainly because the sampling equation \begin{align} x_i &\sim\ m_k + \sigma_k\times\mathcal{N}(0,C_k) \\ &\sim\ m_k + \sigma_k \times C_k^{1/2}\mathcal{N}(0,I) \end{align} can be equivalently expressed in an "encoded space" as \underbrace{C_k^{-1/2}x_i}_{\text{represented in the encode space} \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!} \sim\ \underbrace{C_k^{-1/2} m_k} {} + \sigma_k \times\mathcal{N}(0,I) The covariance matrix defines a bijective transformation (encoding) for all solution vectors into a space, where the sampling takes place with identity covariance matrix. Because the update equations in the CMA-ES are invariant under linear coordinate system transformations, the CMA-ES can be re-written as an adaptive encoding procedure applied to a simple evolution strategy with identity covariance matrix. This adaptive encoding procedure is not confined to algorithms that sample from a multivariate normal distribution (like evolution strategies), but can in principle be applied to any iterative search method. The (1+1)-CMA-ES generates only one new solution per iteration step which becomes the new distribution mean if it is better than the current mean. For c_c=1 the (1+1)-CMA-ES is a close variant of Gaussian adaptation. Some Natural Evolution Strategies are close variants of the CMA-ES with specific parameter settings. Natural Evolution Strategies do not utilize evolution paths (that means in CMA-ES setting c_c=c_\sigma=1 ) and they formalize the update of variances and covariances on a Cholesky factor instead of a covariance matrix. The CMA-ES has also been extended to multiobjective optimization as MO-CMA-ES. Another remarkable extension has been the addition of a negative update of the covariance matrix with the so-called active CMA. Using the additional active CMA update is considered as the default variant nowadays.
Cite this
"CMA-ES". 1789549156. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375197199 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy