PKU-MARL/HARL

Official implementation of HARL algorithms based on PyTorch.

What it solves

Traditional multi-agent reinforcement learning methods like MAPPO and MADDPG often rely on parameter sharing and simultaneous updates, which struggle when agents have different capabilities or roles. HARL addresses this by providing algorithms specifically designed for heterogeneous-agent settings, offering theoretical guarantees of monotonic improvement and convergence to equilibrium.

How it works

HARL implements a sequential update scheme instead of the simultaneous updates used by other methods. This allows agents to update one after another, incorporating the latest information from others. The library includes both on-policy algorithms (HAPPO, HATRPO, HAA2C) and off-policy variants (HADDPG, HATD3, HAD3QN, HASAC), all built on PyTorch. It supports continuous, discrete, and multi-discrete action spaces, and provides ready-to-use interfaces for seven benchmark environments.

Who it's for

This is for researchers and engineers working on multi-agent reinforcement learning, especially those dealing with teams of agents that have different dynamics or roles. It's also useful for anyone wanting to reproduce published benchmarks or apply these algorithms to new cooperative tasks.

Highlights

  • Sequential update scheme for coordinated heterogeneous-agent learning
  • Theoretical guarantees of monotonic improvement and convergence
  • Seven implemented algorithms covering both on-policy and off-policy approaches
  • Supports continuous, discrete, and multi-discrete action spaces
  • Built-in interfaces for SMAC, SMACv2, MAMuJoCo, MPE, Google Research Football, Bi-DexterousHands, and Light Aircraft Game
  • Tuned configuration files for easy reproduction of benchmark results

Related

  • Project
  • Project
  • Project
  • Project