TL;DR
This paper introduces Recurrent Structural Policy Gradient (RSPG), a novel algorithm for Mean Field Games (MFGs) that can handle partially observable environments and learn history-dependent behaviors. RSPG achieves significantly faster convergence than existing methods by leveraging known system dynamics, and it comes with a new JAX-based framework, MFAX, for MFG research.
What Problem Does This Paper Address?
Many real-world systems, like financial markets or traffic networks, involve a large number of interacting agents. Mean Field Games (MFGs) provide a mathematical framework to model these systems by assuming agents only react to the aggregate behavior (the "mean field") of others, rather than individual agents. However, developing efficient algorithms for MFGs is challenging. Traditional model-free reinforcement learning (RL) methods suffer from high variance, making them slow to converge. Exact methods, on the other hand, become computationally intractable as the number of agents or states grows. Hybrid Structural Methods (HSMs) offer a middle ground by using known system dynamics to reduce variance, but they have been limited to fully observable settings and memoryless policies. This paper addresses the gap of applying HSMs to partially observable MFGs where agents only receive indirect information about the aggregate state and need to learn history-dependent strategies.
Methods
The core contribution is Recurrent Structural Policy Gradient (RSPG). RSPG builds upon Hybrid Structural Methods (HSMs) by incorporating a recurrent neural network (RNN) to handle partial observability and learn history-dependent policies.
Here's a breakdown:
- HSM Foundation: Like existing HSMs, RSPG leverages known transition dynamics of the system. This allows it to compute exact expected returns, significantly reducing the variance compared to purely model-free RL methods.
- Recurrence for History: The key novelty is the integration of a Recurrent Neural Network (RNN), specifically a GRU, into the policy. This RNN processes the history of shared public observations to maintain a hidden state. This hidden state allows the agent to infer the current aggregate state and learn strategies that depend on past information.
- Partial Observability: RSPG is designed for scenarios where agents don't directly observe the full aggregate state (mean field and common noise). Instead, they receive a shared, partial observation. The RNN helps the agent "fill in the gaps" using this historical observation sequence.
- Tractability: Despite incorporating history, RSPG maintains tractability by restricting memory to the history of shared observations, not the full individual agent history. This is crucial because a full history would lead to an exponentially growing state space.
- MFAX Framework: The authors introduce MFAX, a JAX-based framework for MFGs. MFAX supports both analytic and sample-based mean-field updates, distinguishes between white-box and black-box access to transition dynamics, and is designed to handle common noise, partial observability, and multiple initial mean-field distributions. This framework facilitates research and experimentation with complex MFG problems.
Datasets
The paper evaluates RSPG and MFAX on three environments:
- Linear Quadratic: A standard benchmark for MFGs, adapted for partial observability and common noise.
- Beach Bar: Another adaptation of a standard MFG benchmark, designed to test anticipatory behavior.
- Macroeconomics: A more complex, heterogeneous-agent model with common noise, inspired by Krusell & Smith (1998). This environment is particularly notable as it's the first time such a complex MFG setting (heterogeneous agents, common noise, history-aware policies) has been solved.
The paper does not introduce new datasets but rather adapts existing benchmarks to the partially observable, common noise setting.
Key Insights and Ideas
- History Matters in Partial Observability: The most significant insight is that for agents to effectively navigate partially observable MFGs, learning history-dependent policies is crucial. Simply using memoryless policies, even with advanced methods, can lead to suboptimal performance and less realistic behavior.
- Shared Observations are Key: RSPG's success hinges on leveraging the shared public observation history. This allows the RNN to build a useful representation of the aggregate state without needing to track each agent's full private history, which would be computationally infeasible.
- HSMs Can Scale to History: The paper demonstrates that the variance reduction benefits of HSMs can be preserved even when extending them to handle history-dependent policies in partially observable settings. This is a significant step beyond previous HSM limitations.
- MFAX as a Research Enabler: The introduction of MFAX is a practical contribution, providing a unified and flexible platform for MFG research that supports a wider range of problem settings than existing libraries.
Key Results
- Faster Convergence: RSPG consistently achieves an order-of-magnitude faster convergence than model-free RL-based methods (IPPO, RIPPO, M-OMD) across all tested environments.
- Competitive Exploitability: RSPG achieves competitive or superior exploitability (a measure of how close a policy is to a Nash equilibrium) compared to its benchmarks, often reaching lower exploitability faster.
- Realistic Behavior: RSPG captures history-dependent and anticipatory behavior, which memoryless policies fail to learn. This is visually demonstrated in the Beach Bar and Macroeconomics environments, where agents learn to act proactively based on past observations.
- Tractability of Complex MFGs: The paper successfully solves a complex Macroeconomics MFG with heterogeneous agents, common noise, and partial observability, showcasing the scalability of RSPG.
Limitations and Future Work
- No Convergence Guarantees: The authors acknowledge that they do not provide theoretical convergence guarantees to an MFG Nash equilibrium for RSPG in these complex settings. While empirical results show stable convergence, formal proofs remain an open challenge.
- Assumption 6.1: The paper relies on an "Informational Assumption" (Assumption 6.1) that shared public information is sufficient. While useful, they provide a counter-example where an agent's private trajectory can contain information beyond the individual state and public history, suggesting this assumption might not hold universally.
- Future Work:
- Applying HSMs to more complex scenarios like games with major/minor players or multiple mean fields.
- Incorporating HSM variance reduction into actor-critic frameworks.
- Extending MFAX to support function approximation for analytic mean-field updates, enabling even higher-dimensional state and action spaces.
- Developing theoretical convergence guarantees for RSPG in these challenging settings.
Summary updated