Introduction: The Controllability Gap
Text-to-motion synthesis has seen significant advancements with models like MDM and MLD. However, these systems often act as "black boxes" for professional animators who require precise control over specific postures. A common failure mode occurs when a model prioritizes one part of a prompt over another—for instance, generating a swimming motion while ignoring the constraint to remain "standing."
Previous attempts to solve this by injecting keyframes at inference time often result in jittery or physically implausible transitions because the underlying model was never trained to respect these anchors. DiffKFC (KeyFrames Collaborated) addresses this by introducing a dual-level control framework that integrates high-level semantic text prompts with fine-grained, sparse keyframe constraints during the training phase.
Methodology: DiffKFC and Dilated Mask Attention
The core of DiffKFC is a conditional diffusion model designed to process multi-modal inputs simultaneously. Unlike standard models, DiffKFC is trained on sequences where only a small fraction (typically 5%) of frames are provided as keyframes, forcing the model to learn the relationship between text, specific poses, and the motion that connects them.
Dilated Mask Attention (DMA)
A major technical hurdle in sparse keyframe control is that the few valid pose tokens are often overwhelmed by noise in the attention mechanism. To combat this, the authors developed the Dilated Mask Attention (DMA) module. DMA employs a "valid-token-dilation" strategy: it initially restricts attention to valid keyframes and their immediate temporal neighbors, gradually expanding this "valid" region across successive layers. This ensures that keyframe information propagates effectively and smoothly throughout the entire sequence.
Temporal Smoothness and Guidance
To ensure physical realism, DiffKFC incorporates a temporal smoothness prior during inference using the Discrete Cosine Transform (DCT). This steers the denoising process toward mathematically smooth transitions, preventing the "pops" often seen in naive editing methods. Additionally, an extended classifier-free guidance mechanism allows users to manually balance the influence of the text prompt against the keyframe constraints.
Experimental Results
DiffKFC was evaluated on the HumanML3D and KIT Motion-Language benchmarks, where it established a new state-of-the-art (SOTA) in motion quality and precision:
- Motion Quality (FID): On HumanML3D, DiffKFC achieved an FID of 0.111, a 41.6% improvement over previous SOTA methods like PhysDiff (0.433).
- Precision: The model significantly outperformed inpainting and gradient-based editing in Average Displacement Error (ADE), demonstrating that it hits keyframe targets with high accuracy.
- Efficiency: The system remains robust even with keyframe densities as low as 2%, drastically reducing the manual effort required from animators.
Conclusion
DiffKFC bridges the gap between semantic intent and structural precision in human motion synthesis. By treating keyframe constraints as a fundamental part of the training process rather than an inference-time correction, and by utilizing the Dilated Mask Attention mechanism, the model provides a powerful tool for fine-grained, controllable animation. Future work will look toward extending this control to multi-person interactions and adaptive keyframe selection.
Summary updated