Introduction
Controllable video generation has advanced rapidly with the advent of diffusion-based models like Stable Video Diffusion (SVD). However, achieving precise, fine-grained control over object motion remains a significant challenge. While "drag-based" interfaces—where users define motion by drawing trajectories—offer an intuitive solution, existing methods often struggle with physical consistency and object integrity. DragAnything introduces a novel framework that shifts the focus from pixel-level manipulation to a sophisticated "Entity Representation," enabling precise trajectory-based control for any object or background element within a video.
The Limitations of Pixel-Based Control
Previous state-of-the-art methods typically rely on pixel-level or region-level guidance. The authors of DragAnything identify two fundamental flaws in these approaches:
- The Representation Gap: A single pixel or coordinate lacks semantic context. Without understanding that a point belongs to a specific object (e.g., a bird or a cloud), the model may fail to distinguish between object motion and camera movement, leading to unintended global shifts.
- The Proximity Problem: Pixel-based models often apply influence based on spatial proximity to the drag point. This results in "rubbery" distortions where the area around the point stretches unnaturally while the rest of the object remains static, rather than the entire entity moving as a coherent unit.
Methodology: From Pixels to Entities
DragAnything addresses these issues by treating objects as distinct entities. Built upon the Stable Video Diffusion (SVD) architecture, the framework introduces several innovative components to bridge the gap between user intent and video synthesis.
Entity Semantic Representation Extraction
Instead of relying solely on spatial coordinates, DragAnything utilizes an entity mask (often generated via Segment Anything Model, or SAM) to identify the target object in the initial frame. The system then extracts latent features from the diffusion model’s internal U-Net. This embedding provides the model with a semantic understanding of what is being moved, allowing it to maintain the object's identity throughout the sequence.
2D Gaussian Guidance
To ensure motion is centered and structurally sound, the framework employs a 2D Gaussian map centered on the entity. This guidance focuses the model's generative attention on the core of the object, preventing the "melting" or "ghosting" artifacts common in earlier drag-based systems.
Trajectory Integration
These entity embeddings and Gaussian maps are combined with user-defined trajectories and injected into the denoising process through a 3D ControlNet-like structure. This allows the model to condition the generation process on the specific path the entity is intended to follow.
Training via Ground Truth Generation
To train the model effectively, the researchers utilized Co-Tracker to extract real motion trajectories from existing video segmentation datasets. This approach taught the model to emulate the natural movement patterns of real-world entities.
Key Insights
- "A Point is Not an Entity": By leveraging latent features from the foundation model itself, DragAnything functions as an "open-domain" controller. It does not require specific training for different categories (e.g., cars vs. humans); it can represent and manipulate any object the base model understands, including amorphous elements like clouds or water.
- Simultaneous Multi-Entity Control: Because each entity is assigned a distinct representation, the model can process multiple trajectories simultaneously. Users can direct a foreground character to move right while the background clouds drift left, all within a single generation and without motion "bleeding."
- Semantic Consistency: The use of feature vectors rather than simple coordinates ensures that objects maintain their appearance and structural integrity even during complex movements.
Results and Performance
DragAnything establishes a new state-of-the-art (SOTA) on the VIPSeg (Video Panoptic Segmentation) benchmark, outperforming previous models like DragNUWA across several key metrics:
- Video Quality: The model achieved a Fréchet Inception Distance (FID) of 33.5, a marked improvement over DragNUWA’s 39.8.
- Temporal Coherence: The Fréchet Video Distance (FVD) was reduced from 519.3 to 494.8, indicating smoother and more realistic temporal transitions.
- Motion Accuracy: In the Object Motion Control (ObjMC) metric, which quantifies the Euclidean distance between intended and actual trajectories, DragAnything improved performance by nearly 19 points.
- Human Preference: User studies confirmed these quantitative findings, with DragAnything being preferred over DragNUWA by 26% for motion accuracy and 12% for overall visual quality.
Discussion and Future Work
While DragAnything represents a significant leap forward, the authors note certain limitations. The current framework is constrained to 2D trajectories, making complex 3D rotations or depth-based movements difficult to render accurately. Furthermore, the system remains dependent on the capabilities of the underlying foundation model; if the base SVD model cannot conceptualize a specific motion, DragAnything cannot fully compensate for those physical inaccuracies. Finally, extreme or high-speed motions can still result in artifacts, such as the appearance of extra limbs.
Future research directions include the integration of 3D depth information into trajectories and the adaptation of the framework to even more powerful foundation models, such as OpenAI’s SORA, to further push the boundaries of controllable video synthesis.
Summary updated