Learning to Transfer Role Assignment Across Team Sizes

Dung Nguyen, Phuoc Nguyen, Svetha Venkatesh, Truyen Tran

Abstract

Coordinating large teams of autonomous agents remains a significant challenge in Multi-Agent Reinforcement Learning (MARL) due to the exponential growth of state-action spaces. This paper introduces a novel framework that learns to assign roles to agents and, crucially, transfers these capabilities across different team sizes. By utilizing a team-size agnostic mixing network and role-specific reward horizons, the proposed method enables efficient curriculum learning. Agents master complex coordination in small groups before successfully scaling to larger teams, significantly outperforming traditional fixed-size architectures.

Introduction

In human organizations, large-scale coordination is often managed by decomposing complex tasks into specialized roles, such as attackers, defenders, or scouts. Replicating this in MARL has proven difficult; current role-based methods are typically brittle, assuming a fixed number of agents or requiring pre-defined role structures. Standard architectures like QMIX, which aggregate individual agent values into a global team reward, often rely on global state information that ties model parameters to a specific team size. This prevents a model trained on a small team from being deployed or adapted to a larger one.

This research addresses these limitations by proposing a flexible role-assignment architecture that decouples the mixing process from the total agent count, allowing for seamless transfer and scaling.

Methodology

The authors propose a three-pronged approach to achieve flexible and transferable role assignment:

  1. Transferable Mixing Network: Unlike standard QMIX architectures that use global state to generate mixing weights, this model utilizes local observations from each agent. This design choice ensures the hyper-network—the component determining how to weight individual contributions—remains independent of the total number of agents.
  2. Role-Based Credit Assignment: The network estimates the probability of an agent belonging to a specific "hidden role." It aggregates the Q-values of agents assigned to the same role before combining these role-level values into the final team reward.
  3. Long Short-Term Rewarded Roles (LSTRR): To encourage functional specialization, the authors introduce the LSTRR regularizer. This forces specific roles to focus on immediate rewards (e.g., tactical engagement) while others prioritize long-term objectives (e.g., strategic defense).
The proposed architecture utilizes local observations and a role-based credit assignment mechanism to enable transferability across team sizes.

The training process follows a curriculum: a small team is initially pre-trained using expert demonstrations, after which the model is transferred to a larger team to continue learning via reinforcement learning.

Experimental Evaluation

The framework was evaluated on two challenging benchmarks: Enriched Prey-Predator, where agents must collect tools to unlock specific roles, and the StarCraft Multi-Agent Challenge (SMAC), specifically in new "building" scenarios that require defending structures while attacking the enemy.

Scaling and Performance

The method demonstrated superior scaling capabilities compared to baselines like QMIX, ROMA, and DyMA-CL. In a complex Prey-Predator environment featuring 8 agents and 3 camps, standard QMIX failed to converge on an optimal policy. In contrast, the proposed method achieved rapid convergence by transferring knowledge from a simpler 4-agent setup.

Performance comparison in an 8-agent, 3-camp Prey-Predator setting, demonstrating the effectiveness of transferring knowledge from a 4-agent setup.

In StarCraft II scenarios (e.g., 9m_vs_10m_buildings), the team-size transfer allowed agents to maintain a high win rate. Competing methods often failed to coordinate effectively or fell victim to "reward hacking," where agents prioritized survival over the strategic defense of the base.

Discussion and Conclusion

A key insight of this work is that generating mixing weights from local observations rather than global state "unlocks" the ability to transfer models between team sizes. Furthermore, the LSTRR regularizer ensures that roles are not merely mathematical abstractions but correspond to distinct behavioral specializations. PCA visualizations of network weights confirmed that agents naturally cluster into functional groups.

While the current approach relies on expert demonstrations for the initial small-team phase and uses a fixed number of roles, it proves that "starting small" and transferring the logic of role assignment is a viable path toward solving high-dimensional multi-agent tasks. Future work may explore dynamic role discovery and the integration of explicit inter-agent communication to further enhance coordination in sparse environments.

Summary updated

BibTeX
@inproceedings{nguyen2022learning,
  author = {Dung Nguyen and Phuoc Nguyen and Svetha Venkatesh and Truyen Tran},
  title = {{Learning to Transfer Role Assignment Across Team Sizes}},
  booktitle = {AAMAS},
  year = {2022},
  url = {https://openreview.net/forum?id=bLgS9yUidi},
}

Loading related content...

Figure