# 进化策略

[进化策略](https://www.edgepedia.org/zh/evolution-strategies)（evolution strategy, ES）是一种黑箱优化算法，它通过变异、重组和选择，在不使用导数的情况下迭代改进一个候选解种群，以优化连续目标函数。它属于进化计算，与进化规划和遗传算法并列，最常用于连续搜索空间，其中候选解从多元正态分布中采样，而分布的参数在运行过程中自适应调整。<sup>[1](https://link.springer.com/chapter/10.1007/978-3-662-43505-2_44)</sup>

| 关键事实 | 详情 |
|---|---|
| 优化对象 | 被视为黑箱的实值目标函数 f(x)；搜索分布的参数（均值、步长、协方差）是内部状态。<sup>[1](https://link.springer.com/chapter/10.1007/978-3-662-43505-2_44)</sup> |
| 核心循环 | 从均值周围的正态分布中采样 λ 个子代，评估它们，选择最好的 μ 个作为新的父代。<sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup> |
| 记号 | (μ/ρ+,λ)：μ 个父代，每个子代由 ρ 个父代混合，λ 个子代；“+”从父代加子代中选择（精英策略），“,”仅从子代中选择。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup> |
| 步长控制 | 对数正态自适应、1/5 成功规则，或累积步长自适应（CSA）。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup> |
| 主流变体 | CMA-ES，连续域进化计算事实上的标准。<sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup> |
| 典型维度 | CMA-ES 通常应用于三维到一百维之间。<sup>[4](https://cma-es.github.io/)</sup> |
| 起源 | 汉斯-保罗·施韦费尔（Hans-Paul Schwefel），1977 年，Birkhäuser 专著。<sup>[5](https://doi.org/10.1007/978-3-0348-5927-1)</sup> |

## 工作原理

进化策略维护一组 μ 个父代解，每一代通过变异和重组产生 λ 个子代。子代在目标函数上被评估，最好的被选出来构成下一组父代。<sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup>

最简单的情形是双成员 (1+1)-ES：一个父代，每次迭代一个子代。子代通过将所有变量随机微调而产生，\( x = x + \sigma \cdot N(0, I) \)，仅当目标值不劣化时才被接受。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup><sup> • </sup><sup>[6](https://scholarlypublications.universiteitleiden.nl/access/item%3A3719876/download)</sup> 变异强度 σ 是核心控制参数。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup>

**自适应**让算法自行调节 σ。策略参数携带在个体的表示中，与对象变量一同变异，从而使适应良好的步长间接地通过选择存活下来。<sup>[7](https://sci2s.ugr.es/sites/default/files/files/linksInterest/Tutorials/EC-History-IEEETEC-1-1-1997.pdf)</sup> σ 的变异是对数正态的，σ̃ = σ·exp(ζ)，这意味着在对数尺度上策略变异与对象参数变异相对应，且 log σ 的期望是无偏的。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup>

## 具体做法

在 (μ/ρ+,λ) 记号中，μ 是父代数目，ρ 是每个子代所混合的父代数目，λ 是子代数目；“+”变体从父代与子代的并集中选择（精英策略），而“,”变体仅从子代中选择，丢弃父代。<sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup>

**1/5 成功规则**是一种外生替代方案：测量使目标改善的子代比例，若成功率超过 1/5 则增大 σ，低于则减小。在球模型上最优成功概率约为 0.27，因此 1/5 的目标接近最优。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup>

**累积步长自适应（CSA）**用更长的记忆取代单步成功率：一条进化路径累积近期步向量的序列，其期望长度正比于 \( \sigma \sqrt{n} \)。若连续步向量的长度系统性地过小，σ 应增大；若过大，σ 应减小。<sup>[3](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)</sup>

## 起源

进化策略由英戈·雷兴贝格（Ingo Rechenberg）和汉斯-保罗·施韦费尔在柏林工业大学发展起来，施韦费尔 1977 年由 Birkhäuser 出版的专著《用进化策略对计算机模型进行数值优化》（Numerische Optimierung von Computer-Modellen mittels der Evolutionsstrategie）是重要的早期出版物，引入并研究了多成员 (μ+λ)-ES 和 (μ,λ)-ES。<sup>[26](https://doi.org/10.1201/9781482268713-16)</sup><sup> • </sup><sup>[5](https://doi.org/10.1007/978-3-0348-5927-1)</sup><sup> • </sup><sup>[8](https://web.mit.edu/6.034/www/6.s966/baeck-ec93.pdf)</sup> 该方法源于柏林工业大学的工作，那里发展了受仿生学启发的方案，用于在风洞中进化最小阻力体的最优形状。<sup>[9](http://www.scholarpedia.org/article/Evolution_strategies)</sup> 第一次技术进化实验是一次带铰接板的阻力最小化实验，于 1964 年夏天进行，被视为“判决性实验”（Experimentum Crucis）。<sup>[10](https://gwern.net/doc/reinforcement-learning/exploration/1989-rechenberg.pdf)</sup>

《进化策略》（Evolutionsstrategie，Frommann-Holzboog，1973）发展了 (1+1)-ES 的收敛速度理论，并提出了 1/5 成功规则。<sup>[8](https://web.mit.edu/6.034/www/6.s966/baeck-ec93.pdf)</sup> 1/5 规则与 M. Schumer 和 K. Steiglitz 的自适应步长随机搜索密切相关，后者于 1968 年发表在《IEEE 自动控制汇刊》上。<sup>[11](https://doi.org/10.1109/tac.1968.1098903)</sup>

进化策略独立于进化规划和遗传算法而兴起，后者由约翰·霍兰德（John Holland，1975）发展；当前大多数进化算法实现都源自这三种方法。<sup>[8](https://web.mit.edu/6.034/www/6.s966/baeck-ec93.pdf)</sup><sup> • </sup><sup>[7](https://sci2s.ugr.es/sites/default/files/files/linksInterest/Tutorials/EC-History-IEEETEC-1-1-1997.pdf)</sup>

## 变体

施韦费尔的多成员策略将 (1+1)-ES 扩展到种群，并引入了坐标特定步长 σᵢ 和协方差 cᵢⱼ 的自适应，其变异使用对数正态分布。<sup>[6](https://scholarlypublications.universiteitleiden.nl/access/item%3A3719876/download)</sup>

**CMA-ES** 源于 Nikolaus Hansen、Andreas Ostermeier 和 Andreas Gawelczyk（1995）的生成集自适应，这是一个自适应任意正态变异分布的前身。2001 年 Hansen 和 Ostermeier 发表在《进化计算》上的期刊论文《进化策略中完全去随机化的自适应》引入了带有加权重组的协方差矩阵自适应，即 (\( \mu/\mu_{W} \),λ)-CMA-ES。<sup>[12](https://doi.org/10.1162/106365601750190398)</sup> CMA-ES 是连续域进化计算事实上的标准，用 CSA 取代了整体步长的自适应。<sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup> 其协方差更新结合了来自进化路径的秩一部分和带重组权重的秩-μ 部分。<sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup><sup> • </sup><sup>[4](https://cma-es.github.io/)</sup> 后来的改进包括带负权重的主动 CMA 和种群规模递增的 IPOP 重启（Auger 和 Hansen，2005）。<sup>[4](https://cma-es.github.io/)</sup>

**自然进化策略（NES）** 由 Tobias Glasmachers 及其同事提出，使用自然梯度沿更高期望适应度的方向更新参数化搜索分布；后来表明 NES 是 CMA-ES 更新原理的基础。<sup>[13](https://dl.acm.org/doi/abs/10.5555/2627435.2638566)</sup><sup> • </sup><sup>[2](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)</sup> Tim Salimans 及其同事的 OpenAI ES 实际上是一种简化的 NES，只调整解分布的均值，保持形状固定。<sup>[14](https://ar5iv.labs.arxiv.org/html/1712.06564)</sup>

对于高维情形，LM-MA-ES 维护 m ≪ n 个向量作为秩-m 更新，时间复杂度为 O(n)；无矩阵 CMA-ES 则消除了协方差矩阵及其 \( O(n^{3}) \) 分解，通过将个体生成为存档差分向量的加权组合来实现。<sup>[15](https://hgbeyer.github.io/www/New-Papers/TEC_LGB18.pdf)</sup><sup> • </sup><sup>[16](https://arxiv.org/html/2601.00102v1)</sup>

## 应用

最初的应用是流体力学中的工程设计实验：1964 年的风洞阻力最小化实验、一次使摩擦损失降低 9% 的 90° 管道接头形状优化，以及施韦费尔具有 330 个段的闪蒸喷嘴实验，将效率从 55% 提高到接近 80%。<sup>[10](https://gwern.net/doc/reinforcement-learning/exploration/1989-rechenberg.pdf)</sup> 如今，CMA-ES 的常见应用包括模型校准（曲线拟合）和形状优化。<sup>[4](https://cma-es.github.io/)</sup>

在强化学习中，Tim Salimans 及其同事表明 ES 是标准强化学习的一种可行的可扩展替代方案：使用一种让工作节点仅通信标量的技巧，该实现可扩展到一千多个并行工作节点，在 MuJoCo 中 10 分钟内解决 3D 人形行走问题，并在训练一小时后在大多数 Atari 游戏上取得有竞争力的结果。<sup>[17](https://arxiv.org/pdf/1703.03864)</sup> Felipe Petroski Such 及其同事的相关工作表明，遗传算法是训练深度神经网络用于强化学习的一种有竞争力的替代方案。<sup>[18](https://doi.org/10.48550/arxiv.1712.06567)</sup>

自 2023 年以来，ES 已被应用于大型语言模型：EGGROLL 将 ES 扰动构造为秩-r 矩阵，使十亿参数模型的训练速度提高一百倍；Qiu 及其同事将 ES 扩展到直接在 LLM 的数十亿参数中搜索，在若干基准上达到或超过基于梯度的微调。<sup>[19](https://arxiv.org/html/2511.16652v2)</sup><sup> • </sup><sup>[20](https://arxiv.org/pdf/2509.24372)</sup>

## 局限与替代方法

主要的扩展限制是协方差矩阵。CMA-ES 可以轻松处理高达约 100 维的问题，但对于 \( d \geq 1000 \) 会变得极其缓慢；完整协方差自适应在快速进展之前需要 \( O(d^{2}) \) 次适应度评估，且每个样本至少有 \( O(d^{2}) \) 的内部开销。<sup>[21](https://ar5iv.labs.arxiv.org/html/1806.01224)</sup> 对角和低秩协方差模型可解决此问题：可扩展的 ES 变体已被应用于高达 500,000 维的无噪声问题。<sup>[21](https://ar5iv.labs.arxiv.org/html/1806.01224)</sup>

**噪声**带来了原理上的精度限制：当目标上存在加性噪声时，进展会在距最优值一定距离处停滞，因为算法无法区分微小改进与噪声。<sup>[21](https://ar5iv.labs.arxiv.org/html/1806.01224)</sup> **步长自适应**也可能失败：一项比较研究发现，CSA 和两点自适应能可靠估计最优步长，而 xNES 等信息几何方法会低估步长，在病态问题上更糟。<sup>[22](https://christian-igel.github.io/paper/QaQAoSSAR.pdf)</sup> 在 LLM 微调中，稠密 ES 更新会导致灾难性遗忘：经过 500 次训练迭代后，ES 训练模型相对于基座模型的 Frobenius 范数比 GRPO 训练模型大三个数量级，后者更新的稀疏度约为 95%。<sup>[23](https://aclanthology.org/2026.acl-short.18.pdf)</sup>

在梯度可获取的监督学习中，ES 通常没有必要，但在强化学习和没有完美梯度信息的领域中则有用武之地，在这些领域中廉价的并行性带来实际运行时间上的优势。<sup>[14](https://ar5iv.labs.arxiv.org/html/1712.06564)</sup> 步长自适应 ES 以 \( O(1/(k \cdot d)) \) 的速率收敛，其中 d 是维度，k 是 Hessian 条件数，而梯度下降与 d 无关，但受大 k 之苦。<sup>[21](https://ar5iv.labs.arxiv.org/html/1806.01224)</sup> 在凸二次函数上，当梯度不可用时，BFGS 通常比 CMA-ES 快约十倍；在无导数竞争者中，在小条件数的 Rosenbrock 函数上，NEWUOA 比 CMA-ES 快约五倍，而 Rainer Storn 和 Kenneth Price 于 1997 年在《全局优化杂志》上引入的差分进化比 CMA-ES 慢约十倍。<sup>[4](https://cma-es.github.io/)</sup><sup> • </sup><sup>[24](http://www.cmap.polytechnique.fr/~nikolaus.hansen/acte_giens09.pdf)</sup><sup> • </sup><sup>[25](https://doi.org/10.1023/a:1008202821328)</sup>

## References

1. [Evolution Strategies (Springer handbook chapter)](https://link.springer.com/chapter/10.1007/978-3-662-43505-2_44)
2. [Evolution Strategies: A Comprehensive Overview (Hansen et al., 2015)](http://www.cmap.polytechnique.fr/~nikolaus.hansen/es-overview-2015.pdf)
3. [Evolution strategies: A comprehensive introduction (Beyer & Schwefel, Natural Computing 2002)](https://gwern.net/doc/reinforcement-learning/model-free/2002-beyer.pdf)
4. [The CMA Evolution Strategy (Hansen, official CMA-ES page)](https://cma-es.github.io/)
5. [Hans-Paul Schwefel (1977). Numerische Optimierung von Computer-Modellen mittels der Evolutionsstrategie. Birkhäuser Basel eBooks.](https://doi.org/10.1007/978-3-0348-5927-1)
6. [Evolutionary algorithms for parameter optimization: thirty years later (Bäck retrospective)](https://scholarlypublications.universiteitleiden.nl/access/item%3A3719876/download)
7. [Evolutionary Computation: Comments on the History and Current State (IEEE TEVC 1997)](https://sci2s.ugr.es/sites/default/files/files/linksInterest/Tutorials/EC-History-IEEETEC-1-1-1997.pdf)
8. [An Overview of Evolutionary Algorithms for Parameter Optimization (Bäck & Schwefel, Evolutionary Computation 1993)](https://web.mit.edu/6.034/www/6.s966/baeck-ec93.pdf)
9. [Evolution strategies (Scholarpedia, Beyer & Arnold)](http://www.scholarpedia.org/article/Evolution_strategies)
10. [Evolution Strategy: Nature's Way of Optimization (Rechenberg, 1989)](https://gwern.net/doc/reinforcement-learning/exploration/1989-rechenberg.pdf)
11. [M. Schumer, K. Steiglitz (1968). Adaptive step size random search. IEEE Transactions on Automatic Control.](https://doi.org/10.1109/tac.1968.1098903)
12. [Nikolaus Hansen, Andreas Ostermeier (2001). Completely Derandomized Self-Adaptation in Evolution Strategies. Evolutionary Computation.](https://doi.org/10.1162/106365601750190398)
13. [Natural Evolution Strategies (Wierstra et al., JMLR)](https://dl.acm.org/doi/abs/10.5555/2627435.2638566)
14. [On the Relationship Between the OpenAI Evolution Strategy and Stochastic Gradient Descent](https://ar5iv.labs.arxiv.org/html/1712.06564)
15. [Large Scale Black-box Optimization by Limited-Memory Matrix Adaptation (LM-MA-ES)](https://hgbeyer.github.io/www/New-Papers/TEC_LGB18.pdf)
16. [Covariance Matrix Adaptation Evolution Strategy without a matrix (MF-CMA-ES)](https://arxiv.org/html/2601.00102v1)
17. [Evolution Strategies as a Scalable Alternative to Reinforcement Learning (Salimans, Ho, Chen, Sidor, Sutskever, 2017)](https://arxiv.org/pdf/1703.03864)
18. [Such, Felipe Petroski and colleagues (2017). Deep Neuroevolution: Genetic Algorithms Are a Competitive Alternative for Training Deep Neural Networks for Reinforcement Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1712.06567)
19. [Evolution Strategies at the Hyperscale (EGGROLL, 2025)](https://arxiv.org/html/2511.16652v2)
20. [ES fine-tuning of LLMs in the full parameter space (Qiu et al. line of work)](https://arxiv.org/pdf/2509.24372)
21. [Challenges in High-dimensional Reinforcement Learning with Evolution Strategies](https://ar5iv.labs.arxiv.org/html/1806.01224)
22. [Qualitative and Quantitative Assessment of Step Size Adaptation Rules](https://christian-igel.github.io/paper/QaQAoSSAR.pdf)
23. [Evolutionary Strategies at Scale lead to Catastrophic Forgetting (ACL 2026 short)](https://aclanthology.org/2026.acl-short.18.pdf)
24. [Empirical comparisons of several derivative free optimization algorithms](http://www.cmap.polytechnique.fr/~nikolaus.hansen/acte_giens09.pdf)
25. [Rainer Storn, Kenneth Price (1997). Differential Evolution – A Simple and Efficient Heuristic for global Optimization over Continuous Spaces. Journal of Global Optimization.](https://doi.org/10.1023/a:1008202821328)
26. [434467gvl28 (exa.ai)](https://doi.org/10.1201/9781482268713-16)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming › Evolutionary computation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/evolution-strategy

English original: https://www.edgepedia.org/evolution-strategy
