Research
Conditional Diffusion Model for Multi-Agent Dynamic Task Decomposition
Overview Research area: Cooperative multi-agent reinforcement learning (MARL), specifically hierarchical task decomposition and generative diffusion models for representation learning. Technical level
- arXiv
- 2511.13137
- Published
- 2025-11-17
- Authors
- Yanda Zhu, Yuanyang Zhu, Daoyi Dong, Caihua Chen, Chunlin Chen
AI summary
Overview
- Research area: Cooperative multi-agent reinforcement learning (MARL), specifically hierarchical task decomposition and generative diffusion models for representation learning.
- Technical level: Advanced. The paper assumes familiarity with Dec-POMDPs, the centralized-training-with-decentralized-execution (CTDE) paradigm, value decomposition (VDN, QMIX, QTRAN, QPLEX), denoising diffusion probabilistic models, and attention-based mixing networks.
- Scope: The paper introduces CD3T (Conditional Diffusion Model for Dynamic Task Decomposition), a two-level hierarchical MARL framework in which a conditional diffusion model learns latent action representations that are clustered into subtasks, and those subtask representations are fed into a multi-head attention mixing network for credit assignment, evaluated on Level-based Foraging (LBF), StarCraft Multi-Agent Challenge (SMAC), and SMACv2.
What This Paper Is About
Cooperative MARL agents under partial observability face a joint action-observation space that grows exponentially with the number of agents, making useful exploration rare and coordination hard. Decomposing a complex task into subtasks helps, but learning that decomposition from scratch is sample-hungry, and prior role, skill, and group-based methods typically rely on simple network structures that under-model the dynamic interactions between agents and the environment. The paper's goal is to use a conditional diffusion model—pretrained on offline replay data—to extract latent action representations that induce distinguishable, dynamically reassignable subtasks, and to reuse those representations both for subtask selection and for value decomposition.
Key Contributions
- A conditional diffusion model for action representation learning. The method maps an agent's one-hot action to a d-dimensional representation, uses a UNet backbone with cross-attention as the denoising network conditioned on the agent's local observation and the other agents' joint actions, and additionally predicts the next local observation and the global reward to ground the representation in action effects on the environment.
- Dynamic subtask decomposition from action representations. After an initial 50K timesteps of sampling and learning, k-means clustering is applied over the action representations to produce a finite set of subtasks; each subtask representation is the mean of the action representations in its decomposed action space, and a subtask selector reassigns each agent to a subtask every ΔT steps by maximizing a dot-product score between the agent's history encoding and the subtask representation. The paper formalizes subtasks with a formal definition over agent sets and restricted, possibly overlapping action spaces.
- Subtask-aware value decomposition with credit assignment. The subtask representation (for the selector) and the restricted action representation (for the subtask policies) are combined with the global state through a softmax-normalized dot-product attention, producing per-head credits that sum to one and feed a mixing network that estimates Q_tot, following the Individual-Global-Maximum principle with an intervention-based adjustment function.
- A two-level hierarchical architecture and empirical validation. A subtask selector and subtask policies share the same architecture with different parameters, and the framework is benchmarked against five classic value-decomposition methods (VDN, QMIX, QTRAN, QPLEX, CDS) and four subtask-related methods (RODE, GoMARL, ACORM, DT2GS) on three benchmarks, with ablations and visualizations of subtask formation and selection.
Main Findings
- SMAC performance: Across 8 scenarios spanning easy, hard, and super hard difficulty, CD3T achieves almost the highest win rate on all scenarios, with the advantage most pronounced on the super hard tasks. No absolute win-rate numbers appear in the paper content provided; results are presented as learning curves with mean ± standard deviation over five random seeds.
- Baseline failure modes: QTRAN performs poorly on almost all scenarios, attributed to its soft constraints with two ℓ2-penalty terms. QPLEX behaves well on easy scenarios but degrades on hard ones, tending toward local optima. VDN and QMIX succeed on some easy or hard maps (8m, 2s3z, 5m_vs_6m) but fail on super hard maps. RODE fails to learn efficient subtask policies, attributed to its simple MLP structure. CDS fails to learn efficient policies, including on corridor and 6h_vs_8z. GoMARL matches CD3T on part of the easy and hard maps but underperforms on two super hard maps. DT2GS is consistently suboptimal, attributed to overemphasizing generalization across a limited set of tasks.
- ACORM's dependence on reclustering: ACORM achieves strong early learning, but when per-step clustering is removed (ACORM-oc, clustering once at 50K timesteps), performance collapses on nearly all maps, implying its contrastive role representations rely heavily on continuous reclustering. ACORM's per-timestep clustering is described as imposing a substantial computational burden.
- LBF performance: CD3T shows competitive performance on two constructed LBF tasks. CDS and RODE fail, VDN, QMIX and QTRAN require more steps, QPLEX receives a lower return than CD3T between 0.1M and 0.6M timesteps, and CD3T achieves slightly higher performance than GoMARL and ACORM. DT2GS is marginally inferior to CD3T.
- Ablation — diffusion model: Replacing the diffusion model with a vanilla MLP ("CD3T w/o diffusion") yields the lowest win rates on all maps, particularly the hard and super hard ones, and the margin by which full CD3T exceeds it is larger on those maps.
- Ablation — subtask-based attention: Replacing the subtask-based attention in the mixing network with QMIX ("CD3T w/o Subtask-based Attention") performs lower than CD3T, indicating the importance of subtask representations for credit estimation.
- Number of subtasks: Performance consistently improves as the number of subtasks increases over the tested range of 3 ≤ subtasks ≤ 5; the paper states moderate orders (subtask ≤ 5) are enough for an appropriate trade-off between performance and computation. The number of subtasks g is treated as a tunable hyperparameter rather than inferred.
- Action space reduction: In a comparison across six SMAC scenarios (8m, 2s3z, 3s5z, 5m_vs_6m, 6h_vs_8z, 3s5z_vs_3s6z), CD3T achieves a more compact effective action space than RODE and QMIX, with lower average dimensionality and tighter intervals. QMIX always uses the full action space with no variation. CD3T and RODE are similar on the simpler 8m, 2s3z, and 3s5z scenarios, while CD3T reduces more substantially on 5m_vs_6m, 6h_vs_8z, and 3s5z_vs_3s6z.
- Learned representation quality: In the corridor scenario (6 Zealots versus 24 Zerglings), PCA projection of the learned action representations into two dimensions reveals clear clusters aligned with primary action types, emerging consistently across random seeds. The model captures the spatial symmetry of the map, where moving north or east similarly advances agents toward enemies while south or west leads them away.
- Emergent coordination behavior: In a visualized 351-timestep corridor episode, CD3T assigns subtask φ2 to Agent 1 at t=7 to draw nearly half the enemies away while five agents reposition eastward; at t=22 Agent 1 switches to φ3 to engage directly, Agents 2 and 3 perform kiting under φ1, and Agents 4–6 focus fire under φ3; at t=149 subtask φ2 is reassigned to Agent 2 to lure enemies away and disrupt regrouping. The selection frequency analysis shows φ2 used predominantly early for diversion, followed by adaptive switching among φ1, φ2, and φ3.
- SMACv2: Additional experiments on SMACv2 are reported in the paper's Appendix E and are stated to further confirm CD3T's effectiveness; the specific SMACv2 results are not included in the content provided.
Methodology in Plain English
The approach has three moving parts that feed each other.
First, the authors learn what each action actually does. They train a conditional diffusion model—the same class of generative model used in image generation, which learns by iteratively denoising random noise—to reconstruct a latent vector for an agent's action, given that agent's local observation and the actions the other agents took. Separately, that latent vector is used to predict the next local observations and the global reward. This forces the representation to encode the action's consequences rather than just its identity. The network uses a UNet backbone with cross-attention, which the authors argue naturally captures multimodal (multi-cluster) structure, so no extra regularization is needed to encourage diverse subtasks.
Second, they turn those representations into subtasks. After an initial 50K timesteps of training, they run k-means over the learned action vectors. Each resulting cluster becomes a subtask with its own restricted action space, and the cluster's average vector becomes the subtask's signature. Every ΔT steps, a subtask selector looks at each agent's history of observations and actions (encoded by a shared MLP plus GRU) and scores it against each subtask signature by a dot product, assigning the best-scoring subtask. Agents sharing a subtask share policy parameters.
Third, they use the subtask information to split the team's value function cleanly. Value decomposition methods estimate a joint Q-value as a monotonic combination of per-agent Q-values, but the global state contains far more information than is relevant to any individual decision—a source of spurious correlations. The authors compute attention weights between the subtask (or action) representation and the global state, softmax-normalize them so they stay positive and sum to one, and use them to weight each agent's contribution across multiple attention heads. The selector and the subtask policies each get their own such mixing network, trained with temporal-difference losses. Execution remains decentralized: each agent acts only on local information.
Why This Matters
The work sits at the intersection of two trends—generative models as representation learners for control, and hierarchical decomposition in multi-agent systems—and argues that the rich latent structure a diffusion model provides is a better substrate for defining subtasks than hand-designed roles, groups, or shallow MLP encoders. It also supplies a concrete mechanism for reusing those latents inside value decomposition, connecting task decomposition to credit assignment rather than treating them as separate problems.
Real-world applications named or implied by the paper:
- Sensor networks: coordinating distributed sensing agents that each see only part of the environment.
- Coordination of robot swarms: assigning robots to specialized roles and re-assigning them as conditions change.
- Autonomous vehicles: managing multi-vehicle coordination where each vehicle has limited local observation and centralized control is impractical.
- Simulated combat and adversarial teaming: the SMAC and SMACv2 benchmarks test unit-level coordination under numerical disadvantage, which mirrors tactical teaming problems in defense simulation.
Industry relevance: the framework targets sample efficiency and compact decision spaces, both of which matter when training data is expensive or simulation is costly. The reported action-space reduction—CD3T's sub-policies operating over smaller, task-relevant action sets than QMIX's full action space—translates into cheaper exploration and potentially faster inference in deployed multi-robot or fleet systems. The ACORM-oc result is also a practical warning: methods that depend on per-timestep clustering pay a substantial computational cost, and removing that cost can cause performance to collapse.
Future Directions
- Automatic determination of the number of subtasks. The paper treats g, the number of subtasks, as a tunable hyperparameter and only tests 3 ≤ subtasks ≤ 5, noting that excessive subtasks may not help for finite action spaces. Inferring g from data remains open.
- Clustering frequency and stability. Clustering is performed once at 50K timesteps to improve efficiency over per-step clustering, but the ACORM-oc collapse suggests the timing and frequency of re-decomposition is a first-order design decision with no reported principled solution.
- Action space generality. The action encoder maps one-hot discrete actions, and all three benchmarks (LBF, SMAC, SMACv2) use discrete action sets. Whether the diffusion-based decomposition extends to continuous control is not addressed in the paper content provided.
- Scalability and training cost. The paper states that implementation details, benchmarks, and discussions on training time and scalability are provided in Appendix D, but the visible content does not report those numbers—so scaling behavior as agent count grows is an open question for readers of the truncated version.
Target Audience
MARL researchers working on hierarchical learning, role/skill discovery, or value decomposition will find the core contribution most directly relevant, as will researchers exploring diffusion models as representation learners rather than as policy or trajectory generators. Practitioners building multi-robot coordination, swarm, or multi-vehicle systems benefit from the compact-action-space and sample-efficiency angle. Readers without a background in Dec-POMDPs, CTDE, and value-factorization methods will find the method sections dense, since the paper assumes fluency in these and uses formal notation throughout, with derivations, proofs, pseudo-code, and experimental details deferred to appendices A through G.
Authors’ 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}^\text{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}^\text{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}^\text{3}$T achieves better performance than existing baselines.