arXiv:2609.03667cs.LGSep 2026

Manuscript Offprint

arXiv:2609.03667

Out-of-Distribution Generalisation with Sequence Models in Offline Multi-Agent Reinforcement Learning

Oussama Hidaoui, Omer Ebead, Ulrich Armel Mbou Sob, Siddarth Singh, Juan Claude Formanek, Felix Chalumeau, Omayma Mahjoub, Sasha Abramowitz, Ruan John de Kock, Wiem Khlifi, Louay Ben Nessir, Simon Verster Du Toit, Daniel Rajaonarivonivelomanantsoa, Asim Awad Osman, Arnol Manuel Fokam, Refiloe Shabe, Arnu Pretorius

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Oussama Hidaoui1,2∗^{1,2*} Omer Ebead1,2∗^{1,2*} Ulrich Mbou Sob1∗^{1*} Siddarth Singh1∗^{1*} Claude Formanek1∗^{1*} Felix Chalumeau1^{1} Omayma Mahjoub1^{1} Sasha Abramowitz1^{1} Ruan John de Kock1^{1} Wiem Khlifi1^{1} Louay Ben Nessir1^{1} Simon Verster Du Toit1^{1} Daniel Rajaonarivonivelomanantsoa1,3^{1,3} Asim Awad Osman1,2^{1,2} Arnol Manuel Fokam1^{1} Refiloe Shabe1^{1} Arnu Pretorius1^{1}

1^{1} InstaDeep 2^{2} AIMS 3^{3} Stellenbosch University

∗^{*} Equal contribution Corresponding author: u.mbousob@instadeep.com

ABSTRACT

Generalising to unseen tasks remains a fundamental challenge in offline multi-agent reinforcement learning (MARL). In this work, we present a principled analysis of zero-shot task generalisation in the offline setting and conduct an extensive empirical investigation into the scaling behaviour governing task diversity, dataset size, and network capacity. To facilitate this study, we extend offline sequence modelling architectures to handle multi-task observation and action spaces alongside variable agent counts across tasks. Our primary finding is that scaling task diversity—rather than sheer dataset size—is the dominant factor in achieving robust zero-shot transfer. Through large-scale experiments across four challenging environments (Connector, RWARE, SMAX, and LBF), we demonstrate that our multi-task approach achieves a mean improvement of 3.2x on held-out test tasks compared to single-task models and consistently outperforms strong behaviour cloning baselines. These results suggest that the development of generalisable MARL agents should prioritise the diversity of the training distribution with varying numbers of agents, providing a roadmap for scaling offline MARL effectively.

Figure

Figure 1: Test task performance difference between single-task and multi-task sequence models. Three multi-agent sequence models—CQL-Sable, BC-Sable and Oryx (Formanek et al., 2025)—were trained using either a single task (ST) or a set of multiple training tasks (MT). Average zero-shot performance was measured across a held-out set of test tasks. The upper bar represents the performance gap between ST and MT sequence models on unseen test tasks. Averaged across all three algorithms, we observe a test performance increase of approximately 5.4x on RWARE, 1.3x on LBF, 2.9x on Connector and 3.2x on SMAX.

Preprint.

1 INTRODUCTION

Building agents that generalise to tasks beyond those present in their training data is a central challenge in reinforcement learning (RL), and a prerequisite for deploying agents in the real world (Kirk et al., 2023). In many domains, collecting fresh data online by interacting with a live system is costly or risky, so practitioners turn to offline RL from logged trajectories (Levine et al., 2020). While single-agent work has studied the train-test generalisation gap (Mediratta et al., 2024), the multi-agent case remains under-explored. Despite recent progress in offline multi-agent reinforcement learning (MARL) (Yang et al., 2021b; Shao et al., 2023; Meng et al., 2023; Li et al., 2025; Formanek et al., 2025), prior work have largely been restricted to training and evaluating on the same task, without examining generalisation to unseen tasks.

In this work, we study the generalisation of single-task models, and then introduce a challenging multi-task benchmark for offline MARL, which builds on widely adopted MARL environments including Level Based Foraging (LBF), Multi-Robot Warehouse (RWARE) (Papoudakis et al., 2021), Connector (Bonnet et al., 2024) and SMAX (Rutherford et al., 2024). Using this benchmark, we evaluate three state-of-the-art offline multi-agent sequence models, namely Oryx (Formanek et al., 2025), and two offline versions of Sable (Mahjoub et al., 2025) (CQL-Sable and BC-Sable). Across all four environments, we show that these models exhibit poor generalisation when trained only on a dataset from a single task. However, when trained simultaneously on a dataset consisting of a diverse set of multiple tasks, their ability to zero-shot transfer to unseen tasks significantly improves. Furthermore, we verify that similar results cannot be obtained by simply increasing the size of the dataset for a fixed number of tasks, but rather that the key driver is increasing dataset diversity by adding more tasks, which consistently leads to improved test performance. Finally, we find that for a fixed data budget, increasing the model's capacity has a positive impact on generalisation for challenging tasks.

Our findings show that offline MARL sequence models trained on diverse multi-task datasets exhibit promising generalisation to unseen tasks compared to single-task alternatives. In contrast to the findings of Mediratta et al. (2024), we observe that offline sequence models consistently outperform behaviour cloning, which remains a surprisingly strong baseline. Finally, our work provides the first promising evidence of performance scaling (Hilton et al., 2023) with increasing model capacity for offline MARL on challenging unseen tasks.

In summary, our main contributions are as follows:

  • We develop a challenging multi-task offline MARL evaluation suite, which includes 28 large training sets and 34 test sets across four diverse environments, including LBF, Connector, RWARE and SMAX.
  • We conduct an in-depth empirical analysis of out-of-distribution generalisation as a function of task diversity, data and model size, showing that zero-shot generalisation of sequence models scales significantly (3.2x on average) as the number of tasks in the training data increases, that sheer dataset size is not the main driver of test performance, and that for difficult tasks, model scaling positively affects generalisation.
  • We provide a theoretical analysis of generalisation in offline multi-task MARL, establishing task coverage to be a key driver of out-of-distribution performance gains, formally grounding our empirical findings on the roles of task diversity and model capacity.
  • All of our (anonymised) code is available for download.¹ We will make all of our code and datasets publicly available upon publication.

References (85)