Oracle-free Reinforcement Learning in Mean-Field Games along a Single Sample Path

Muhammad Aneeq uz Zaman, Alec Koppel, Sujay Bhatt, Tamer Basar

Abstract

This paper introduces Sandbox Learning, a novel reinforcement learning algorithm for Mean-Field Games (MFGs) that eliminates the need for a "mean-field oracle." By learning from the single sample path of a generic agent, the algorithm achieves a sample complexity of $O(\epsilon^{-4})$, matching traditional methods that rely on unrealistic population-level simulators. We provide the first finite-sample convergence guarantees for an oracle-free, single-path MFG algorithm under the relaxed "communicating MDP" assumption.

Introduction

In multi-agent reinforcement learning (MARL), the "curse of many agents" makes finding a Nash equilibrium computationally explosive as the number of players ($N$) grows. Mean-Field Games (MFGs) address this by modeling the limit where $N \to \infty$, allowing a single "generic agent" to play against the aggregate behavior of the population (the "mean-field").

However, most existing RL algorithms for MFGs assume access to a mean-field oracle—a simulator that can instantly provide the aggregate distribution of all agents. In real-world scenarios, an agent only observes its own states, actions, and rewards, lacking a bird's-eye view of the entire population. This paper introduces an algorithm that learns the Mean-Field Equilibrium (MFE) using only the data available to a single agent along its trajectory, without re-initializations or global simulators.

Comparison of Sandbox Learning with existing MFG RL literature.

Methodology: Sandbox Learning

The authors propose Sandbox Learning, which treats the MFG as a stochastic fixed-point problem. The algorithm operates on a two-time-scale episodic structure:

  1. Transition Estimation: Instead of an oracle, the agent estimates the environment's transition dynamics ($\hat{P}$) and the mean-field ($\mu$) by tracking its own state visitation frequencies.
  2. Two-Time-Scale Updates: The algorithm updates the agent's control policy on a "fast" time-scale and the mean-field estimate on a "slow" time-scale. This separation ensures the policy has time to adapt to a relatively stable mean-field before the mean-field itself is updated.
  3. Episodic Learning Rates: To handle non-stationarity caused by the agent’s own learning, the authors employ specific "summable" learning rates within each episode. This makes the underlying Markov Chain "slowly time-varying," which is critical for proving convergence.
  4. Communicating MDP Assumption: Unlike prior work requiring "ergodicity" (visiting every state under any policy), this paper uses the more relaxed "communicating MDP" condition, where at least some policy can navigate between any two states.
Episodic learning rates for control policy and mean-field updates, showing summable and non-summable rates.

Experiments and Results

The algorithm was evaluated on a Congestion MFG, where agents navigate a $5 \times 5$ grid to reach favorable states while avoiding crowded areas. Agents can move in four directions but may be "jostled" into neighboring states with some probability.

Key Results

  • Sample Complexity: The algorithm achieves a sample complexity of $O(\epsilon^{-4})$, where $\epsilon$ is the approximation error. This performance is mathematically equivalent to state-of-the-art algorithms that require an oracle.
  • Convergence: The paper provides the first finite-sample convergence guarantees for an oracle-free, single-path MFG algorithm.
  • Empirical Robustness: Simulations showed convergence to the MFE even when the communicating MDP assumption was intentionally challenged (e.g., with non-closed communicating classes), suggesting the algorithm's robustness exceeds theoretical requirements.

Discussion and Future Work

Sandbox Learning allows an agent to "practice" and find an equilibrium policy in isolation before entering a real $N$-agent environment. By relaxing the ergodicity requirement to a communicating MDP assumption, the theory becomes applicable to a wider range of problems like traffic management or cyber-security.

Current limitations include the focus on tabular settings (finite state and action spaces). Future work aims to scale this to continuous spaces using function approximation (e.g., deep neural networks) and explore "weakly communicating" MDPs. Additionally, extending this approach to Linear Quadratic (LQ) games could solve complex coordination tasks like drone formation flying.

Summary updated

BibTeX
@inproceedings{zaman2023oracle,
  author = {Muhammad Aneeq uz Zaman and Alec Koppel and Sujay Bhatt and Tamer Basar},
  title = {{Oracle-free Reinforcement Learning in Mean-Field Games along a Single Sample Path}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure