NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unifying Precise Keyframes and Semantic Control via Multi-level Diffusion

Linjun Wu, Jiejia Yu, Leyang Jin, He Wang, Bowen Zheng, Xu Yang, Hao Jiang, Fei Xia, Fei Ling, Jun Deng, Xiaogang JinCVPR 2026

TL;DR

This paper introduces a multi-level diffusion framework for text-conditioned human motion in-betweening that achieves both high-level semantic alignment and strict, pixel-perfect keyframe adherence. By combining local and global keyframe guidance with a novel trajectory refinement strategy, it eliminates common artifacts like foot-skating and spatial drift while enabling seamless, semantics-preserving motion editing.

What Problem Does This Paper Address?

In computer animation, generating realistic human transitions between sparse keyframes guided by natural language prompts—known as text-conditioned motion in-betweening—is a highly desirable but challenging task.

Existing methods suffer from two critical flaws. First, they treat keyframes as "soft" constraints or optimization targets, which leads to noticeable spatial deviations (e.g., feet floating above the ground or hands missing an object grasp). Second, they struggle to coordinate high-level textual semantics (like "walk forward") with the low-level timing and spatial cues implicit in the keyframes, often resulting in physically implausible or redundant actions.

Figure 2. Limitations of previous text-conditioned motion in- betweening methods. The artist specifies the intended motion se- mantics through text and keyframes (orange), with keyframes 2–4 (from right) indicating three distinct stages: “picking up”, “car- rying overhead”, and “walking to the target”. However, existing approaches [9] exhibit two critical limitations: (a) Lacking low- level semantic control, as the generated transition (blue) redun- dantly performs the “picking up” action after the timing set by the keyframe, and fails to maintain the keyframe-specified “carrying overhead” pose while walking. (b) Lacking precise keyframe ad- herence, demonstrated by the generated motion at the constrained frame (pink) deviating significantly from the target.

Methods

The authors propose a multi-level diffusion framework designed to handle both global dynamics and local precision:

  1. Multi-level Guidance Mechanism:
  2. Local Guidance: Frame-level keyframe embeddings are concatenated directly with noisy motion features within a Conv1D U-Net backbone, forcing the model to adaptively smooth out local variations around the keyframes.
  3. Global Guidance: A Keyframe Transformer Encoder processes the sparse keyframe sequence to capture long-range temporal dependencies. This representation is fused with text features via cross-attention to guide the overall motion flow.
  4. Inference Refinement: To guarantee absolute adherence to keyframes without sacrificing realism, the authors introduce a two-step post-processing strategy during the final denoising steps:
  5. Trajectory Refinement: Instead of uniformly distributing root position errors (which causes characters to awkwardly drift while stationary), errors are distributed proportionally to root speed. This preserves the original foot-contact patterns and eliminates foot-skating.
  6. Pose Refinement: Diffusion imputation is applied to ensure the generated poses perfectly match the user-specified keyframes.
  7. Semantics-Preserving Motion Editing: Leveraging the learned diffusion model, the framework supports interactive editing via a training-free invert-and-sample process (using DDIM inversion and fixed-point iteration) to modify specific frames while locking down unmodified segments.
Figure 3. Overview of our text-conditioned motion in-betweening method. Given a text prompt, a set of keyframes, and a keyframe mask, our model generates a motion sequence that aligns with spatio-temporal constraints and motion semantics derived from text and keyframes. The framework consists of four components: (a) Condition Encoding encodes text and keyframe inputs; (b) Local Guidance incorporates keyframe embedding with noisy motion feature to guide local transitions around keyframes; (c) Global Guidance integrates text and keyframe features to modulate global motion dynamics; and (d) Inference Refinement enforces precise spatial adherence through trajectory and pose refinement. Here, (cf) and (ct) denote concatenation along the feature dimension and token dimension, respectively.

Datasets

  • HumanML3D: A large-scale dataset of text-annotated human motions. The authors re-extracted the motions in SMPL-X format, resampled them to 30 FPS, and retained sequences ranging from 2 to 10 seconds (60–300 frames), utilizing a 22-joint skeleton representation.

Key Insights and Ideas

  • Hard Constraints are Mandatory for Animation: While soft constraints work well for general generative tasks, animation requires exact precision. Even a 1 cm deviation can ruin visual realism by causing a character to clip through geometry.
  • Speed-Proportional Error Distribution: The "aha moment" for fixing trajectory drift lies in root speed proportionality. If a character is supposed to be sitting down or standing still, their root speed is near zero, meaning they should receive zero positional adjustment during trajectory correction.
  • Keyframes Contain Implicit Semantics: Keyframes are more than just spatial coordinates; their sequence inherently dictates timing and pacing. Processing them through a Transformer encoder allows the model to extract these implicit cues and align them cleanly with explicit text prompts.

Key Results

The proposed method was evaluated against state-of-the-art baselines including OmniControl, CondMDI, and MaskControl:

  • Zero Spatial Error: The model achieves a 0.000 cm Keyframe Error, delivering perfect keyframe adherence compared to OmniControl (12.88 cm) and MaskControl (3.25 cm).
  • Superior Motion Quality: The framework achieved a Fréchet Inception Distance (FID) of 0.023, vastly outperforming CondMDI (0.667) and OmniControl (7.115).
  • Accurate Timing Alignment: On the newly proposed Segment-level Semantic Similarity (SS Similarity) metric—which measures how well a transition matches the ground-truth timing—the method scored 0.804, compared to OmniControl's 0.449.
Qualitative results of text-conditioned motion in-betweening.

Limitations and Future Work

The authors note that when the text prompt explicitly conflicts with the spatio-temporal constraints provided by the keyframes (for example, a text prompt asking for a slow "crawl" but keyframes placed far apart requiring a rapid sprint), the model will prioritize the keyframes over the text. This causes a slight drop in text-retrieval precision. However, because such conflicting inputs are semantically implausible, this limitation has minimal impact on practical animation workflows.

Summary updated

BibTeX
@inproceedings{wu2026unifying,
  author = {Linjun Wu and Jiejia Yu and Leyang Jin and He Wang and Bowen Zheng and Xu Yang and Hao Jiang and Fei Xia and Fei Ling and Jun Deng and Xiaogang Jin},
  title = {{Unifying Precise Keyframes and Semantic Control via Multi-level Diffusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=NqRJULsUqq},
}
Figure