Abstract
This work introduces Mamba Imitation Learning (MaIL), a novel architecture that leverages selective state-space models (SSMs) as a computationally efficient alternative to state-of-the-art Transformer-based policies. While Transformers excel at handling the non-Markovian nature of human demonstrations, they suffer from high data requirements and quadratic computational complexity. MaIL addresses these limitations by utilizing the Mamba backbone and a novel encoder-decoder formalism. Extensive evaluations on the LIBERO benchmark and real-robot experiments demonstrate that MaIL significantly outperforms Transformers in data-scarce scenarios—achieving up to a 30% higher success rate—while maintaining superior robustness to noise and faster inference scaling.
Introduction
Imitation Learning (IL) is a cornerstone of modern robotics, allowing agents to learn complex tasks by observing human demonstrations. However, human behavior is inherently multi-modal and non-Markovian, requiring models that can process long sequences of past observations to predict future actions. Transformers have become the de facto standard for these tasks due to their powerful attention mechanisms.
Despite their success, Transformers face two critical bottlenecks: they are notoriously "data-hungry," often requiring massive datasets to generalize without overfitting, and their self-attention mechanism scales quadratically with sequence length. This paper introduces MaIL, which swaps the Transformer backbone for Mamba, a selective State-Space Model designed for linear scaling and high data efficiency.
Methodology
The core of MaIL is the integration of the Mamba architecture, which uses a selection mechanism to focus on relevant features while ignoring noise in the input stream. Unlike Transformers that look at every part of a sequence equally, Mamba's selective SSM approach allows it to maintain a compressed state that captures essential historical context.
The researchers developed two primary architectural variants:
- Decoder-only Mamba (D-Ma): Processes noised actions and observation features in a single sequence.
- Encoder-Decoder Mamba (ED-Ma): Because Mamba does not natively support cross-attention, the authors introduced Mamba Aggregation. This technique uses learnable variables to align sequences between the encoder (which processes states and language instructions) and the decoder (which generates actions).
MaIL is versatile; it can function as a standalone Behavioral Cloning (BC) policy or serve as the denoiser within a Denoising Diffusion Policy (DDP) to generate smooth, multi-modal trajectories.
Evaluation
The performance of MaIL was rigorously tested across both simulated and physical environments. In simulation, the authors utilized the LIBERO Benchmark, a suite of 130 tasks ranging from spatial manipulation to long-horizon goal following.
Real-world validation was conducted using a 7-DoF Franka Panda robot on tasks including:
- Pick-and-Place: Handling varied objects like bananas and carrots.
- Two-stage Tasks: Sequential manipulation requiring long-term memory.
- Precision Insertion: Placing blocks into a LEGO box.
- Cup Stacking: Testing multi-modal trajectory generation.
Results and Key Insights
MaIL demonstrated several key advantages over traditional Transformer-based policies:
- Superior Data Efficiency: The most striking result occurred in low-data regimes. When trained on only 20% of the available demonstrations, MaIL-based models achieved nearly a 30% improvement in success rates on the LIBERO-Object and LIBERO-90 tasks compared to Transformers.
- Structured Latent Representations: t-SNE visualizations revealed that MaIL creates more distinct and structured latent representations of trajectories. This clarity in the latent space likely contributes to its superior generalization capabilities.
- Robustness to Occlusion: In ablation studies where parts of the camera feed were obscured, MaIL's performance degraded much more gracefully than Transformers, suggesting that Mamba is more effective at filtering essential information from historical context.
- Computational Efficiency: MaIL confirmed Mamba's linear scaling advantages, showing significantly faster inference times as observation history (sequence length) increased.
Conclusion
MaIL presents a compelling alternative to Transformers for imitation learning. By leveraging the selective SSM properties of Mamba, the architecture achieves higher success rates with less data and exhibits greater robustness to environmental noise. While the performance gap narrows as datasets become extremely large, MaIL's efficiency and effectiveness in data-scarce and long-horizon scenarios make it a powerful tool for the next generation of robotic policies. Future work will focus on even longer-horizon tasks where Mamba’s scaling properties can be fully exploited.
Summary updated