Maximum Entropy Heterogeneous-Agent Reinforcement Learning

Jiarong Liu, Yifan Zhong, Siyi Hu, Haobo Fu, Qiang Fu, Xiaojun Chang, Yaodong Yang

TL;DR

This paper introduces Maximum Entropy Heterogeneous-Agent Reinforcement Learning (MEHARL), a framework that brings the benefits of stochastic policies—like better exploration and robustness—to cooperative multi-agent systems. By deriving a maximum entropy objective from probabilistic graphical models, the authors propose the HASAC algorithm, which consistently outperforms state-of-the-art methods across 31 out of 35 complex benchmark tasks.

What Problem Does This Paper Address?

Cooperative Multi-Agent Reinforcement Learning (MARL) is notoriously difficult because agents must coordinate their policy improvements to benefit the whole team. Current state-of-the-art methods face three major hurdles:

  1. Suboptimal Convergence: Standard MARL objectives often lead agents to converge prematurely to a "good enough" local optimum (a suboptimal Nash Equilibrium). Because these objectives favor deterministic policies, agents stop exploring once they find a stable strategy, even if a much better one exists.
  2. Sample Complexity: On-policy methods (like MAPPO) require massive amounts of new data for every gradient step, making them prohibitively expensive for complex tasks.
  3. Training Instability: Off-policy methods, while more sample-efficient, often suffer from high variance and hyperparameter sensitivity.

The authors illustrate the "suboptimal trap" using a simple matrix game where traditional algorithms like MAPPO and HAPPO fail to find the best reward because they get stuck in a local optimum they explored early on.

Figure 1: A single-state 2-agent cooperative matrix game. (a) is the reward matrix of joint actions. (b) represents the initial joint policy π formed by both agents taking the individual policy π = {0.6, 0.2, 0.2}. (c) represents the final joint policy π that MAPPO and HAPPO converge to, deterministically choosing action (A, A).

Methods

The researchers bridge the gap between single-agent Soft Actor-Critic (SAC) and multi-agent systems through two main contributions:

  • Probabilistic Foundation: They model cooperative MARL as an inference problem in a Probabilistic Graphical Model (PGM). By performing variational inference, they derive a Maximum Entropy (MaxEnt) objective that rewards agents not just for high returns, but also for maintaining policy diversity (entropy).
  • HASAC & MEHAML: They introduce the Heterogeneous-Agent Soft Actor-Critic (HASAC) algorithm. To ensure theoretical rigor, they prove that HASAC guarantees monotonic improvement and converges to a Quantal Response Equilibrium (QRE)—a stochastic generalization of the Nash Equilibrium. They further generalize this into a template called MEHAML, allowing other researchers to design theoretically sound MaxEnt MARL algorithms.

A key technical insight is the Joint Soft Policy Decomposition, which allows a complex multi-agent MaxEnt problem to be broken down into a sequence of individual agent updates, maintaining the "heterogeneous" nature of the agents.

The probabilistic graphical model used to derive the MaxEnt MARL objective, treating optimality as a latent variable.

Datasets

The authors evaluated HASAC against a wide array of challenging environments to test its versatility:

  • Bi-DexHands: Complex bimanual manipulation tasks.
  • Multi-Agent MuJoCo (MAMuJoCo): Robotic control where different agents control different joints.
  • StarCraft Multi-Agent Challenge (SMAC): A standard benchmark for micro-management in combat.
  • Google Research Football (GRF): Testing high-level coordination in sports simulations.
  • Multi-Agent Particle Environment (MPE): Simple but fundamental coordination tasks.
  • Light Aircraft Game (LAG): A new cooperative flight task.

Key Insights and Ideas

  • Stochasticity as a Feature, Not a Bug: Unlike standard MARL which treats stochasticity as a transient exploration phase, MEHARL views it as a fundamental property. Stochastic policies allow agents to "see" the reward landscape more broadly, helping them escape local optima that trap deterministic algorithms.
  • QRE over NE: By targeting the Quantal Response Equilibrium, the framework acknowledges that agents might not always pick the single "best" action but will pick better actions with higher probability. This leads to more robust team behavior.
  • Sequential Updates are Key: The "Heterogeneous-Agent" part of the name refers to updating agents one by one in a specific order. This sequential scheme is what mathematically enables the proof of monotonic improvement, a property that simultaneous update methods often lack.

Key Results

HASAC demonstrated remarkable performance and efficiency:

  • Superior Performance: It achieved the highest scores in 31 out of 35 tasks across the six benchmarks, outperforming strong baselines like MAPPO, HAPPO, and HATD3.
  • Sample Efficiency: In the Bi-DexHands environment, HASAC learned useful policies where on-policy methods failed completely within 10 million steps.
  • Robustness: The algorithm showed much lower variance across different random seeds compared to deterministic off-policy methods like HATD3, which often fluctuated wildly or crashed during training.
  • Escaping Local Optima: In the StarCraft "super-hard" maps (like 6h_vs_8z), HASAC successfully identified high-reward strategies where other methods settled for mediocre ones.

Limitations and Future Work

While HASAC is powerful, the authors note a few areas for growth:

  • Computational Overhead: The sequential update scheme, while theoretically robust, can be computationally slower than simultaneous updates as the number of agents grows very large.
  • Drift Functionals: The MEHAML template allows for various "drift functionals" (mathematical ways to measure policy change). The authors suggest that exploring different functionals could lead to even more stable or specialized algorithms for specific domains.
  • Hyperparameter Tuning: Like single-agent SAC, the temperature parameter $\alpha$ (which balances reward vs. entropy) is crucial. While they provide an auto-tuning mechanism, finding the optimal balance in highly constrained multi-agent environments remains a challenge.

Summary updated

BibTeX
@inproceedings{liu2024maximum,
  author = {Jiarong Liu and Yifan Zhong and Siyi Hu and Haobo Fu and Qiang Fu and Xiaojun Chang and Yaodong Yang},
  title = {{Maximum Entropy Heterogeneous-Agent Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=tmqOhBC4a5},
}
Figure