Role-Level Inductive Bias for Cross-Task Generalization in Multi-Agent Reinforcement Learning

Chang Yao, Youfang Lin, Shoucheng Song, Hao Wu, Shengkun Yang, Yuqing Ma, Kai LvICML 2026

The Challenge of Cross-Task Generalization in MARL

In Multi-Agent Reinforcement Learning (MARL), training agents to collaborate effectively on a single task is already a complex endeavor. However, enabling those agents to generalize their learned collaborative behaviors to new, unseen tasks remains a critical bottleneck.

Historically, approaches to this problem have fallen into two distinct camps, both of which have significant limitations:

  1. Entity-Level Biases: These methods rely on Permutation Invariance (PI), meaning the policy operates independently of agent ordering. While excellent for scaling to different team sizes, entity-level biases often fail to capture complex, high-level collaborative patterns.
  2. Task-Level Biases: These approaches decompose tasks into reusable sub-tasks. While they capture coordination logic well, they are notoriously rigid. If a novel scenario requires a sub-task the agents have never encountered, the system's performance degrades rapidly.

To bridge this gap, researchers introduce an intermediate abstraction: role-level inductive bias. Roles—such as "Healer" or "Attacker"—are flexible enough to be dynamically composed in novel environments, yet structured enough to maintain effective, team-wide coordination logic.

Introducing GTR: Transferable Role Discovery

To instantiate this role-level bias, the paper proposes GTR (Gaussian-mixture-model-based Transferable Role discovery). GTR discovers abstract, functional roles that are decoupled from specific environmental details, allowing for state-of-the-art zero-shot and few-shot transfer across varying team sizes and compositions.

The GTR framework operates through three primary mechanisms:

1. Role Assignment via GMM

To handle dynamic team scales, GTR utilizes a Permutation-Invariant Role Encoder driven by an attention mechanism. It projects agent trajectories into a structured latent space governed by a Gaussian Mixture Model (GMM). This architecture allows the system to represent discrete functional roles while simultaneously accommodating continuous "intra-role" variations.

2. Diverse Role Assignment (UW-DPP)

A common failure mode in role discovery is role collapse, where all agents default to the same behavior. To prevent this, GTR employs a Utility-Weighted Determinantal Point Process (UW-DPP). Standard diversity-promoting algorithms often suffer from "blind repulsion," forcing agents to act differently even when cooperation (e.g., focus-firing on a single enemy) is optimal. UW-DPP elegantly balances the need for diverse roles with the "utility" or confidence of the agents, allowing for role redundancy only when it is strategically justified.

3. Role Regularization and Utilization

To ensure the discovered roles are genuinely transferable, GTR uses two decoders to strip away task-specific noise:

  • Intention Decoder: Forces the role representation to predict abstract action categories (e.g., "Interaction" vs. "Idle") rather than specific atomic button presses. This functional logic remains valid even if the action space changes in a new task.
  • Influence Decoder: Grounds the roles in team-wide efficacy by forcing them to predict future role states and global rewards.

Once discovered and regularized, these roles are injected directly into the agents' perception (acting as a cognitive filter) and the credit assignment process (determining how much each agent contributed to a success).

Empirical Results

The researchers evaluated GTR on two major benchmarks: the standard StarCraft Multi-Agent Challenge (SMAC) and the significantly more difficult SMACv2, which introduces stochastic unit initialization to prevent agents from memorizing fixed trajectories.

  • Zero-Shot Dominance: GTR significantly outperformed baseline methods on unseen target tasks. In the highly challenging "10m vs 12m" scenario—where agents are outnumbered—GTR was the only method to maintain a non-trivial win rate (0.10), while competing methods collapsed to near zero.
  • Few-Shot Efficiency: When fine-tuning on new maps, GTR demonstrated vastly accelerated convergence. In the "4s5z vs 4s7z" task, GTR quickly reached high win rates, whereas training from scratch stagnated.
  • The Importance of UW-DPP: Ablation studies revealed that removing the UW-DPP module caused a precipitous drop in performance on unseen tasks, confirming that utility-weighted diverse role assignment is indispensable for preventing overfitting to the source map.

Limitations and Future Directions

While GTR represents a significant step forward, it remains sensitive to extreme agent heterogeneity. Because role semantics are inherently tied to agent capabilities, transferring policies from a source task with only ground units to a target task featuring flying units with entirely different attributes remains challenging.

Future work will focus on developing an "extensible role space" capable of accommodating entirely new unit types dynamically, alongside mechanisms to prevent catastrophic forgetting as the role space expands over time.

Summary updated

BibTeX
@inproceedings{yao2026role,
  author = {Chang Yao and Youfang Lin and Shoucheng Song and Hao Wu and Shengkun Yang and Yuqing Ma and Kai Lv},
  title = {{Role-Level Inductive Bias for Cross-Task Generalization in Multi-Agent Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=oz8kFbXdpj},
}
Figure