Abstract
While text-to-image models have achieved impressive capabilities in image generation and editing, their application across various modalities often necessitates training separate models. Inspired by existing methods of single image editing with self-attention injection and video editing with shared attention, we propose a novel unified editing framework that combines the strengths of both approaches by utilizing only a basic 2D image text-to-image (T2I) diffusion model. Specifically, we design a sampling method that facilitates editing consecutive images while maintaining semantic consistency utilizing shared self-attention features during both reference and consecutive image sampling processes. Experimental results confirm that our method enables editing across diverse modalities including 3D scenes, videos, and panorama images.
Introduction
Current text-to-image (T2I) diffusion models are highly effective for 2D image editing. However, extending these capabilities to video sequences, 3D scenes, or panoramas typically requires resource-intensive, modality-specific training. These specialized models often struggle with cross-image consistency—for instance, maintaining temporal stability in video or view consistency in 3D scenes. This paper introduces a training-free, unified framework that leverages a standard 2D T2I model to edit any modality representable as a sequence of images.
Methodology: Disentangled Self-Attention Injection
The core innovation is Disentangled Self-Attention Injection, which merges structural preservation from single-image methods with cross-frame consistency from video editing techniques.
The framework operates through two parallel paths as illustrated above:
- Inversion and Feature Extraction: DDIM inversion extracts structural (ResNet, Query, Key) and contextual (Value) features from the source images.
- Reference Editing Path: A reference image ($I_{ref}$) is edited using a text prompt. Inverted structural features are injected to preserve the original layout while attributes change.
- Context Transfer Path: For subsequent images ($I_i$), the model injects their specific structural features but utilizes the Key and Value features from the edited reference image. This ensures shared appearance (color, texture, lighting) across the sequence.
- Injection Scheduling: To maintain image quality, injection strength is dynamically adjusted over the sampling timesteps, prioritizing structure early and context later.
Experimental Evaluation
The method was evaluated across three distinct modalities:
- 3D Scenes: Real-world multi-view images from the LLFF (Local Light Field Fusion) dataset.
- Videos: Standard benchmarks from the DAVIS dataset for video object segmentation and editing.
- Panoramas: High-resolution sets created by cropping large images into overlapping sub-images.
Results and Discussion
The proposed method consistently outperformed specialized baselines in qualitative and quantitative evaluations.
In 3D scene editing, the framework demonstrated superior adherence to text prompts while preserving original geometry compared to Instruct-NeRF2NeRF (IN2N) and ED-NeRF. For panorama editing, it achieved higher CLIP scores and better structural consistency than SyncDiffusion and Collaborative Score Distillation (CSD). In video editing, the method maintained high temporal consistency without sacrificing text alignment, achieving an optimal balance in CLIP score evaluations.
Conclusion
By disentangling self-attention features, this framework provides a flexible, training-free solution for multi-modality editing. While it faces challenges with extreme semantic shifts in long sequences, it represents a significant step toward unified content creation. Future work will focus on optimizing sampling speed and exploring more complex 3D representations beyond Gaussian Splatting or NeRF.
Summary updated