TL;DR
Thompson Sampling (TS), a classic algorithm for single-agent reinforcement learning, is surprisingly effective for learning Nash equilibria in two-player zero-sum games. This paper proves that a "plain" TS approach achieves optimal $O(\sqrt{T})$ convergence for mixed equilibria and $O(\log T)$ for pure equilibria, providing the first exact asymptotic analysis for this setting.
What Problem Does This Paper Address?
In the world of multi-agent reinforcement learning, researchers often struggle to balance exploration (trying new strategies) and exploitation (playing the best-known strategy). While Thompson Sampling is a gold standard for single-agent "bandit" problems due to its simplicity and efficiency, its behavior in games is much less understood.
The authors focus on two-player zero-sum matrix games with bandit feedback. In this setting, a learner controls both players (centralized self-play) but doesn't know the underlying payoff matrix. They only observe a noisy version of the payoff for the specific pair of actions played in each round. The goal is to minimize the cumulative duality gap (also known as the Nash gap), which measures how much players could improve their payoffs by unilaterally switching to a better strategy.
The core challenge is technical: does playing a strategy sampled from a posterior distribution provide enough information to eventually "correct" the learner's internal model of the game?
Methods
The authors analyze an algorithm called Nash-TS. It follows a straightforward loop:
- Posterior Sampling: Maintain a posterior distribution over the possible payoff matrices based on observed data. In each round, sample one "imagined" payoff matrix from this distribution.
- Equilibrium Selection: Compute a Nash equilibrium for this sampled matrix.
- Action & Update: Play the actions dictated by that equilibrium, observe the noisy payoff, and update the posterior for that specific entry in the matrix.
Unlike many modern algorithms that add explicit "exploration bonuses" or complex regularization terms to force the learner to explore, Nash-TS is "plain"—it relies entirely on the inherent randomness of the posterior sampling to drive exploration.
Datasets
The paper evaluates Nash-TS using several synthetic game benchmarks designed to test different equilibrium structures:
- Unique Pure Equilibrium: A game where the best strategy for both players is a single, fixed action.
- Unique Fully Mixed Equilibrium: A game where players must randomize over all possible actions.
- Unique Boundary Mixed Equilibrium: A game where the equilibrium involves randomizing over a subset of actions.
- Multiple Equilibria: A game that violates the uniqueness assumption to test the algorithm's robustness.
- Random Games: Large-scale matrices ($25 \times 25$ and $50 \times 50$) with payoffs drawn uniformly at random.
Key Insights and Ideas
- The "Aha" Moment on Rates: The authors discovered that the convergence rate depends heavily on the nature of the equilibrium. If the equilibrium is pure, the error rate is logarithmic ($O(\log T)$) because the learner only needs to gather enough data to "rule out" suboptimal actions. If it is mixed, the rate becomes $O(\sqrt{T})$ because the learner must precisely estimate the payoff values to balance the probabilities of different actions correctly.
- Exact Asymptotics: Beyond just finding the "Big-O" rate, the authors identified the exact leading coefficient for the $\sqrt{T}$ term. This constant depends only on the noise level and the specific equilibrium strategies, showing that actions outside the equilibrium support eventually become irrelevant to the primary error term.
- Information Gain via Sampling: A major contribution is proving that posterior sampling alone generates sufficient information. Even though the learner is "greedy" with respect to their sampled model, the variance in those samples ensures they don't get stuck in a loop of playing bad strategies.
Key Results
- Theoretical Optimality: The authors established minimax lower bounds showing that $O(\sqrt{T})$ is the best any algorithm can do for mixed equilibria, and $O(\log T)$ is optimal for pure equilibria. Nash-TS matches both.
- Empirical Superiority: In experiments, Nash-TS consistently outperformed established baselines like PMO-LB and Symmetric UCB. As seen in Figure 1, Nash-TS (blue line) achieves the lowest cumulative duality gap across all tested game types.
- Theory Meets Practice: Figure 2 demonstrates that as the number of rounds increases, the empirical error of Nash-TS converges perfectly to the theoretical constant ($2\Lambda_{core}$) predicted by the authors.
Limitations and Future Work
- Uniqueness Assumption: The current theoretical proofs rely on the game having a unique Nash equilibrium. While Figure 1(d) shows the algorithm still performs well with multiple equilibria, the theory for this case remains an open challenge.
- Centralized Control: The study assumes a single learner controls both sides. Extending these tight bounds to decentralized settings—where two independent learners play against each other without sharing a posterior—is a significant next step for the field.
- Finite-Horizon Bounds: While the asymptotic (long-term) results are very tight, there is still room to narrow the gap between the upper and lower bounds for shorter, finite time horizons.
Summary updated