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 Heterogeneous-Agent Soft Actor-Critic (HASAC), a novel framework for cooperative multi-agent reinforcement learning (MARL) that prioritizes stochastic policies. By maximizing entropy alongside environmental rewards, the authors provide a theoretically grounded method for agent teams to escape suboptimal local traps and converge to a more robust "Quantal Response Equilibrium" (QRE).

The Challenge: Getting Stuck in "Good Enough"

In cooperative MARL, a team of agents must learn to coordinate their actions to maximize a shared reward. Current state-of-the-art methods (like MAPPO or HAPPO) typically aim for a standard Nash Equilibrium (NE). However, these methods face three major hurdles:

  1. Suboptimal Convergence: Because standard objectives favor deterministic policies, agents often get "stuck" in the first decent local optimum they find, failing to explore better global strategies.
  2. Sample Inefficiency: Popular on-policy methods require massive amounts of new data for every incremental update, making them computationally expensive.
  3. Training Instability: Off-policy methods, while more data-efficient, are notoriously finicky and highly sensitive to hyperparameters.

The authors argue that the root of these problems is a lack of inherent stochasticity in the learning objective. Without a mathematical incentive to keep exploring different ways to solve a task, agents prematurely converge to behaviors that are "good enough" but ultimately inferior.

The Solution: MEHAML and HASAC

The researchers propose a unified framework called Maximum Entropy Heterogeneous-Agent Mirror Learning (MEHAML), from which they derive the HASAC algorithm. Key components of this approach include:

  • Maximum Entropy (MaxEnt) Objective: Instead of solely maximizing reward, agents maximize the reward plus the entropy of their policies. This encourages agents to remain "probabilistic," keeping multiple strategic options on the table and preventing premature convergence.
  • Sequential Updates: Unlike algorithms where all agents update simultaneously (which can cause instability), HASAC uses a sequential update scheme. Agent A updates, then Agent B updates based on Agent A's new policy, and so on.
  • Soft Policy Decomposition: The authors mathematically prove that the joint team objective can be broken down into these individual sequential updates while still guaranteeing that the team's overall performance improves at every step.
  • Quantal Response Equilibrium (QRE): The paper shifts the ultimate goal from a standard Nash Equilibrium to a QRE. In a QRE, agents don't just pick the single best action; they pick actions with probabilities proportional to their expected payoffs. This is a much more natural fit for stochastic environments and complex coordination.

Key Insights

  • Stochasticity as a Solution, Not a Bug: Usually, randomness is viewed as something to be "trained out" of a policy. This paper suggests that maintaining a level of randomness (entropy) is exactly what allows a team to "tunnel" through the reward landscape and find global optima that deterministic agents miss.
  • The Power of Sequence: The "Joint Soft Policy Decomposition" proves that you can have the stability of sequential updates (one agent at a time) while using the efficient "soft" objectives typically found in single-agent RL (like Soft Actor-Critic).
  • Theoretical Rigor: By introducing MEHAML, the authors didn't just build one algorithm; they built a template. Any future algorithm designed using this template inherits the same guarantees of monotonic improvement and convergence.

Experimental Results

The authors tested HASAC against a massive battery of six diverse benchmarks, totaling 35 distinct tasks, including Bi-DexHands (complex bimanual manipulation), Multi-Agent MuJoCo, StarCraft Multi-Agent Challenge (SMAC), Google Research Football, Multi-Agent Particle Environment, and Light Aircraft Game.

HASAC proved to be a powerhouse, achieving the best performance in 31 out of 35 tasks across all benchmarks.

  • Escaping Local Optima: In a simple matrix game, standard state-of-the-art methods often get stuck in a local trap 100% of the time due to initial policy biases. As illustrated below, baselines frequently converge to the suboptimal (A,A) strategy rather than the global optimum (C,C). HASAC, however, successfully navigates this reward landscape to find the global optimum.
A matrix game setup showing the reward matrix, initial policy bias, and the suboptimal final policy (A,A) that standard methods often fall into.
  • Sample Efficiency: In the complex Bi-DexHands environment, HASAC learned useful policies in just 10 million steps, whereas on-policy baselines like MAPPO failed to learn anything meaningful in the same timeframe.
  • Robustness: HASAC demonstrated significantly lower variance across different random seeds compared to other off-policy methods like HATD3, making it far more reliable for real-world engineering applications.

Limitations and Future Work

While HASAC is highly effective, the authors note that the "temperature" parameter ($\alpha$), which controls the balance between reward and entropy, is crucial. Although they implemented an auto-tuning method for it, finding the perfect balance for every possible task remains an area for refinement.

Additionally, future work could explore different "drift functionals"—mathematical ways to measure the distance between policy updates—to further enhance the stability and coordination of the agents.

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