Skip to main content
QUICK REVIEW

[Paper Review] Settling the Variance of Multi-Agent Policy Gradients

Jakub Grudzien Kuba, Muning Wen|arXiv (Cornell University)|Aug 19, 2021
Reinforcement Learning in RoboticsComputer Science49 references24 citations
TL;DR

This paper proposes an optimal baseline (OB) for multi-agent policy gradients (MAPG) that minimizes variance by mathematically quantifying contributions from the number of agents and multi-agent exploration. The OB is derived analytically and implemented as a surrogate in deep RL frameworks, significantly improving training stability and performance in MARL benchmarks like StarCraft and Multi-Agent MuJoCo when applied to PPO and COMA.

ABSTRACT

Policy gradient (PG) methods are popular reinforcement learning (RL) methods where a baseline is often applied to reduce the variance of gradient estimates. In multi-agent RL (MARL), although the PG theorem can be naturally extended, the effectiveness of multi-agent PG (MAPG) methods degrades as the variance of gradient estimates increases rapidly with the number of agents. In this paper, we offer a rigorous analysis of MAPG methods by, firstly, quantifying the contributions of the number of agents and agents' explorations to the variance of MAPG estimators. Based on this analysis, we derive the optimal baseline (OB) that achieves the minimal variance. In comparison to the OB, we measure the excess variance of existing MARL algorithms such as vanilla MAPG and COMA. Considering using deep neural networks, we also propose a surrogate version of OB, which can be seamlessly plugged into any existing PG methods in MARL. On benchmarks of Multi-Agent MuJoCo and StarCraft challenges, our OB technique effectively stabilises training and improves the performance of multi-agent PPO and COMA algorithms by a significant margin.

Motivation & Objective

  • To rigorously analyze the sources of variance in multi-agent policy gradient (MAPG) estimators.
  • To quantify how the number of agents and multi-agent exploration contribute to estimator variance.
  • To derive the theoretically optimal baseline (OB) that minimizes variance in MAPG.
  • To develop a practical, deep learning-compatible surrogate of the OB for seamless integration into existing MARL algorithms.
  • To empirically validate the OB's effectiveness in stabilizing training and improving performance on standard MARL benchmarks.

Proposed method

  • The authors derive a closed-form expression for the optimal baseline (OB) that minimizes the variance of MAPG estimators under a joint policy gradient framework.
  • The OB is derived by analyzing the variance contributions from agent count and joint exploration, leading to a state-action dependent baseline that accounts for multi-agent dependencies.
  • A surrogate version of the OB is proposed for deep RL, using resampled actions and Q-values from a replay buffer to estimate the optimal baseline without requiring full joint action enumeration.
  • The method is integrated into existing PG-based MARL algorithms such as PPO and COMA by replacing their baseline components with the OB estimate.
  • The approach uses a differentiable, learnable baseline that maintains zero bias while minimizing variance, leveraging the structure of the advantage function in CTDE settings.
  • The algorithm is trained using standard policy gradient optimization with the OB-adjusted advantage, enabling stable and efficient training in multi-agent environments.

Experimental results

Research questions

  • RQ1What are the primary contributors to the high variance in multi-agent policy gradient estimators?
  • RQ2Can a theoretically optimal baseline be derived that minimizes the variance of MAPG estimators?
  • RQ3How does the optimal baseline compare to existing baselines like COMA's counterfactual baseline in terms of variance reduction?
  • RQ4Can the optimal baseline be approximated effectively in deep RL settings without incurring excessive computational cost?
  • RQ5Does the proposed optimal baseline improve training stability and final performance in multi-agent RL benchmarks?

Key findings

  • The optimal baseline (OB) derived in the paper achieves the minimal possible variance for multi-agent policy gradient estimators, outperforming existing baselines in theory and practice.
  • The OB significantly reduces training variance, leading to more stable learning curves in both Multi-Agent MuJoCo and StarCraft environments.
  • When applied to multi-agent PPO and COMA, the OB improves final performance by a substantial margin, with consistent gains across all evaluated environments.
  • The surrogate OB method, which uses resampled actions and Q-values, effectively approximates the theoretical OB and enables seamless integration into deep RL frameworks.
  • Empirical results show that the OB-based algorithms converge faster and achieve higher returns than vanilla MAPG and COMA, especially in high-dimensional, multi-agent settings.
  • The code and implementation are released publicly, enabling reproducibility and extension to other MARL algorithms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.