Abstract: Denoising diffusion models have shown great promise in human motion synthesis conditioned on natural language descriptions. However, integrating spatial constraints, such as pre-defined motion trajectories and obstacles, remains a challenge despite being essential for bridging the gap between isolated human motion and its surrounding environment. To address this issue, we propose Guided Motion Diffusion (GMD), a method that incorporates spatial constraints into the motion generation process. Specifically, we propose an effective feature projection scheme that manipulates motion representation to enhance the coherency between spatial information and local poses. Together with a new imputation formulation, the generated motion can reliably conform to spatial constraints such as global motion trajectories. Furthermore, given sparse spatial constraints (e.g. sparse keyframes), we introduce a new dense guidance approach to turn a sparse signal, which is susceptible to being ignored during the reverse steps, into denser signals to guide the generated motion to the given constraints. Our extensive experiments justify the development of GMD, which achieves a significant improvement over state-of-the-art methods in text-based motion generation while allowing control of the synthesized motions with spatial constraints.
Introduction
Generating realistic human motion from a simple text prompt like "a person dancing" is a feat that AI has recently mastered using Denoising Diffusion Probabilistic Models (DPMs). However, standard models often struggle when required to follow specific spatial constraints, such as dancing along a zig-zag path or navigating around obstacles. These models frequently ignore the path entirely or produce "foot skating" artifacts, where the character’s body moves independently of their feet.
Guided Motion Diffusion (GMD) is a framework designed to bridge the gap between natural language and precise spatial constraints. It enables high-quality human motion generation that follows both text prompts and spatial goals like trajectories, keyframes, and obstacles.
The GMD Architecture
To address the limitations of existing models, GMD utilizes a two-stage pipeline. First, a Trajectory DPM generates a plausible path based on the input. Subsequently, a Motion DPM generates the full-body movement conditioned on that specific path. This separation allows the model to handle the "where to go" logic independently of the "how to move" complexity.
Technical Innovations
The framework introduces three key technical innovations to ensure spatial obedience and motion coherence:
- Emphasis Projection: Standard motion representations are imbalanced; hundreds of values represent local poses, while only a few represent global position. During diffusion, the model often treats these few trajectory values as noise. GMD projects motion data into a new space using a random matrix where trajectory components are scaled up (emphasized), forcing the model to prioritize the global path.
- Dense Signal Propagation: Sparse constraints (e.g., a single keyframe at frame 100) are often ignored by diffusion models because they lack information for the preceding frames. GMD uses the denoiser itself to "spread" the guidance. By backpropagating the gradient of a goal function through the model, a constraint at one point provides a "dense" signal that informs all neighboring frames.
- $\epsilon$-modeling for Trajectories: The authors found that predicting the noise ($\epsilon$) rather than the clean signal ($x_0$) is more effective for trajectory guidance. This prevents the model's inherent bias from "fighting" external spatial constraints during the final stages of generation.
Evaluation and Results
The model was trained and evaluated on HumanML3D, the gold standard for text-to-motion datasets, consisting of over 14,000 motions and 44,000 text descriptions. GMD established a new state-of-the-art across several key metrics:
- Motion Quality: GMD achieved an FID (Fréchet Inception Distance) of 0.212, a significant improvement over the previous state-of-the-art model, MDM (0.556).
- Coherence: The "Foot Skating Ratio" was markedly reduced. Thanks to Emphasis Projection, generated motions "stick" to the ground during trajectory-following tasks rather than sliding.
- Versatility: The system successfully navigates complex tasks, including following arbitrary hand-drawn paths, reaching specific keyframes at precise times, and avoiding obstacles represented as 2D Signed Distance Fields.
Conclusion
While GMD introduces some computational overhead due to its two-stage process and backpropagation-based guidance, it provides a principled solution for character animation and robotics. It ensures that generative models remain creative while strictly adhering to the physical and spatial rules of their environment.
Summary updated