# 对偶学习

对偶学习是一种机器学习框架，其中两个以对偶形式出现的相关任务——例如从语言A翻译到B和从B翻译到A——被联合训练，使得每个任务的输出作为反馈输入另一个任务，从而在平行标注稀缺时，两个模型都能从无标注数据中获益。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> 这两个任务构成一个闭环：一个句子先沿一个方向翻译，再翻回来，即便没有人工标注者，往返过程也能提供训练信号。<sup>[2](https://www.microsoft.com/en-us/research/publication/dual-learning-machine-translation/)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心机制 | 原任务与对偶任务通过强化学习过程互相教学，反馈来自语言模型似然和往返重构。<sup>[2](https://www.microsoft.com/en-us/research/publication/dual-learning-machine-translation/)</sup> |
| 奖励 | \( r = \alpha r_{1} + (1 - \alpha) r_{2} \)，结合了语言模型奖励和重构奖励。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> |
| 数据效率 | 用10%的双语数据热启动，对偶NMT在法→英方向上达到了用100%双语数据训练的普通NMT的水平。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> |
| 翻译质量 | 英→法BLEU 32.06，基线NMT为29.92（1200万句对，完整热启动）。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> |
| 有监督变体 | 对偶有监督学习在RNNSearch基线上分别提升英→法+2.07 BLEU、英→德+1.37 BLEU。<sup>[3](https://proceedings.mlr.press/v70/xia17a/xia17a.pdf)</sup> |
| 已知局限 | 一项针对德–英和土–英的受控研究发现，在半监督NMT中迭代回译比对偶学习更有效。<sup>[4](https://aclanthology.org/2020.findings-emnlp.182/)</sup> |
| 应用 | 机器翻译、图像到图像翻译、语音识别与合成、问答与问题生成、图像描述与生成、代码摘要与生成。<sup>[5](https://link.springer.com/book/10.1007/978-981-15-8884-6)</sup> |

## 工作原理

该框架基于一个观察：许多人工智能任务以对偶配对的形式出现——英译法与法译英、语音识别与文本转语音、图像描述与图像生成、问答与问题生成。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> 用概率的语言来说，联合分布可以有两种因子分解方式，\( P(x) P(y \mid x; \theta_{xy}) = P(y) P(x \mid y; \theta_{yx}) \)，因此两个条件模型受到同一个底层分布的约束。<sup>[3](https://proceedings.mlr.press/v70/xia17a/xia17a.pdf)</sup>

在最初的翻译设定中，一个智能体代表原模型，另一个代表对偶模型，它们通过强化学习互相教学。<sup>[2](https://www.microsoft.com/en-us/research/publication/dual-learning-machine-translation/)</sup> 语言A中的一个单语句子\( s \)被翻译成语言B中的中间句子\( s_{\mathrm{mid}} \)，然后再翻译回来。往返过程产生两个奖励：\( r_{1} = LM_{B}(s_{\mathrm{mid}}) \)，即中间句子的语言模型似然；以及\( r_{2} = \log P(s \mid s_{\mathrm{mid}}; \Theta_{BA}) \)，即重构原句的对数概率。总奖励是二者的加权组合，\( r = \alpha r_{1} + (1 - \alpha) r_{2} \)，其中\( \alpha \)是一个超参数。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup>

有监督变体——对偶有监督学习——将同样的对偶性转化为一个正则项。利用[拉格朗日乘子](https://www.edgepedia.org/zh/lagrange-multipliers)，约束变为惩罚项\( \ell_{\mathrm{duality}} = (\log \hat{P}(x) + \log P(y \mid x; \theta_{xy}) - \log \hat{P}(y) - \log P(x \mid y; \theta_{yx}))^{2} \)，当两个条件模型对联合分布的因子分解不一致时，该惩罚项对它们进行惩罚。<sup>[3](https://proceedings.mlr.press/v70/xia17a/xia17a.pdf)</sup> 后来的一项统一分析将半监督目标写为对偶重构目标\( \mathcal{J}_{\mathrm{dual}}(\theta, \phi) \)，即针对模型\( p_{\theta}(y \mid x) \)和\( q_{\phi}(x \mid y) \)的目标–源–目标目标\( \mathcal{J}_{1} \)与源–目标–源目标\( \mathcal{J}_{2} \)之和，其中重构损失由语言模型损失增强。<sup>[4](https://aclanthology.org/2020.findings-emnlp.182/)</sup>

## 实施方法

对于机器翻译，已发表的流程如下。首先，在可用的平行数据上训练两个翻译模型作为热启动。<sup>[6](https://www.cl.uni-heidelberg.de/courses/ws19/seq2seq/dual_learning.pdf)</sup> 其次，将单语句子输入正向模型以生成合成翻译，形成往返句对。<sup>[6](https://www.cl.uni-heidelberg.de/courses/ws19/seq2seq/dual_learning.pdf)</sup> 第三，利用强化学习信号和有监督损失更新两个模型的参数；期望奖励的梯度给出反向模型的\( \nabla_{\Theta_{BA}} E[r] = E[(1 - \alpha) \nabla_{\Theta_{BA}} \log P(s \mid s_{\mathrm{mid}}; \Theta_{BA})] \)和正向模型的\( \nabla_{\Theta_{AB}} E[r] = E[r \nabla_{\Theta_{AB}} \log P(s_{\mathrm{mid}} \mid s; \Theta_{AB})] \)。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> 第四，随时间降低平行数据的比例。<sup>[6](https://www.cl.uni-heidelberg.de/courses/ws19/seq2seq/dual_learning.pdf)</sup>

调度与目标函数同样重要。在原始实验中，每个小批量以一半单语和一半双语句子开始，单语比例逐渐增加，直到完全不使用双语数据；中间翻译步骤使用大小为2的束搜索。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> 原始论文记录了基于RNN的编码器–解码器架构，并报告实验中所有超参数均通过交叉验证设定，中间翻译过程的束大小为2。

## 起源

用于机器翻译的对偶学习由夏应策及其同事于2016年在一篇发布到arXiv的论文中报告。<sup>[7](https://doi.org/10.48550/arxiv.1611.00179)</sup> 该论文题为《用于机器翻译的对偶学习》，发表于NeurIPS 2016，收录于论文集第820–828页。<sup>[8](https://proceedings.neurips.cc/paper_files/paper/2016/hash/5b69b9cb83065d403869739ae7f0995e-Abstract.html)</sup> 它建立在回译在统计机器翻译中的早期应用之上，回译在那里用于半监督学习（博亚尔和塔姆希纳，2011）和自训练（古特等，2009）。<sup>[9](https://aclanthology.org/W18-2703.pdf)</sup> 强化学习机制来自威廉姆斯（1992）的[策略梯度方法](https://www.edgepedia.org/zh/policy-gradient-method)。<sup>[4](https://aclanthology.org/2020.findings-emnlp.182/)</sup> 一篇2018年的研讨会论文将这一新框架描述为“回译的一种更精细的想法”，通过往返过程整合平行数据和单语数据上的训练。<sup>[9](https://aclanthology.org/W18-2703.pdf)</sup>

## 变体

该框架沿两条原则分支，2020年施普林格出版社的一部专著对此进行了明确梳理。<sup>[5](https://link.springer.com/book/10.1007/978-981-15-8884-6)</sup>

**重构原则算法**直接使用往返信号。这些包括对偶半监督学习、对偶无监督学习和多智能体对偶学习；在图像翻译中，同样的循环思想出现在CycleGAN、DualGAN、DiscoGAN和cdGAN中。<sup>[5](https://link.springer.com/book/10.1007/978-981-15-8884-6)</sup>

**概率原则算法**则使用因子分解约束。对偶有监督学习由夏应策及其同事于2017年在一篇发布到arXiv的论文中报告，使用上述对偶性惩罚联合训练两个条件模型。<sup>[10](https://doi.org/10.48550/arxiv.1707.00415)</sup><sup> • </sup><sup>[3](https://proceedings.mlr.press/v70/xia17a/xia17a.pdf)</sup> 模型级对偶学习在模型层面而非早期方案的数据层面利用约束\( P(x) P(y \mid x; f) = P(y) P(x \mid y; g) \)。<sup>[11](http://proceedings.mlr.press/v80/xia18a/xia18a.pdf)</sup> 多步对偶学习由赵志兵及其同事于2020年在一篇发布到arXiv的论文中报告，使用三个或更多语言领域来加强循环。<sup>[12](https://doi.org/10.48550/arxiv.2005.08238)</sup> 徐伟嘉、牛星和Marine Carpuat（2020）的对偶重构目标将对偶学习和迭代回译统一在半监督NMT的单一目标之下。<sup>[13](https://doi.org/10.48550/arxiv.2010.03412)</sup>

## 应用

2016年的论文指出该机制是通用的：任何以对偶形式出现的两个任务都可以通过强化学习从无标注数据中联合学习。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> 已记录的应用包括机器翻译（英↔法、英↔德、英↔中）、图像到图像翻译、语音合成与识别、视觉问答与问题生成、图像描述与生成，以及代码摘要与生成。<sup>[5](https://link.springer.com/book/10.1007/978-981-15-8884-6)</sup> 一篇ACL 2020论文通过从语义框架出发的原循环和对偶循环，联合训练两个对偶模型用于语言理解和生成。<sup>[14](https://aclanthology.org/2020.acl-main.63.pdf)</sup>

**用数字说话。** 在WMT英↔法、1200万句对的设定下，对偶NMT在完整双语热启动下达到BLEU 32.06（英→法）和29.78（法→英），而基线NMT为29.92和27.49；在10%热启动下，得分为28.73和27.50，基线为25.32和22.27。<sup>[1](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)</sup> 对偶有监督学习在对称语言对上相对RNNSearch提升了BLEU：英→法29.92→31.99，法→英27.49→28.35，英→德16.54→17.91，德→英20.69→20.81。<sup>[3](https://proceedings.mlr.press/v70/xia17a/xia17a.pdf)</sup>

## 局限与替代方案

**对齐问题。** 加兰蒂等人（2018）认为对偶学习并不能绕开对齐问题，即一个句子被正向翻译器错误翻译，却被反向翻译器映射回自身，于是循环奖励了一个错误。赵志兵及其同事的理论分析发现这种情况发生的概率很小，而覆盖三个或更多领域的多步对偶学习能进一步降低它。<sup>[12](https://doi.org/10.48550/arxiv.2005.08238)</sup><sup> • </sup><sup>[15](http://proceedings.mlr.press/v129/zhao20a/zhao20a.pdf)</sup>

**与回译的比较。** 两者在范围和调度上不同：对偶学习旨在改进所有候选模型，并在线迭代地生成合成数据；而传统的一次性回译通常使用固定的反向模型，离线生成合成数据，尽管迭代回译同样交替进行模型更新和合成数据生成。<sup>[15](http://proceedings.mlr.press/v129/zhao20a/zhao20a.pdf)</sup> 哪个更好尚无定论：一项针对德–英和土–英任务的受控实证研究表明，在半监督NMT中迭代回译比对偶学习更有效。<sup>[4](https://aclanthology.org/2020.findings-emnlp.182/)</sup>

**大语言模型时代。** DuPO由佘帅杰及其同事于2025年在一篇发布到arXiv的论文中报告，它指出了经典对偶学习在大语言模型上的两种失败模式：任务不对称，即数学推理或创意写作等不可逆任务打破了对偶循环；以及能力不对称，即对偶任务给模型带来的负担。它将框架重新表述为偏好优化，将每个输入分解为已知和未知部分，训练对偶任务仅从原任务输出中重构未知部分，从而放宽了严格的可逆性要求。<sup>[16](https://doi.org/10.48550/arxiv.2508.14460)</sup>

## References

1. [Dual Learning for Machine Translation (NeurIPS 2016 paper PDF)](https://proceedings.neurips.cc/paper/2016/file/5b69b9cb83065d403869739ae7f0995e-Paper.pdf)
2. [Dual Learning for Machine Translation, Microsoft Research publication page](https://www.microsoft.com/en-us/research/publication/dual-learning-machine-translation/)
3. [Dual Supervised Learning (ICML 2017, Xia et al.)](https://proceedings.mlr.press/v70/xia17a/xia17a.pdf)
4. [Dual Reconstruction: a Unifying Objective for Semi-Supervised Neural Machine Translation (EMNLP Findings 2020)](https://aclanthology.org/2020.findings-emnlp.182/)
5. [Dual Learning (Springer monograph, Qin et al., 2020)](https://link.springer.com/book/10.1007/978-981-15-8884-6)
6. [He et al.: Dual Learning for Machine Translation (Heidelberg course slides)](https://www.cl.uni-heidelberg.de/courses/ws19/seq2seq/dual_learning.pdf)
7. [Xia, Yingce and colleagues (2016). Dual Learning for Machine Translation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1611.00179)
8. [Dual Learning for Machine Translation, NeurIPS 2016 abstract page](https://proceedings.neurips.cc/paper_files/paper/2016/hash/5b69b9cb83065d403869739ae7f0995e-Abstract.html)
9. [Iterative Back-Translation for Neural Machine Translation (ACL 2018 workshop)](https://aclanthology.org/W18-2703.pdf)
10. [Xia, Yingce and colleagues (2017). Dual Supervised Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1707.00415)
11. [Model-Level Dual Learning (ICML 2018, Xia et al.)](http://proceedings.mlr.press/v80/xia18a/xia18a.pdf)
12. [Zhao, Zhibing and colleagues (2020). Dual Learning: Theoretical Study and an Algorithmic Extension. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2005.08238)
13. [Xu, Weijia, Niu, Xing, Carpuat, Marine (2020). Dual Reconstruction: a Unifying Objective for Semi-Supervised Neural Machine Translation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2010.03412)
14. [Towards Unsupervised Language Understanding and Generation by Joint Dual Learning (ACL 2020)](https://aclanthology.org/2020.acl-main.63.pdf)
15. [Dual Learning: Theoretical Study and an Algorithmic Extension (ICML 2020, Zhao et al.)](http://proceedings.mlr.press/v129/zhao20a/zhao20a.pdf)
16. [She, Shuaijie and colleagues (2025). DuPO: Enabling Reliable LLM Self-Verification via Dual Preference Optimization. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2508.14460)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Supervised, unsupervised, and semi-supervised learning › Semi-supervised and weakly supervised learning

Copyright 2026 Edgepedia

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

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

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