# 交替优化

交替优化（AO）是一种数值方法，它通过将参数划分为若干块，在固定其他所有块的同时反复求解某一块的受限子问题，并循环遍历各块直至满足停止准则，从而最小化多变量目标函数。当每个块的子问题都易于求解时——例如在矩阵分解和惩罚回归中——它是自然而然的方法，并且是EM算法和交替最小二乘等广泛使用算法的基础。<sup>[1](https://ar5iv.labs.arxiv.org/html/1412.4128)</sup> 每次更新一个变量的坐标下降可以视为采用一维块的“终极”AO策略，而一般的AO有时被称为逐块坐标下降。<sup>[1](https://ar5iv.labs.arxiv.org/html/1412.4128)</sup>

| 关键事实 | 详情 |
|---|---|
| 更新规则 | 对于两个块，令 \( x^{k+1} = \arg\min_{x} f(x, y^{k}) \)，然后令 \( y^{k+1} = \arg\min_{y} f(x^{k+1}, y) \)，并重复此过程。<sup>[2](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)</sup> |
| 两块保证 | 对于闭凸集上连续可微的 \( f \)，两块AO的每个极限点都是驻点，且块子问题不必有唯一解。<sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup> |
| 线性速率 | 在拟强凸性下，目标间隙每次迭代按因子 \( (1 - \sigma\beta_{1}/L_{1})(1 - \sigma\beta_{2}/L_{2}) \) 收缩。<sup>[4](https://link.springer.com/content/pdf/10.1007/s11590-021-01753-w.pdf)</sup> |
| 非凸行为 | 在鲍威尔的一个非凸例子中，采用精确最小化的循环坐标下降可能循环而不收敛，因此对于非凸函数不存在一般的收敛结果。<sup>[5](https://ar5iv.labs.arxiv.org/html/1502.04759)</sup> |
| 实用调优 | 性能由若干选择决定，包括块划分、块选择规则和块更新规则。<sup>[6](http://jmlr.org/papers/volume23/18-045/18-045.pdf)</sup> |
| 典型用途 | 矩阵补全、非负矩阵分解、EM型似然推断、稀疏回归和低秩张量近似。<sup>[1](https://ar5iv.labs.arxiv.org/html/1412.4128)</sup><sup> • </sup><sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup><sup> • </sup><sup>[7](https://www.degruyterbrill.com/document/doi/10.1515/jiip-2020-0074/html)</sup><sup> • </sup><sup>[8](https://mtchu.math.ncsu.edu/Research/Papers/convergence_general-MP.pdf)</sup> |

## 工作原理

该方法通过求解一系列受限子问题来最小化多变量目标函数 \( f \)。每一步执行一次精确的块argmin：用 \( f \) 仅在该块上的极小值点覆盖当前块，然后转向下一块。<sup>[2](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)</sup> 由于每一步都在其块上取极小，目标函数是非增的。在奇萨尔–图什纳迪两块设定中，这给出单调链

\[ \Theta(p^{n}, q^{n}) \geq \Theta(p^{n+1}, q^{n}) \geq \Theta(p^{n+1}, q^{n+1}), \]

它为收敛性证明提供了基础。<sup>[9](https://faculty.uml.edu/cbyrne/CandT.pdf)</sup>

对于两块情形，收敛条件较为宽松。格里波和希安德罗内证明了：对于闭凸集 \( X \)、\( Y \) 上连续可微的 \( f \)，迭代的每个极限点都是驻点，只需假设子问题有解且序列有极限点；并不要求块极小值点唯一。<sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup> 对于多块情形，曾在2001年关于不可微最小化的块坐标下降分析是经典参考文献，后来的工作略微改进了他的定理。<sup>[10](https://cs.uwaterloo.ca/~y328yu/teaching/794/794-note-alt.pdf)</sup>

速率取决于曲率假设。在巴拿赫空间中的拟强凸性下，两块AO以上述因子线性收敛；在普通凸性下，速率为次线性。<sup>[4](https://link.springer.com/content/pdf/10.1007/s11590-021-01753-w.pdf)</sup> 在邻近Polyak–Łojasiewicz条件下——强凸性的一种松弛——线性因子为 \( (1 - \mu_{2}/L_{2})(1 - \mu_{1}/L_{1}) \)。<sup>[7](https://www.degruyterbrill.com/document/doi/10.1515/jiip-2020-0074/html)</sup>

## 实施方法

实践者需要做四个决定。第一，将参数划分为若干块，使每个受限子问题都易于求解，例如最小二乘问题或一维问题。<sup>[1](https://ar5iv.labs.arxiv.org/html/1412.4128)</sup> 第二，选择更新顺序：立即覆盖每个块得到高斯–赛德尔（循环）更新，而在完整扫描后才覆盖所有块得到雅可比更新，后者在并行实现中更为常见。<sup>[10](https://cs.uwaterloo.ca/~y328yu/teaching/794/794-note-alt.pdf)</sup> 随机化划分——每次迭代后改变——可以改善收敛性并有助于避免局部最优；这一想法归功于奇布和拉马穆尔蒂。<sup>[2](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)</sup><sup> • </sup><sup>[11](https://doi.org/10.1016/j.jeconom.2009.08.003)</sup>

第三，选择内层求解器。精确argmin是理想选择，但很少可得；R语言{ao}包对于有界约束子问题默认使用L-BFGS-B。<sup>[2](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)</sup><sup> • </sup><sup>[12](https://doi.org/10.1137/0916069)</sup> 不精确性的代价很低：常数次内层梯度步——甚至每块一步——就足以保证收敛，且每块一步时该方法等同于两块的循环块坐标下降。<sup>[13](https://arxiv.org/pdf/1709.04451v3.pdf)</sup> 第四，应用停止准则；已实现的准则包括迭代次数上限、时间上限，以及在选定范数下函数值变化或参数变化的阈值。<sup>[2](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)</sup> 使用不同的初始值、划分和基础优化器运行多个进程可以缓解局部最优问题。<sup>[2](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)</sup>

## 起源

坐标型方法可追溯至优化学科的奠基时期；1970年奥尔特加和莱因博尔特的著作讨论了“单变量松弛”，而循环坐标下降与线性方程组的高斯–赛德尔方法直接相关，逐次超松弛则添加了一个缩放因子 \( 1 + \omega \)。<sup>[5](https://ar5iv.labs.arxiv.org/html/1502.04759)</sup> 交替最小化的主要参考文献是1984年奇萨尔–图什纳迪关于信息几何的论文，其三点性质和四点性质为收敛性证明提供了基础。<sup>[9](https://faculty.uml.edu/cbyrne/CandT.pdf)</sup> 在统计学中，“交替最小二乘”一词指ALS方法，系统的心理测量学使用始于克鲁斯卡尔1964–1965年的非度量多维标度工作之后，第一个ALS例子归功于克鲁斯卡尔（1965）。<sup>[14](https://bookdown.org/jandeleeuw6/bras/alternatingleastsquares.html)</sup> 现代收敛分析路线贯穿格里波和希安德罗内2000年发表于《运筹学快报》的两块定理、曾2001年发表于《优化理论与应用杂志》的多块结果，以及贝兹德克和哈撒韦2003年对AO收敛性的分析。<sup>[15](https://doi.org/10.1016/s0167-6377%2899%2900074-7)</sup><sup> • </sup><sup>[16](https://doi.org/10.1023/a:1017501703105)</sup><sup> • </sup><sup>[17](https://doi.org/10.5555/964885.964886)</sup>

## 变体

循环块坐标下降也称为非线性块高斯–赛德尔或逐次子空间校正方法；两块情形被称为交替最小化。<sup>[4](https://link.springer.com/content/pdf/10.1007/s11590-021-01753-w.pdf)</sup> 用邻近梯度步替代精确最小化得到坐标梯度或交替下降。<sup>[10](https://cs.uwaterloo.ca/~y328yu/teaching/794/794-note-alt.pdf)</sup> 块选择规则很重要：高斯–索斯韦尔规则选择保证进展最大的块，比随机选择收敛更快；而高斯–索斯韦尔-利普希茨规则纳入块的利普希茨常数，将进展界改进了最多 \( (\max_{b} L_{b})/(\min_{b} L_{b}) \) 倍。<sup>[18](https://doi.org/10.48550/arxiv.1506.00552)</sup><sup> • </sup><sup>[6](http://jmlr.org/papers/volume23/18-045/18-045.pdf)</sup> 并行坐标下降方法针对大规模问题同时更新多个块，2026年的一种变体允许使用非均匀概率分布来选择更可能降低目标函数的块，扩展了里赫塔里克和塔卡奇的均匀分布理论。<sup>[19](https://doi.org/10.1007/s10107-015-0901-6)</sup><sup> • </sup><sup>[20](https://link.springer.com/article/10.1007/s10589-026-00773-5)</sup>

邻近类和基于ADMM的变体扩展了适用范围。交替邻近方法处理形如 \( L(x, y) = f(x, y) + g(x) + h(y) \) 的非凸目标函数，带有邻近项。<sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup> 交替结构适配邻近梯度方法（ASAP）针对非凸非光滑块正则化问题。<sup>[21](https://doi.org/10.1137/17m1142624)</sup> 交替邻近梯度方法（APGM）建立在ADMM框架之上，使用每次迭代仅需邻近映射的方式求解具有三个或更多可分离块的凸问题。<sup>[22](https://optimization-online.org/wp-content/uploads/2012/09/3608.pdf)</sup> 交替随机块坐标下降（AR-BCD）推广了两块交替最小化和随机BCD，其加速版本达到 \( 1/k^{2} \) 速率。<sup>[23](https://proceedings.mlr.press/v80/diakonikolas18a.html)</sup> AltGDmin是一个用于部分解耦问题的框架，其中一个块上的最小化是解耦且快速的，而另一个块通过梯度下降更新；在联邦实现中，每个节点本地更新其快速块并仅共享部分梯度，使AltGDmin比AltMin更具通信效率。<sup>[24](https://arxiv.org/pdf/2504.14741)</sup> 在随机非凸设定中，s-ASAP方法在交替结构适配邻近梯度中加入方差缩减梯度估计器，通过邻近点框架实现次线性收敛，并在误差界条件下实现线性收敛。<sup>[25](https://www.ams.org/journals/mcom/2024-93-348/S0025-5718-2024-03867-X/)</sup>

## 应用

在低秩矩阵补全中，以SVD初始化的交替最小化在均匀采样和不相关性条件下，于 \( O(\log(1/\varepsilon)) \) 步内将因子恢复到 \( \|A - B \cdot C\|_{\mathrm{F}} \leq \varepsilon \)；贾因、内特拉帕利和桑加维的论文提供了理论恢复保证。<sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup> 在非负矩阵分解中，带有优化–最小化步骤的交替最小化给出乘法更新 \( c_{p} \leftarrow c_{p} \cdot [B^{\top} \cdot a]_{p} / [B^{\top} \cdot B \cdot c]_{p} \)。<sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup> 许多统计算法——包括用于似然最大化的EM算法、带伽马先验的MAP估计、MART和SMART——都可以推导为 \( A \cdot x \) 与 \( y \) 之间KL散度的交替最小化。<sup>[7](https://www.degruyterbrill.com/document/doi/10.1515/jiip-2020-0074/html)</sup> 进一步的应用包括鲁棒低秩加稀疏分解、多任务回归和因子模型；<sup>[13](https://arxiv.org/pdf/1709.04451v3.pdf)</sup> 贪心块规则对于稀疏解问题（如SVM和LASSO）给出超线性、有时是有限的收敛；<sup>[6](http://jmlr.org/papers/volume23/18-045/18-045.pdf)</sup> 而ALS是低秩张量近似的主力方法，包括Tucker最近问题和结构化Kronecker近似。<sup>[8](https://mtchu.math.ncsu.edu/Research/Papers/convergence_general-MP.pdf)</sup>

## 局限与替代方案

失败模式已有充分记录。鲍威尔构造了一个非凸例子，其中采用精确最小化的循环坐标下降循环而不收敛，尽管这种行为是特殊的且会被小扰动破坏。<sup>[5](https://ar5iv.labs.arxiv.org/html/1502.04759)</sup> 交替最小化的极限点一般不必是均衡点，且该方法在耦合不可分离区域上失效，因此约束结构的可分离性是必要的。<sup>[10](https://cs.uwaterloo.ca/~y328yu/teaching/794/794-note-alt.pdf)</sup> 在非凸问题上，AO可能陷入较差的局部极小点和鞍点；后续一系列工作表明，在温和假设下，从随机初始化出发几乎必然避开严格鞍点，因此这两项发现描述的是不同的假设情形，而非确凿的矛盾。<sup>[1](https://ar5iv.labs.arxiv.org/html/1412.4128)</sup><sup> • </sup><sup>[26](http://proceedings.mlr.press/v97/li19n/li19n.pdf)</sup> 狭窄的、对角方向的谷地会导致“沼泽”——长时间的极慢锯齿形进展——且块更新顺序显著影响总迭代次数。<sup>[27](http://www.math.ualberta.ca/ijnam/Volume-17-2020/No-4-20/2020-04-06.pdf)</sup>

与联合梯度下降相比，在病态问题上比较结果有利：交替方法的线性速率取决于 \( \min\{\kappa_{x}, \kappa_{y}\} \)，即两个块条件数中较好的一个，而联合梯度下降受联合条件数 \( \kappa(L) \geq \max\{\kappa_{x}, \kappa_{y}\} \) 控制。<sup>[13](https://arxiv.org/pdf/1709.04451v3.pdf)</sup> 实践者也青睐AO，因为它无需步长调优、实践中收敛快，且其子问题通常有闭式解。<sup>[26](http://proceedings.mlr.press/v97/li19n/li19n.pdf)</sup> 在速率方面，两块交替最小化以 \( O(L_{\min}/\varepsilon) \) 收敛，其缩放与最不光滑的块无关，而标准随机BCD的缩放为 \( O(\sum_{i} L_{i}/\varepsilon) \)。<sup>[23](https://proceedings.mlr.press/v80/diakonikolas18a.html)</sup> 交替非负最小二乘保证下降并收敛到驻点，但比普通交替最小二乘慢。<sup>[3](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)</sup>

## References

1. [Expanded Alternating Optimization of Nonconvex Functions with Applications to Matrix Factorization and Penalized Regression (Chi, Lange, Chu)](https://ar5iv.labs.arxiv.org/html/1412.4128)
2. [Alternating optimization (R {ao} package vignette)](https://cran.r-project.org/web/packages/ao/vignettes/ao.html)
3. [Alternating Minimization (and Friends), MIT 6.883 lecture (S. Rakhlin)](https://www.mit.edu/%7Erakhlin/6.883/lectures/lecture07.pdf)
4. [On the rate of convergence of alternating minimization for non-smooth non-strongly convex optimization in Banach spaces (Both, Optimization Letters 2022)](https://link.springer.com/content/pdf/10.1007/s11590-021-01753-w.pdf)
5. [Coordinate Descent Algorithms (Wright, 2015 survey)](https://ar5iv.labs.arxiv.org/html/1502.04759)
6. [Let's Make Block Coordinate Descent Converge Faster: Faster Greedy Rules, Message-Passing, Active-Set Complexity, and Superlinear Convergence (JMLR)](http://jmlr.org/papers/volume23/18-045/18-045.pdf)
7. [Alternating minimization methods for strongly convex optimization (Guminov, Dvurechensky, Tupitsa, Gasnikov; J. Inverse and Ill-posed Problems; journal version of arXiv:1911.08987)](https://www.degruyterbrill.com/document/doi/10.1515/jiip-2020-0074/html)
8. [A general convergence framework for alternating direction methods (Chu et al., Mathematical Programming)](https://mtchu.math.ncsu.edu/Research/Papers/convergence_general-MP.pdf)
9. [Alternating Minimization and Alternating Projection Algorithms: A Tutorial (Byrne)](https://faculty.uml.edu/cbyrne/CandT.pdf)
10. [Lecture notes 9: Alternating Minimization (UWaterloo CO673/CS794)](https://cs.uwaterloo.ca/~y328yu/teaching/794/794-note-alt.pdf)
11. [Siddhartha Chib, Srikanth Ramamurthy (2009). Tailored randomized block MCMC methods with application to DSGE models. Journal of Econometrics.](https://doi.org/10.1016/j.jeconom.2009.08.003)
12. [Richard H. Byrd and colleagues (1995). A Limited Memory Algorithm for Bound Constrained Optimization. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/0916069)
13. [Alternating minimization and alternating descent over nonconvex sets (Chen, Chi, Fan, Ma)](https://arxiv.org/pdf/1709.04451v3.pdf)
14. [Block Relaxation Methods in Statistics, Chapter 5: Alternating Least Squares (Jan de Leeuw)](https://bookdown.org/jandeleeuw6/bras/alternatingleastsquares.html)
15. [On the convergence of the block nonlinear Gauss–Seidel method under convex constraints (Operations Research Letters, 2000)](https://doi.org/10.1016/s0167-6377%2899%2900074-7)
16. [P. Tseng (2001). Convergence of a Block Coordinate Descent Method for Nondifferentiable Minimization. Journal of Optimization Theory and Applications.](https://doi.org/10.1023/a:1017501703105)
17. [James C. Bezdek, Richard J. Hathaway (2003). Convergence of alternating optimization. Neural, Parallel & Scientific Computations archive.](https://doi.org/10.5555/964885.964886)
18. [Nutini, Julie and colleagues (2015). Coordinate Descent Converges Faster with the Gauss-Southwell Rule Than Random Selection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1506.00552)
19. [Peter Richtárik, Martin Takáč (2015). Parallel coordinate descent methods for big data optimization. Mathematical Programming.](https://doi.org/10.1007/s10107-015-0901-6)
20. [Parallel block coordinate descent methods with identification strategies (Computational Optimization and Applications, 2026)](https://link.springer.com/article/10.1007/s10589-026-00773-5)
21. [Mila Nikolova, Pauline Tan (2019). Alternating Structure-Adapted Proximal Gradient Descent for Nonconvex Nonsmooth Block-Regularized Problems. SIAM Journal on Optimization.](https://doi.org/10.1137/17m1142624)
22. [Alternating Proximal Gradient Method for Convex Minimization (Gao, Xu, Zhang)](https://optimization-online.org/wp-content/uploads/2012/09/3608.pdf)
23. [Alternating Randomized Block Coordinate Descent (Diakonikolas & Orecchia, ICML 2018)](https://proceedings.mlr.press/v80/diakonikolas18a.html)
24. [AltGDmin: Alternating GD and Minimization for Partly-decoupled (Federated) Optimization](https://arxiv.org/pdf/2504.14741)
25. [Stochastic alternating structure-adapted proximal gradient (s-ASAP), Mathematics of Computation 93 (2024)](https://www.ams.org/journals/mcom/2024-93-348/S0025-5718-2024-03867-X/)
26. [Alternating Minimizations Converge to Second-Order Optimal Solutions (Li et al., ICML 2019)](http://proceedings.mlr.press/v97/li19n/li19n.pdf)
27. [On the convergence of block coordinate descent in narrow valleys (IJNAM 17(4), 2020)](http://www.math.ualberta.ca/ijnam/Volume-17-2020/No-4-20/2020-04-06.pdf)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/alternating-optimization

English original: https://www.edgepedia.org/alternating-optimization
