QK-Edit: Revisiting Attention-based Injection in MM-DiT for Image and Video Editing
cs.CV, cs.AI
Submitted: 2026-10-13
Updated: 2026-10-14
Comments: Accepted at ICCV 2025
Code: https://github.com/Dao-AILab/flash-attention
Project page: https://blackforestlabs.ai
License: http://creativecommons.org/licenses/by/4.0/
The gist: Multimodal Diffusion Transformers (MM-DiTs) have recently emerged as a powerful framework for unified text-vision synthesis, surpassing traditional U-Net architectures in generative tasks.
Abstract
Multimodal Diffusion Transformers (MM-DiTs) have recently emerged as a powerful framework for unified text-vision synthesis, surpassing traditional U-Net architectures in generative tasks. One key innovation lies in its Multimodal Self-Attention (MM-SA) interaction, where image and text tokens are concatenated and processed via self-attention. However, this mechanism poses significant challenges for editing, rendering conventional U-Net-based attention manipulation methods ineffective. To address this limitation, we propose QK-Edit, a training-free framework that exploits the unique attention dynamics of MM-DiTs for precise text-guided image and video editing. By introducing a novel query-key manipulation strategy, our method isolates and adjusts critical attention components to achieve an optimal balance between prompt fidelity and structural consistency. This enables seamless edits across various tasks, including object addition, object removal, object replacement, changing background, changing material, changing color, and style transformation. Notably, it can be easily implemented with feature replacement in inference. QK-Edit demonstrates superior editing performance on state-of-the-art models, such as FLUX and HunyuanVideo, effectively bridging the gap between generative power and editable flexibility in MM-DiTs, and paving the way for scalable multimodal content creation.
Sources
- Stable Flow: Vital Layers for Training-Free Image Editing
- UniEdit: A Unified Tuning-Free Framework for Video Motion and Appearance Editing
- Stable Video Diffusion: Scaling Latent Video Diffusion Models to Large Datasets
- DiTCtrl: Exploring Attention Control in Multi-Modal Diffusion Transformer for Tuning-Free Multi-Prompt Longer Video Generation
- Edit3K: Universal Representation Learning for Video Editing Components
- VIVID-10M: A Dataset and Baseline for Versatile and Interactive Video Local Editing
- HQ-Edit: A High-Quality Dataset for Instruction-based Image Editing
- DesignEdit: Multi-Layered Latent Decomposition and Fusion for Unified & Accurate Image Editing
- HunyuanVideo: A Systematic Framework For Large Video Generative Models
- MagicEdit: High-Fidelity and Temporally Coherent Video Editing
- Open-Sora Plan: Open-Source Large Video Generation Model
- StableV2V: Stablizing Shape Consistency in Video-to-Video Editing
- Dreamix: Video Diffusion Models are General Video Editors
- DreamCreature: Crafting Photorealistic Virtual Creatures from Imagination
- SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis
- Semantic Image Inversion and Editing using Rectified Stochastic Differential Equations
- Taming Rectified Flow for Inversion and Editing
- InstantID: Zero-shot Identity-Preserving Generation in Seconds
- Zero-Shot Video Editing Using Off-The-Shelf Image Diffusion Models
- HeadRouter: A Training-free Image Editing Framework for MM-DiTs by Adaptively Routing Attention Heads
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models