TL;DR
Existing diffusion-based video editing methods struggle with multi-attribute and multi-object editing, often leaking features between objects or failing to preserve the original scene layout. EVA is a zero-shot, training-free framework that introduces a Spatial-Temporal Layout-Guided Attention (ST-Layout Attn) mechanism, dynamically modulating self- and cross-attention across frames using mask layouts and diffusion feature correspondences. This enables precise simultaneous foreground/background editing, multi-object attribute binding, and identity swapping in complex, human-centric videos.
What Problem Does This Paper Address?
Diffusion-based text-to-video editing has advanced rapidly, but performing multi-attribute and multi-object editing remains a notorious challenge. Prior methods that rely on bounding boxes or global prompt tuning frequently exhibit two failure modes:
- Inaccurate Text-to-Attribute Control: Text prompts fail to localize correctly (e.g., trying to turn a man into "Iron Man" on a "snow-covered court" results in snow attributes mistakenly applied to the human's body).
- Attention Leakage & Identity Confusion: Feature representations from different subjects blend together across spatial and temporal dimensions (e.g., textures bleeding between Spider-Man and Iron Man, or subject identities swapping mid-motion).
Existing solutions either over-smooth details using coarse bounding boxes, distort fine objects like tennis rackets, or require per-video test-time parameter tuning.
Methods
EVA builds on a temporally inflated, frozen Stable Diffusion v1.5 with ControlNet (OpenPose) for structural guidance, requiring zero parameter fine-tuning. Its key innovations include:
- Discrete Text Embeddings in Cross-Attention: Instead of relying on a single combined text embedding across the entire frame, EVA extracts discrete token embeddings corresponding to distinct attributes from the edit prompt. Cross-attention query-key maps ($R_{st}^{\text{cross}}$) are restricted so attribute tokens only attend to regions defined by semantic masks (extracted via interactive tracking with SAM-Track).
- Self-Attention Regularization via DIFT: To prevent spatial-temporal attribute leakage, the authors leverage emergent cross-frame diffusion feature similarity (DIFT). They determine positive pairs (tokens within the same attribute across frames) and negative pairs (tokens in different attributes).
- Spatial-Temporal Attention Modulation: EVA modulates self-attention logits ($A'_i = \text{softmax}((Q K^T + M)/\sqrt{d})$) using an additive matrix $M$ that scales positive pairs up and suppresses negative pairs, weighted by attribute area coverage ($S_{st}^i$) and a timestep-dependent parameter $\lambda_t$.
- Latent Blending: Unedited regions and fine details are blended in latent space to prevent background drift and retain fine structures (such as rackets or small background details).
[Source Video]
├── OpenPose ──────> ControlNet Guidance
├── SAM-Track ─────> Disentangled Layout Masks
└── DDIM Invert ───> Latents Z_t ──> Denoising with ST-Layout Attn ──> [Edited Video]
├── Self-Attn: DIFT-based Intra/Inter Boosting
└── Cross-Attn: Discrete Prompt-Mask Routing
Datasets
- Evaluation Dataset: The authors compiled an evaluation benchmark consisting of 26 human-centric videos exhibiting complex motion, curated from DAVIS, TGVE (CVPR 2023 LoveU challenge Track 4), and internet stock video sources (iStock).
- 14 single-object and 12 multi-object videos.
- 3 creative text edit prompts per video (78 video-text pairs total), covering single-attribute, multi-attribute, multi-object editing, and background swapping.
- Frame lengths ranged between 16 and 32 frames at $512 \times 512$ resolution.
Key Insights and Ideas
- Diffusion Features Provide Unsupervised Semantic Grounding: Diffusion features across frames (DIFT) naturally capture high-level semantic correspondences without supervision. Finding max/min cosine similarities allows automatic identification of intra-attribute consistency and inter-attribute boundaries across time.
- Separation of Concerns (Masks vs. Text): Bounding boxes are too coarse for overlapping motions, while free-form attention maps leak easily. Spatially disjoint semantic masks provide clear spatial boundaries, allowing discrete text conditioning to route the right semantic tokens solely to the intended pixels.
- Mutual Exclusivity Avoids "Concept Bleed": Actively penalizing attention scores between distinct attributes (treating different semantic masks across all frames as negative pairs) directly arrests attention leakage.
Key Results
EVA was evaluated against top state-of-the-art baselines: FateZero, ControlVideo, TokenFlow, and Ground-A-Video.
- Quantitative Superiority:
- Frame Accuracy: EVA achieved 98.92%, outperforming the next best methods (Ground-A-Video and ControlVideo at 95.03%).
- Text Alignment (CLIP-T): Achieved 36.56 (vs. 35.09 for Ground-A-Video).
- Temporal Warp Error: Lowest optical-flow warping error at 2.73 (TokenFlow: 2.82, FateZero: 3.08, Ground-A-Video: 4.43).
- Overall Edit Quality ($Q_{\text{edit}}$): Top score of 13.39 (compared to TokenFlow's 12.28 and Ground-A-Video's 7.92).
- Human User Study (20 raters, 1–5 scale): EVA led across all metrics—Subject Edit Accuracy (4.42 vs. runner-up 3.45), Layout Preservation (4.21 vs. 3.64), and Overall Preference (4.15 vs. 3.16).
- Complex Multi-Object Edits: Successfully demonstrated precise cross-subject identity swapping (e.g., swapping Iron Man and Spider-Man identities between two runners) without texture bleeding or identity distortion.
Limitations and Future Work
- Reliance on Upstream Segmentation: The framework depends on SAM-Track to generate initial mask layouts, requiring manual user interaction/clicks.
- Pose Estimation Dependency: Tracking complex human motion relies on OpenPose conditions; severe occlusions or failures in pose estimation could degrade the output.
- Application Scope: The evaluation primarily focuses on human-centric videos with complex motions; generalizing to non-rigid objects, animals, or highly dynamic fluid phenomena was not extensively explored.
Summary updated