Two-Timescale Q-Learning with Function Approximation in Zero-Sum Stochastic Games

Zaiwei Chen, Kaiqing Zhang, Eric Mazumdar, Asuman E. Ozdaglar, Adam Wierman

TL;DR

This paper introduces a novel two-timescale Q-learning algorithm that finally makes function approximation "safe" for two-player zero-sum stochastic games. By decoupling the learning of payoffs from the evolution of policies, the authors provide the first last-iterate finite-sample convergence guarantees for independent, payoff-based learning in this setting.

What Problem Does This Paper Address?

In single-agent reinforcement learning (RL), Q-learning is a cornerstone. However, when you move to multi-agent systems, things get messy. Specifically, the authors target two-player zero-sum stochastic games, where players compete in an environment with changing states.

The big challenge here is the "deadly triad": the combination of off-policy sampling, function approximation, and bootstrapping. In single-agent RL, this triad often causes algorithms to diverge. In multi-agent settings, the problem is compounded because the environment is non-stationary—the "optimal" strategy for Player A changes as Player B learns.

Existing solutions often require agents to coordinate or have full knowledge of the game's underlying model. This paper seeks an independent (no coordination), payoff-based (players only see their own rewards and states), and convergent algorithm that works even when the state space is too large to handle without function approximation.

Methods

The authors propose a Two-Timescale Q-Learning algorithm. The architecture consists of an outer loop that mimics minimax value iteration and an inner loop that solves the resulting matrix games.

The "magic" happens in the inner loop through two distinct timescales:

  1. Fast Timescale ($w$): These iterates are updated using a projected stochastic gradient descent (similar to TD-learning). They act as estimators for the marginalized payoffs.
  2. Slow Timescale ($\theta$): These iterates define the players' policies. Instead of jumping straight to a "best response," the policy parameters are updated as a convex combination of their previous state and the latest fast-timescale estimate: $\theta_{k+1} = (1 - \beta_k)\theta_k + \beta_k w_k$.

To prove this works, the authors developed a sophisticated mathematical tool: a new Lyapunov function. They showed that their slow-timescale update resembles "smoothed best-response dynamics." By using a generalized Moreau envelope (a way to smooth out non-differentiable functions) of the regularized Nash gap, they were able to track the stability of the algorithm and prove convergence.

Datasets

Not discussed in the paper. This is a theoretical work focused on establishing mathematical proofs and convergence bounds. No empirical experiments on standard RL benchmarks (like Atari or MuJoCo) were conducted.

Key Insights and Ideas

  • The Parameter Space Bridge: Traditionally, smoothed best-response dynamics are analyzed in the policy space. This paper successfully translates those dynamics into the parameter space of the function approximator.
  • Decoupling is Key: By making the policy ($\theta$) evolve much slower than the payoff estimates ($w$), the payoff estimates "see" a nearly stationary policy, allowing them to converge. Conversely, the policy evolves based on increasingly accurate payoff estimates.
  • The Moreau Envelope Trick: Constructing a Lyapunov function for this system is notoriously difficult because the "Nash gap" (a standard measure of equilibrium) isn't naturally smooth or well-defined in parameter space. The authors' use of infimal convolution to create a "generalized Moreau envelope" is a significant technical contribution that could be used to analyze other stochastic approximation algorithms.

Key Results

  • First of its Kind: The paper provides the first last-iterate finite-sample bound for payoff-based independent learning with function approximation in stochastic games. "Last-iterate" is a stronger guarantee than "average-iterate" because it ensures the final strategy found is actually good, rather than just the average of all strategies tried.
  • Polynomial Complexity: The authors prove that the algorithm finds a Nash equilibrium with polynomial sample complexity. Specifically, the error (Nash gap) decreases at a rate that allows reaching an $\epsilon$-optimal solution in a reasonable number of steps relative to the game's complexity.
  • Linear Function Approximation: The bounds are established specifically for the case of linear function approximation, providing a solid theoretical foundation for scaling Q-learning in competitive environments.

Limitations and Future Work

  • The Projection Operator: The algorithm currently uses a projection operator ($Proj_M$) to keep parameters bounded. However, the radius $M$ depends on unknown parameters of the stochastic game, making it difficult to tune in practice without prior knowledge.
  • Tightness of Bounds: While the authors established polynomial complexity, they acknowledge that the convergence rate might not be "tight" (i.e., it might be possible to prove even faster convergence).
  • Beyond Zero-Sum: The current analysis is strictly for zero-sum games. Extending these two-timescale insights and Lyapunov constructions to general-sum games or cooperative MARL remains an open challenge.

Summary updated

BibTeX
@inproceedings{chen2024two,
  author = {Zaiwei Chen and Kaiqing Zhang and Eric Mazumdar and Asuman E. Ozdaglar and Adam Wierman},
  title = {{Two-Timescale Q-Learning with Function Approximation in Zero-Sum Stochastic Games}},
  booktitle = {EC},
  year = {2024},
  doi = {10.1145/3670865.3673491},
}
Figure