Off-Policy Correction For Multi-Agent Reinforcement Learning

Michał Zawalski, Błażej Osiński, Henryk Michalewski, Piotr Miłoś

TL;DR

MA-Trace brings the high scalability of the V-Trace algorithm to the multi-agent reinforcement learning (MARL) domain. By utilizing importance sampling to correct for "stale" data in distributed settings, it achieves state-of-the-art performance on the StarCraft Multi-Agent Challenge while maintaining rigorous theoretical convergence guarantees.

What Problem Does This Paper Address?

Multi-agent reinforcement learning is notoriously difficult to scale. Researchers generally face a trade-off: use on-policy methods (like PPO), which are stable but struggle in distributed environments because the data becomes "stale" by the time it reaches the learner, or use off-policy methods, which handle stale data better but are often less stable and harder to tune.

In a high-performance distributed setup, multiple "actor" workers collect experience simultaneously. Because the central "learner" updates the model constantly, the policy used by a worker to collect data is often slightly older than the one the learner is currently optimizing. This policy lag creates a distributional shift that can cripple training. The authors of this paper sought a way to enable massive scalability without sacrificing the stability of on-policy actor-critic methods.

Methods

The authors introduce MA-Trace, a multi-agent extension of the V-Trace algorithm. The core innovation lies in its use of importance sampling for off-policy correction.

Key components include:

  • Importance Weights ($\rho$ and $c$): These coefficients mathematically adjust the updates to account for the difference between the "behavioral" policy (the old one that collected the data) and the "target" policy (the current one being learned). This allows the algorithm to use "stale" data effectively.
  • Centralized Training, Decentralized Execution (CTDE): MA-Trace follows the popular CTDE paradigm. During training, a "critic" network can access global information (like the joint observations of all agents). However, during execution, each agent acts based only on its own local observations.
  • Theoretical Convergence: Unlike many empirical RL papers, the authors provide a fixed-point theorem. They prove that their policy evaluation operator is a contraction, guaranteeing that the algorithm will converge to a unique value function.

Datasets

The algorithm was evaluated on the StarCraft Multi-Agent Challenge (SMAC). SMAC is a standard, high-dimensional benchmark for MARL that requires agents to coordinate in complex micromanagement tasks (e.g., 6 Zealots vs. 24 Zerglings). The tasks range from "Easy" to "Super Hard," testing both rudimentary coordination and long-term strategic planning.

Key Insights and Ideas

  • Scalability is "Free": The importance sampling mechanism allows MA-Trace to scale almost linearly with the number of workers. The authors demonstrated that adding more workers significantly reduces training wall-time without any degradation in final performance.
  • Observations can beat "Perfect" State: In a surprising finding, the authors noted that a critic using aggregated agent observations (MA-Trace obs) often performed better than one using the environment's "true" global state (MA-Trace full). As seen in Figure 6, the state-based critic struggled significantly on harder tasks like corridor. The authors speculate that local observations might contain information that is more "computable" or relevant for the agents' specific tasks.
Figure 4: Comparison of using the full state MA-Trace (full) and aggregated agents’ observations MA-Trace (obs) and both.
  • Centralization is Crucial: The paper confirms that centralized training is far superior to decentralized approaches. When comparing MA-Trace to a version with independent critics for each agent (DecMA-Trace), the decentralized version was less stable and achieved much lower win rates.
Figure 5: Performance of MA-Trace during centralized and decen- tralized training.
  • Emergent "Microtricks": In the corridor task, MA-Trace discovered a sophisticated "bait and ambush" strategy. It learned to split its forces, using a small group to lure the enemy Zerglings away while the main force hid, eventually attacking the enemy from behind.

Key Results

MA-Trace achieved competitive or superior results compared to established state-of-the-art (SOTA) algorithms like MAPPO and QMIX across various SMAC tasks.

  • SOTA Performance: As shown in Figure 1, MA-Trace (obs) matches or exceeds MAPPO and IPPO on several difficult tasks, such as MMM2 and 27m_vs_30m.
  • Linear Speedup: The algorithm scales effectively to at least 70 workers, providing a massive reduction in the real-world time required for training.
Figure 1: MA-Trace compared with state-of-the-arts algorithms on SMAC.

Limitations and Future Work

  • Sample Efficiency: While highly scalable in terms of time, MA-Trace is less sample-efficient than some pure off-policy methods. It requires a large volume of environment steps to reach peak performance.
  • Competitive Environments: The current study focused on cooperative tasks (SMAC). The authors suggest that further work is needed to see how MA-Trace handles competitive or mixed-motive environments.
  • Non-stationarity: A remaining open question is whether importance sampling can be further adapted to handle the "moving target" problem (non-stationarity) caused by multiple agents changing their policies simultaneously.

Summary updated

Abstract

Multi-agent reinforcement learning (MARL) provides a framework for problems involving multiple interacting agents. Despite apparent similarity to the single-agent case, multi-agent problems are often harder to train and analyze theoretically. In this work, we propose MA-Trace, a new on-policy actor-critic algorithm, which extends V-Trace to the MARL setting. The key advantage of our algorithm is its high scalability in a multi-worker setting. To this end, MA-Trace utilizes importance sampling as an off-policy correction method, which allows distributing the computations with no impact on the quality of training. Furthermore, our algorithm is theoretically grounded - we prove a fixed-point theorem that guarantees convergence. We evaluate the algorithm extensively on the StarCraft Multi-Agent Challenge, a standard benchmark for multi-agent algorithms. MA-Trace achieves high performance on all its tasks and exceeds state-of-the-art results on some of them.
BibTeX
@inproceedings{zawalski2022off,
  author = {Michał Zawalski and Błażej Osiński and Henryk Michalewski and Piotr Miłoś},
  title = {{Off-Policy Correction For Multi-Agent Reinforcement Learning}},
  booktitle = {AAMAS},
  year = {2022},
  url = {https://openreview.net/forum?id=QaDciC-kD8},
}
Figure