Space-Time Diffusion Features for Zero-Shot Text-Driven Motion Transfer

Danah Yatim, Rafail Fridman, Omer Bar-Tal, Yoni Kasten, Tali Dekel

Abstract

We present a zero-shot framework for text-driven motion transfer that applies the movement of an input video subject to a different object specified by a text prompt. Unlike traditional methods that rely on category-specific geometric priors, our approach leverages internal space-time features of pre-trained text-to-video diffusion models. By introducing Spatial Marginal Mean (SMM) features and a pairwise difference loss, we achieve significant structural changes while preserving original motion trajectories without any fine-tuning or additional training.

Introduction

Motion transfer—the process of taking the movement from one subject and applying it to another—has traditionally been limited to "same-category" applications. For instance, transferring a dance from one person to another is feasible because both share a common geometric prior (like a 3D skeleton).

However, transferring motion across distinct categories, such as applying a car's trajectory to a bicycle or a dog's jump to a dolphin, is significantly more difficult. These objects have vastly different shapes and fine-grained motion traits. Existing text-to-video editing tools often struggle with a "motion-edit tradeoff": they either stick too close to the original shape (failing the edit) or lose the original motion entirely (failing the transfer).

Methodology

Our framework operates in a zero-shot manner, utilizing a frozen, pre-trained text-to-video (T2V) model (specifically ZeroScope). The approach hinges on three technical pillars:

  1. Spatial Marginal Mean (SMM) Features: We utilize internal feature maps of the T2V model and average them across spatial dimensions (height and width) to create a "global descriptor" for each frame. This SMM signature captures the object's pose and position while remaining robust to changes in texture and fine-grained shape.
  2. Pairwise SMM Difference Loss: To allow for appearance changes while keeping movement, we do not force the new video to match the original SMM features exactly. Instead, we enforce a loss on the differences between SMM features of different frames. This ensures relative motion and timing are preserved while allowing the model to change the object's look.
  3. Low-Frequency Initialization: To maintain global scene layout consistency (like horizons or background structures), we initialize the generation process using the low-frequency components of the original video's noise, blended with new random high-frequency noise.
Figure 1: Examples of zero-shot motion transfer. The top row shows input videos (car, dog), and the bottom rows show edited results (bike, horse, train, dolphin) following text prompts while preserving the original motion.

Key Insights and Results

The core insight of this work is that large-scale T2V models already function as motion priors; they "understand" how different objects move. By collapsing spatial information into SMM features, we find a "sweet spot" in the feature hierarchy that describes where an object is and how it is posed, while ignoring its specific category.

Evaluation

The method was evaluated on a diverse set of videos, including the DAVIS dataset and real-world web footage. Key results include:

  • Qualitative Superiority: The method successfully performs drastic edits, such as turning a car into a train or a dog into a horse, while maintaining the exact timing and trajectory of the original video.
  • Quantitative Performance: In comparisons against state-of-the-art baselines like TokenFlow and Gen-1, our method achieved the best balance between Edit Fidelity (CLIP scores) and Motion Fidelity (measured via a new Motion-Fidelity Score based on long-range "tracklets").
  • User Preference: In a 7,000-judgment user study, participants preferred this method over baselines between 72% and 84% of the time, citing its ability to follow prompts without breaking original motion.

Conclusion and Future Work

By treating T2V models as motion priors and utilizing abstract spatial features, we enable flexible, zero-shot motion transfer across diverse categories. While the method is robust, it remains dependent on the generative power of the underlying T2V model. Future work will focus on scaling this approach as base models improve in resolution and handling extremely complex scenes with multiple overlapping objects.

Summary updated

BibTeX
@inproceedings{yatim2023space,
  author = {Danah Yatim and Rafail Fridman and Omer Bar-Tal and Yoni Kasten and Tali Dekel},
  title = {{Space-Time Diffusion Features for Zero-Shot Text-Driven Motion Transfer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure