LDSA: Learning Dynamic Subtask Assignment in Cooperative Multi-Agent Reinforcement Learning

Mingyu Yang, Jian Zhao, Xunhan Hu, Wengang Zhou, Jiangcheng Zhu, Houqiang Li

Introduction

In Cooperative Multi-Agent Reinforcement Learning (MARL), researchers often grapple with the "scalability vs. diversity" trade-off. While parameter sharing—where all agents utilize the same neural network—is a standard practice to ensure training efficiency and scalability, it frequently leads to uniform, "lazy" behaviors. In complex environments, agents require distinct roles to coordinate effectively. Previous attempts to introduce specialization often relied on manual domain knowledge or rigid, pre-defined action clustering that failed to adapt to dynamic environment changes.

LDSA (Learning Dynamic Subtask Assignment) addresses this by enabling agents to dynamically assign themselves to latent "subtasks" based on their individual action-observation histories. This framework balances the efficiency of parameter sharing with the necessity of agent specialization, allowing for complex coordinated behaviors that standard uniform-policy algorithms struggle to achieve.

Methodology

The LDSA architecture is designed to treat task decomposition as a dynamic assignment problem. It consists of three primary components that work in tandem to facilitate specialization:

  1. Subtask Encoder & Decoder: Rather than hard-coding roles, the model learns $k$ distinct subtask vector representations. A subtask decoder then uses these vectors to generate specific policy parameters for each subtask, ensuring that different assignments result in unique behaviors.
  2. Ability-Based Selection: Each agent utilizes a trajectory encoder to process its recent history of actions and observations into an "ability" vector. The agent selects a subtask by calculating the similarity between its ability vector and the available subtask vectors. To ensure this selection process is differentiable and trainable via backpropagation, the framework employs the Gumbel-Softmax reparameterization trick.
  3. Strategic Regularizers: To prevent the model from collapsing into a single policy, a Diversity Regularizer ($L_\phi$) forces subtask representations to remain distinct. Additionally, a Stability Regularizer ($L_h$) discourages rapid "flickering" between subtasks, which can lead to non-stationarity and training instability.
The LDSA architecture featuring subtask encoding, trajectory-based selection, and policy generation.

Experimental Evaluation

LDSA was evaluated on two rigorous benchmarks: StarCraft II Micromanagement (SMAC) and Google Research Football (GRF). The SMAC evaluation focused on 14 scenarios, including "Hard" and "Super Hard" maps where specialization is critical for success. In GRF, the framework demonstrated its ability to handle long-term coordination, such as agents performing distraction maneuvers to create openings for teammates.

Key Results

Empirical results indicate that LDSA consistently outperforms state-of-the-art baselines such as QMIX, ROMA, and RODE. On average, LDSA improved the median win rate by approximately 7% over the next best method. The performance gains were most pronounced in "Super Hard" scenarios. For instance, in the corridor map, LDSA achieved a win rate nearly 15-20% higher than its competitors.

Performance comparison of LDSA against state-of-the-art baselines across various SMAC scenarios.

Qualitative analysis of the learned strategies revealed sophisticated tactics. In the corridor scenario, LDSA discovered a "sacrifice" tactic where specific agents were assigned to lure large enemy waves away, allowing the remaining agents to focus fire on smaller, manageable groups. This level of asymmetric coordination is rarely discovered by standard parameter-sharing models.

Discussion and Future Work

LDSA demonstrates that an agent's trajectory is a powerful proxy for its current "ability" or role. By allowing agents to switch subtasks mid-episode, the framework provides the flexibility needed for evolving battle conditions. However, the framework currently requires the number of subtasks ($k$) to be set as a fixed hyperparameter. Future research could explore mechanisms for automatically determining the optimal number of subtasks or scaling this dynamic assignment to environments involving hundreds of agents. Despite the added complexity of the subtask decoder, the structured approach to subtask assignment proves more effective than simply increasing model size, as evidenced by comparisons with larger QMIX variants.

Summary updated

BibTeX
@inproceedings{yang2022ldsa,
  author = {Mingyu Yang and Jian Zhao and Xunhan Hu and Wengang Zhou and Jiangcheng Zhu and Houqiang Li},
  title = {{LDSA: Learning Dynamic Subtask Assignment in Cooperative Multi-Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=J5e13zmpj-Z},
}
Figure