Off-Policy Correction For Multi-Agent Reinforcement Learning

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

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.

Introduction

Training multi-agent systems is notoriously difficult due to non-stationarity—where the environment effectively changes as agents learn—and significant scalability hurdles. While on-policy algorithms like PPO offer stability and robustness, they are challenging to scale in distributed settings. In a multi-worker architecture, communication lag often means that by the time data reaches the central learner, the agents' policies have already been updated. This results in "stale" or off-policy data, which can severely degrade training quality and stability without proper correction.

The authors introduce MA-Trace, a highly scalable MARL algorithm designed to maintain the stability of on-policy learning while leveraging the speed of massive distribution.

Methods

MA-Trace is an actor-critic algorithm operating under the Centralized Training and Decentralized Execution (CTDE) paradigm. Its primary innovation is the extension of the V-Trace importance sampling technique to the multi-agent domain.

  • Off-Policy Correction: MA-Trace uses importance weights to re-scale updates, accounting for the difference between the "behavioral" policy (used for data collection) and the "target" policy (being trained).
  • Theoretical Foundation: The algorithm is supported by a fixed-point theorem proving convergence to a unique value function for a specific policy.
  • Critic Architectures: Two variants were evaluated: MA-Trace (full), utilizing the global environment state, and MA-Trace (obs), which uses concatenated local observations from all agents.
  • Scalability: Built on Google's SEED RL framework, the implementation is optimized for high-throughput distributed training.

Experimental Evaluation

The algorithm was benchmarked on the StarCraft Multi-Agent Challenge (SMAC), which consists of 14 micromanagement tasks in StarCraft II. These tasks require agents to coordinate complex maneuvers, such as "focus fire," to defeat a built-in AI.

Key Results

MA-Trace (obs) demonstrated highly competitive performance, achieving a 100% win rate on several tasks, including 1c3s5z and bane_vs_bane. Notably, it outperformed state-of-the-art algorithms like MAPPO and QMIX on challenging maps such as 27m_vs_30m (99% vs 94% for MAPPO).

Performance comparison of MA-Trace (obs) against MAPPO, IPPO, and QMIX across various SMAC tasks.

Key Insights

  • The Role of Importance Sampling: Ablation studies confirmed that importance sampling is critical; without it, the algorithm becomes unstable when using many distributed workers.
  • Observations vs. Global State: Surprisingly, MA-Trace (obs) often outperformed MA-Trace (full). This suggests that concatenated local observations may provide more accessible information for coordination than the raw global environment state.
  • Linear Scaling: The algorithm exhibits nearly perfect speedup, with wall-time reducing significantly as the number of workers increases (up to 70+) without sacrificing final performance.
  • Centralized vs. Decentralized Training: Comparisons with decentralized baselines (DecMA-Trace) highlight the necessity of the centralized critic for achieving high win rates in complex coordination tasks.
Training curves comparing MA-Trace (centralized) with DecMA-Trace (decentralized) on selected SMAC maps.

Discussion and Limitations

While MA-Trace is highly effective and scalable, it is fundamentally an on-policy method with corrections, meaning it generally requires more environment steps than purely off-policy methods like QMIX. Additionally, the current study focuses on fully cooperative environments; extending these techniques to competitive or mixed-motive settings remains a subject for future research.

Finally, the "Pacifist Trap" observed in the 3s_vs_5z task—where agents maximized damage rewards by keeping enemies alive rather than winning—underscores the ongoing challenges of reward shaping in multi-agent reinforcement learning.

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