RODE: Learning Roles to Decompose Multi-Agent Tasks

Tonghan Wang, Tarun Gupta, Anuj Mahajan, Bei Peng, Shimon Whiteson, Chongjie Zhang

TL;DR

RODE (ROles to DEcompose) is a new multi-agent reinforcement learning (MARL) framework that scales to complex tasks by automatically discovering "roles." By clustering actions based on their effects on the environment, RODE decomposes a massive joint search space into smaller, manageable sub-problems, outperforming state-of-the-art algorithms on the most challenging StarCraft II benchmarks.

What Problem Does This Paper Address?

In cooperative multi-agent reinforcement learning, the "curse of dimensionality" is a constant shadow. As you add more agents, the joint action-observation space—the set of all possible things all agents could see and do at once—grows exponentially.

While humans handle complex tasks by assigning roles (e.g., in soccer, some players defend while others attack), teaching AI to discover these roles automatically is notoriously difficult. Previous methods often required hand-coded roles or tried to learn them from scratch in the middle of the "chaos," which is computationally expensive and often fails in environments requiring significant exploration.

Methods

The authors introduce RODE, which breaks the problem down into a bi-level hierarchy using a clever "action-effect" clustering technique.

RODE Architecture
  1. Learning Action Representations: Instead of treating actions as arbitrary integers, RODE learns what actions actually do. It uses a predictive "forward model" to create embeddings (vector representations) for each action based on how it changes the agent's local observation and the global reward.
  2. Clustering into Roles: RODE groups actions with similar effects using $k$-means (or $X$-means) clustering. Each cluster defines a "role action space." For example, all "attack" actions might end up in one role, while all "move" actions end up in another.
Action Representation Clustering
  1. Bi-Level Hierarchy:
    • The Role Selector (High Level): Every few timesteps (a temporal abstraction), a high-level coordinator picks a role for each agent. Because it only chooses from a few roles rather than dozens of primitive actions, the search space is much smaller.
  2. The Role Policy (Low Level): Once assigned a role, the agent only considers the restricted subset of actions belonging to that role. This "spatial abstraction" makes learning the actual control policy significantly faster.

Datasets

The framework was evaluated on the StarCraft II Micromanagement (SMAC) benchmark. SMAC is the gold standard for MARL, featuring 14 different scenarios categorized as "Easy," "Hard," and "Super Hard." These scenarios require precise coordination between different unit types (e.g., Zealots, Stalkers, and Colossi) to defeat an AI opponent.

Key Insights and Ideas

  • Functionality over Identity: The core "aha" moment is that role discovery is easier if you first group actions by their functionality. If an agent knows it is in an "attacker" role, it doesn't need to waste time wondering if it should move backward or stand still.
  • Temporal and Spatial Abstraction: RODE doesn't just simplify what the agent does (spatial); it simplifies how often it has to make big decisions (temporal). By picking roles every 5 timesteps instead of every single one, the high-level coordinator avoids the "noise" of moment-to-moment micro-management.
  • Conditioning on Effects: Both the role selector and the policies are conditioned on the learned action representations. This allows the model to generalize: if a new action appears that "looks" like an old attack action, the agent already knows how to use it.

Key Results

  • State-of-the-Art Performance: RODE outperformed top-tier baselines (like QMIX and QPLEX) on 9 out of 14 SMAC maps, including all 5 "Super Hard" maps.
  • Exploration Efficiency: On the "Corridor" map—a notoriously difficult scenario where 6 units must face 24 enemies—RODE was the only algorithm to achieve a high win rate, while others struggled to even begin learning.
  • Zero-Shot Transfer: Because RODE learns roles based on action effects rather than specific agent IDs, the authors demonstrated that a policy learned for 6 agents could be transferred to a map with 18 agents (3x the size) and still maintain a 50% win rate without any additional training.

Limitations and Future Work

While RODE is powerful, the authors note a few areas for improvement:

  • Initial Learning Phase: The action representations are learned during an initial 50k-step period. If the environment is so complex that the agents can't see the effects of certain actions early on, the clusters might be suboptimal.
  • Fixed Roles: Currently, once the action spaces for roles are clustered, they remain fixed throughout the rest of training. A more flexible system might allow roles to evolve as the agents' strategies become more sophisticated.
  • Hyperparameters: The number of clusters ($k$) is a hyperparameter, though the authors show that using $X$-means to automatically determine $k$ is a viable alternative.

Summary updated

BibTeX
@inproceedings{wang2021rode,
  author = {Tonghan Wang and Tarun Gupta and Anuj Mahajan and Bei Peng and Shimon Whiteson and Chongjie Zhang},
  title = {{RODE: Learning Roles to Decompose Multi-Agent Tasks}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=Ss4YhcoZpk},
}
Figure