TL;DR
This paper extends posterior sampling (Thompson sampling) to two-player, zero-sum episodic Markov games with unknown transitions and rewards. The authors prove that a posterior sampling agent achieves a sublinear expected regret bound of $O(HS\sqrt{ABHK \log(SABHK)})$, providing strong theoretical guarantees whether playing against an identical learner or an opponent using an entirely arbitrary strategy.
What Problem Does This Paper Address?
Multi-agent reinforcement learning (MARL) in competitive environments is notoriously difficult. Agents must simultaneously learn the underlying dynamics of the environment while adapting to opponents whose strategies change over time.
While single-agent reinforcement learning has successfully deployed Posterior Sampling (PS) to balance exploration and exploitation efficiently, extending this to zero-sum Markov games has been challenging. Existing game-theoretic RL algorithms often rely on the "Optimism in the Face of Uncertainty" (OFU) principle. While effective, OFU methods are computationally demanding because they require solving complex optimizations over multi-dimensional confidence sets. The authors address this gap by analyzing a simpler, more practical Bayesian approach based on Thompson sampling for episodic zero-sum games.
Methods
The authors propose a game-theoretic adaptation of Posterior Sampling for Reinforcement Learning (PSRL). Both players maintain a Bayesian posterior distribution over the unknown transition kernel ($\theta$) and reward model ($R$), which they update via Bayes' rule at the end of each episode using the observed state-action-reward history.
At the start of a new episode, each player independently draws a sample model from this posterior distribution. Crucially, they do not coordinate their samples. Each player then solves for the Nash equilibrium of their sampled model using a max-min dynamic program, which can be computed efficiently via linear programming.
The paper rigorously analyzes two scenarios:
- Shared Learning: Both players follow this posterior sampling protocol.
- Arbitrary Opponent: Only one player uses posterior sampling, while the opponent employs an arbitrary, potentially adversarial or suboptimal learning algorithm.
Datasets
The paper does not use standard empirical datasets. Instead, the authors evaluate their approach using a simulated 3×3 grid-world predator-prey game.
As shown in Figure 1, players choose directions (up, down, left, right) with stochastic transition dynamics: they move in their desired direction with a 75% success rate, with small probabilities of moving in alternative directions. The reward is deterministic and based on the normalized $\ell_2$ distance between the predator and prey.
Key Insights and Ideas
- Independent Sampling Suffices: Even though players sample environment models independently and may compute policies based on different subjective beliefs, the expected regret remains tightly bounded.
- Robustness Against Arbitrary Opponents: One of the most surprising theoretical insights is that the sublinear regret guarantee for the PS agent holds regardless of what the opponent does. Whether the opponent is a perfect game-theorist, another learner, or completely irrational, the PS agent's expected regret scales predictably.
- Computational Relief: By replacing the multi-dimensional confidence-set optimization of OFU with a simple point-sample from a posterior, the algorithm drastically reduces computational overhead while maintaining strong theoretical guarantees.
Key Results
- Theoretical Bound: The authors establish an expected regret bound of $O(HS\sqrt{ABHK \log(SABHK)})$, where $H$ is the episode length, $S$ is the state space size, $A$ and $B$ are the action space sizes, and $K$ is the number of episodes. Because this bound scales with $\sqrt{K}$, the average regret per episode approaches zero as the game is played repeatedly.
- Empirical Performance: Simulation results demonstrate how the posterior sampling agent fares against different opponent types:
As illustrated in Figure 2, when Player 1 uses posterior sampling against a clairvoyant opponent playing the true equilibrium strategy (eq), its regret stabilizes. Against another posterior sampling agent (ps), the players are evenly matched, keeping regret near zero. Remarkably, against a fictitious play baseline (fp), Player 1 achieves negative regret, meaning it successfully exploits the opponent's suboptimal learning strategy.
Limitations and Future Work
- Information Requirements: The algorithm assumes full observability, meaning both players can perfectly observe the current state and each other's actions at every timestep.
- Tabular Scaling: The regret bound depends directly on the discrete sizes of the state and action spaces ($S, A, B$). This tabular formulation may not scale well to massive or continuous state spaces without incorporating function approximation techniques (like deep neural networks).
- Zero-Sum Restriction: The theoretical guarantees are strictly tied to zero-sum settings. The authors note that extending posterior sampling to non-zero-sum or general-sum games remains an open and exciting direction for future research.
Summary updated