MOSDT: Self-Distillation-Based Decision Transformer for Multi-Agent Offline Safe Reinforcement Learning

Yuchen Xia, Yunjian XuNeurIPS 2025

Introduction

Reinforcement Learning (RL) has achieved massive success in simulated environments, but transitioning these capabilities into the real world requires solving three difficult challenges simultaneously: multi-agent coordination, offline learning from static datasets, and strict safety constraints. While "Offline RL" and "Safe RL" are established fields, their intersection—Multi-Agent Offline Safe RL (MOSRL)—has remained largely unexplored.

To bridge this gap, researchers have introduced MOSDT (Multi-agent Offline Safe Decision Transformer), the first algorithm specifically designed for MOSRL, alongside MOSDB, the first comprehensive dataset and benchmark for this domain. By combining a novel policy self-distillation technique with full parameter sharing and a "plug-and-play" cost embedding module, MOSDT achieves state-of-the-art performance across 18 complex tasks while remaining significantly more parameter-efficient than existing single-agent baselines.

The Challenge of MOSRL

Real-world systems like autonomous vehicle fleets or robot swarms must work together (Multi-Agent Coordination). Furthermore, we often cannot let robots "explore" and crash in the real world; they must learn from pre-existing, static datasets (Offline Learning). Finally, the agents must maximize rewards without exceeding specific "costs," such as avoiding collisions or joint strain (Safety Constraints).

Existing multi-agent methods often suffer from training instability and massive parameter overhead. Conversely, safe RL methods frequently struggle to balance rewards and risks effectively when multiple agents are involved, often leading to overly conservative, suboptimal behaviors.

The MOSDT Architecture

MOSDT builds upon the popular Decision Transformer architecture but introduces three key innovations tailored for multi-agent safety and efficiency:

High-level overview of the MOSDT model, highlighting the Policy Self-Distillation (PSD) and Cost Binary Embedding (CBE) modules.
  • Policy Self-Distillation (PSD): Traditional knowledge distillation involves a two-stage process: training a "teacher" network and then transferring knowledge to a "student." PSD integrates these into one synchronous step. It uses a global information reconstruction scheme that fuses observation features from all agents, streamlining the training process and reducing training time by 24%.
  • Full Parameter Sharing: Unlike many multi-agent systems that assign unique weights to each agent, MOSDT forces all agents to share the same parameters. While seemingly counter-intuitive, this drastically stabilizes training by eliminating the "noise" created by agents learning disparate policies.
  • Cost Binary Embedding (CBE): Most safe RL agents try to hit a specific numerical "cost target," often leading them to "skate on thin ice"—performing just barely safely enough. CBE binarizes cumulative costs into simple "safe" vs. "unsafe" signals and embeds them directly into the return features. This helps the model better understand the correlation between rewards and risks without converging exactly to the safety limit, allowing for more aggressive exploration of high-reward, safe behaviors.

The MOSDB Benchmark Dataset

To evaluate MOSRL systems, the authors introduced MOSDB, the first benchmark dataset for this domain. It contains approximately 20 million data tuples collected from 18 tasks across three diverse environments:

  • MOS Velocity (MuJoCo): Robots coordinating body segments to move quickly under velocity constraints.
  • MOS Goal (Safety Gym): Agents navigating to targets while avoiding hazardous terrain and collisions.
  • MOS Isaac Gym: Collaborative robotic tasks, such as coordinated ball handovers between dual manipulators.

Key Insights & Results

State-of-the-Art Performance: MOSDT achieved state-of-the-art returns in 14 out of 18 tasks on the MOSDB benchmark while maintaining 100% safety (staying strictly under the cost threshold).

The Stability of Sharing: The most surprising finding was the impact of full parameter sharing. In a three-agent MuJoCo task, sharing parameters boosted returns by a staggering 38.4-fold. It also showed 2.3x improvements in 4-agent tasks and up to 5.6x in 6-agent tasks compared to versions without parameter sharing.

Comparison of training and execution parameter counts across different methods and ablations.

Unprecedented Efficiency: As shown above, MOSDT achieves its results with only 65% of the execution parameters (0.47M) of CDT (0.72M), a state-of-the-art single-agent baseline. Compared to a multi-agent setup without parameter sharing (No PS), MOSDT slashes the execution parameter count by 58%. This makes MOSDT exceptionally well-suited for deployment on hardware with limited memory, such as micro-robots or edge devices.

Limitations and Future Work

While MOSDT represents a significant leap forward, the authors identify a few areas for future improvement:

  • Fixed Thresholds: The current Cost Binary Embedding (CBE) uses a fixed threshold. This might make the model less adaptable if safety requirements change dynamically during execution.
  • Dataset Expansion: While MOSDB is a landmark start, future work will expand it to encompass even more complex, heterogeneous agent environments.

Project Resources: Code, datasets, and full results are available at https://github.com/Lucian1115/MOSDT.git

Summary updated

BibTeX
@inproceedings{xia2025mosdt,
  author = {Yuchen Xia and Yunjian Xu},
  title = {{MOSDT: Self-Distillation-Based Decision Transformer for Multi-Agent Offline Safe Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=SYDmbsqHI0},
}
Figure