NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion-based Episodes Augmentation for Offline Multi-Agent Reinforcement Learning

Jihwan Oh, Sungnyun Kim, Gahee Kim, SeongHwan Kim, Se-Young Yun

TL;DR

Learning multi-agent policies strictly from static datasets is notoriously difficult due to data scarcity and the combinatorial explosion of multi-agent interactions. The authors propose EAQ (Episodes Augmentation guided by Q-total loss), a diffusion-based framework that synthesizes complete multi-agent trajectories while explicitly encouraging cooperative, high-value behaviors. Crucially, EAQ embeds trajectory values directly into the generative model, eliminating the need to train a separate critic network for guidance.

What Problem Does This Paper Address?

Offline Multi-Agent Reinforcement Learning (offline MARL) aims to train coordinating agents exclusively from static, pre-collected datasets—an essential capability for safety-critical environments like autonomous driving or robotic surgery where live exploration is dangerous or costly.

However, multi-agent offline datasets face unique challenges:

  1. Exponential state-action growth: As the number of agents increases, static datasets cover an increasingly negligible fraction of possible team configurations.
  2. Sub-optimal and uncoordinated data: Past behaviors are often exploratory or poorly coordinated.
  3. Multi-agent interdependencies: Agents must coordinate (e.g., focus-firing on an enemy rather than attacking randomly). Standard data augmentation methods from single-agent RL (such as adding random noise to individual states) fail to capture inter-agent relationships and often break environment dynamics.

Methods

EAQ formulates episode synthesis as a generative diffusion process conditioned on team performance:

  • Unified Trajectory Representation: Each episode is structured as a 2D matrix of shape $(F, T)$—stacking observations and one-hot-encoded discrete actions for all $N$ agents, along with the global step reward $r_t^{\text{global}}$, the empirical reward-to-go $Q_t^{\text{tot}}$, and an episode termination flag $\text{done}_t$.
  • Conv1D Diffusion Backbone: The authors use a 1D-convolutional Denoising Diffusion Probabilistic Model (DDPM) trained to directly reconstruct the initial clean trajectory $\tau_0$ from noised inputs $\tau_k$.
  • Implicit $Q^{\text{tot}}$ Guidance: Rather than training a separate Q-network to steer the diffusion reverse process (which adds heavy architectural and computational overhead), EAQ integrates value optimization directly into diffusion training. The loss function includes an auxiliary objective that maximizes the generated trajectory's estimated return: $$\mathcal{L}_{Q^{\text{tot}}} = \left[ \max_{\tau_0 \in \mathcal{B}} Q_{\tau_0}(\mathbf{o}, \mathbf{a}) - Q_{f_\theta(\tau_k, k)}(\mathbf{o}, \mathbf{a}) \right]_{\ge 0}$$ Bounding the target by the maximum observed return in minibatch $\mathcal{B}$ stabilizes training and prevents value explosion.

  • Offline Training Pipeline: The diffusion model synthesizes new episodes to upsample the dataset $5\times$. Downstream offline MARL algorithms (such as QMIX-CQL and QMIX-BCQ) are then trained on the augmented dataset $\mathcal{D}_{\text{aug}} = \mathcal{D}_{\text{real}} \cup \mathcal{D}_{\text{syn}}$.

Reformatted Trajectories [(o, a) for all agents, r, Q_tot, done]
                       │
                       ▼
         Conv1D Diffusion Generator
         [Joint Loss = Reconstruction + Q_tot Maximization]
                       │
                       ▼
       Augmented Dataset (5x Upsampled)
                       │
                       ▼
         Offline MARL Policy Training (QMIX-CQL / QMIX-BCQ)

Datasets

  • Benchmark: StarCraft Multi-Agent Challenge (SMAC), evaluated across five combat scenarios: 3m, 5m vs 6m, 8m, 2s3z, and 3s5z vs 3s6z.
  • Data Source & Downsampling: Trajectories were drawn from the open-source Off-the-Grid MARL benchmark under both medium and poor behavioral policies. To replicate severe data scarcity, the datasets were artificially downsampled to only 3% of their original size.

Key Insights and Ideas

  • Single-model value guidance: Traditional guided diffusion in RL typically trains a secondary value model to compute gradients through the diffusion steps. By including reward-to-go as a feature inside the trajectory tensor and predicting $\tau_0$ directly, EAQ guides trajectories toward higher returns within a single model architecture.
  • Emergent tactical cooperation: Maximizing $Q^{\text{tot}}$ specifically drives cooperative coordination. In the 3m scenario, EAQ increased the frequency of synchronized "focus-fire" attacks from 47.2% (original data) to 74.3%.
  • Diffusion outperforms manual perturbations: Even without Q-guidance ($\text{EAQ}^{-Q}$), synthesizing episodes via diffusion outperformed traditional state-perturbation baselines (RAD). t-SNE visualisations confirm that diffusion expands the coverage of the state space smoothly while maintaining valid environment structures.

Key Results

The authors evaluated 20 distinct settings (5 maps $\times$ 2 data qualities $\times$ 2 offline algorithms: QMIX-CQL and QMIX-BCQ):

  • Benchmark Superiority: EAQ achieved the highest performance in 14 out of 20 tasks, while the unguided ablation ($\text{EAQ}^{-Q}$) won 4, meaning diffusion-augmented data took top performance in 90% of tasks.
  • Substantial Returns Boost: Relative to the original downsampled data, EAQ improved normalized returns by +17.3% on medium-quality datasets and +12.9% on poor-quality datasets (normalized to the maximum episode score of 20).
  • Average Performance:
  • QMIX-CQL (Medium): Average return jumped from 3.22 (original) and 5.39 (best perturbation baseline) to 7.45 (EAQ).
  • QMIX-BCQ (Medium): Average return rose from 4.64 (original) to 7.72 (EAQ).

Limitations and Future Work

  • Ceiling on low-quality data: On datasets collected from exceedingly poor behavioral policies, EAQ’s performance was nearly identical to unguided diffusion ($\text{EAQ}^{-Q}$). Because the guidance is bounded by the minibatch maximum, a dataset devoid of good trajectories gives the model little signal on how to improve.
  • Action space restrictions: The current implementation relies on one-hot encoding for discrete actions in SMAC; continuous action spaces remain unvalidated.
  • Alternative generative backbones: The study focused on standard DDPM backbones; extending this framework to newer generative paradigms, such as Flow Matching or Consistency Models, is left as a future direction.

Summary updated

BibTeX
@inproceedings{oh2024diffusion,
  author = {Jihwan Oh and Sungnyun Kim and Gahee Kim and SeongHwan Kim and Se-Young Yun},
  title = {{Diffusion-based Episodes Augmentation for Offline Multi-Agent Reinforcement Learning}},
  booktitle = {SPIGM @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=Bs8uwhKaPO},
}
Figure