Skip to main content
QUICK REVIEW

[Paper Review] Multi-Agent Constrained Policy Optimisation

Shangding Gu, Jakub Grudzien Kuba|arXiv (Cornell University)|Oct 6, 2021
Reinforcement Learning in RoboticsComputer Science41 references16 citations
TL;DR

This paper proposes MACPO and MAPPO-Lagrangian, two novel model-free multi-agent reinforcement learning algorithms that enforce safety constraints through constrained policy optimization. By integrating trust region methods and Lagrangian relaxation, both algorithms guarantee monotonic reward improvement and strict constraint satisfaction at every training step, outperforming baselines in safety while maintaining strong performance on continuous control benchmarks.

ABSTRACT

Developing reinforcement learning algorithms that satisfy safety constraints is becoming increasingly important in real-world applications. In multi-agent reinforcement learning (MARL) settings, policy optimisation with safety awareness is particularly challenging because each individual agent has to not only meet its own safety constraints, but also consider those of others so that their joint behaviour can be guaranteed safe. Despite its importance, the problem of safe multi-agent learning has not been rigorously studied; very few solutions have been proposed, nor a sharable testing environment or benchmarks. To fill these gaps, in this work, we formulate the safe MARL problem as a constrained Markov game and solve it with policy optimisation methods. Our solutions -- Multi-Agent Constrained Policy Optimisation (MACPO) and MAPPO-Lagrangian -- leverage the theories from both constrained policy optimisation and multi-agent trust region learning. Crucially, our methods enjoy theoretical guarantees of both monotonic improvement in reward and satisfaction of safety constraints at every iteration. To examine the effectiveness of our methods, we develop the benchmark suite of Safe Multi-Agent MuJoCo that involves a variety of MARL baselines. Experimental results justify that MACPO/MAPPO-Lagrangian can consistently satisfy safety constraints, meanwhile achieving comparable performance to strong baselines.

Motivation & Objective

  • To address the critical challenge of ensuring safety in multi-agent reinforcement learning (MARL), where agents must satisfy both individual and joint safety constraints.
  • To develop a general framework for formulating safe MARL as a constrained Markov game, enabling systematic study and benchmarking.
  • To design algorithms that guarantee both reward maximization and constraint satisfaction at every training iteration, ensuring safe exploration.
  • To create the first benchmark suites—Safe Multi-Agent MuJoCo and Safe Multi-Agent Robosuite—for evaluating safe MARL in continuous control environments.
  • To empirically validate that the proposed methods consistently satisfy safety constraints while achieving competitive or superior performance compared to state-of-the-art MARL baselines.

Proposed method

  • Formulates safe MARL as a Constrained Markov Game, extending the CMDP framework to multi-agent settings with joint safety constraints.
  • Proposes MACPO, which uses a trust region approach with backtracking line search to enforce hard constraints on policy updates.
  • Introduces MAPPO-Lagrangian, a soft-constraint method that performs gradient ascent on a Lagrangian objective to maintain safety awareness.
  • Employs a joint critic and centralized training with decentralized execution (CTDE) to enable cooperative learning while preserving decentralization at inference.
  • Leverages policy gradient methods with theoretical guarantees of monotonic improvement in expected return and constraint satisfaction at every update step.
  • Implements a dual optimization scheme where policy and Lagrange multiplier updates are alternated to balance reward and safety objectives.

Experimental results

Research questions

  • RQ1Can multi-agent policy optimization be extended to ensure safety constraints are satisfied at every training iteration, even during exploration?
  • RQ2How do hard constraints (MACPO) and soft constraints (MAPPO-Lagrangian) compare in terms of constraint satisfaction stability and final performance?
  • RQ3Can safe MARL algorithms achieve comparable or better cumulative rewards than unconstrained MARL baselines while remaining within safe policy regions?
  • RQ4To what extent do existing MARL algorithms like MAPPO, IPPO, and HAPPO fail to satisfy safety constraints in continuous control environments?
  • RQ5Can a unified benchmark suite for safe MARL be designed to fairly evaluate and compare safety-aware algorithms across diverse tasks?

Key findings

  • MACPO and MAPPO-Lagrangian both achieve near-zero cost values across all tasks, indicating consistent and strict satisfaction of safety constraints throughout training.
  • Both algorithms maintain safe exploration from the start, even when initialized with unsafe policies, unlike IPPO, MAPPO, and HAPPO, which frequently violate constraints.
  • MAPPO-Lagrangian achieves higher average cumulative rewards than MACPO on challenging Ant-based tasks, suggesting better sample efficiency or optimization stability.
  • The performance of MAPPO-Lagrangian exceeds that of unconstrained MAPPO on difficult Ant tasks, demonstrating that safety constraints do not necessarily degrade performance.
  • HAPPO achieves the highest reward among all methods but fails to satisfy safety constraints, highlighting the trade-off between performance and safety in existing approaches.
  • The proposed benchmark suites—SMAMuJoCo and SMARobosuite—successfully capture realistic safety-critical multi-agent manipulation tasks, such as Peg-in-Hole with obstacle avoidance.

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.