Skip to main content
QUICK REVIEW

[Paper Review] MaIL: Improving Imitation Learning with Mamba

Xiaogang Jia, Qian Wang|arXiv (Cornell University)|Jun 12, 2024
Tactile and Sensory InteractionsNeuroscience3 citations
TL;DR

MaIL proposes a novel imitation learning architecture that replaces Transformer backbones with Mamba, a selective state space model, to achieve superior performance with reduced computational cost. By adapting Mamba to an encoder-decoder structure, MaIL outperforms Transformer-based policies on the LIBERO benchmark and real-robot tasks, especially with small datasets and noisy inputs.

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.

Motivation & Objective

  • Address the high computational cost and training difficulty of large Transformer-based policies in imitation learning.
  • Leverage the efficiency and long-sequence modeling capability of Mamba, a selective state space model, to improve training and inference efficiency.
  • Enable effective sequence modeling in imitation learning by adapting Mamba to an encoder-decoder architecture for multi-modal inputs.
  • Demonstrate that Mamba-based policies can surpass Transformers in performance, especially under data-scarce and noisy conditions.
  • Validate the proposed architecture on both benchmark environments and real-robot deployments to ensure practical applicability.

Proposed method

  • Adopt Mamba as the backbone for imitation learning, replacing Transformer-based policies to improve computational efficiency.
  • Design a novel formalism to extend Mamba to an encoder-decoder structure by introducing learnable embeddings for actions, states, and time steps.
  • Integrate the Mamba-based policy into a diffusion process as a denoising head, enabling it to predict denoised actions from noisy observations.
  • Train the model using a sequence modeling objective that processes observation features, time embeddings, and action sequences in a causal manner.
  • Use multi-modal inputs—such as images and language embeddings—by fusing them into the input sequence before processing with Mamba.
  • Apply the model in both standalone policy and diffusion-based settings, enabling flexibility in deployment and integration.
Figure 1: D-Ma: Mamba denoising architecture integrates ResNet-18 for state encoding and an action encoder for action encoding. The state sequence has a length of $K$ , while the action sequence at diffusion step $t$ has a length of $J$ . Before feeding the inputs into the Mamba module, positional e
Figure 1: D-Ma: Mamba denoising architecture integrates ResNet-18 for state encoding and an action encoder for action encoding. The state sequence has a length of $K$ , while the action sequence at diffusion step $t$ has a length of $J$ . Before feeding the inputs into the Mamba module, positional e

Experimental results

Research questions

  • RQ1Can Mamba-based models outperform Transformer-based policies in imitation learning while maintaining or improving inference efficiency?
  • RQ2How well does the proposed encoder-decoder adaptation of Mamba generalize to multi-modal observation inputs such as vision and language?
  • RQ3Does the Mamba-based policy maintain strong performance under data-scarce and noisy input conditions compared to Transformers?
  • RQ4Can the Mamba-based policy be effectively integrated into diffusion-based policy learning frameworks, such as Denoising Diffusion Policies?
  • RQ5What is the performance gap between Mamba and Transformers when training and inference costs are considered across different dataset sizes?

Key findings

  • MaIL outperforms Transformer-based policies on all 15 tasks in the LIBERO benchmark, achieving higher success rates across pick-place, two-stage pick-place, inserting, and cup-stacking tasks.
  • On the pick-place task, MaIL achieved a success rate of 0.55 for banana placement and 0.70 for carrot placement, surpassing the Transformer baseline of 0.45 and 0.25, respectively.
  • In the two-stage pick-place task, MaIL achieved a success rate of 0.45, compared to 0.20 for the Transformer, demonstrating superior performance on complex, sequential manipulation.
  • For the inserting task, MaIL achieved a 0.55 success rate in stage 1 and 0.20 in stage 2, outperforming the Transformer’s 0.40 and 0.30, respectively.
  • In cup-stacking, MaIL achieved 0.80 success rate in stage 1 and 0.55 in stage 2, exceeding the Transformer’s 0.60 and 0.40, respectively.
  • MaIL demonstrated robustness to input noise and generalization to unseen object orientations, particularly excelling in low-data regimes where Transformers underperform.
Figure 2: ED-Ma: Different from the D-Ma model, ED-Ma contains a Mamba encoder which is used to process the time embedding and state embedding, and a Mamba decoder which is used to process the noisy actions. In order to aggregate the information from encoder and decoder, learnable action variables a
Figure 2: ED-Ma: Different from the D-Ma model, ED-Ma contains a Mamba encoder which is used to process the time embedding and state embedding, and a Mamba decoder which is used to process the noisy actions. In order to aggregate the information from encoder and decoder, learnable action variables a

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.