# 对偶分解

对偶分解是一种优化方法，它通过将带有耦合约束的大型问题拆分为若干子问题，并借助拉格朗日对偶变量进行协调，使各子问题能够独立、并行求解。该方法适用于那些约束把原本可分离的部分耦合在一起的问题，例如共享的资源预算或各块之间的一致性要求，广泛应用于运筹学、机器学习和分布式推断。

| 关键事实 | 详情 |
|---|---|
| 问题类别 | 带耦合约束的凸问题，松弛后解耦为子问题 <sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> |
| 协调机制 | 对偶变量充当由主问题设定的价格；子问题据此作出使用决策 <sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> |
| 核心循环 | 并行求解子问题，然后进行带投影的对偶次梯度更新 <sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup> |
| 收敛速率 | 强凸目标下为次线性 \( O(1/\epsilon) \)；当目标强凸且梯度Lipschitz连续时为线性 \( O(\log(1/\epsilon)) \) <sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup> |
| 最优性证书 | 若各子问题的解在共享量上达成一致，则全局最优性得到认证 <sup>[3](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)</sup> |
| 主要失效模式 | 问题非凸时存在非零对偶间隙，对偶解不能求解原问题 <sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> |
| 最接近的亲属 | ADMM，它加入二次惩罚项以恢复稳健性，同时保持可分解性 <sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup> |

## 工作原理

考虑形如 \( \min \sum_{i} f_{i}(x_{i}) \) 且受约束于 \( \sum_{i} A_{i} \cdot x_{i} = b \) 的问题，其中每个 \( f_{i} \) 只依赖自己的块 \( x_{i} \)，而约束将各块耦合在一起。对偶分解通过用乘子 \( u \) 松弛耦合约束来构造拉格朗日函数，于是问题发生分裂：对于固定的 \( u \)，每个块独立地最小化 \( f_{i}(x_{i}) + u^{\top} \cdot A_{i} \cdot x_{i} \)。对偶函数值与一个次梯度由这些子问题的解给出，乘子则通过对偶上升法更新。<sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup>

其解释是经济学式的。主问题为每种共享资源设定价格；每个子问题在给定价格下决定使用多少；主问题再根据总使用量超出还是不足预算来调整价格。<sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> 在拉斯登的表述中，协调由为求解对偶规划而选定的影子价格完成，子问题则在给定价格下求解。<sup>[4](https://doi.org/10.1109/tssc.1968.300135)</sup>

对于满足温和约束品性的凸问题，最优处的对偶间隙降为零，因此求解对偶即求解原问题。若不具凸性，对偶方法只有在强对偶恰好成立时才给出正确结果。<sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup>

## 具体做法

实践者运行如下循环 <sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup><sup> • </sup><sup>[3](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)</sup>：

1. 初始化对偶变量，通常取 \( u(1) = 0 \)。
2. 并行求解各子问题：\( x_{i}^{(k)} \in \arg\min_{x_{i}} \, f_{i}(x_{i}) + (u^{(k-1)})^{\top} \cdot A_{i} \cdot x_{i} \)。
3. 收集子问题的解并更新对偶变量：\( u^{(k)} = u^{(k-1)} + t_{k} (\sum_{i} A_{i} \cdot x_{i}^{(k)} - b) \)。对于不等式约束，将更新投影到非负正交象限上。
4. 检查一致性。若各子问题的解在耦合量上达成一致，定理表明返回的解对即为全局最优。<sup>[3](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)</sup>

对偶值 \( L(u) \) 在每次迭代都是原问题最小值的一个下界，因此将最佳对偶值与某个可行原目标值相比较，即可给出最佳原迭代点距最优有多远的证书。<sup>[3](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)</sup> 只要步长序列满足 \( \lim_{t \to \infty} \alpha_{t} = 0 \) 且 \( \sum_{t} \alpha_{t} = \infty \)，对偶的收敛性即成立。<sup>[3](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)</sup>

步长在实践中很重要。常数步长 \( \alpha_{k} = c \) 可能非常快，但难以调整；基于对偶进展的步长 \( \alpha_{k} = c/(t+1) \)（其中 \( t \) 统计对偶值上升的次数）则较为稳健。<sup>[3](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)</sup> 对偶化的约束数量也很重要：对偶化更多约束会扩大松弛后的可行域，增大了次梯度的幅度，从而减慢收敛。<sup>[5](https://ar5iv.labs.arxiv.org/html/1710.08994)</sup> 在对偶梯度上升下，采用常数步长 \( t_{k} = m \)（依据对偶目标的Lipschitz常数 \( L \) 选取，例如取一个合适的、小于 \( 2/L \) 的步长）的次梯度步，对强凸目标给出次线性 \( O(1/\epsilon) \) 收敛，因为仅原目标的强凸性并不足以支持这样的步长；而步长 \( t_{k} = 2/(1/m + 1/L) \) 在目标强凸且梯度Lipschitz连续时给出线性 \( O(\log(1/\epsilon)) \) 收敛。<sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup><sup> • </sup><sup>[6](https://ar5iv.labs.arxiv.org/html/1406.3720)</sup><sup> • </sup><sup>[29](https://www.cs.cmu.edu/~ggordon/10725-F12/scribes/10725_Lecture18.pdf)</sup>

## 起源

分解方法由休·埃弗里特（Hugh Everett）用于资源分配的广义[拉格朗日乘子](https://www.edgepedia.org/zh/lagrange-multiplier)法开创，发表于1963年的《运筹学》（Operations Research）。<sup>[7](https://doi.org/10.1287/opre.11.3.399)</sup><sup> • </sup><sup>[8](https://web.mit.edu/dimitrib/www/Convexification_Mult.pdf)</sup> 更早，乔治·B·丹齐格（George B. Dantzig）与菲利普·沃尔夫（Philip Wolfe）于1960年在《运筹学》上报告了线性规划的分解原理 <sup>[9](https://doi.org/10.1287/opre.8.1.101)</sup>，并附有一篇1961年发表于《[计量经济学](https://www.edgepedia.org/zh/econometrica)》（Econometrica）的计算配套论文 <sup>[10](https://www.econometricsociety.org/publications/econometrica/1961/10/01/decomposition-algorithm-linear-programs)</sup>；已发表的综述将该方法系于其中任一年份，存在未解决的引用分歧。<sup>[11](https://sites.math.washington.edu/~rtr/papers/rtr243-Decomposition.pdf)</sup> J. F. 本德斯（J. F. Benders）于1962年在《数值数学》（Numerische Mathematik）上报告了针对混合变量问题的原问题划分对应方法。<sup>[12](https://doi.org/10.1007/bf01386316)</sup>

莱昂·S·拉斯登（Leon S. Lasdon）与詹姆斯·D·舍夫勒（James D. Schoeffler）于1965年报告了一种多级优化技术 <sup>[13](https://doi.org/10.1109/jacc.1965.4168757)</sup>，拉斯登1968年发表于《IEEE系统科学与控制论汇刊》的论文给出了大型可分离非线性规划的对偶与分解框架。<sup>[4](https://doi.org/10.1109/tssc.1968.300135)</sup> [阿瑟·M·杰弗里翁](https://www.edgepedia.org/zh/arthur-m-geoffrion)（Arthur M. Geoffrion）于1970年在《运筹学》上报告了针对凸非线性系统的原问题资源指令对应方法。<sup>[14](https://doi.org/10.1287/opre.18.3.375)</sup> 在机器学习中，[拉格朗日松弛](https://www.edgepedia.org/zh/lagrangian-relaxation)是求解旅行商问题的一种松弛算法。<sup>[15](https://jair.org/index.php/jair/article/view/10785)</sup>

## 变体

朴素的次梯度更新收敛缓慢。乘子法在拉格朗日函数中加入二次惩罚项 \( (\rho/2)\|A \cdot x - b\|^{2} \)，改善了收敛性，却破坏了可分离性，因为惩罚项在单次 x 更新中把所有块耦合在一起。<sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup> ADMM 通过每次处理一个变量分量来应对不可分离的增广拉格朗日函数，交替进行 x 更新、z 更新和步长为 \( \rho \) 的对偶更新，从而解决这一问题。<sup>[11](https://sites.math.washington.edu/~rtr/papers/rtr243-Decomposition.pdf)</sup><sup> • </sup><sup>[2](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)</sup> ADMM 的收敛仅要求目标各部分凸、闭、真，且存在鞍点。<sup>[16](https://web.stanford.edu/~boyd/papers/pdf/springer_15_lect2.pdf)</sup>

ADMM 的理论最初只针对两个块分量建立；一项已发表的研究展示了一个发散的学术性三块例子；当至少有一块函数强凸时，线性收敛是可能的。<sup>[11](https://sites.math.washington.edu/~rtr/papers/rtr243-Decomposition.pdf)</sup><sup> • </sup><sup>[17](https://www.numdam.org/item/RO_2017__51_1_17_0.pdf)</sup> 在推断中，DD-ADMM 将增广拉格朗日函数与对偶分解结合用于因子图上的 MAP 推断，每个从属子问题接收一个二次惩罚项，推动其比次梯度方法更快达成共识。<sup>[18](https://icml.cc/2011/papers/150_icmlpaper.pdf)</sup> AD3 对此作了扩展：它广播当前全局解，使各工作者将自己的子问题向其正则化，达到 \( O(1/\epsilon) \) 的收敛速率，而投影次梯度对偶分解为 \( O(1/\epsilon^{2}) \)，且在固定步长下即保证收敛。<sup>[19](https://ar5iv.labs.arxiv.org/html/1212.6550)</sup>

## 应用

凡耦合约束遇上可分离结构之处，就有对偶分解的身影。在网络效用最大化中，价格协调链路与源端，主问题设定价格，子问题决定使用量。<sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> 在图模型中，用于 MAP 推断的对偶分解产生类似最大积的消息传递算法，求解 MAP 问题的 LP 松弛，其两大类算法为次梯度法与块坐标下降法（MPLP）<sup>[20](https://people.csail.mit.edu/dsontag/papers/SonGloJaa_optbook.pdf)</sup>；科莫达基斯、帕拉吉奥斯与齐里塔斯的方法可证明通过次梯度优化了 LP 松弛的对偶。<sup>[15](https://jair.org/index.php/jair/article/view/10785)</sup>

在自然语言处理中，对偶分解被应用于将句法分析器与词性标注器结合的解码问题：该算法在超过99%的样例上给出精确解，并在超过94%的样例上于10次迭代内给出精确解。<sup>[15](https://jair.org/index.php/jair/article/view/10785)</sup> 在整数与随机规划中，卡尔厄与舒尔茨于1999年将对偶分解应用于随机整数规划 <sup>[21](https://doi.org/10.1016/s0167-6377%2898%2900050-9)</sup>，而本德斯对偶分解将本德斯的原问题结构与拉格朗日对偶结构结合用于大规模 MILP，产生的割比经典本德斯方法更强。<sup>[22](https://doi.org/10.1287/opre.2019.1892)</sup>

## 局限与替代方案

主要失效模式源于理论本身。不具凸性时，对偶间隙意味着对偶最优解不能求解原问题。<sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> 在网络效用最大化中，来自非弹性应用的非凹效用函数是一大缺陷，会导致拥塞控制的发散。<sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> 原迭代点不保证单调改善；在2025年对一个分布式 MILP 的实验中，原迭代点发生振荡，而总成本保持在最优附近有界，对偶估计收敛。<sup>[23](https://globals.ieice.org/en_transactions/fundamentals/10.1587/transfun.2025MAP0002/_f)</sup> 对偶的割平面求解会导致对偶子问题越来越大，可能需要剪枝，退化为缺乏可靠保证的启发式方法。<sup>[11](https://sites.math.washington.edu/~rtr/papers/rtr243-Decomposition.pdf)</sup>

原分解与对偶分解之间的选择取决于耦合结构：耦合约束适合对偶分解，而耦合变量适合原分解——主问题直接分配资源而非通过价格；两者可以递归应用，若下层主问题在更快的时间尺度上求解，则收敛性得到保证。<sup>[1](https://www.princeton.edu/~chiangm/decomptutorial.pdf)</sup> 与集中式内点求解器相比，对于作为基准的可分解凸二次规划，分布式对偶分解单论求解时间通常不具竞争力。<sup>[24](https://cdn.syscop.de/publications/Kozma2013.pdf)</sup>

近期工作扩展了该框架。一种2025年的联邦对偶分解算法在不访问本地数据的情况下计算 Wasserstein 重心，仅使用高度聚合的信息，在容差和每次迭代时间上优于 Sinkhorn 正则化。<sup>[25](https://link.springer.com/article/10.1007/s10479-025-07004-w)</sup> 在联邦学习中，FedPD 提供了一个对非独立同分布数据具有适应性的原对偶框架 <sup>[26](https://doi.org/10.1109/tsp.2021.3115952)</sup>，FedADMM 允许部分参与 <sup>[27](https://doi.org/10.48550/arxiv.2203.15104)</sup>，A-FedPD 解决了部分参与下的“对偶漂移”缺陷，具有 \( O(1/T) \) 收敛性。<sup>[28](https://proceedings.neurips.cc/paper_files/paper/2024/file/9bb4d1b3fbeed86a0e854d736ea1d293-Paper-Conference.pdf)</sup>

## References

1. [A Tutorial on Decomposition Methods for Network Utility Maximization (Chiang, Low, Calderbank, Doyle)](https://www.princeton.edu/~chiangm/decomptutorial.pdf)
2. [Dual Decomposition (Tibshirani, Convex Optimization lecture, CMU)](https://www.stat.cmu.edu/~ryantibs/convexopt/lectures/dual-decomp.pdf)
3. [Dual Decomposition for Natural Language Processing (Rush & Collins slides)](https://www.cs.columbia.edu/~mcollins/papers/dual_decomp_tutorial.pdf)
4. [Duality and Decomposition in Mathematical Programming (Lasdon, 1968)](https://doi.org/10.1109/tssc.1968.300135)
5. [Partitioning decision variables for dual decomposition (arXiv:1710.08994)](https://ar5iv.labs.arxiv.org/html/1710.08994)
6. [On linear convergence of a distributed dual gradient algorithm for linearly constrained separable convex problems (arXiv 1406.3720)](https://ar5iv.labs.arxiv.org/html/1406.3720)
7. [Hugh Everett (1963). Generalized Lagrange Multiplier Method for Solving Problems of Optimum Allocation of Resources. Operations Research.](https://doi.org/10.1287/opre.11.3.399)
8. [Convexification procedures and decomposition methods for nonconvex optimization problems (Bertsekas, JOTA 1979)](https://web.mit.edu/dimitrib/www/Convexification_Mult.pdf)
9. [George B. Dantzig, Philip Wolfe (1960). Decomposition Principle for Linear Programs. Operations Research.](https://doi.org/10.1287/opre.8.1.101)
10. [The Decomposition Algorithm for Linear Programs (Dantzig & Wolfe, Econometrica 1961)](https://www.econometricsociety.org/publications/econometrica/1961/10/01/decomposition-algorithm-linear-programs)
11. [Primal-dual decomposition algorithms (Rockafellar, historical review)](https://sites.math.washington.edu/~rtr/papers/rtr243-Decomposition.pdf)
12. [J. F. Benders (1962). Partitioning procedures for solving mixed-variables programming problems. Numerische Mathematik.](https://doi.org/10.1007/bf01386316)
13. [Leon S. Lasdon, James D. Schoeffler (1965). A multi-level technique for optimization. IEEE Transactions on Automatic Control.](https://doi.org/10.1109/jacc.1965.4168757)
14. [Arthur M. Geoffrion (1970). Primal Resource-Directive Approaches for Optimizing Nonlinear Decomposable Systems. Operations Research.](https://doi.org/10.1287/opre.18.3.375)
15. [A Tutorial on Dual Decomposition and Lagrangian Relaxation for Inference in Natural Language Processing (Rush & Collins, JAIR 2012)](https://jair.org/index.php/jair/article/view/10785)
16. [Distributed Optimization via Alternating Direction Method of Multipliers (Boyd lecture slides)](https://web.stanford.edu/~boyd/papers/pdf/springer_15_lect2.pdf)
17. [A survey on operator splitting and decomposition of convex programs (RAIRO Operations Research 2017)](https://www.numdam.org/item/RO_2017__51_1_17_0.pdf)
18. [An Augmented Lagrangian Approach to Constrained MAP Inference (Martins et al., ICML 2011)](https://icml.cc/2011/papers/150_icmlpaper.pdf)
19. [Alternating Directions Dual Decomposition (AD3), arXiv:1212.6550](https://ar5iv.labs.arxiv.org/html/1212.6550)
20. [Introduction to Dual Decomposition for Inference (Sontag, Globerson, Jaakkola)](https://people.csail.mit.edu/dsontag/papers/SonGloJaa_optbook.pdf)
21. [Dual decomposition in stochastic integer programming (Operations Research Letters, 1999)](https://doi.org/10.1016/s0167-6377%2898%2900050-9)
22. [Ragheb Rahmaniani and colleagues (2020). The Benders Dual Decomposition Method. Operations Research.](https://doi.org/10.1287/opre.2019.1892)
23. [Approximate Analysis of Distributed Dual Decomposition Algorithm for Mixed Integer Linear Programming (IEICE Transactions, 2025)](https://globals.ieice.org/en_transactions/fundamentals/10.1587/transfun.2025MAP0002/_f)
24. [Benchmarking Large-Scale Distributed Convex Quadratic Programming Algorithms (Kozma et al.)](https://cdn.syscop.de/publications/Kozma2013.pdf)
25. [Federated calculation of the free-support transportation barycenter by single-loop dual decomposition (Annals of Operations Research, 2025)](https://link.springer.com/article/10.1007/s10479-025-07004-w)
26. [Xinwei Zhang and colleagues (2021). FedPD: A Federated Learning Framework With Adaptivity to Non-IID Data. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/tsp.2021.3115952)
27. [Wang, Han, Marella, Siddartha, Anderson, James (2022). FedADMM: A Federated Primal-Dual Algorithm Allowing Partial Participation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2203.15104)
28. [A-FedPD: Aligning Dual-Drift is All Federated Primal-Dual Learning Needs (NeurIPS 2024)](https://proceedings.neurips.cc/paper_files/paper/2024/file/9bb4d1b3fbeed86a0e854d736ea1d293-Paper-Conference.pdf)
29. [cs.cmu.edu](https://www.cs.cmu.edu/~ggordon/10725-F12/scribes/10725_Lecture18.pdf)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 算法与计算方法 › 优化与动态规划 › 分解与分布式优化

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/dual-decomposition

English original: https://www.edgepedia.org/dual-decomposition
