TL;DR
InterMask is a novel generative framework designed to create realistic 3D human-human interactions from textual descriptions. By treating motion as a 2D grid of discrete tokens and utilizing collaborative masked modeling instead of traditional diffusion, InterMask achieves state-of-the-art realism and spatial coordination. It is also significantly faster and more lightweight than previous models.
The Challenge of Generating Interactions
Generating a single person’s motion (e.g., "a person walking") is a well-studied problem. However, generating interactions between two people—such as "boxing" or "sneaking up from behind"—introduces intense spatio-temporal interdependence. One person’s movement relies entirely on the other’s position, timing, and orientation.
Most existing methods rely on diffusion models, which can be computationally expensive and often struggle with "spatial awareness." This results in interactions where people do not quite line up or their movements feel disconnected. Furthermore, these models typically treat motion as a simple 1D sequence, losing the fine-grained spatial details necessary for close-contact interactions.
Methods: A Shift to Discrete Masked Modeling
The authors introduce InterMask, a two-stage framework that moves away from continuous diffusion toward discrete masked modeling.
- 2D Discrete Motion Token Map (VQ-VAE): Instead of the standard approach of squashing a human pose into a 1D vector, InterMask uses a VQ-VAE to encode motion into a 2D grid. One dimension represents time, while the other represents different body parts (spatial). This 2D representation ensures that each "token" preserves local spatial context, which is crucial for better relative positioning.
- Inter-M Transformer: This specialized transformer models the tokens of both individuals simultaneously using a trio of attention mechanisms:
- Self-Attention: Captures global context across the entire sequence.
- Spatio-Temporal Attention: Captures how an individual's body parts move relative to each other over time.
- Cross-Attention: Models the dependencies between the two people (e.g., how a punch from person A triggers a dodge from person B).
- Collaborative Masked Modeling: During training, the model learns to predict "masked" (hidden) tokens based on the surrounding context of both people. At inference, it starts with a completely blank (masked) slate and progressively fills in the most confident tokens over several iterations.
Key Insights
- 2D Outperforms 1D: The shift from 1D temporal tokens to 2D spatio-temporal tokens allows the model to "understand" which tokens represent hands versus feet, making tasks like "holding hands" or "kicking" much more precise.
- Masked Modeling vs. Diffusion: By using a bidirectional transformer to fill in masks, the model can look at the "future" and "past" of both participants simultaneously. This leads to better synchronization than autoregressive models or diffusion models, which can be prone to drift.
- Zero-Shot Reaction Generation: Because the model is trained to predict masked tokens, users can "lock" one person's motion and mask the other's. The model then generates a "reaction" to the first person's movement without needing any extra fine-tuning or architectural changes.
Key Results
InterMask sets a new bar for performance across several metrics on the InterHuman and InterX datasets:
- State-of-the-Art Fidelity: It achieved an FID of 5.154 on InterHuman (beating in2IN's 5.535) and a staggering 0.399 on InterX (outperforming InterGen's 5.207).
- User Preference: In a blind study, human participants preferred InterMask’s generations 69.14% of the time over the previous leading model, citing better interaction quality and text adherence.
- Efficiency: The model is highly optimized. It has only 74M parameters (vs. InterGen’s 182M) and generates interactions in 0.77 seconds, making it more than twice as fast as its predecessors.
Limitations and Future Work
Despite the high quality, the authors note a few remaining challenges:
- Body Penetration: When converting the skeletal output to a full 3D mesh (SMPL), the characters sometimes clip through each other in close-contact scenarios.
- Dataset Bias: The model occasionally defaults to "dancing" motions even when not prompted, likely due to the high volume of dance data in the training sets.
- Sequence Length: The current version is optimized for short bursts (up to 10 seconds). Scaling this to long-form choreography remains a future challenge.
Future iterations may incorporate "anti-penetration" losses and train directly on 3D meshes rather than skeletons to solve clipping issues.
Summary updated