Generative Motion Infilling From Imprecisely Timed Keyframes

Purvi Goel, Haotian Zhang, Karen Liu, Kayvon Fatahalian · DOI · OpenReview

TL;DR

This paper introduces a novel generative motion in-betweening system that can produce realistic animations even when the input keyframes are imprecisely timed. By learning to predict both a global time-warping function and spatial pose residuals, their method allows animators to focus on the poses themselves, rather than the tedious task of perfect temporal alignment, leading to more flexible and intuitive animation workflows.

What Problem Does This Paper Address?

Creating realistic animations often involves defining key poses at specific points in time. However, precisely timing these keyframes is a notoriously difficult and time-consuming task for animators, even experienced ones. Existing motion in-betweening methods typically assume these keyframes are perfectly timed. When they aren't, these methods can produce unnatural motion, such as characters moving too fast between poses, or even fail to reach the intended key poses. This paper addresses this gap by developing a system that can automatically adjust the timing of imprecisely specified keyframes, making the animation process more forgiving and accessible.

Methods

The core of the proposed solution is a conditional diffusion model with a novel dual-headed architecture. This model takes an "observation signal" X (which includes the imprecisely timed keyframes and potentially some existing motion context) and generates a high-fidelity motion sequence Y.

The key innovations are:

  • Time-Warping Function: The model explicitly learns a global time-warping function. This function effectively "stretches" or "compresses" the timeline of the input constraints to achieve plausible timing. This is a significant departure from previous methods that treated timing as a hard constraint.
  • Pose Residuals: In addition to timing, the model also predicts spatial residuals. These residuals add fine-grained pose details and sub-movements that might be missing from the sparse keyframes, enriching the generated motion.
  • Data Generation: To train this model, they developed a scheme to synthetically create imprecisely timed keyframes from existing high-quality motion data. This involves identifying extreme poses in motion clips and then artificially shifting their timing by a small random amount.

The diffusion model's architecture uses a transformer decoder to process the input signal and timestep information. This decoder's output is then fed into two separate heads: one for predicting the time-warp and another for predicting the pose residuals. The final motion is generated by applying the predicted time-warp to the input constraints and then adding the predicted pose residuals.

Datasets

The authors utilized the HumanML3D dataset for training and evaluation. They also introduced a novel dataset generation scheme that creates pairs of imprecisely timed keyframes and corresponding detailed motion sequences. This synthetic dataset is crucial for training their model to handle the core problem of mistimed constraints.

Key Insights and Ideas

  • Timing is a Loose Constraint: The fundamental insight is that for practical animation, keyframe timing should be treated as a flexible constraint, not a rigid one. This allows for more creative freedom and reduces the burden on animators.
  • Decoupling Timing and Pose: By explicitly predicting a time-warp function and separate pose residuals, the model can address timing inaccuracies without sacrificing the integrity of the carefully crafted key poses.
  • Generative Diversity: Treating timing as a loose constraint naturally leads to more diverse motion outputs for the same set of keyframes, as the model can explore various plausible temporal arrangements.
  • Data Generation is Key: The success of the method hinges on their ability to generate realistic training data that mimics the real-world challenge of imprecisely timed keyframes.

Key Results

The proposed method, termed "LT" (Loose-Timing), demonstrated superior performance across several metrics compared to baselines.

  • Reconstruction Accuracy: LT achieved higher scores in global and local position, velocity, acceleration, and jerk metrics, indicating that it generates motions that are more faithful to the dynamics and timing of the ground truth. For instance, it achieved the lowest jitter among all baselines.
  • Keypose Error (KPE): Despite its ability to adjust timing, LT maintained a low keypose error, meaning the generated motion still accurately reached the specified key poses.
  • Diversity: LT showed a significant increase in motion diversity compared to some baselines, suggesting its flexibility in generating varied outputs.
  • Qualitative Results: Visualizations and videos (referenced in the paper) showcase the system's ability to produce smooth, realistic animations from imprecisely timed inputs, handling scenarios like martial arts and dance with plausible timing and detail.

Limitations and Future Work

The authors acknowledge several limitations:

  • Physical Accuracy: The generated motions are not guaranteed to be physically accurate, and slight limb intersections might occur. They suggest physics-based post-processing as a future direction.
  • Fine-Grained Control: The current system doesn't offer fine-grained control over loose timing constraints (e.g., specifying a maximum allowable shift for a keyframe) or the ability to change the overall motion length dynamically.
  • Combined Constraints: Future work could explore incorporating a mix of "loose" and "hard" timing constraints within the same animation.

They view these as exciting avenues for future research to further enhance the flexibility and control offered by their system.

Summary updated

BibTeX
@article{goel2025generative,
  author = {Purvi Goel and Haotian Zhang and Karen Liu and Kayvon Fatahalian},
  title = {{Generative Motion Infilling From Imprecisely Timed Keyframes}},
  journal = {Computer Graphics Forum},
  year = {2025},
  doi = {10.1111/cgf.70060},
}
Figure