../

2026-10-26 Onlineopt scribe

$\newcommand{\qq}{\quad\quad}$ $\newcommand{\R}{\mathbb{R}}$

Recap: Swap Regret

We know that internal regret of action $i$ is

$$ \text{Internal Regret}(i) = \max_{j \in[N]} \sum_t^T C_t(i) (l_t(i_t) - l_t(j))\qq C_t(i) = \mathbb{1}[i_t = i] $$

Then Swap-Regret is defined as

$$ \text{Swap Regret} = \sum_t^T l_t(i_t) - \min_{\phi: [N]\rightarrow[N]} \sum_t^T l_t (\phi(i_t)) $$

We saw this being used for calibration

Recall the No-regret-robust-response dynamics

Min player Max player
Send $q_t\gets \text{NR}$
Pick a $p_t$ such that $p_t^T G_t q_t \le 0$
NR.update($G^Tp_t$)

Can we use this to obtain swap regret? We saw it being used for group-wise regret but what about swap?

Consider the No-Swap-Regret Learning setting with $G_t (i, (j, k)) = \mathbb{1}(l_t(i)-l_t(j))$

Then by No-Regret-Robust-Response dynamics guarantee we have

$$ \max_{j, k} \sum_{t=1}^T \mathbb{1}[i_t =k] (l_t(k) - l_t(j)) \le o(T) + o(T) $$

This basically comes from the standard guarantee $\max_q\sum_t p_t^T G_t q \le 0$ and is very easy to prove.

The hard part was ensuring that $\forall q\quad \exists p\quad \forall G_t\quad p^T G_t q \le 0$

This resulted in finding a solution for $p(k) \sum_j q(j, k) = \sum_j p(j)q(k, j)$

To do so we constructed a new matrix $Q(j, k) = q(j, k) + \mathbb{1}[j = k](1 - \sum^N_i q(i, k))$

Let us deconstruct this mysterious thing

$$ Q(j, k) = \begin{cases} q(j, k)\qq\text{Non-diagonal elements}\\ q(j, k) + (1 - \text{Sum of }k^{th}\text{ column}) \end{cases} $$

We are adding the residual to the diagonal elements such that each column sums up to 1. We are doing this because $\sum_{j, k} q(j, k) = 1$ i.e summing all the elements is 1 not individual rows or columns.

This new $Q$ matrix is a transition matrix similar to Markov chain transition matrices.

Hence $p$ becomes the stationary point of this matrix

$$ Qp = p $$

We write the algorithm for No-Swap-Regret as follows

Initialize $q_t(j,k) = \frac{1}{N^2} \forall (j, k) \in [N]\times[N]$

For $t=1, \ldots, T$

  1. Initialize $Q_t(j, k) = q_t(j, k) + \mathbb{1}[j = k](1 - \sum_j^N q_t(j, k))$
  2. Find $p_t$ such that $Q_t p_t = p_t$
  3. Adversary reveals $l_t \in \R^n$
  4. $q_{t+1}(i, k) \propto q_t(i, k) \exp(\eta p_t(k))(l_t(k) - l_t(i))$

Intuition

In the case of group-wise regret $q_t$ was large if the group-wise regret associated with it was large. Then we would notice it more and try to fix it.

Here if $q_t(i, k)$ is large when the learner chooses action $i$ but should have chosen $k$. This has the effect of moving some probability from $i$ to $k$

Bounds

Swap regret $\le \sqrt{N T \log N}$ which is $\sqrt{N}$ factor amplification from the bound of regret $\le O(T\log N)$

Quiz 1 discussion

  • FTRL $\propto$ strong convexity and not smoothness
    • boundary discussion
  • Larger variance in FTPL $\propto$ stability
    • Counter intuitive

General Sum Games and Correlated Equilibrium

These are games in which the sum of the utility functions is not 0. This usually implies that we have more than 2 players. Though you could have more players in a zero sum game we restricted ourselves to just 2. Here we are removing the restrictions on both the number of players and the summation.

Normal Form Game

$$ [M], (\mathcal{A}_j)_{j \in [M]}, (u_j)_{j \in [M]} $$

Where,

  • $[M]$ is the number of players
  • Player $a_j$ choose from $\mathcal{A}_j$
  • Utility function $u_j = u_j(a_1, \ldots, a_m)$
    • Notice that it depends on all the actions
    • We usually denote this using a shorthand $u_j(a_j, a_{-j})$
    • $a_{-j}$ is the tuple with all the actions except $a_j$

It is easy to see that 2-player 0-sum games is just a special case of this.

Examples

Prisoner’s Dilemma

$$ \begin{bmatrix} (-1, -1) & (-10, 0) \\ (0, -10) & (-6, -6) \end{bmatrix} $$

We would always defect

In general you would have

$$ \begin{bmatrix} x, x & z,w \\ w,z & y,y \end{bmatrix} $$

The relative ordering amongst these will gives you three distinct kinds of games

  • Clear option
  • Do the opposite
  • Mirror

The canonical examples of these are Prisoner’s dilemma, Stag Hunt and Bank Run

A steady state equilibrium is when no player wants to deviate unilaterally. Relaxation of this equilibrium along with changes to the strategy spaces gives us other equilibria.

Nash Equilibrium

$p_1, p_2, \ldots, p_M \in \Delta_{A_1} \times \Delta_{A_2} \times \ldots \Delta_{A_M}$ is a Nash equilibrium if

$$ u_j (p_1, p_2, \ldots, p_M ) = \sum_{a_1\ldots a_M} p_1(a_1) p_2(a_2)\ldots p_M(a_M)\\ = u_j(p_j, p_{-j}) \ge u_j(p_j', p_{-j}) \qq \forall p_j' \in \Delta_{A_j} $$