DragEntity:Trajectory Guided Video Generation using Entity and Positional Relationships

Wan Zhang, Sheng Tang, Jiawei Wei, Ruize Zhang, Juan CaoACM Multimedia 2024 · DOI

Abstract

In recent years, diffusion models have achieved tremendous success in controllable video generation. However, existing methods face two primary limitations: control conditions like depth maps are difficult for users to obtain, and driving multiple objects through complex motions simultaneously remains a challenge. We introduce DragEntity, a video generation model that utilizes entity representation for controlling the motion of multiple objects. By allowing users to drag entities rather than individual pixels and modeling relative spatial relationships, DragEntity enables fine-grained control over multiple trajectories with superior structural integrity.

Introduction

In the evolving landscape of AI video generation, "dragging" an object to define its motion is a highly intuitive interaction. However, current state-of-the-art models often suffer from a "pixel-level" identity crisis: they move pixels, not objects. This leads to distorted bodies, floating limbs, and unintended camera shifts. DragEntity proposes a shift in perspective, treating trajectories as instructions for holistic entities that understand their spatial relationships.

Multi-object trajectory control and motion visualization examples across various scenes including animals and vehicles.

The Challenge of Pixel-Level Control

Trajectory-based control allows users to draw a line on an image to direct motion. Existing methods face two major hurdles:

  1. The Representation Gap: A single pixel cannot represent a complex object. Dragging a point on the sun, for instance, might cause a model to shift the entire camera upward rather than moving the sun itself.
  2. Structural Disintegration: When multiple trajectories are applied to different parts of an object (like a human body), parts often move independently, resulting in "spaghetti-like" distortions where limbs detach or warp unnaturally.

Methodology

DragEntity introduces a framework based on Stable Video Diffusion (SVD) focusing on two novel components:

Entity Semantic Representation

Instead of raw pixels, the model uses segmentation tools like SAM (Segment Anything Model) or LIP (Look Into Person) to identify distinct entities in the initial frame. By extracting latent features for these entities, the model treats a "swan" or a "person" as a single, cohesive unit during generation.

Position-Aware Relation Module

To prevent warping, the authors developed a module to capture relative spatial relationships:

  • Spatial Branch: Uses a polar coordinate system and Gaussian kernels to model the distance and angle between different entities.
  • Semantic Branch: Employs dot-product attention to understand semantic relationships between image parts.
  • Fusion: These relationships are fused into entity embeddings, ensuring that when one part moves, others maintain a physically plausible orientation.

Key Results and Insights

DragEntity outperformed existing SOTA models like DragNUWA and MotionCtrl across several metrics. It achieved an Object Motion Control (ObjMC) score of 302.7 (lower is better), significantly beating DragNUWA’s 326.5. In user studies, DragEntity was preferred 65% of the time for "Structural Integrity."

Qualitative comparison: DragEntity accurately controls the sun's motion without unintended camera movement, whereas pixel-based methods like DragNUWA result in global camera shifts.

Qualitatively, the model excels in scenarios where previous models failed, such as simulating a sun setting behind a horizon without warping the landscape or performing complex human motions without deforming limbs. The core insight is that Pixels ≠ Intent; by anchoring trajectories to entity masks, the model better understands the user's desire to move an object rather than just shifting coordinates.

Conclusion

While DragEntity represents a significant step forward in fine-grained video control, it remains dependent on the quality of initial segmentation masks. Future work may involve end-to-end learning of entities without external segmentation models or extending the framework to handle even longer, more complex video sequences with heavy occlusions.

Summary updated

BibTeX
@inproceedings{zhang2024dragentity,
  author = {Wan Zhang and Sheng Tang and Jiawei Wei and Ruize Zhang and Juan Cao},
  title = {{DragEntity:Trajectory Guided Video Generation using Entity and Positional Relationships}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3681567},
}
Figure