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

Efficient Multi-agent Offline Coordination via Diffusion-based Trajectory Stitching

Lei Yuan, Yuqi Bian, Lihe Li, Ziqian Zhang, Cong Guan, Yang YuICLR 2025

Introduction

Multi-Agent Reinforcement Learning (MARL) is powerful but notoriously data-hungry. In real-world applications like autonomous fleets or financial trading, allowing agents to learn via trial and error is often too risky and expensive. Instead, practitioners turn to Offline RL, where agents learn from pre-collected logs without interacting with the live environment.

However, offline datasets are frequently "imbalanced." They may suffer from temporal imbalance (e.g., the team succeeds briefly but fails for the majority of the episode) or spatial imbalance (e.g., most agents perform perfectly, but one underperforming agent ruins the team's total reward). Standard offline methods struggle in these scenarios because they adopt conservative strategies to avoid bad data, often missing the hidden gems of high-quality coordination buried within mediocre logs.

To address this, researchers introduce MADiTS (Multi-Agent offline coordination via Diffusion-based Trajectory Stitching), a novel data augmentation pipeline that uses diffusion models to "stitch" together high-quality coordination segments from messy, imbalanced offline datasets.

The MADiTS Pipeline

MADiTS operates in three primary stages to transform imbalanced data into high-quality training sets:

The MADiTS pipeline featuring trajectory generation, inspection, and data augmentation.
  1. Diffusion-based Generation: The system trains a diffusion model to capture the distribution of trajectory segments. By conditioning the model on "high returns," it prompts the generation of segments where the agents successfully coordinate.
  2. Bidirectional Dynamics Constraint: Because generative models can sometimes "hallucinate" impossible physics, MADiTS employs separate forward and inverse dynamics models. These check if the generated observations and actions align with the environment's actual transition dynamics. If a segment violates these "laws of physics," it is discarded.
  3. Offline Credit Assignment (Fixing the "Weakest Link"): Even in high-reward segments, individual agents might underperform. MADiTS uses Integrated Gradients (IG)—a technique typically used for neural network interpretability—to calculate each agent's contribution to the team's success. If an agent is identified as a "weak link," the system partially adds noise to that specific agent's trajectory and uses the diffusion model to re-generate better behavior, keeping the successful teammates' actions fixed.

Evaluated Datasets

The researchers evaluated MADiTS across several standard MARL benchmarks, intentionally modifying them to create imbalanced scenarios (e.g., forcing one agent to act randomly, or making all agents glitch at intervals):

Multi-Agent Particle Environment (MPE) tasks used for evaluation.
  • Multi-Agent Particle Environment (MPE): Includes tasks like Cooperative Navigation, Predator-Prey, and World.
  • StarCraft Multi-Agent Challenge (SMAC & SMACv2): Complex combat scenarios requiring tight, precise coordination.
  • MAMuJoCo: A multi-agent version of classic MuJoCo robotics tasks, specifically the 4-agent Ant.

Key Insights and Results

MADiTS acts as a powerful "force multiplier" for existing offline RL algorithms by focusing on improving the data before learning begins, rather than just figuring out how to learn from bad data.

  • Stitching Over Copying: Instead of merely imitating the dataset (Behavior Cloning), MADiTS treats the dataset like building blocks. It finds the high-quality segments and uses the diffusion model to snap them together into new, optimal trajectories.
  • Massive Performance Boosts: On MPE tasks, MADiTS improved the average score from 27.01 (on the original imbalanced data) to 45.83.
  • Outperforming Balanced Data: In certain scenarios like Predator-Prey, agents trained on MADiTS-augmented data actually outperformed those trained on perfectly balanced, expert-collected data. This indicates that the stitching process can discover novel coordination patterns superior to those in the original logs.
  • Algorithm Agnostic: MADiTS improves downstream performance regardless of the specific offline MARL algorithm used, whether it's simple Behavior Cloning or state-of-the-art methods like OMIGA or CFCQL.

Limitations and Future Work

While highly effective, MADiTS has limitations. The method relies on the diffusion model being conditioned on returns, meaning it might struggle in environments with extremely sparse rewards where "success" signals are rare. Furthermore, if the original dataset is entirely devoid of good coordination (Out-of-Distribution), the diffusion model lacks the foundational blocks needed to stitch together a successful trajectory. Future work may explore incorporating external knowledge, such as Large Language Models (LLMs), to guide trajectory generation in highly complex environments where offline data is severely lacking.

Summary updated

BibTeX
@inproceedings{yuan2025efficient,
  author = {Lei Yuan and Yuqi Bian and Lihe Li and Ziqian Zhang and Cong Guan and Yang Yu},
  title = {{Efficient Multi-agent Offline Coordination via Diffusion-based Trajectory Stitching}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=EpnZEzYDUT},
}
Figure