Abstract
Programmable Motion Generation (PMG) introduces a novel paradigm for human motion control by treating animation as a software engineering problem. By decomposing complex tasks into atomic geometric and physical constraints, PMG enables the generation of highly customized animations without the need for task-specific training data. Leveraging pre-trained Motion Diffusion Models (MDM) and Large Language Models (LLM), the framework optimizes latent noise to satisfy user-defined error functions. Experimental results demonstrate that PMG achieves superior constraint satisfaction, bone integrity, and motion naturalness compared to traditional Inverse Kinematics and existing generative editing tools.
Introduction
Character animation has transitioned from manual keyframing to generative AI models capable of producing motion from text prompts. However, these models typically operate in a "closed-set" environment, excelling at common actions but struggling with specific, complex spatial constraints. For instance, standard models often fail when tasked with keeping a hand at a precise distance from the head or navigating a character through a strictly defined 1x1 meter square.
Traditionally, addressing these requirements necessitated either massive amounts of labeled training data or specialized Inverse Kinematics (IK) systems, which frequently produce jittery or physically implausible movements. PMG addresses this gap in open-set motion control, providing a unified framework to handle an infinite variety of customized constraints.
Methodology
The PMG framework combines the generative "common sense" of AI with the precision of mathematical programming through four key components:
- Atomic Constraint Library: A set of fundamental "building blocks" for motion, including joint distance, velocity, and geometric primitives (e.g., staying on a specific line or plane).
- Motion Programming: These blocks are combined using logical operators (AND, OR, NOT) and inequalities to create a differentiable error function. For example, avoiding a barrier is programmed as an error that increases as a joint approaches a forbidden zone.
- Latent Noise Optimization: Rather than training a new network, PMG utilizes a pre-trained Motion Diffusion Model (MDM). The system takes the model's latent code and uses gradient descent to minimize the programmed error function. This ensures the motion remains natural while strictly adhering to new rules.
- LLM Automation: To enhance usability, Large Language Models (such as GPT-4) can translate text descriptions of tasks into Python code for the error functions automatically.
Evaluation and Results
The researchers evaluated PMG using the HumanML3D dataset as a generative prior and tested it against several "unseen" task categories, including geometric constraints (e.g., balance beams), human-scene navigation, and physics-based balance.
Compared to standard IK and MDM editing tools, PMG demonstrated significant improvements:
- Constraint Satisfaction: PMG achieved a constraint error of 0.012, compared to 0.109 for MDM Edit in head-height tasks.
- Physical Integrity: PMG maintained a lower "Foot Skate" ratio and preserved correct bone lengths (incorrect ratio of 0.051 vs 0.525 for MDM Edit), avoiding the limb-stretching common in inpainting methods.
- LLM Integration: GPT-4 successfully generated error functions for 70% of unique, complex tasks on the first attempt.
Discussion
A core insight of this work is that complex human behaviors can be decomposed into simple spatial relationships. By focusing on these "atoms," the system becomes infinitely extensible. Furthermore, the model exhibited emergent behaviors: when constrained to walk through a narrow gap, the character naturally adjusted its posture (e.g., shrinking shoulders), a behavior not explicitly programmed but emerging as the most natural solution to the geometric constraint.
Conclusion
While PMG offers high precision, the optimization process currently takes several minutes per sequence, making it unsuitable for real-time applications like gaming. Additionally, the current library struggles with periodic or symmetric movements such as rhythmic dancing. Future research will focus on expanding the constraint library to the frequency domain and scaling the system for complex multi-character interactions in large-scale environments.
Summary updated