Provable Memory Efficient Self-Play Algorithm for Model-free Reinforcement Learning

Na Li, Yuchen Jiao, Hangguan Shan, Shefeng Yan

Introduction

Multi-Agent Reinforcement Learning (MARL) is the engine behind complex AI systems, ranging from autonomous driving to competitive game playing. A foundational mathematical framework for these scenarios is the Two-Player Zero-Sum Markov Game (TZMG).

While researchers have developed various algorithms to solve TZMGs, existing theoretical approaches force a frustrating trade-off. Current algorithms suffer from at least two of the following major bottlenecks:

  1. Memory inefficiency: The space required grows continuously with the number of samples collected.
  2. Poor sample complexity: They require an impractical amount of data to learn, especially in environments with long time horizons.
  3. High computational complexity: Calculating the next move is prohibitively slow.
  4. Impractical output policies: They output "non-Markovian" policies (which require remembering the entire history of the game) or "non-Nash" policies.
  5. High burn-in cost: They require a massive amount of initial exploration before they start learning efficiently.

To tackle this gap, this paper introduces Memory-Efficient Nash Q-Learning (ME-Nash-QL), a novel model-free algorithm for TZMGs. It achieves optimal memory efficiency, state-of-the-art sample complexity for long-horizon tasks, and low computational overhead, all while outputting a true Markov and Nash policy.

Methodology: ME-Nash-QL

ME-Nash-QL is a model-free self-play algorithm that builds upon standard Nash Q-learning but introduces several critical innovations to overcome the traditional MARL trade-offs:

  • Reference-Advantage Decomposition: This is a variance reduction technique previously used in single-agent RL, successfully adapted here to the TZMG setting for the first time. By maintaining a "reference" value function, the algorithm reduces the uncertainty in its Q-value estimates, which drastically cuts down the number of samples needed.
  • Early-Settlement Method: The algorithm uses a novel trigger to stop updating the reference values once they are "good enough." This allows the algorithm to quickly lock in a reliable baseline during the initial stages of learning, massively reducing the "burn-in" cost.
  • Coarse Correlated Equilibrium (CCE): During the policy improvement step, ME-Nash-QL uses CCE to compute the output policy. This allows the algorithm to output a single, memoryless Markov policy, avoiding the cumbersome, history-dependent "nested mixture" policies generated by previous state-of-the-art methods like V-learning.

Key Results and Theoretical Guarantees

The paper provides rigorous mathematical bounds for ME-Nash-QL, proving that optimal space is achievable without sacrificing performance. By carefully managing how Q-values and reference values are stored, the authors prove that a model-free MARL algorithm can operate using only $O(SABH)$ space—the theoretical minimum required just to store a tabular Q-function.

Comparison of ME-Nash-QL against existing algorithms across sample, space, and computational complexities.

Specifically, ME-Nash-QL achieves the following guarantees:

  • Space Complexity: $O(SABH)$ — the best possible for tabular cases, outperforming all existing algorithms that output Markov/Nash policies. (Where S = states, A/B = actions, H = horizon).
  • Sample Complexity: $\tilde{O}(H^4SAB/\epsilon^2)$ to find an $\epsilon$-approximate Nash equilibrium. This is state-of-the-art for long horizons (specifically when $\min\{A,B\} \ll H^2$).
  • Computational Complexity: $O(T \text{poly}(AB))$ (where T = total samples). This is significantly faster than model-based methods that scale with the state space $S$.
  • Burn-in Cost: $O(SABH^{10})$. Previous algorithms had burn-in costs that scaled cubically with the number of states ($S^3$). The early-settlement trick drops this dependence down to a linear scale ($S$), making the algorithm vastly more practical for environments with large state spaces.
  • Multi-Player Extension: The authors successfully extended the algorithm to general-sum games with $m$ players (Multi-ME-Nash-QL), achieving an $\epsilon$-optimal policy in $\tilde{O}(H^4S \prod_{i=1}^m A_i / \epsilon^2)$ samples.

Limitations and Future Work

While ME-Nash-QL sets a new standard for TZMGs, several challenges remain:

  • The Curse of Multi-Agents: While the authors successfully extended their algorithm to multi-player general-sum games, the sample complexity scales exponentially with the number of players ($\prod A_i$). Breaking this "curse of multi-agents" without compromising performance remains an open challenge.
  • Horizon Dependence in Burn-in: Although the burn-in cost's dependence on the state space ($S$) was drastically improved, it still scales with a high polynomial of the horizon ($H^{10}$).

Future work should focus on designing model-free algorithms with $O(A+B)$ sample complexity to fully break the multi-agent curse, and exploring how to design independent action strategies under these optimal sample complexity bounds.

Summary updated

BibTeX
@inproceedings{li2024provable,
  author = {Na Li and Yuchen Jiao and Hangguan Shan and Shefeng Yan},
  title = {{Provable Memory Efficient Self-Play Algorithm for Model-free Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=vNiI3aGcE6},
}
Figure