Introduction
Motion-Zero is a "plug-and-play" framework designed to provide precise trajectory control for moving objects in diffusion-based video generation. While large-scale video diffusion models can generate high-quality content, they often lack fine-grained control over object motion, treating it as a random variable. Existing solutions typically require extensive fine-tuning or complex frame-by-frame inputs. Motion-Zero addresses this "control gap" by allowing users to specify motion via simple bounding boxes in a zero-shot manner, without modifying the underlying model weights.
Methodology
Motion-Zero integrates three core modules into the inference process to steer the generation:
- Initial Noise Prior Module (INPM): This module seeds the diffusion process by creating a "meta-video" of the object and using DDIM inversion to find the corresponding noise. This noise is then distributed along the desired trajectory, providing a spatial prior before denoising begins.
- Spatial Constraints (SC): By leveraging cross-attention maps, Motion-Zero applies specific loss functions (Box-loss, Center-loss, and Similarity-loss) during denoising. These constraints ensure that the object's attention peaks remain within the user-defined boxes.
- Shift Temporal Attention Mechanism (STAM): To prevent motion blur in fast-moving objects, STAM shifts latent features according to the trajectory. This ensures the temporal attention mechanism consistently tracks the object across frames rather than looking at static pixel coordinates.
Experimental Setup
The framework was evaluated using 33 diverse prompts and 25 trajectories (8 simple, 17 complex). It was tested on popular open-source models like ZeroScope and ModelScope to demonstrate its versatility and "plug-and-play" nature.
Key Results and Insights
Motion-Zero significantly outperforms existing zero-shot baselines like Trailblazer and Peekaboo. On the ZeroScope model, it achieved a mean Intersection-over-Union (mIoU) of 0.54 and an AP50 of 0.64, nearly doubling the performance of some baselines in complex trajectory following. Qualitative results demonstrate superior text alignment and temporal consistency across various subjects.
A key insight from this research is that "noise is destiny"—spatial priors in the initial noise can effectively guide the model's output. Furthermore, treating cross-attention maps as an optimization target allows for active steering during the generation process.
Limitations and Future Work
Motion-Zero is currently constrained by the capabilities of the base model; it cannot generate objects the base model does not "know." Additionally, it currently focuses on single-object control and lacks semantic interaction with the background (e.g., an object will not automatically avoid an obstacle). Future work will explore multi-object trajectories and more complex environmental interactions.
Summary updated