Phantom - A RL-driven Multi-Agent Framework to Model Complex Systems

Leo Ardon, Jared Vann, Deepeka Garg, Thomas Spooner, Sumitra Ganesh · DOI · OpenReview

TL;DR

This paper introduces Phantom, a novel open-source framework designed to bridge the gap between traditional Agent-Based Modeling (ABM) and Multi-Agent Reinforcement Learning (MARL). Phantom provides an RL-native environment that simplifies the specification of complex multi-agent systems, enabling researchers to leverage MARL for learning agent behaviors and studying emergent system dynamics.

What Problem Does This Paper Address?

Agent-Based Modeling (ABM) is a powerful tool for simulating complex systems by defining individual agent behaviors and observing emergent system-level phenomena. However, most existing ABM frameworks are not inherently designed to integrate with modern Multi-Agent Reinforcement Learning (MARL) techniques. This disconnect makes it challenging to train agents within these ABM environments to learn optimal strategies or to study system equilibria where multiple agents learn simultaneously. The paper addresses this gap by proposing Phantom, an RL-driven framework that simplifies the process of building ABM environments compatible with MARL, allowing for dynamic partial observability, agent heterogeneity, and complex interaction patterns.

Methods

Phantom's core contribution lies in its design as an RL-native ABM framework. Key features include:

  • RL-Native Design: Phantom provides interfaces and concepts directly compatible with MARL, simplifying the integration of RL algorithms.
  • Dynamic Partial Observability: The framework allows for sophisticated modeling of how agents perceive their environment and communicate with each other. This is achieved through a customizable network model where communication is restricted by defined edges, and through "Messages" (active communication) and "Views" (passive information exposure).
  • Heterogeneity of Learned Agent Behaviors: Phantom supports agent heterogeneity through "Types" (parameterized reward functions) and "Supertypes" (distributions over Type parameters), allowing for compact specification and generalization across agent variations.
  • Complex Game Modeling: The framework uses a "step" breakdown similar to OpenAI Gym, but extends it with a Finite State Machine (FSM) representation to orchestrate complex turn-taking environments and model games like Stackelberg.
  • Scalability through MARL Integration: Phantom integrates with RL libraries like RLlib, enabling the use of distributed MARL algorithms for scaling simulations to a large number of agents. It also supports "Shared Policy" learning, where agents within a "Supertype" can share a single learned policy.

Datasets

The paper does not introduce new datasets. Instead, it uses two newly developed environments to demonstrate Phantom's capabilities:

  • Digital Ads Market Environment: Simulates an auction-based market where advertisers bid to display ads to users with varying preferences.
  • Supply Chain Environment: Models a system where shops learn inventory restock strategies based on customer orders and costs.

Key Insights and Ideas

  • Bridging ABM and MARL: Phantom effectively bridges the gap between traditional ABM and modern MARL, making complex multi-agent learning more accessible to the ABM community.
  • Importance of Dynamic Partial Observability: The framework's emphasis on modeling dynamic partial observability is crucial for realistic simulations, as real-world agents rarely have complete information.
  • Compact Specification of Heterogeneity: The "Types" and "Supertypes" mechanism offers a powerful and efficient way to represent diverse agent behaviors without needing to specify each agent individually, leading to more scalable and manageable models.
  • FSM for Complex Dynamics: Using Finite State Machines to define environment steps is an elegant way to manage complex sequential interactions and turn-based games in multi-agent settings.
  • Shared Policies for Scalability: The "Shared Policy" feature is a key enabler for scaling MARL to large numbers of agents by allowing agents with similar characteristics to learn from a single policy, significantly reducing computational overhead.

Key Results

The paper demonstrates Phantom's effectiveness through experiments in the two introduced environments:

  • Digital Ads Market:
    • Advertisers learned to adapt their bidding strategies based on user preferences and competitor budgets. For instance, a Tech Advertiser shifted its bidding strategy to target a different user when its main competitor's budget increased.
  • The "Shared Policy" feature significantly reduced training time and resource usage (RAM) compared to training individual policies for each agent, enabling faster convergence and better scalability. For example, training 60 agents with shared policies was approximately 3.5 times less RAM-intensive.
  • Supply Chain Environment:
    • Shop agents learned to adjust their restock quantities based on the cost of carry, becoming more conservative with higher costs to minimize leftover stock, even at the expense of some missed sales.
  • The framework demonstrated scalability, with performance metrics (time to converge) showing a predictable increase as the number of agents grew, but remaining manageable.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while Phantom provides tools for complex environments, the complexity of designing these environments can still be challenging.
  • The "Shared Policy" feature, while beneficial for scalability, relies on the assumption that agents within a Supertype can generalize from a single policy.
  • Future Work:
    • The authors express hope that Phantom will enable the ABM community to leverage advances in MARL for realistic simulations of complex domains.
  • The framework is designed to be modular, suggesting potential for further integration with other RL libraries and extensions to its features.
  • The paper mentions the potential for more complex turn-taking environments and the study of systems with stochastic connectivity, implying these are areas for future exploration.

Summary updated

BibTeX
@inproceedings{ardon2022phantom,
  author = {Leo Ardon and Jared Vann and Deepeka Garg and Thomas Spooner and Sumitra Ganesh},
  title = {{Phantom - A RL-driven Multi-Agent Framework to Model Complex Systems}},
  booktitle = {AAMAS},
  year = {2022},
  doi = {10.48550/arxiv.2210.06012},
}
Figure