MaIL: Improving Imitation Learning with Mamba
Xiaogang Jia, Qian Wang, Atalay Donat, Bowen Xing, Ge Li, Hongyi Zhou, Onur Celik, Denis Blessing, Rudolf Lioutikov, Gerhard Neumann
TL;DR
MaIL introduces a Mamba-based imitation learning framework that replaces transformer backbones with selective state-space models to improve data efficiency and generalization in sequential robot tasks. By developing decoder-only (D-Ma) and encoder-decoder (ED-Ma) variants, including a novel Mamba Aggregation for cross-branch processing, the approach achieves superior or on-par performance with limited demonstrations on LIBERO benchmarks and in real-world robot experiments. The results demonstrate robustness to occlusions, stronger utilization of historical and multi-modal inputs (e.g., language), and strong scalability under data-scarce conditions, while remaining competitive when full data are available. These findings suggest MaIL as a practical, efficient alternative to transformer-based IL for robotics, with demonstrated applicability to diffusion-based policies and multi-modal sensing.
Abstract
This work presents Mamba Imitation Learning (MaIL), a novel imitation learning (IL) architecture that provides an alternative to state-of-the-art (SoTA) Transformer-based policies. MaIL leverages Mamba, a state-space model designed to selectively focus on key features of the data. While Transformers are highly effective in data-rich environments due to their dense attention mechanisms, they can struggle with smaller datasets, often leading to overfitting or suboptimal representation learning. In contrast, Mamba's architecture enhances representation learning efficiency by focusing on key features and reducing model complexity. This approach mitigates overfitting and enhances generalization, even when working with limited data. Extensive evaluations on the LIBERO benchmark demonstrate that MaIL consistently outperforms Transformers on all LIBERO tasks with limited data and matches their performance when the full dataset is available. Additionally, MaIL's effectiveness is validated through its superior performance in three real robot experiments. Our code is available at https://github.com/ALRhub/MaIL.
