Motion-Zero: A Zero-Shot Trajectory Control Framework of Moving Object for Diffusion-Based Video Generation

Changgu Chen, Junwei Shu, Gaoqi He, Changbo Wang, Yang Li

Introduction

Large-scale text-to-video (T2V) diffusion models like Sora or Stable Video Diffusion have revolutionized content creation, yet they remain difficult to control precisely. While a user might prompt for a "fish swimming," the specific path the fish takes is typically left to the model's stochastic nature. Motion-Zero addresses this by introducing a "plug-and-play" framework that enables zero-shot trajectory control using simple bounding boxes, requiring no additional training.

A blue fish constrained by a user-defined bounding box to guide its trajectory.

Methodology

Motion-Zero intervenes in the standard diffusion denoising process through three primary modules designed to maintain object identity and spatial accuracy.

Initial Noise Prior Module (INPM)

To prevent "object drift" where an entity's appearance changes over time, Motion-Zero utilizes DDIM Inversion to create a semantic noise base. This base is then mixed along the user-defined trajectory, ensuring the object maintains its identity from the first frame to the last.

Spatial Constraints (SC)

The framework manipulates cross-attention maps to ensure the target object stays within the specified bounding boxes. By maximizing attention inside the box and minimizing it outside, the model is forced to render the object at the desired coordinates.

Shift Temporal Attention Mechanism (STAM)

To maintain temporal consistency for moving objects, STAM shifts latent features within the temporal attention layer to align with the bounding boxes. This allows the model to compare the object's features across different positions in consecutive frames, reducing flickering and jitter.

A bear following a precise path guided by the Motion-Zero framework's spatial constraints.

Results and Evaluation

Evaluated against baselines like ModelScope and ZeroScope, Motion-Zero demonstrated superior control and visual quality. In complex trajectory tests, it achieved a Mean Intersection over Union (mIoU) of 0.55, significantly outperforming existing zero-shot methods like Peekaboo (0.41). Furthermore, user studies rated Motion-Zero 4.75/5.0 for both appearance and control, highlighting its effectiveness in generating high-quality, steerable video content.

Conclusion

Motion-Zero provides a robust, model-agnostic solution for trajectory control in video generation. By focusing on noise priors, spatial attention constraints, and temporal alignment, it bridges the gap between creative AI and precise directorial control without the need for expensive retraining.

Summary updated

BibTeX
@inproceedings{chen2025motion,
  author = {Changgu Chen and Junwei Shu and Gaoqi He and Changbo Wang and Yang Li},
  title = {{Motion-Zero: A Zero-Shot Trajectory Control Framework of Moving Object for Diffusion-Based Video Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i2.32198},
}
Figure