Multi-agent actor-critic with time dynamical opponent model

Yuan Tian, Klaus-Rudolf Kladny, Qin Wang, Zhiwu Huang, Olga Fink · DOI

TL;DR

This paper introduces a novel "Time Dynamical Opponent Model" (TDOM) for multi-agent reinforcement learning (MARL). TDOM explicitly models the fact that other agents are also learning and improving their policies over time, leading to more stable training, faster convergence, and superior performance, especially in complex mixed cooperative-competitive scenarios.

What Problem Does This Paper Address?

In multi-agent reinforcement learning (MARL), multiple agents learn simultaneously in a shared environment. This creates a significant challenge: as each agent adapts its policy to maximize its own reward, the environment itself becomes non-stationary from the perspective of any single agent. This "non-stationarity" makes it difficult for agents to reliably improve their policies, as the behavior of their peers is constantly changing. Traditional reinforcement learning methods, which often assume a stationary environment, struggle in these MARL settings. While some approaches try to address this by modeling opponents, predicting their future behavior is hard because their policies are also evolving.

Methods

The core innovation is the Time Dynamical Opponent Model (TDOM). The key idea is to leverage the prior knowledge that all agents are trying to improve their expected cumulative reward over time. TDOM models the opponent's policy parameters as a dynamical system, capturing this temporal evolution.

The authors derive a lower bound on an individual agent's log-objective and use this to propose the Multi-Agent Actor-Critic with Time Dynamical Opponent Model (TDOM-AC). This framework follows the Centralized Training and Decentralized Execution (CTDE) paradigm. During training, a centralized critic uses additional information to guide learning, but during execution, each agent acts independently based on its own learned policy and opponent model.

TDOM-AC has three main modules:

  1. Centralized Q-function: Learns the value of state-action pairs.
  2. Opponent Model (TDOM): Predicts opponent policies, incorporating their temporal improvement.
  3. Policy Network: Determines the agent's actions.

These modules are implemented using neural networks and updated via stochastic gradient descent. The TDOM update specifically leverages the temporal improvement assumption to minimize the KL divergence between the agent's predicted opponent policy and the true marginal opponent policy. To handle potential issues with neutralized gradients in mixed cooperative-competitive settings, the TDOM objective is modified to be based on empirical data from an experience replay buffer. The training also incorporates a maximum entropy reinforcement learning framework for better exploration and stability.

Datasets

The paper evaluates TDOM-AC on two standard MARL benchmarks:

  • Differential Game: A single-step continuous action space task designed to be challenging with non-trivial equilibria.
  • Multi-agent Particle Environment: A suite of tasks that include fully cooperative and mixed cooperative-competitive objectives.

The experiments are designed to be comparable to previous work on these benchmarks.

Key Insights and Ideas

  • Opponents are learning too: The most crucial insight is that simply modeling opponents' current policies isn't enough; their policies are also dynamic and improving. TDOM explicitly accounts for this "learning-to-learn" aspect of opponents.
  • Temporal dynamics are key: By modeling opponent policies as a dynamical system that evolves over time, TDOM captures a more realistic representation of the MARL environment.
  • Bridging theory and practice: The paper derives a theoretical lower bound for the agent's objective, which then informs the practical design of the TDOM-AC algorithm.
  • Improved prediction leads to better performance: The empirical results show that TDOM achieves superior opponent behavior prediction, which directly translates to better overall agent performance and more stable training.

Key Results

  • Superior Performance: TDOM-AC outperforms state-of-the-art methods like PR2 and ROMMEO on both cooperative and, notably, mixed cooperative-competitive environments.
  • Faster Convergence: TDOM-AC demonstrates more stable training and faster convergence to optimal policies.
  • Accurate Prediction: The TDOM model achieves significantly lower test-time opponent behavior prediction error compared to baselines.
  • Differential Game: TDOM-AC shows superior performance in the differential game, achieving a stable and fast convergence.
  • Cooperative Navigation: TDOM-AC outperforms baselines in terms of convergence speed and final performance, achieving more accurate opponent prediction.
  • Predator and Prey: TDOM-AC performs best in both agent (prey) and adversary (predator) roles in this challenging four-agent mixed cooperative-competitive task.

Limitations and Future Work

  • Centralized Training: The current TDOM-AC framework still relies on centralized training, which can be a bottleneck in very large-scale systems.
  • Future Work: The authors plan to explore omitting centralized training and instead modeling opponent Q-function parameters as time-dynamical latent variables, relying solely on past opponent actions. They also aim to evaluate the approach in partially observable environments where agents do not share their observation spaces.

Summary updated

BibTeX
@inproceedings{tian2022multi,
  author = {Yuan Tian and Klaus-Rudolf Kladny and Qin Wang and Zhiwu Huang and Olga Fink},
  title = {{Multi-agent actor-critic with time dynamical opponent model}},
  booktitle = {Neurocomputing},
  year = {2022},
  doi = {10.48550/arxiv.2204.05576},
}
Figure