Video Motion Transfer with Diffusion Transformers

Alexander Pondaven, Aliaksandr Siarohin, Sergey Tulyakov, Philip Torr, Fabio Pizzati

TL;DR

DiTFlow is a training-free method that allows you to "copy-paste" the motion from a reference video onto a newly generated one using Diffusion Transformers (DiTs). By extracting a novel signal called Attention Motion Flow (AMF) from the model's internal attention maps, the researchers can guide the generation process to follow specific movements while maintaining high fidelity to a text prompt.

What Problem Does This Paper Address?

While modern AI can generate stunningly realistic videos from text, controlling how things move remains a massive challenge. Text prompts like "a lion walking" are too ambiguous to describe the exact path, speed, or gait of the animal.

Previous "motion transfer" techniques mostly relied on older UNet-based architectures. These methods often struggle to separate the motion (the way a car turns) from the content ( the car itself). Furthermore, they don't take advantage of the global spatio-temporal processing power of newer Diffusion Transformers (DiTs), which are rapidly becoming the industry standard for high-end video generation.

Methods

The authors introduce a pipeline that requires no additional training or fine-tuning of the base model. Their approach consists of three main pillars:

  1. Attention Motion Flow (AMF): The core innovation. In a DiT, every "patch" of an image looks at every other patch across all frames to understand the scene. The authors found that by analyzing these cross-frame attention maps, they could track where a specific patch "moves" from frame to frame. They turn these correspondences into a displacement matrix—essentially a map of motion vectors.
  2. Optimization-based Guidance: To generate a new video, the model starts with random noise. During the denoising process, DiTFlow calculates the AMF of the current noisy video and compares it to the reference AMF. It then uses a loss function to "nudge" the video latents so that their motion matches the reference.
  3. Positional Embedding Optimization: This is a clever "hack" for efficiency. Instead of just optimizing the video pixels (latents), the authors also try optimizing the transformer's positional embeddings. Since these embeddings tell the model where things are in space and time, modifying them allows for "zero-shot" transfer. Once you've optimized the embeddings for one motion, you can swap in a completely different text prompt and get the same motion without re-running the expensive optimization.
The core idea: extracting AMF from a reference and using it to guide the generation of a new video.

Datasets

The researchers evaluated DiTFlow using:

  • DAVIS Dataset: A standard benchmark for video object segmentation and tracking. They used 50 unique videos from this set.
  • Custom Prompt Categories: To test how well the motion is "disentangled" from the content, they tested each reference video against three types of prompts: a direct Caption of the original, a Subject swap (e.g., car to man), and a completely different Scene (e.g., forest to city).

Key Insights and Ideas

  • Attention is Motion: The most profound "aha moment" is that motion is already "baked into" the attention maps of DiTs. Because tokens with similar semantic content naturally attend to each other across frames, the attention mechanism is effectively a built-in motion tracker.
  • The "Where" vs. the "What": By targeting positional embeddings, the authors successfully separated the "where" (motion/layout) from the "what" (content/pixels). This is why they can turn a car driving in a circle into a lion walking in a circle without the lion looking like a car.
  • Early Blocks Rule: Through ablation studies, they found that the early-to-middle layers of the transformer are the most critical for defining motion. Optimizing the 20th block (out of 40 in CogVideoX-5B) yielded the best results.
Comparison showing how DiTFlow correctly maps motion to the right elements compared to UNet-based baselines.

Key Results

  • Quantitative Superiority: DiTFlow consistently outperformed state-of-the-art baselines like SMM and MOFT. On the Motion Fidelity (MF) metric, it scored 0.785 (using CogVideoX-5B), significantly higher than the best baseline's 0.766.
  • Human Preference: In user studies, humans preferred DiTFlow's results for both motion adherence and prompt adherence. Users agreed that the motion was more similar to the reference and the text was more accurately represented.
  • Zero-Shot Capability: The positional embedding optimization allowed for high-quality motion transfer to new prompts with a minimal drop in image quality, a feat previous optimization-based methods couldn't achieve efficiently.

Limitations and Future Work

  • Distribution Limits: The method is still bound by what the pre-trained model "knows." If you try to transfer a complex backflip motion to a model that has never seen a human do a backflip, it will likely fail.
  • Semantic Ambiguity: Without explicit semantic mapping (e.g., "map the dog's legs to the robot's legs"), the model might occasionally map motion to the wrong part of the scene.
  • Computational Cost: While training-free, the optimization process adds a few minutes to the generation time (e.g., increasing generation from 5 minutes to 8 minutes on an A40 GPU). Future work could focus on making this guidance faster or even real-time.

Summary updated

BibTeX
@inproceedings{pondaven2025video,
  author = {Alexander Pondaven and Aliaksandr Siarohin and Sergey Tulyakov and Philip Torr and Fabio Pizzati},
  title = {{Video Motion Transfer with Diffusion Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02133},
}
Figure