InterMamba: Efficient Human-Human Interaction Generation With Adaptive Spatio-Temporal Mamba

Zizhao Wu, Yingying Sun, Yiming Chen, Xiaoling Gu, Ruyu Liu, Jiazhou Chen

TL;DR

InterMamba is the first framework to adapt the Mamba architecture (Structured State Space Models) for generating realistic 3D human-human interactions from text. By replacing computationally expensive Transformers with a novel adaptive spatio-temporal design, it achieves state-of-the-art synthesis quality while being nearly 3x faster and using only 36% of the parameters of previous leading models.

What Problem Does This Paper Address?

Generating 3D animations of two people interacting (e.g., hugging, dancing, or fighting) based on a text prompt is a massive challenge in computer vision and graphics. To look "right," the model must simultaneously handle:

  1. Temporal Dynamics: How an individual's body moves over time.
  2. Spatial Relationships: How joints within one body relate to each other.
  3. Inter-person Coordination: How the movements of Person A respond to and influence Person B.

Until now, the field has been dominated by Transformers. While powerful, Transformers suffer from quadratic complexity—as the motion sequence gets longer, the computational cost explodes. This makes real-time feedback and long-duration synthesis difficult. The authors seek a way to maintain the high fidelity of Transformers with the linear efficiency of the emerging Mamba (SSM) architecture.

Methods

The core innovation is the Adaptive Spatio-Temporal Mamba (ASTM) framework. Since standard Mamba is designed for 1D sequences (like text), the authors had to re-engineer it for 3D motion:

  • Parallel Spatio-Temporal Branches: Instead of one sequence, ASTM uses two parallel branches. One captures spatial dependencies (how joints relate within a single frame), and the other captures temporal dependencies (how poses evolve across frames).
  • Adaptive Fusion: Rather than just adding these features together, the model uses learnable weights to dynamically balance the importance of spatial vs. temporal information during the generation process.
  • Self-ASTM vs. Cross-ASTM:
    • Self-ASTM blocks process each person's motion independently to capture their individual "style" and logic.
  • Cross-ASTM blocks use a Mixed State Space Model (MSSM) to allow Person A's features to be conditioned on Person B's features, ensuring they stay synchronized.
  • LIIA (Local Interaction Information Aggregation): A specialized module that uses convolutions to fuse the features of both actors, providing the "context" needed for the Cross-ASTM to coordinate their movements.

The entire system is wrapped in a Diffusion framework, where the Mamba-based architecture acts as the "denoiser" that turns random noise into structured motion.

Datasets

The authors evaluated InterMamba on two primary benchmarks:

  • InterHuman: A large-scale dataset containing over 6,000 motion sequences and 16,000+ natural language descriptions of human-human interactions.
  • InterX: A dataset focusing on versatile interactions, utilizing the SMPL-X body model which includes detailed joint data for the face, body, and hands (11,000 sequences).

Key Insights and Ideas

  • Linear Scaling is the Future: By moving away from Transformers, the authors prove that 3D interaction modeling doesn't require quadratic complexity. This opens the door for generating much longer, more complex scenes (like a 2-minute dance) that would crash a Transformer-based system.
  • Decoupling Space and Time: One of the "aha" moments is that processing joints (space) and frames (time) in separate Mamba branches is more effective than trying to flatten them into a single long sequence.
  • Interaction as Conditioning: The "Mixed SSM" approach shows that Mamba can handle complex cross-sequence dependencies—a task previously thought to be the exclusive domain of Transformer cross-attention.

Key Results

InterMamba sets a new bar for efficiency and quality:

  • Speed: It achieves an average inference time of 0.57 seconds, which is 46% of the time required by the previous baseline, InterGen.
  • Model Size: It uses only 66M parameters (in its "UltraLight" version), which is just 36% of the size of InterGen.
  • Accuracy: On the InterHuman dataset, it achieved an R-Precision (Top-1) of 0.475, outperforming all existing baselines (the next best was 0.425).
  • Qualitative Superiority: Visual results show that InterMamba is significantly better at preventing "clipping" (limbs passing through the other person) and maintaining realistic foot contact with the ground compared to Transformer models.

Limitations and Future Work

  • The Diffusion Bottleneck: While the Mamba backbone is incredibly fast, the model still relies on a multi-step diffusion process (50 steps of denoising). The authors suggest exploring "one-step" models or flow-based approaches to reach true real-time speeds.
  • Subtle Realism: The generated motions can still lack fine-grained emotional nuance or perfect physical realism (like muscle bulging or complex cloth interaction).
  • Multi-Agent Scaling: The current work focuses on two-person interactions. Scaling this to a "crowd" or a party scene with 5+ people remains a future challenge.

Summary updated

BibTeX
@article{wu2026intermamba,
  author = {Zizhao Wu and Yingying Sun and Yiming Chen and Xiaoling Gu and Ruyu Liu and Jiazhou Chen},
  title = {{InterMamba: Efficient Human-Human Interaction Generation With Adaptive Spatio-Temporal Mamba}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2026},
  doi = {10.1109/tvcg.2025.3635116},
}
Figure