Abstract
InstanceV is a novel framework designed to provide precise, instance-level control for text-to-video (T2V) generation. By integrating specialized masked attention and adaptive prompt modules into Diffusion Transformer (DiT) backbones, InstanceV enables the generation of videos where specific objects are placed in designated locations with accurate attributes. We introduce InstanceBench, a comprehensive benchmark for evaluating spatial grounding in video generation. Our results show that InstanceV significantly outperforms existing state-of-the-art models in both spatial accuracy and visual quality, with minimal computational overhead.
Introduction
While text-to-video (T2V) diffusion models have achieved remarkable success in generating high-quality footage, they often struggle with fine-grained spatial control. Standard models rely on global text prompts, which frequently lead to issues such as attribute leakage (e.g., swapping colors between objects) or the omission of requested entities. Existing solutions for spatial grounding often require heavy retraining or complex multi-stage processes that compromise temporal consistency. InstanceV addresses these challenges by introducing a lightweight, instance-aware architecture for DiT-based video generation.
Methodology
InstanceV introduces three key architectural modifications to the standard Diffusion Transformer backbone to enhance controllability:
- Instance-aware Masked Cross-Attention (IMCA): This module uses spatial masks to ensure that visual tokens within a specific bounding box only attend to their corresponding instance prompts. To maintain efficiency and leverage pre-trained knowledge, IMCA weights are initialized from the backbone's native cross-attention layers.
- Shared Timestep-Adaptive Prompt Enhancement (STAPE): To resolve potential conflicts between local instance prompts and global scene descriptions, STAPE acts as a mediator. It uses a gated mechanism to inject global context into local tokens, with its influence adjusting dynamically across the denoising timesteps.
- Spatially-Aware Unconditional Guidance (SAUG): To prevent the disappearance of small objects, SAUG modifies Classifier-Free Guidance (CFG). By maintaining spatial masks during the unconditional pass, it encourages the model to reason about spatial relationships even in the absence of explicit text cues.
Evaluation and Datasets
The authors developed an automated pipeline using Florence-2 and Grounded-Sam2 to extract grounding information from high-quality video datasets. Additionally, they introduced InstanceBench, a benchmark specifically designed for instance-level evaluation. It measures performance using Intersection over Union (IoU) for spatial alignment and CLIP-Score for attribute matching within cropped instances.
Key Results
InstanceV demonstrates superior performance across multiple dimensions compared to state-of-the-art models like Wan-series, HunyuanVideo, and CogVideoX:
- Spatial Accuracy: On InstanceBench, InstanceV achieved an area-weighted IoU of ~73%, significantly higher than HunyuanVideo's ~31%.
- Visual Quality: The model improved the Fréchet Video Distance (FVD) from 2687 (Wan2.2) to 2285, indicating a more realistic video distribution.
- Efficiency: InstanceV is computationally efficient, adding only 15% more FLOPs and 9% more inference time compared to the base DiT model.
Conclusion and Future Work
InstanceV provides a robust and efficient solution for instance-level control in video generation. By focusing on spatial grounding within the DiT architecture, it achieves unprecedented accuracy in object placement and attribute binding. Future work may explore incorporating additional input modalities, such as reference images or video clips, and further refining trajectory control for even more precise motion synthesis.
Summary updated