Motion Inversion for Video Customization

Luozhou Wang, Ziyang Mai, Guibao Shen, Yixun Liang, Xin Tao, Pengfei Wan, Di Zhang, Yijun Li, Yingcong Chen

TL;DR

This paper introduces Motion Inversion, a method to extract specific motion patterns (like camera pans or object movements) from a reference video and apply them to new, text-described content. By using specialized "Motion Embeddings" within video diffusion models, the authors successfully disentangle motion from appearance, allowing for high-fidelity motion transfer without "leaking" the original video's visual style.

What Problem Does This Paper Address?

In the world of AI-generated content, we’ve become quite good at "customization"—teaching a model a specific person's face or a particular art style. However, doing this for motion in video is significantly harder.

The core challenge is spatiotemporal entanglement. In a video, the way an object moves is often mathematically tied to what that object looks like. Current methods often struggle with this: they either fail to capture complex dynamics, or they accidentally copy the appearance of the source video (e.g., trying to copy a duck's walk results in a boy that looks suspiciously like a duck). The authors aim to fill this gap by creating a compact, efficient representation of motion that can be "inverted" from a source video and "injected" into new generations.

Methods

The researchers propose a framework called Motion Inversion, which learns explicit, temporally coherent Motion Embeddings ($M$) from a single reference video. These embeddings are integrated into the temporal transformer modules of a pre-trained video diffusion model.

The Motion Inversion pipeline: training to learn embeddings from a source video, and inference to generate new content using those embeddings.

The key innovation lies in splitting the motion representation into two distinct types:

  1. Motion Query-Key Embedding ($M^{QK}$): This is a 1D vector that modulates the temporal attention map. Crucially, it excludes spatial dimensions ($H$ and $W$). By doing this, it captures global temporal relationships (like camera movement) without picking up on the specific shapes of objects in the frame.
  2. Motion Value Embedding ($M^V$): This is a 2D matrix that includes spatial dimensions. It is designed to capture local, spatially varying movements (like a horse jumping).

To prevent $M^V$ from capturing static appearance details, the authors introduce a debiasing strategy during inference. They apply a differential operation—essentially calculating the change between frames—which acts similarly to optical flow, focusing the model purely on the dynamics.

Visualizing the debiasing strategy: 1D embeddings for global motion and differential 2D embeddings for local motion.

Datasets

The authors evaluated their method using source videos from:

  • DAVIS: A standard benchmark for video object segmentation.
  • WebVID: A large-scale dataset of short videos with captions.
  • Online Resources: Various real-world videos to test diverse motion types.

For quantitative evaluation, they used a set of 66 video-edit text pairs across 22 unique videos.

Key Insights and Ideas

  • Dimensionality as a Filter: The decision to make $M^{QK}$ one-dimensional is a clever architectural constraint. It forces the model to learn when things happen across time without knowing where (spatially) the original objects were, effectively filtering out shape information.
  • Motion as Change: By using a differential operation on the $M^V$ embedding during inference, the authors treat motion as a delta (change) rather than a state. This is a powerful way to ensure the model doesn't just memorize the first frame of the source video.
  • Plug-and-Play Compatibility: The method is designed to be lightweight and integrates seamlessly with existing video diffusion models like ZeroScope and AnimateDiff without requiring a full retraining of the base model.

Key Results

The paper compares Motion Inversion against state-of-the-art baselines like Motion Director and VMC.

  • Quantitative: Motion Inversion achieved the highest Motion Fidelity (0.9552) and Text Similarity (0.3113) scores. It also significantly improved the FID (Frechet Inception Distance), indicating higher individual frame quality.
  • Qualitative: In user studies, Motion Inversion was preferred 39.35% of the time, nearly double the preference for the closest competitor (Motion Director at 27.27%).
  • Versatility: The model successfully handles diverse motions, categorized into Orbit Shots, Crane Shots, Single Object motion, and Multiple Object interactions.
Qualitative comparison showing how Motion Inversion preserves motion trajectories better than baselines while adhering to new text prompts.

Limitations and Future Work

While powerful, the method has a few notable hurdles:

  • Generative Priors: The quality of the output is still bounded by the pre-trained video diffusion model. If the base model hasn't seen a specific type of object or environment, the motion transfer might look unnatural.
  • Interfering Motions: The current approach learns "global" motion from the entire video. If a scene has multiple objects moving in conflicting ways, the embedding might become "muddy."
  • Instance-Level Control: The authors identify isolating instance-level motion (e.g., moving just one specific person in a crowd) as a key area for future research.

Summary updated

Abstract

In this work, we present a novel approach for motion customization in video generation, addressing the widespread gap in the exploration of motion representation within video generative models. Recognizing the unique challenges posed by the spatiotemporal nature of video, our method introduces Motion Embeddings, a set of explicit, temporally coherent embeddings derived from a given video. These embeddings are designed to integrate seamlessly with the temporal transformer modules of video diffusion models, modulating self-attention computations across frames without compromising spatial integrity. Our approach provides a compact and efficient solution to motion representation, utilizing two types of embeddings: a Motion Query-Key Embedding to modulate the temporal attention map and a Motion Value Embedding to modulate the attention values. Additionally, we introduce an inference strategy that excludes spatial dimensions from the Motion Query-Key Embedding and applies a differential operation to the Motion Value Embedding, both designed to debias appearance and ensure the embeddings focus solely on motion. Our contributions include the introduction of a tailored motion embedding for customization tasks and a demonstration of the practical advantages and effectiveness of our method through extensive experiments.
BibTeX
@inproceedings{wang2025motion,
  author = {Luozhou Wang and Ziyang Mai and Guibao Shen and Yixun Liang and Xin Tao and Pengfei Wan and Di Zhang and Yijun Li and Yingcong Chen},
  title = {{Motion Inversion for Video Customization}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2025},
  doi = {10.1145/3721238.3730735},
}
Figure