Abstract
Motion Mamba is a pioneering framework that addresses the computational inefficiencies of Transformer-based diffusion models in human motion generation. By replacing heavy self-attention mechanisms with selective State Space Models (SSMs), the framework introduces Hierarchical Temporal Mamba (HTM) and Bidirectional Spatial Mamba (BSM) blocks. This architecture achieves linear scaling with sequence length, resulting in a 50% improvement in motion quality (FID) and a 4x increase in inference speed compared to previous state-of-the-art models.
Introduction
Generating realistic 3D human motion from text prompts is a critical task for computer animation and robotics. Currently, the field is dominated by Diffusion Models that rely on Transformer backbones. However, Transformers suffer from quadratic complexity ($O(L^2)$), where memory and time requirements grow exponentially with sequence length. This limitation makes the generation of long, complex actions—such as extended dance routines or multi-stage athletic feats—resource-intensive and slow. Motion Mamba aims to overcome this "memory wall" by utilizing a more efficient architectural paradigm that handles long-range dependencies with linear complexity ($O(L)$).
Methods
Motion Mamba is a latent diffusion model built on the Mamba (Selective State Space Model) architecture. To adapt Mamba for 3D skeletal data, the authors developed two specialized components:
- Hierarchical Temporal Mamba (HTM) Block: This component manages the temporal aspect of motion using a symmetric U-Net-style architecture. It performs more processing scans at shallower layers where data is densest and fewer at deeper, compressed layers, ensuring temporal consistency without unnecessary computational overhead.
- Bidirectional Spatial Mamba (BSM) Block: Unlike standard causal Mamba models that only look forward in time, the BSM processes latent pose data in both forward and backward directions. This allows the model to capture the full spatial context of the human skeleton, where joint movements are inter-dependent.
The model operates within a latent space, utilizing a pre-trained Variational Autoencoder (VAE) to compress motion into a compact representation, further accelerating the diffusion process.
Datasets and Evaluation
The model was evaluated on standard benchmarks including HumanML3D and KIT-ML. Additionally, the authors introduced HumanML3D-LS (Long Sequence), a variant specifically filtered for sequences longer than 190 frames to test long-range generation capabilities.
Key Results
Motion Mamba establishes new performance benchmarks for both efficiency and quality:
- Motion Quality: On the HumanML3D dataset, it achieved an FID of 0.281, a significant reduction from the previous state-of-the-art (MLD at 0.473), representing a nearly 50% improvement.
- Inference Speed: The model is 4 times faster than previous leading methods. It generates sequences in approximately 0.058 seconds, compared to 0.217 seconds for MLD.
- Long-Range Performance: Motion Mamba significantly outperformed existing models like MDM and MotionDiffuse on the HumanML3D-LS benchmark, maintaining coherence over extended durations.
Conclusion
Motion Mamba demonstrates that linear-complexity architectures can outperform Transformers in motion generation tasks. By optimizing the "scan" hierarchy and incorporating bidirectionality for spatial structures, the model achieves superior performance and real-time feasibility for long sequences. Future work may involve moving toward a "pure" Mamba architecture that eliminates the remaining Transformer-based attention mixers and exploring more granular environmental constraints.
Summary updated