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

Muhammad Aneeq uz Zaman, Alec Koppel, Sujay Bhatt, Tamer Başar

Here is a blog-style summary of the paper "Oracle-free Reinforcement Learning in Mean-Field Games along a Single Sample Path".

TL;DR

This paper introduces Sandbox Learning, the first online reinforcement learning algorithm for Mean-Field Games (MFGs) that provably converges to a Mean-Field Equilibrium using only a single sample path of a single agent, without requiring a "mean-field oracle." By leveraging a clever episodic two-time-scale learning rate structure, the algorithm achieves a sample complexity of $\tilde{\mathcal{O}}(\epsilon^{-4})$, matching the performance of traditional methods that rely on unrealistic oracle assumptions.

What Problem Does This Paper Address?

Multi-Agent Reinforcement Learning (MARL) suffers from the "curse of many agents"—as the number of agents grows, the environment becomes highly non-stationary because everyone is learning and changing their behavior simultaneously. Mean-Field Games (MFGs) solve this by looking at the limiting case where the number of agents approaches infinity ($N \to \infty$). In this setting, an individual agent's impact is negligible, allowing us to model the game as an interaction between a single "generic agent" and the aggregate population behavior (the "mean-field").

However, most existing RL algorithms for MFGs assume access to a mean-field oracle—a magical simulator that instantly provides the aggregate behavior of the population under any policy. In the real world, an online agent doesn't have an oracle; it only observes its own states, actions, and rewards.

The authors tackle a fundamental question: Can a generic agent provably learn the stationary Mean-Field Equilibrium (MFE) online, along a single sample path, without an oracle or environment re-initializations?

Methods

The authors propose Sandbox Learning, an oracle-free framework that casts the MFG problem as a stochastic fixed-point problem solved entirely along the agent's single trajectory.

The core architecture relies on two main pillars:

  1. Two-Time-Scale Learning: The algorithm concurrently updates the agent's control policy and estimates the population's mean-field. To ensure stability, the control policy is updated on a faster time-scale using Q-learning, while the mean-field is updated on a slower fixed-point recursion time-scale.
  2. Episodic Learning Rates: Because the policy and mean-field change simultaneously, the agent's underlying Markov Chain (MC) becomes time-varying and unstable. To fix this, the authors introduce a novel episodic learning rate structure. Inside each episode, the learning rates decay rapidly (are summable), making the environment slowly time-varying and mathematically trackable. Between episodes, the rates reset to ensure long-term learning (non-summable).
Figure 1: Episodic Two time-scale learning rate

Instead of querying an oracle for the mean-field, the agent estimates its own transition dynamics matrix ($\hat{P}$) from its history and uses it to approximate the population's consistency operator ($\Gamma_2$).

Datasets

The paper evaluates the algorithm using a simulated congestion MFG on a grid.

  • Environment: A $5 \times 5$ grid where agents prefer specific high-reward states but are penalized by a congestion parameter if too many agents occupy the same state.
  • Dynamics: Stochastic movement where agents can be "jostled" into neighboring states with a small probability $p$, simulating crowd dynamics.

Key Insights and Ideas

  • The Single-Path Advantage: Sandbox Learning acts as a true "sandbox." An agent can simulate and learn equilibrium policies entirely in isolation along a single trajectory before ever stepping into a real $N$-agent non-cooperative environment.
  • Relaxing Ergodicity: Prior oracle-free attempts required the agent's Markov chain to be ergodic (visiting every state infinitely often under any policy). This paper relaxes this to a much more practical communicating MDP assumption, meaning there is simply a path from any state to any other state.
  • Bridging the Gap: As shown in the authors' literature juxtaposition, this work uniquely bridges the gap between theoretical finite-sample bounds and practical, oracle-less, single-trajectory execution:
Literature Juxtaposition Table

Key Results

  • Sample Complexity: The algorithm achieves a finite-sample complexity of $\tilde{\mathcal{O}}(\epsilon^{-4})$, where $\epsilon$ is the MFE approximation error. Remarkably, this matches the sample complexity of prior algorithms that did enjoy access to a mean-field oracle.
  • Robustness to Broken Assumptions: In empirical tests where the state space was split into two communicating classes (explicitly violating the communicating MDP assumption), the algorithm still successfully converged. This is because the agent naturally transitions into the closed communicating class in finite time and stabilizes.

Limitations and Future Work

While Sandbox Learning represents a major step forward, the authors note a few areas for future development:

  • Tabular Constraints: The current proof and evaluation are restricted to tabular settings (discrete states and actions). Incorporating feature embeddings or deep neural networks will be necessary to scale the algorithm to massive or continuous state spaces.
  • Weakly Communicating MDPs: Exploring finite-sample bounds under even weaker environmental assumptions (like weakly communicating MDPs) remains an open theoretical challenge.
  • Linear-Quadratic Extensions: Extending this oracle-less approach to continuous-time Linear-Quadratic MFGs could unlock real-world applications like autonomous drone formation flying and robotic consensus.

Summary updated

Abstract

We consider online reinforcement learning in Mean-Field Games (MFGs). Unlike traditional approaches, we alleviate the need for a mean-field oracle by developing an algorithm that approximates the Mean-Field Equilibrium (MFE) using the single sample path of the generic agent. We call this {\it Sandbox Learning}, as it can be used as a warm-start for any agent learning in a multi-agent non-cooperative setting. We adopt a two time-scale approach in which an online fixed-point recursion for the mean-field operates on a slower time-scale, in tandem with a control policy update on a faster time-scale for the generic agent. Given that the underlying Markov Decision Process (MDP) of the agent is communicating, we provide finite sample convergence guarantees in terms of convergence of the mean-field and control policy to the mean-field equilibrium. The sample complexity of the Sandbox learning algorithm is $\tilde{\mathcal{O}}(ε^{-4})$ where $ε$ is the MFE approximation error. This is similar to works which assume access to oracle. Finally, we empirically demonstrate the effectiveness of the sandbox learning algorithm in diverse scenarios, including those where the MDP does not necessarily have a single communicating class.
BibTeX
@inproceedings{zaman2023oracle,
  author = {Muhammad Aneeq uz Zaman and Alec Koppel and Sujay Bhatt and Tamer Başar},
  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