Conditional Diffusion Model for Multi-Agent Dynamic Task Decomposition

Yanda Zhu, Yuanyang Zhu, Daoyi Dong, Caihua Chen, Chunlin ChenarXiv 2025 · OpenReview

Abstract

Task decomposition has shown promise in complex cooperative multi-agent reinforcement learning (MARL) tasks, which enables efficient hierarchical learning for long-horizon tasks in dynamic and uncertain environments. However, learning dynamic task decomposition from scratch generally requires a large number of training samples, especially exploring the large joint action space under partial observability. In this paper, we present the Conditional Diffusion Model for Dynamic Task Decomposition (C$\text{D}^3$T), a novel two-level hierarchical MARL framework designed to automatically infer subtask and coordination patterns. The high-level policy learns subtask representation to generate a subtask selection strategy based on subtask effects. To capture the effects of subtasks on the environment, C$\text{D}^3$T predicts the next observation and reward using a conditional diffusion model. At the low level, agents collaboratively learn and share specialized skills within their assigned subtasks. Moreover, the learned subtask representation is also used as additional semantic information in a multi-head attention mixing network to enhance value decomposition and provide an efficient reasoning bridge between individual and joint value functions. Experimental results on various benchmarks demonstrate that C$\text{D}^3$T achieves better performance than existing baselines.

Introduction

Cooperative Multi-Agent Reinforcement Learning (MARL) faces a significant challenge: the joint action space grows exponentially with the number of agents, making exploration nearly impossible in complex environments. While task decomposition—breaking a global goal into smaller, manageable subtasks—offers a solution, existing methods often rely on simple neural architectures that fail to capture the nuanced, dynamic interactions between agents and their environment. These methods frequently struggle with "spurious correlations" and lack the representational capacity to handle high-dimensional, stochastic state spaces.

To address these limitations, we introduce the Conditional Diffusion Model for Dynamic Task Decomposition (C$\text{D}^3$T). This framework leverages the generative power of diffusion models to learn rich action representations, effectively reducing massive joint action spaces and improving credit assignment in challenging, partially observable environments.

Methodology

The C$\text{D}^3$T framework operates on a two-level hierarchy designed to bridge the gap between individual actions and global coordination.

The C$\text{D}^3$T framework architecture featuring the high-level subtask selector and low-level subtask policy integrated with a conditional diffusion model.

Action Representation via Diffusion

The core innovation lies in using a conditional diffusion model (with a UNet backbone and cross-attention) to learn "action semantics." Instead of standard MLPs, the model is trained to predict the next observation and reward based on an agent's current action and the actions of its teammates. Because diffusion models excel at capturing multimodal distributions, they can learn distinct representations for complex behaviors, such as "kiting" versus "attacking."

Subtask Generation and Selection

Following an initial warm-up period, the framework performs K-means clustering on these learned action representations to define a set of subtasks. A high-level Subtask Selector assigns agents to these clusters periodically. At the low level, agents learn specialized Subtask Policies within the restricted action space of their assigned roles.

Attention-Based Mixing

To solve the credit assignment problem, C$\text{D}^3$T employs a multi-head attention mixing network. It utilizes the learned subtask representations as semantic information to better estimate how much each individual agent contributed to the team's total Q-value, providing a "reasoning bridge" between individual and joint value functions.

Experimental Results

We evaluated C$\text{D}^3$T on three major MARL benchmarks: Level-Based Foraging (LBF), StarCraft Multi-Agent Challenge (SMAC), and the more stochastic SMACv2.

Performance comparison of C$\text{D}^3$T against various MARL baselines across multiple SMAC scenarios.

C$\text{D}^3$T significantly outperformed classic baselines like QMIX and VDN, as well as specialized subtask methods like RODE and GoMARL, particularly on "Super Hard" tasks. For instance, on the corridor map, C$\text{D}^3$T achieved a near 100% win rate while most baselines struggled to exceed 20%. In SMACv2, the model demonstrated smoother learning curves and higher final win rates, suggesting superior generalization to randomized starting positions and unit compositions.

Discussion and Conclusion

C$\text{D}^3$T demonstrates that diffusion models are not merely for image generation; their ability to model stochastic processes makes them highly effective semantic extractors for MARL. By assigning agents to subtasks, the framework drastically reduces the effective action space—for example, reducing the average space from 14 to approximately 7 in the 6h_vs_8z scenario.

While the current implementation requires manual tuning for the number of subtask clusters and uses static subtasks after an initial training phase, the results prove that hierarchical decomposition guided by generative modeling can solve coordination problems that traditional value-decomposition methods cannot. Future work will focus on automating subtask count determination and enabling dynamic re-clustering for non-stationary tasks.

Summary updated

BibTeX
@misc{zhu2025conditional,
  author = {Yanda Zhu and Yuanyang Zhu and Daoyi Dong and Caihua Chen and Chunlin Chen},
  title = {{Conditional Diffusion Model for Multi-Agent Dynamic Task Decomposition}},
  year = {2025},
  eprint = {2511.13137},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.13137},
}
Figure