# 无遗憾学习

无遗憾学习是一种在线决策方法，其中玩家针对未知或对抗性的损失反复选择动作，并保证其累积损失与事后选择的最佳固定动作的损失保持接近。这一差距称为遗憾，定义为算法的总损失减去该最佳固定动作的损失；当这一差距随轮数次线性增长时，即 \( \mathrm{Reg}(T) = o(T) \)，算法就是无遗憾的。<sup>[1](https://bowaggoner.com/courses/gradalg/notes/lect14-noregret.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/pdf/2608.09389.pdf)</sup> 该保证对对手选择的每一个损失序列都成立，这使其区别于在随机假设下分析的方法。

| 关键事实 | 详情 |
|---|---|
| 遗憾定义 | \( \mathrm{Reg}_A(T) = L_A - \mathrm{OPT} \)，即算法的累积损失减去最佳固定动作的损失；无遗憾意味着 \( \mathrm{Reg}(T)/T \to 0 \)<sup>[1](https://bowaggoner.com/courses/gradalg/notes/lect14-noregret.pdf)</sup><sup> • </sup><sup>[3](https://learning-in-games.github.io/lect01-notes.pdf)</sup> |
| 标准全信息界 | 取 \( \varepsilon = \sqrt{2 \ln N / T} \) 的乘性权重保证遗憾至多 \( \sqrt{2 \ln(N) \cdot T} \)<sup>[1](https://bowaggoner.com/courses/gradalg/notes/lect14-noregret.pdf)</sup> |
| 对抗性极小极大速率 | 有 \( m \) 个动作和对抗性损失时，\( T \) 轮后的极小极大遗憾为 \( \tilde{\Theta}(\sqrt{T \log m}) \)<sup>[4](https://par.nsf.gov/servlets/purl/10517590)</sup> |
| 凸优化速率 | 在线梯度下降对梯度有界的任意凸函数序列达到 \( O(\sqrt{T}) \) 遗憾；牛顿型方法对梯度有界的指数凹函数达到 \( O(\log T) \)<sup>[5](https://www.cs.princeton.edu/techreports/2006/747.pdf)</sup> |
| 赌博机凸优化 | 一般凸损失代价为 \( \tilde{O}(T^{3/4}) \)；强凸且光滑的损失代价为 \( \tilde{O}(\sqrt{T}) \)，与下界 \( \Omega(\sqrt{T}) \) 匹配<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2014/file/3ce3c4f8183442957d051dc8ebed2668-Paper.pdf)</sup> |
| 博弈论意义 | 无外部遗憾博弈收敛到粗相关均衡；无交换遗憾博弈收敛到相关均衡<sup>[7](https://arxiv.org/html/2601.22079)</sup> |
| 非凸限制 | 用非凸损失最小化标准遗憾在计算上不可行；“局部遗憾”替代目标恢复了效率<sup>[8](https://doi.org/10.48550/arxiv.1708.00075)</sup> |

## 工作原理

协议是一个重复博弈。在每一轮 \( t = 1, \dots, T \) 中，玩家承诺一个动作（或动作上的混合策略），然后观察反馈并遭受损失。对手可以将轮数、玩家过去的混合策略和已实现动作映射为一个成本向量；如果对每一个这样的对手，相对于每一个固定动作的期望累积遗憾在 \( T \to \infty \) 时为 \( o(T) \)，等价地，平均期望遗憾为 \( o(1) \)，则算法无外部遗憾。<sup>[9](https://theory.stanford.edu/~tim/f13/l/l17.pdf)</sup> 等价地，\( \mathrm{Reg}_A(T)/T = o(1) \)：算法累积收益与最佳固定动作的累积收益之间按轮平均的差距在所有输入序列上消失。<sup>[3](https://learning-in-games.github.io/lect01-notes.pdf)</sup><sup> • </sup><sup>[7](https://arxiv.org/html/2601.22079)</sup>

遗憾变体细化了基准。外部（静态）遗憾与单个最佳固定动作比较。交换遗憾将其推广到所有把当前动作替换为另一动作的映射 \( \phi : [N] \to [N] \)；这些细化部分解决了外部遗憾的局限，例如无外部遗憾学习器可能持续偏好一个它从未切换到的动作。<sup>[2](https://arxiv.org/pdf/2608.09389.pdf)</sup><sup> • </sup><sup>[10](https://www.cs.cmu.edu/~avrim/Papers/regret-chapter.pdf)</sup><sup> • </sup><sup>[11](https://icml.cc/Conferences/2008/papers/542.pdf)</sup> 动态遗憾则与随时间变化的动作序列比较；最佳固定动作基准在动态环境中较弱，因为它不关心其他玩家本来会如何响应。<sup>[2](https://arxiv.org/pdf/2608.09389.pdf)</sup> 交换遗憾消失蕴含外部遗憾消失，因此交换遗憾是更强的保证。<sup>[7](https://arxiv.org/html/2601.22079)</sup>

## 如何实现

**乘性权重。** 学习器为每个动作保留一个权重 \( w_i^t \)，并在观察到损失后，将权重乘以一个随损失递减的因子，然后按归一化分布行动。该更新的 Hedge 变体也称为指数权重方法；在损失向量有界且学习率适当时，它达到 \( O(\sqrt{T}) \) 遗憾。<sup>[12](https://learning-in-games.github.io/lect02-notes.pdf)</sup> 更新为 \( w_i^{t+1} = w_i^t \cdot (1 - \ell_i^t) \) 的变体称为多项式权重。<sup>[1](https://bowaggoner.com/courses/gradalg/notes/lect14-noregret.pdf)</sup> 乘性权重算法是加权多数算法的直接推广。<sup>[13](https://cseweb.ucsd.edu/~yfreund/papers/games_long.pdf)</sup>

**在线梯度下降与FTRL。** 在凸设置中，在线梯度下降更新 \( x_{t+1} := \Pi_{\mathcal{X}}(x_t - \eta \nabla f_t(x_t)) \)，投影到可行集上，并达到 \( \mathrm{Reg}_{\mathrm{OGD}}(T) \le (\eta/2) \cdot \sum_t \| \nabla f_t(x_t) \|^2 + \| x_1 - x^\star \|^2 / (2\eta) \)；当梯度范数由 \( L \) 界住、直径为 \( D \) 时，合适的步长使遗憾呈次线性增长。<sup>[3](https://learning-in-games.github.io/lect01-notes.pdf)</sup> 更一般地，跟随正则化领导者（FTRL）选择使过去损失之和加上严格凸正则项最小化的动作；当正则项由 \( M \) 界住且损失为 \( L \)-Lipschitz 时，\( \mathrm{Reg}_{\mathrm{FTRL}}(T) \le 2L\sqrt{M \cdot T} \)。<sup>[12](https://learning-in-games.github.io/lect02-notes.pdf)</sup><sup> • </sup><sup>[14](https://www.mit.edu/~gfarina/2021/15888f21_L07_ftrl_omd/L07_ftrl_omd.pdf)</sup> 乘性权重是 FTRL 的特例，而 FTRL 与在线镜像下降（OMD）是最广为人知的两种在线线性优化预言机。<sup>[12](https://learning-in-games.github.io/lect02-notes.pdf)</sup><sup> • </sup><sup>[14](https://www.mit.edu/~gfarina/2021/15888f21_L07_ftrl_omd/L07_ftrl_omd.pdf)</sup> 对于梯度由 \( G \) 界住的 \( \alpha \)-指数凹函数，基于在线牛顿步的算法达到 \( O(\log T) \) 遗憾。<sup>[5](https://www.cs.princeton.edu/techreports/2006/747.pdf)</sup>

**乐观变体。** 当遇到的损失序列具有可预测结构时，最坏情况保证可能偏松，乐观方法利用序列“任意性”的减少来获得更紧的界。<sup>[15](https://proceedings.neurips.cc/paper_files/paper/2013/file/f0dd4a99fba6075a9494772b58f95280-Paper.pdf)</sup> FTRL 和 OMD 的预测变体可追溯到萨沙·拉赫林（Sasha Rakhlin）和卡蒂克·斯里达兰（Karthik Sridharan）2013 年著作《优化、学习与可预测序列博弈》（Optimization, Learning, and Games with Predictable Sequences）的可预测序列框架。<sup>[14](https://www.mit.edu/~gfarina/2021/15888f21_L07_ftrl_omd/L07_ftrl_omd.pdf)</sup><sup> • </sup><sup>[15](https://proceedings.neurips.cc/paper_files/paper/2013/file/f0dd4a99fba6075a9494772b58f95280-Paper.pdf)</sup>

## 起源

一种离散动作设置的无遗憾算法于1957年发表；[戴维·布莱克韦尔](https://www.edgepedia.org/zh/david-blackwell)（David Blackwell）在一项据称可追溯到1954年、早于其1956年发表的可接近性（Approachability）工作的观察中指出，作为特例，它导出一个具有基本相同低遗憾保证的算法。<sup>[16](https://proceedings.mlr.press/v19/abernethy11b/abernethy11b.pdf)</sup> 文献中的印刷年份不同：阿伯内西（Abernethy）及其同事将汉南（Hannan）的论文定于1956年（1957年发表），将布莱克韦尔的观察定于1954年；而综述文献和其他参考文献将汉南记为1957年，将布莱克韦尔的可接近性工作记为1956年；两种日期都出现在已发表来源中，差异尚未解决。<sup>[16](https://proceedings.mlr.press/v19/abernethy11b/abernethy11b.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/pdf/2608.09389.pdf)</sup> 无遗憾性质也称为汉南一致性。<sup>[2](https://arxiv.org/pdf/2608.09389.pdf)</sup> 布莱克韦尔的可接近性定理与在线线性优化的无遗憾学习后来通过锥对偶性被证明在强算法意义上等价。<sup>[16](https://proceedings.mlr.press/v19/abernethy11b/abernethy11b.pdf)</sup> 现代凸形式，即在线凸优化，通过在线梯度下降对梯度有界的任意凸成本函数序列达到 \( O(\sqrt{T}) \) 加性遗憾。<sup>[5](https://www.cs.princeton.edu/techreports/2006/747.pdf)</sup> 指数权重算法就是在此设置中引入的。<sup>[17](https://www.esaim-proc.org/articles/proc/pdf/2015/04/proc145114.pdf)</sup>

## 变体

在线凸优化区分全信息版本与部分反馈的赌博机版本：在前者中，玩家观察到整个损失函数 \( \ell_t \)。<sup>[18](https://www.mit.edu/~rakhlin/papers/online_learning.pdf)</sup> 在赌博机设置中，学习器只观察到实际所玩动作的收益，这产生探索—利用权衡；仍可保持较小的外部遗憾，例如在路由问题中。<sup>[7](https://arxiv.org/html/2601.22079)</sup><sup> • </sup><sup>[10](https://www.cs.cmu.edu/~avrim/Papers/regret-chapter.pdf)</sup> 保证可迁移到赌博机模型，但界稍差、算法更复杂。<sup>[9](https://theory.stanford.edu/~tim/f13/l/l17.pdf)</sup>

极小极大速率取决于损失结构。在全信息以及标准的有界域、有界损失假设下，凸损失和线性损失都给出 \( \Theta(\sqrt{T}) \)；具有一般凸损失的赌博机凸优化代价为 \( \tilde{O}(T^{3/4}) \)，对强凸且光滑的损失改进为 \( \tilde{O}(\sqrt{T}) \)，沙米尔（Shamir）对此证明了一个匹配的 \( \Omega(\sqrt{T}) \) 下界。<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2014/file/3ce3c4f8183442957d051dc8ebed2668-Paper.pdf)</sup> 有 \( m \) 个动作且损失由对手选择时，极小极大遗憾恰为 \( \tilde{\Theta}(\sqrt{T \log m}) \)。<sup>[4](https://par.nsf.gov/servlets/purl/10517590)</sup>

## 应用

无遗憾学习器的主要应用是作为重复博弈的动态。如果所有玩家都运行事后最佳（外部）遗憾算法，联合行动的经验分布收敛到粗相关均衡集；如果所有玩家都运行交换遗憾算法，则收敛到相关均衡。<sup>[7](https://arxiv.org/html/2601.22079)</sup> 提出了一种在矩阵博弈中无内部遗憾的算法，并表明当所有玩家达到无内部遗憾时，联合行动的经验分布收敛到相关均衡。<sup>[11](https://icml.cc/Conferences/2008/papers/542.pdf)</sup> 对于时变零和博弈，张梦晓（Mengxiao Zhang）及其同事（2022）在《时变零和博弈中的无遗憾学习》（No-Regret Learning in Time-Varying Zero-Sum Games）中研究了动态纳什均衡遗憾。<sup>[19](https://doi.org/10.48550/arxiv.2201.12736)</sup>

## 局限与替代方案

**非凸性。** 在非凸损失函数的重复博弈中最小化标准遗憾在计算上不可行；哈赞（Hazan）、辛格（Singh）和张（Zhang）（2017）引入了“局部遗憾”，这是非凸世界的一个替代目标，允许高效优化并收敛到近似局部最优。<sup>[8](https://doi.org/10.48550/arxiv.1708.00075)</sup><sup> • </sup><sup>[20](http://proceedings.mlr.press/v70/hazan17a/hazan17a.pdf)</sup>

**无界比较器与噪声。** 噪声自适应性有其局限：OG+ 方法将乐观梯度的外推步骤和更新步骤分开，在加性梯度噪声下保证 \( O(\sqrt{T}) \) 遗憾，在调优的乘性噪声下保证 \( O(1) \) 遗憾，但在对抗性环境中可能无法达到次线性遗憾；原对偶变体 OptDA+ 保持噪声自适应性，同时具有 \( O(\sqrt{T}) \) 对抗性遗憾。<sup>[21](https://ar5iv.labs.arxiv.org/html/2206.06015)</sup>

**效率与基准。** 最佳固定动作基准本身在动态环境中较弱。<sup>[2](https://arxiv.org/pdf/2608.09389.pdf)</sup> 在赌博机反馈下，最坏情况下不可能改进 \( O(\sqrt{T}) \) 遗憾，这促使研究实例相关界：如果两人零和标准式博弈中的双方都应用 Tsallis-INF，则遗憾至多为 \( O(c_1 \log T + \sqrt{c_2 \cdot T}) \)，其中常数为博弈相关常数，且当存在纯策略[纳什均衡](https://www.edgepedia.org/zh/nash-equilibrium)时 \( c_2 = 0 \)。<sup>[22](https://ar5iv.labs.arxiv.org/html/2502.17625)</sup>

## References

1. [Online No-Regret Learning (lecture notes)](https://bowaggoner.com/courses/gradalg/notes/lect14-noregret.pdf)
2. [Regret, equilibrium, and learning in games: A guided tour](https://arxiv.org/pdf/2608.09389.pdf)
3. [Lecture 01: Introduction to Online Learning (Lazarsfeld)](https://learning-in-games.github.io/lect01-notes.pdf)
4. [On the Complexity of Computing Sparse Equilibria and Lower Bounds for No-Regret Learning in Games](https://par.nsf.gov/servlets/purl/10517590)
5. [Online Newton Step (Hazan, Agarwal, Kale, Princeton TR-747)](https://www.cs.princeton.edu/techreports/2006/747.pdf)
6. [Bandit Convex Optimization: Towards Tight Bounds (NeurIPS 2014)](https://proceedings.neurips.cc/paper_files/paper/2014/file/3ce3c4f8183442957d051dc8ebed2668-Paper.pdf)
7. [The Economics of No-Regret Learning Algorithms (review, 2025 World Congress of the Econometric Society)](https://arxiv.org/html/2601.22079)
8. [Hazan, Elad, Singh, Karan, Zhang, Cyril (2017). Efficient Regret Minimization in Non-Convex Games. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1708.00075)
9. [Lecture 17: No-regret dynamics (Stanford CS364A, Tim Roughgarden)](https://theory.stanford.edu/~tim/f13/l/l17.pdf)
10. [Learning, Regret minimization, and Equilibria (Blum & Mansour chapter)](https://www.cs.cmu.edu/~avrim/Papers/regret-chapter.pdf)
11. [No-Regret Learning in Convex Games (ICML 2008)](https://icml.cc/Conferences/2008/papers/542.pdf)
12. [Lecture 02: Multiplicative Weights and FTRL](https://learning-in-games.github.io/lect02-notes.pdf)
13. [Adaptive game playing using multiplicative weights (Freund, Schapire, et al., Games and Economic Behavior)](https://cseweb.ucsd.edu/~yfreund/papers/games_long.pdf)
14. [Lecture 7: Optimistic/predictive regret minimization via online optimization (MIT)](https://www.mit.edu/~gfarina/2021/15888f21_L07_ftrl_omd/L07_ftrl_omd.pdf)
15. [Optimization, Learning, and Games with Predictable Sequences (NeurIPS 2013)](https://proceedings.neurips.cc/paper_files/paper/2013/file/f0dd4a99fba6075a9494772b58f95280-Paper.pdf)
16. [Blackwell Approachability and No-Regret Learning are Equivalent](https://proceedings.mlr.press/v19/abernethy11b/abernethy11b.pdf)
17. [Online Learning and Game Theory. A Quick Overview with recent results and applications](https://www.esaim-proc.org/articles/proc/pdf/2015/04/proc145114.pdf)
18. [Lecture Notes on Online Learning (Rakhlin)](https://www.mit.edu/~rakhlin/papers/online_learning.pdf)
19. [Zhang, Mengxiao and colleagues (2022). No-Regret Learning in Time-Varying Zero-Sum Games. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2201.12736)
20. [Efficient Regret Minimization in Non-Convex Games (Hazan, Singh, Zhang, ICML 2017, PMLR 70:1433-1441)](http://proceedings.mlr.press/v70/hazan17a/hazan17a.pdf)
21. [No-Regret Learning in Games with Noisy Feedback: Faster Rates and Adaptivity via Learning Rate Separation (arXiv)](https://ar5iv.labs.arxiv.org/html/2206.06015)
22. [Instance-Dependent Regret Bounds for Learning Two-Player Zero-Sum Games with Bandit Feedback (arXiv, 2025)](https://ar5iv.labs.arxiv.org/html/2502.17625)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/no-regret-learning

English original: https://www.edgepedia.org/no-regret-learning
