# 外梯度法

外梯度（EG）法是一种迭代算法，用于寻找鞍点和变分不等式的解：它先试探性地走一个梯度步到达外推点，在该点处计算算子，再用这个外推梯度进行实际更新。它所求解的问题是变分不等式（VI）：求 \( z^{*} \in Z \)，使得对所有 \( z \in Z \) 有 \( \langle F(z^{*}), z^{*} - z \rangle \le 0 \)，其中 \( F \) 是单调的 \( L \)-Lipschitz 算子，\( Z \) 是闭凸集。<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> 凸-凹函数的鞍点和单调博弈的纳什均衡都是这一形式的特例。正是额外的梯度计算使得该方法仅凭单调性就能收敛——而普通的梯度下降-上升法在同样条件下可能发散——代价是每次迭代需要两次算子计算而非一次。<sup>[2](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)</sup><sup> • </sup><sup>[3](https://arxiv.org/html/2409.16859v1)</sup>

| 关键事实 | 详情 |
|---|---|
| 求解问题 | 变分不等式 \( \langle F(z^{*}), z^{*} - z \rangle \le 0 \)、鞍点、单调博弈的纳什均衡<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> |
| 每次迭代的更新 | 两次算子计算和两次到 \( Z \) 上的投影<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> |
| 步长 | \( 0 < \gamma < 1/L \)；该范围是紧的，当 \( \gamma = 1/L \) 时方法可能失败<sup>[4](https://semnul.com/carpathian/wp-content/uploads/2022/07/carpathian_39_2023_1_315-323.pdf)</sup> |
| 末迭代速率 | 对于单调 \( L \)-Lipschitz 变分不等式，当 \( \gamma \le 1/(\sqrt{2}L) \) 时，\( \|F(x^{K})\| = O(1/K) \)，间隙为 \( O(1/\sqrt{K}) \)<sup>[5](https://proceedings.mlr.press/v151/gorbunov22a/gorbunov22a.pdf)</sup> |
| 预言机开销 | \( T \) 次迭代需要 \( 2T \) 次算子查询，而乐观梯度下降-上升法只需 \( T \) 次<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> |
| 起源 | G. M. 科尔佩列维奇，1976年，针对双线性鞍点问题<sup>[2](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)</sup><sup> • </sup><sup>[6](https://math.haifa.ac.il/yair/accepted-korp-opt-281010.pdf)</sup> |

## 工作原理

每次迭代先执行一个试探步，再执行一个实际步。方法首先沿负梯度方向移动到一个外推中点，在该中点处计算算子，然后利用这个外推梯度从上一次迭代点出发执行实际步。在约束形式下，设 \( \Pi_{Z} \) 为到 \( Z \) 上的投影：<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup>

\[ z^{k+1/2} = \Pi_{Z}\bigl[z^{k} - \gamma F(z^{k})\bigr], \qquad z^{k+1} = \Pi_{Z}\bigl[z^{k} - \gamma F(z^{k+1/2})\bigr]. \]

对于 \( f(x,y) \) 的鞍点，中点迭代为 \( x^{k+1/2} = x^{k} - \eta \nabla_{x} f(x^{k}, y^{k}) \) 和 \( y^{k+1/2} = y^{k} + \eta \nabla_{y} f(x^{k}, y^{k}) \)，更新时使用这些中点处的梯度。<sup>[7](https://proceedings.mlr.press/v108/mokhtari20a/mokhtari20a.pdf)</sup> 前瞻步与动量法有本质区别：梯度是在一个投影后的未来点处计算的，而不是在过去迭代点的平移组合处计算的。<sup>[8](https://doi.org/10.48550/arxiv.1802.10551)</sup>

收敛背后的机制可以从近端点视角看出。外梯度法和乐观梯度下降-上升法都可以解释为近端点方法的近似；在双线性情形下，外梯度法以 \( o(\eta) \) 的误差近似近端点更新，而梯度下降-上升法只是一阶近似，在双线性问题上可能发散。<sup>[7](https://proceedings.mlr.press/v108/mokhtari20a/mokhtari20a.pdf)</sup> 因此外梯度法避免了单步梯度算法在单调问题中常见的极限环，尽管这一保证需要确定性的预言机反馈。<sup>[9](https://proceedings.neurips.cc/paper/2020/file/ba9a56ce0a9bfa26e8ed9e10b2cc8f46-Paper.pdf)</sup>

## 实施方法

实践者需要可行集 \( Z \)（具有可计算的投影）、算子 \( F \) 和步长 \( \gamma \)。每次迭代：(1) 将 \( z^{k} - \gamma F(z^{k}) \) 投影到 \( Z \) 上得到外推点；(2) 在该点处计算 \( F \)；(3) 将 \( z^{k} - \gamma F(z^{k+1/2}) \) 投影到 \( Z \) 上得到 \( z^{k+1} \)。<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> 科尔佩列维奇最初针对鞍点的双算子形式，对 \( x \) 块和 \( y \) 块分别施加同样的双重投影梯度步。<sup>[2](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)</sup>

**收敛保证。** 科尔佩列维奇定理要求 \( 0 < \gamma < 1/L \)，且该范围是紧的：当 \( \gamma = 1/L \) 时算法可能不收敛。<sup>[4](https://semnul.com/carpathian/wp-content/uploads/2022/07/carpathian_39_2023_1_315-323.pdf)</sup> 对于双线性鞍函数，方法以等比数列的速率收敛。<sup>[2](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)</sup> 对于仅满足单调性的 \( L \)-Lipschitz 算子，戈尔布诺夫、洛伊祖和吉德尔在无额外假设的条件下推导出了首个关于 \( \|F(x^{K})\| \) 的末迭代 \( O(1/K) \) 速率：当 \( 0 < \gamma \le 1/(\sqrt{2}L) \) 时，\( \|F(x^{K})\|^{2} \le \|x^{0} - x^{*}\|^{2} / \bigl(\gamma^{2} \cdot (1 - L^{2} \cdot \gamma^{2}) \cdot (K+1)\bigr) \)，从而给出 \( O(1/\sqrt{K}) \) 的间隙。<sup>[5](https://proceedings.mlr.press/v151/gorbunov22a/gorbunov22a.pdf)</sup> 蔡和郑证明了在任意凸可行集上，外梯度法和乐观梯度下降-上升法的间隙函数末迭代 \( O(1/\sqrt{T}) \) 速率是紧的，与戈洛维奇等人的下界吻合。<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> 需要注意：复合外梯度映射 \( F_{\mathrm{EG},\gamma} = F \circ (\mathrm{Id} - \gamma F) \) 即使在 \( F \) 本身是余强制的时候也可能不是余强制的，因此原算子的余强制性不会传递过来。<sup>[5](https://proceedings.mlr.press/v151/gorbunov22a/gorbunov22a.pdf)</sup>

## 起源

该方法发表于 \<sup>[2](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)</sup><sup> • </sup><sup>[6](https://math.haifa.ac.il/yair/accepted-korp-opt-281010.pdf)</sup><sup> • </sup><sup>[10](https://www.polyu.edu.hk/ama/profile/dfsun/files/PROJECTED_EXTRAGRADIENT_METHOD_FOR_FINDING_SADDLE_POINTS_OF_GENERAL_CONVEX_PROGRAMMING.pdf)</sup><sup> • </sup><sup>[3](https://arxiv.org/html/2409.16859v1)</sup> 科尔佩列维奇的动机是：对于双线性鞍函数，例如线性规划的拉格朗日函数和矩阵博弈的收益，除退化情形外，普通梯度法无论采用何种步长都不收敛；她的解决方案是外推思想，她的论文引用了 B. T. 波利亚克1963年关于外推“价格”稳定性的工作，作为表达同一思想的早期文献。<sup>[2](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)</sup> 涅米罗夫斯基2004年的近端方法将外梯度思想推广到 Bregman 几何，形成了具有 \( O(1/t) \) 速率的镜像-近端算法。<sup>[11](https://doi.org/10.1137/s1052623403425629)</sup>

## 变体

**单次调用变体。** 过去外梯度（PEG）是 阿罗–胡尔维茨方法的一种改进，它复用上一次外推的梯度，等价于乐观梯度法；每次迭代只需一次算子计算而非两次。<sup>[3](https://arxiv.org/html/2409.16859v1)</sup><sup> • </sup><sup>[12](https://proceedings.neurips.cc/paper/2019/file/4625d8e31dad7d1c4c83399a6eb62f0c-Paper.pdf)</sup> 单次调用方法（PEG、乐观梯度、反射梯度）在光滑单调问题中，以常数步长 \( \gamma < 1/(c \cdot \beta) \) 保持 \( O(1/t) \) 的遍历收敛性，其中 PEG 和 OG 的 \( c = 2 \)，反射梯度的 \( c = 1 + \sqrt{2} \)。<sup>[12](https://proceedings.neurips.cc/paper/2019/file/4625d8e31dad7d1c4c83399a6eb62f0c-Paper.pdf)</sup> 其他有名称的变体包括前向-后向-前向分裂、次梯度外梯度（用到可构造的次梯度半空间的投影替代第二次到 \( Z \) 的投影）<sup>[6](https://math.haifa.ac.il/yair/accepted-korp-opt-281010.pdf)</sup>，以及针对非单调弱-Minty 情形的 EG+。<sup>[3](https://arxiv.org/html/2409.16859v1)</sup>

**预言机复杂度比较。** 对于 \( T \) 次迭代，外梯度法进行 \( 2T \) 次算子查询，而乐观梯度下降-上升法进行 \( T \) 次；此外乐观梯度下降-上升法是一种无悔学习算法，而外梯度法不是。<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> 涅米罗夫斯基的镜像-近端算法在紧集上的凸-凹鞍点问题上达到 \( O(1/k) \) 收敛<sup>[7](https://proceedings.mlr.press/v108/mokhtari20a/mokhtari20a.pdf)</sup>，其随机版本由尤迪茨基、涅米罗夫斯基和托韦尔提出。<sup>[13](https://doi.org/10.1214/10-ssy011)</sup>

## 应用

GAN 训练是一个鞍点问题，吉德尔等人将其表述为变分不等式，将外推法和更廉价的过去外推变体应用于 SGD 和 Adam；过去外推每次更新只需一次梯度计算而非两次。<sup>[8](https://doi.org/10.48550/arxiv.1802.10551)</sup> 基于 PEG 的算法如 PEG-Adam 在 CIFAR10 上训练 WGAN 时表现良好，PEG 和乐观梯度法被用于遗憾匹配、反事实遗憾最小化以及训练扑克智能体。<sup>[1](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)</sup> 对于大型博弈，多明戈-恩里奇等人将外梯度与玩家采样相结合以加速纳什均衡的求解。<sup>[14](https://doi.org/10.48550/arxiv.1905.12363)</sup>

## 局限与替代方案

确定性的主要代价是加倍的预言机预算，即每次迭代两次梯度计算，尽管外梯度法仅需单调性和 Lipschitz 连续性即可收敛。<sup>[3](https://arxiv.org/html/2409.16859v1)</sup> 随机性是主要的失效模式：使用随机梯度的朴素外梯度法即使在简单的双线性极小极大问题上也可能不收敛，而确定性外梯度法从任意初始化都能收敛。<sup>[9](https://proceedings.neurips.cc/paper/2020/file/ba9a56ce0a9bfa26e8ed9e10b2cc8f46-Paper.pdf)</sup> 谢、尤策勒、马利克和梅尔蒂科波洛斯的双步长外梯度（DSEG）以比更新步更激进的时间尺度运行探索步（\( \gamma_{t} \ge \eta_{t} \)，\( \eta_{t}/\gamma_{t} \to 0 \)），恢复了几乎必然收敛性；在步长 \( \gamma/(t+b)^{1/3} \) 和 \( \eta/(t+b)^{2/3} \) 下，它在误差界条件下达到 \( O(1/t^{1/3}) \) 的均方速率。<sup>[9](https://proceedings.neurips.cc/paper/2020/file/ba9a56ce0a9bfa26e8ed9e10b2cc8f46-Paper.pdf)</sup> 同样本 SEG 还对逐样本 Lipschitz 参数敏感：仅有平均 Lipschitz 性和有界方差即使在紧集上也不保证收敛，且存在一个随机单调变分不等式，即使在使用 DSEG 步长时 S-SEG 也几乎必然发散。<sup>[15](https://arxiv.org/html/2608.06182v1)</sup>

**调参。** 错误估计 Lipschitz 常数可能导致振荡和循环；AdaGrad 型自适应步长 \( \gamma^{(t)} = \gamma^{(0)}\bigl(1 + \sum_{j=1}^{t-1}\|x^{(j+1)} - x^{(j+1/2)}\|^{2}\bigr)^{-1/2} \) 在不知道 \( L \) 的情况下达到 \( o(1/\sqrt{T}) \) 的末迭代速率。<sup>[16](https://opt-ml.org/papers/2024/paper112.pdf)</sup> 线搜索完全消除了 Lipschitz 连续性要求<sup>[10](https://www.polyu.edu.hk/ama/profile/dfsun/files/PROJECTED_EXTRAGRADIENT_METHOD_FOR_FINDING_SADDLE_POINTS_OF_GENERAL_CONVEX_PROGRAMMING.pdf)</sup>，而在单调性之外，PP、EG 和 OG 在负共单调性下已有紧的复杂度分析。<sup>[17](https://dl.acm.org/doi/10.5555/3618408.3618874)</sup>

## References

1. [Tight Last-Iterate Convergence of the Extragradient and the Optimistic Gradient Descent-Ascent Algorithm for Constrained Monotone Variational Inequalities (Cai & Zheng, NeurIPS 2022)](https://www.cs.yale.edu/homes/cai/publication/cai-tight-2022/cai-tight-2022.pdf)
2. [The Extragradient Method for Finding Saddle Points and Other Problems (English translation of Korpelevich's paper)](https://cs.uwaterloo.ca/~y328yu/classics/extragrad.pdf)
3. [Revisiting Extragradient-Type Methods – Part 1: Generalizations and Sublinear Convergence Rates (Bot, Böhm, 2024)](https://arxiv.org/html/2409.16859v1)
4. [Stepsize Choice for Korpelevich's and Popov's Extragradient Algorithms for Convex-Concave Minimax Problems](https://semnul.com/carpathian/wp-content/uploads/2022/07/carpathian_39_2023_1_315-323.pdf)
5. [Extragradient Method: (1/K) Last-Iterate Convergence for Monotone Variational Inequalities and Connections With Cocoercivity (Gorbunov, Loizou, Gidel, ICML 2022)](https://proceedings.mlr.press/v151/gorbunov22a/gorbunov22a.pdf)
6. [Extensions of Korpelevich's Extragradient Method for the Variational Inequality Problem in Euclidean Space (Censor, Gibali, Reich)](https://math.haifa.ac.il/yair/accepted-korp-opt-281010.pdf)
7. [A Unified Analysis of Extra-gradient and Optimistic Gradient Methods for Saddle Point Problems: Proximal Point Approach (Mokhtari, Ozdaglar, Pattathil, AISTATS 2020; journal version SIAM J. Optim. 30(4), 2020)](https://proceedings.mlr.press/v108/mokhtari20a/mokhtari20a.pdf)
8. [Gidel, Gauthier and colleagues (2018). A Variational Inequality Perspective on Generative Adversarial Networks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1802.10551)
9. [Explore Aggressively, Update Conservatively: Stochastic Extragradient Methods with Variable Stepsize Scaling (NeurIPS 2020)](https://proceedings.neurips.cc/paper/2020/file/ba9a56ce0a9bfa26e8ed9e10b2cc8f46-Paper.pdf)
10. [Projected Extragradient Method for Finding Saddle Points of General Convex Programming](https://www.polyu.edu.hk/ama/profile/dfsun/files/PROJECTED_EXTRAGRADIENT_METHOD_FOR_FINDING_SADDLE_POINTS_OF_GENERAL_CONVEX_PROGRAMMING.pdf)
11. [Arkadi Nemirovski (2004). Prox-Method with Rate of Convergence O (1/ t ) for Variational Inequalities with Lipschitz Continuous Monotone Operators and Smooth Convex-Concave Saddle Point Problems. SIAM Journal on Optimization.](https://doi.org/10.1137/s1052623403425629)
12. [On the convergence of single-call stochastic extra-gradient methods (Cai, Oikonomou, Zheng, Wei, et al., NeurIPS 2019)](https://proceedings.neurips.cc/paper/2019/file/4625d8e31dad7d1c4c83399a6eb62f0c-Paper.pdf)
13. [Anatoli Juditsky, Arkadi Nemirovski, Claire Tauvel (2011). Solving variational inequalities with stochastic mirror-prox algorithm. Stochastic Systems.](https://doi.org/10.1214/10-ssy011)
14. [Enrich, Carles Domingo and colleagues (2019). Extragradient with player sampling for faster Nash equilibrium finding. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1905.12363)
15. [On Same-Sample and Independent-Sample Stochastic Extragradient for Monotone Variational Inequalities](https://arxiv.org/html/2608.06182v1)
16. [Extra-Gradient and Optimistic Gradient Descent Converge in Iterates Faster than in All Monotone Lipschitz Variational Inequalities (Antonakopoulos, Mertikopoulos, Piliouras, Wang, OPT 2024)](https://opt-ml.org/papers/2024/paper112.pdf)
17. [Convergence of proximal point and extragradient-based methods beyond monotonicity (ICML 2023)](https://dl.acm.org/doi/10.5555/3618408.3618874)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/extragradient-method

English original: https://www.edgepedia.org/extragradient-method
