Abstract
Offline Multi-agent Reinforcement Learning (MARL) faces significant challenges due to distributional shifts and the presence of multimodal behaviors in expert datasets. Standard factorization methods often fail to capture the dependencies between agents, leading to miscoordinated out-of-distribution actions. We present Offline MARL with Sequential Score Decomposition (OMSD), a framework that leverages diffusion-based score functions and sequential modeling to ensure agent coordination. By decomposing the joint policy into a sequence of conditional scores, OMSD effectively captures complex multimodal distributions. Experimental results across Multi-Particle Environments and Multi-Agent MuJoCo demonstrate a 33% performance improvement over existing baselines, particularly in suboptimal and diverse data regimes.
Introduction
Reinforcement Learning (RL) typically relies on extensive environmental interaction. In contrast, Offline RL learns from fixed datasets, avoiding the costs and risks of online exploration. However, applying this to multi-agent systems (MARL) introduces the "Infactorization Trap." When expert data contains multiple valid strategies (multimodality), independent agent learning can lead to "chimeric" joint actions that were never present in the training data.
The Challenge of Multimodality in Offline MARL
In many collaborative tasks, multiple optimal strategies exist. For instance, in a scenario where two agents must collect apples from two different trees, "both go left" and "both go right" are both expert behaviors.
Standard MARL algorithms often rely on the Individual-Global-Optimal (IGO) assumption, which assumes the joint strategy can be factorized into independent components. In multimodal offline data, this assumption fails. If Agent A chooses the "left" mode and Agent B chooses the "right" mode independently, they fail to coordinate. As the number of agents $n$ increases, an independent model can theoretically generate $2^n$ modes, most of which are non-functional out-of-distribution (OOD) states.
Methodology: Sequential Score Decomposition (OMSD)
To address these coordination failures, we propose OMSD, which replaces simple policy factorization with sequential modeling and diffusion-based scores.
1. Sequential Modeling
Instead of treating agents as independent, OMSD models the joint behavior distribution as a sequence: $p(a_1, a_2, \dots, a_n) = p(a_1) \prod_{i=2}^n p(a_i | a_{<i})$. This structure explicitly captures the dependencies required for coordination (e.g., "if Agent 1 goes left, Agent 2 must also go left").
2. Diffusion-Based Score Functions
We utilize Diffusion Models to learn the score functions—the gradients of the log-probability of actions. Diffusion models are uniquely suited for capturing the complex, non-Gaussian, and multimodal distributions found in offline datasets.
3. Score-Based Regularization
During training, agents are guided by two primary signals:
- Top-down signal: A centralized Q-critic provides gradients toward high-reward actions.
- Bottom-up signal: The learned diffusion score keeps agents within the data distribution and aligned with the specific strategy mode selected by preceding agents in the sequence.
4. Deterministic Execution
To overcome the high inference latency of standard diffusion sampling, OMSD employs deterministic "DiLac" policies. This allows the agents to benefit from the representational power of diffusion during training while maintaining the speed necessary for real-time execution.
Experimental Evaluation
We evaluated OMSD on two major benchmarks:
- Multi-Particle Environment (MPE): Tasks including Cooperative Navigation and Predator-Prey.
- Multi-Agent MuJoCo (MaMuJoCo): Specifically the 2-agent HalfCheetah task, requiring precise synchronization of joint controls.
Datasets of varying quality—Expert, Medium, and Random—were used to test the model's robustness to suboptimal and diverse data.
Results and Discussion
OMSD achieves state-of-the-art (SOTA) performance, outperforming baselines like OMAR and MADiff by an average of 33% on MPE tasks.
The framework's strength is most evident in "Medium" and "Random" datasets. In these scenarios, where data is messiest, OMSD successfully identifies and adheres to high-reward modes. Visualizations of the action distributions confirm that OMSD's learned policies remain tightly clustered within the original data distribution, whereas baseline methods often drift into OOD regions.
Conclusion
OMSD provides a robust solution for coordination in offline MARL by moving beyond the limitations of IGO factorization. By combining sequential decomposition with the expressive power of diffusion scores, it ensures agents remain synchronized even in highly multimodal environments. Future work will explore methods to automate agent ordering and improve the scalability of sequential training for larger swarms.
Summary updated