Supplementary reading S3
Learning algorithms (II)
In recent years, there has been a lot of interest in the idea of optimism in learning algorithms. The fundamental idea behind optimism is the following:
When all players learn at the same time, the environment is nonstationary but not necessarily adversarial. Can one then take advantage of this to design learning algorithms with better regret guarantees and convergence properties?
S3.1 Predictivity, optimism, and acceleration
The idea of predictive is to anticipate the next utility gradient \(g^{(t+1)}\) by having a prediction \(m^{(t+1)}\).
At least three variants can be defined.
| Algorithm / variant | Update |
|---|---|
| FTRL Non-predictive |
\[\displaystyle x^{\left(t+1\right)} \coloneqq \mathop{\operatorname{arg}\hspace{2.83pt}\operatorname*{max}}\limits_{x \in X} \left\{\left\langle \sum_{τ = 1}^{t} g^{\left(τ\right)},x \right\rangle - \frac{1}{η} ψ\left(x\right)\right\}\]
|
| FTRL Predictive |
\[\displaystyle x^{\left(t+1\right)} \coloneqq \mathop{\operatorname{arg}\hspace{2.83pt}\operatorname*{max}}\limits_{x \in X} \left\{\left\langle {\color{#005dae}m^{\left(t+1\right)}} + \sum_{τ = 1}^{t} g^{\left(τ\right)},x \right\rangle - \frac{1}{η} ψ\left(x\right)\right\}\]
|
| OMD Non-predictive |
\[\displaystyle x^{\left(t+1\right)} \coloneqq \mathop{\operatorname{arg}\hspace{2.83pt}\operatorname*{max}}\limits_{x \in X} \left\{\left\langle g^{\left(t\right)},x \right\rangle - \frac{1}{η} \mathord{\operatorname{D}}_{ψ} \left(x \Vert x^{\left(t\right)}\right)\right\}\]
|
| OMD Predictive / non-reflected |
\(\displaystyle z^{\left(t+1\right)}\)\(\displaystyle \coloneqq \mathop{\operatorname{arg}\hspace{2.83pt}\operatorname*{max}}\limits_{z \in X} \left\{\left\langle g^{\left(t\right)},z \right\rangle - \frac{1}{η} \mathord{\operatorname{D}}_{ψ} \left(z \Vert z^{\left(t\right)}\right)\right\}\)
\(\displaystyle x^{\left(t+1\right)}\)\(\displaystyle \coloneqq \mathop{\operatorname{arg}\hspace{2.83pt}\operatorname*{max}}\limits_{x \in X} \left\{\left\langle {\color{#005dae}m^{\left(t+1\right)}},x \right\rangle - \frac{1}{η} \mathord{\operatorname{D}}_{ψ} \left(x \Vert z^{\left(t+1\right)}\right)\right\}\)
|
| OMD Predictive / reflected |
\[\displaystyle x^{\left(t+1\right)} \coloneqq \mathop{\operatorname{arg}\hspace{2.83pt}\operatorname*{max}}\limits_{x \in X} \left\{\left\langle g^{\left(t\right)} + {\color{#005dae}m^{\left(t+1\right)} - m^{\left(t\right)}},x \right\rangle - \frac{1}{η} \mathord{\operatorname{D}}_{ψ} \left(x \Vert x^{\left(t\right)}\right)\right\}\]
|
While the three predictive algorithms are in general different, they coincide in the special case of Legendre regularizers (see also Lecture 5).
Remark S3.1 .
It is also worth noting that the predictive versions of the algorithms subsume the non-predictive versions as a special case, as we point out in the next remark.
Remark S3.2 .
S3.1.1 Optimism
The idea of optimism is to use predictivity with the specific guess \(m^{(t+1)} = g^{(t)}\) at all times \(t\). This corresponds to predicting that the feedback is slow-changing.
Example S3.3 (Optimistic online gradient ascent) .
The non-reflected OMD algorithm instantiated with squared Euclidean norm \(ψ(x) = \frac{1}{2} \Vert x\Vert_{2}^{2}\) gives rise to the (non-reflected) optimistic online gradient ascent algorithm, whose update rule is
Example S3.4 (Optimistic MWU) .
For the MWU algorithm, the optimistic version of FTRL, non-reflected OMD, and reflected OMD all coincide, and give rise to the following update rule:
In two-player games, optimism serves as a form of negative momentum that pushes the iterates towards the equilibrium. We illustrate this in the following example. We will give a quantitative analysis of the effect of optimism in the convergence of learning algorithms in Section S3.2.
Example S3.5 .
The following plots show the dynamics of the optimistic and non-optimistic versions of MWU and OGD in the small two-player zero-sum game we used in Lecture 5, whose utility matrix is
The optimistic version of online projected gradient descent (OGD) was non-reflected. The purple dot indicates the starting strategy. The gray dotted line tracks the profile of average strategies.
As mentioned, the optimistic dynamics exhibit a “push” towards equilibrium, due to the negative momentum effect, which results in convergence towards the unique Nash equilibrium
S3.1.2 Predictive regret bounds (RVU)
Intuitively, one would expect that predictions help in reducing the regret of the learning algorithm. At one extreme, one would presumably hope that if the prediction is perfect, then the regret would be very small. This is indeed the case, as shown by [SALS15[SALS15] Syrgkanis, V., Agarwal, A., Luo, H., & Schapire, R. E. (2015). Fast convergence of regularized learning in games. Advances in Neural Information Processing Systems (NeurIPS), 28.].
Theorem S3.6 (RVU bound, [SALS15]) .
Predictive FTRL and Predictive OMD satisfy the following regret bound, which is often called RVU bound (regret bounded by variation in utilities):
Remark S3.7 .
S3.1.3 Accelerated learning of Nash equilibria in two-player zero-sum games
As noted by [SALS15], the RVU bound implies accelerated convergence to Nash equilibria in two-player zero-sum games. The proof is quite elementary, and we present it next.
Theorem S3.8 (Accelerated convergence to Nash equilibria in two-player zero-sum games, [SALS15]) .
Consider any two-player zero-sum game; let \(\mathord{\operatorname{U}}_{1} \in \mathbb{R}^{m \times n}\) be the utility matrix for Player 1. If the players employ regret minimizers that guarantee RVU regret bounds of the form
and \(η \le 1/(4 \Vert \mathord{\operatorname{U}}_{1}\Vert_{\text{op}})\), where \(\Vert \mathord{\operatorname{U}}_{1}\Vert_{\text{op}} \coloneqq \operatorname*{max}_{z \in \mathbb{R}^{n}} \Vert \mathord{\operatorname{U}}_{1} z\Vert_{∗} / \Vert z\Vert\) is the operator norm of \(\mathord{\operatorname{U}}_{1}\), then, at any time \(T\), the sum of the regrets of the players satisfies the bound
Proof.
The statement follows from summing up the RVU bounds, and observing that the middle terms cancel out with the right-most terms. More precisely, we have
Summing the inequalities and using the fact that \(η \le 1/4 \Vert \mathord{\operatorname{U}}_{1}\Vert_{\text{op}}\) by assumption, we obtain the statement.
S3.1.4 Accelerated learning of coarse correlated equilibria in general games
Rates of \(\tilde{O}(1/T)\) for coarse correlated and correlated equilibria (CCE) via learning in normal-form games (and beyond) are also known for the multiplayer case, but they are significantly harder to prove. One of the main obstacles is due to the fact that convergence to CCE is driven by the maximum of the regrets of the players, and not the sum as in two-player zero-sum Nash equilibria.
We mention some of the results in this direction.
-
[SALS15] showed \(O(n \operatorname{log} |A| T^{-\frac{3}{4}})\) for OMWU using RVU bounds.
-
This result was later improved by [CP20[CP20] Chen, X., & Peng, B. (2020). Hedging in games: Faster convergence of external and swap regrets. Advances in Neural Information Processing Systems, 33, 18990–18999.] to \(O(n \operatorname{log}^{\frac{5}{6}} |A| T^{-\frac{5}{6}})\) for two-player general-sum games only.
-
[DFG21[DFG21] Daskalakis, C., Fishelson, M., & Golowich, N. (2021). Near-optimal no-regret learning in general games. Advances in Neural Information Processing Systems, 34, 27604–27616.] showed \(O(n \operatorname{log} |A| \frac{\operatorname{log}^{4} T}{T})\) convergence for OMWU using a very complicated analysis based on the idea of high-order stability.
-
[FAL+22[FAL+22] Farina, G., Anagnostides, I., Luo, H., Lee, C.-W., Kroer, C., & Sandholm, T. (2022). Near-optimal no-regret learning dynamics for general convex games. Advances in Neural Information Processing Systems, 35, 39076–39089.] showed \(O(n |A| \frac{\operatorname{log} T}{T})\) convergence rates using RVU bounds paired with a special regularizer.
S3.2 Convergence in iterates
The convergence results we have seen so far pertain to the average strategies (either individual, or the average of the product) produced by learning dynamics. One might then wonder what is known about the iterate convergence to equilibrium.
Complexity-theoretic considerations regarding the hardness of approximating Nash equilibria preclude this phenomenon beyond two-player zero-sum games. As we now argue, in two-player zero-sum games the phenomenon is indeed possible.
Best-iterate convergence. [APFS22[APFS22] Anagnostides, I., Panageas, I., Farina, G., & Sandholm, T. (2022). On Last-Iterate Convergence Beyond Zero-Sum Games. International Conference on Machine Learning.] showed that when both players use optimistic gradient ascent, the best iterate converges to the Nash equilibrium in two-player zero-sum games at the rate of \(O_{T} (1/\sqrt{T})\). At a high level, the proof of this result is in two steps. First, the authors show that the sum of the squared distances between consecutive iterates is bounded by a constant. This implies that at least one iterate is close to the previous one. Second, they show that small simultaneous movements imply proximity to a Nash equilibrium. Both of these steps require only elementary calculations; feel free to try to reproduce the result yourself or check the details in the original paper.
Last-iterate convergence. [COZ22[COZ22] Cai, Y., Oikonomou, A., & Zheng, W. (2022). Finite-Time Last-Iterate Convergence for Learning in Multi-Player Games. Advances in Neural Information Processing Systems (NeurIPS), 35.] improved the best-iterate result mentioned above by showing last iterate converges to the Nash equilibrium at the rate of \(O_{T} (1/\sqrt{T})\) for optimistic OGD. Their analysis is significantly more involved, and revolves around studying a Lyapunov potential function that was discovered via semidefinite programming.
Both of the results mentioned above pertain to optimistic OGD.
Arguably, it was believed for a while in the community that good last-iterate convergence of OMWU were in the air, just “one good trick” away. After all, OMWU had always spoiled us with its good properties. Furthermore, the paper by [HAM21[HAM21] Hsieh, Y.-G., Antonakopoulos, K., & Mertikopoulos, P. (2021). Adaptive learning in continuous games: Optimal regret bounds and convergence to nash equilibrium. Conference on Learning Theory, 2388–2422.] showed asymptotic (i.e., in the limit, but without any concrete rates) convergence of optimistic MWU to the set of equilibria in two-player zero-sum games. So, it seemed pretty likely that good, concrete rates of convergence could be established beyon optimistic gradient ascent. However, in a recent twist, it was shown that the sitution is less rosy than expected. We illustrate this with an example.
Example S3.9 (Poor last-iterate convergence of FTRL, [CFG+24[CFG+24] Cai, Y., Farina, G., Grand-Clément, J., Kroer, C., Lee, C.-W., Luo, H., & Zheng, W. (2024). Fast Last-Iterate Convergence of Learning in Games Requires Forgetful Algorithms. Arxiv. link]) .
Consider the two-player zero-sum game with utility matrix for Player 1 given by
The game admits the unique Nash equilibrium \((x^{∗}, y^{∗})\), where
In particular, when \(\delta\) is small, the equilibrium strategy for Player 1 is approximately \(x^{∗} = (1 - \delta , \delta )\) and thus very close to the boundary of the strategy polytope of the player. This proximity to the boundary affects the performance of all known instantiations of the the optimistic FTRL algorithm. To see this numerically, the next four plots show the evolution of three optimistic FTRL variants (entropic, Euclidean, and logarithmic) and the optimistic gradient ascent algorithm, in the game defined by \(\delta = 10^{-2}.\)