Abstract
Generating high-fidelity human motion with fine-grained control remains a significant challenge in computer graphics and AI. We present MSQ (Multi-Scale Quantizer), a novel framework that tokenizes human motion into a hierarchical, multi-scale discrete space across both spatial and temporal dimensions. By decoupling global trajectories from local limb dynamics, MSQ enables seamless motion composition and precise editing without specialized re-training. Our approach achieves state-of-the-art performance on HumanML3D and MotionFix benchmarks, demonstrating superior realism and flexibility.
Introduction
Human motion generation is critical for applications in virtual reality, gaming, and film. Traditional methods often represent motion as a flat sequence of discrete tokens, leading to two primary limitations: scale blindness and rigidity. Scale blindness occurs when models fail to distinguish between high-level semantic patterns (e.g., a walking path) and fine-grained details (e.g., hand gestures). Rigidity refers to the lack of compositional flexibility; current latent spaces are often monolithic, making it difficult to combine parts of different motions (like walking legs with waving arms) without producing artifacts.
The MSQ Framework
MSQ addresses these issues by decomposing motion into a hierarchy of features. Instead of encoding the entire body as a single entity, MSQ employs separate encoders for different body parts and interpolates them at varying frequencies.
As shown in Figure 1, the framework utilizes several key components:
- Spatial-Temporal Decomposition: Motion is broken down into scales. For instance, Scale 1 captures the pelvis trajectory (coarse), while higher scales capture increasingly complex limb dynamics (fine).
- Finite Scalar Quantization (FSQ): To avoid the "codebook collapse" common in standard Vector Quantization (VQ), MSQ uses FSQ to map latent features to a fixed grid, ensuring stable training.
- Residual Learning: MSQ quantizes the residuals between scales, where each subsequent level adds detail to the base motion provided by the previous level.
Flexible Motion Generation and Editing
Once tokenized, a bidirectional Generative Masked Transformer is trained to predict masked tokens. This architecture allows the model to treat various motion tasks as "inpainting" problems.
Figure 4 highlights the flexibility of this approach:
- Zero-Shot Composition: Users can mix tokens from different sources (e.g., a "walking" pelvis with a "waving" upper body). The decoder blends these disparate scales into a coherent motion.
- Trajectory Control: By providing a specific path as Scale 1 tokens and masking others, the model generates realistic movements that follow the prescribed trajectory.
- Text-Based Editing: The model can modify existing motions based on natural language prompts by re-predicting specific tokens while keeping others fixed.
Experimental Results
MSQ was evaluated on major benchmarks including HumanML3D (text-to-motion), MotionFix (motion editing), and HUMANISE (human-scene interaction).
- State-of-the-Art Realism: On HumanML3D, MSQ achieved a best-in-class Frechet Inception Distance (FID) of 0.063, indicating that its generated motions are nearly indistinguishable from real human data distributions.
- Superior Editing: On MotionFix, MSQ reached a retrieval R@1 of 68.18, significantly outperforming previous baselines (62.90).
- Scene Grounding: In HUMANISE tasks, the model showed high precision in placing characters (goal distance of 0.125m), ensuring characters interact accurately with environment objects like chairs or sofas.
Conclusion
MSQ introduces a powerful paradigm for motion generation by treating human movement as a multi-scale, hierarchical structure. While the current manual design of spatial scales and the computational overhead of large token sets present opportunities for future optimization, MSQ's ability to perform seamless, zero-shot composition marks a significant step toward more intuitive and modular animation pipelines.
Summary updated