Motion Mamba: Efficient and Long Sequence Motion Generation

Zeyu Zhang, Akide Liu, Ian D. Reid, Richard I. Hartley, Bohan Zhuang, Hao Tang

Abstract

Motion Mamba is a novel motion generation framework that replaces traditional Transformer architectures with Selective State Space Models (Mamba). By utilizing hierarchical temporal scanning and bidirectional spatial modeling, the framework achieves a 50% improvement in motion quality (FID) while operating 4x faster than current state-of-the-art diffusion models.

Introduction

Generating realistic 3D human motion from textual descriptions is a fundamental challenge in computer vision and graphics. While Diffusion Models based on Transformers have become the standard, they face significant scalability issues. The quadratic computational complexity $O(L^2)$ of Transformers leads to excessive memory and time requirements as motion sequences grow in length. This limitation hinders the generation of long, complex animations such as multi-stage dances or extended athletic maneuvers.

Motion Mamba generates complex trajectories like S-shapes and turns from text prompts.

Methodology

Motion Mamba addresses these efficiency gaps by adopting a Latent Diffusion Model (LDM) framework powered by Mamba, which offers linear scaling $O(L)$. The architecture introduces two specialized components to adapt the 1D Mamba operator for 3D motion:

  1. Hierarchical Temporal Mamba (HTM): This symmetric U-Net-like structure employs varying scan densities. Outer layers use more scans to capture fine-grained frame-to-frame details, while inner layers use fewer scans to model global motion context.
  2. Bidirectional Spatial Mamba (BSM): To ensure anatomical consistency, BSM processes latent dimensions bidirectionally. This allows the model to capture non-causal spatial relationships between different parts of the human skeleton, ensuring poses remain anatomically plausible.

The system integrates text embeddings from a frozen CLIP model using a transformer-based "Mixer" block at the center of the architecture to fuse textual conditions with motion features.

Experimental Results

The model was evaluated on HumanML3D and KIT-ML benchmarks, as well as a new long-sequence variant introduced by the authors, HumanML3D-LS (sequences longer than 190 frames).

Performance and Efficiency

Motion Mamba demonstrates superior performance in both quality and speed. On the HumanML3D dataset, it achieved a Fréchet Inception Distance (FID) of 0.281, significantly outperforming the previous state-of-the-art (MLD at 0.473). Furthermore, the inference speed is approximately 4x faster, reducing the average time per sequence from 0.217 seconds to 0.058 seconds.

Quantitative comparison of FID and inference time against other state-of-the-art methods.

Long Sequence Generation

In tests on the HumanML3D-LS dataset, Motion Mamba maintained high accuracy and diversity where Transformer-based models struggled with memory overhead and quality degradation. This confirms the effectiveness of the linear-complexity Mamba operator for extended temporal dependencies.

Conclusion

Motion Mamba represents a significant shift in motion generation, proving that Selective State Space Models can replace Transformers to achieve better quality and higher efficiency. While the model currently relies on a hybrid design for text fusion and a pre-trained VAE, future work may explore "pure" Mamba architectures to further optimize the pipeline.

Summary updated

BibTeX
@inproceedings{zhang2024motion,
  author = {Zeyu Zhang and Akide Liu and Ian D. Reid and Richard I. Hartley and Bohan Zhuang and Hao Tang},
  title = {{Motion Mamba: Efficient and Long Sequence Motion Generation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73232-4\_15},
}
Figure