ConsistEdit: Highly Consistent and Precise Training-free Visual Editing
Zixin Yin, Ling-Hao Chen, Lionel Ni, Xili Dai
TL;DR
This work tackles the problem of achieving strong, consistent, training-free text-guided visual editing in MM-DiT-based diffusion models, addressing challenges in multi-round and video editing where errors accumulate. By analyzing MM-DiT's attention and identifying three key insights, the authors propose ConsistEdit, a vision-only attention-control method that uses mask-guided pre-attention fusion and differentiated manipulation of $Q$, $K$, and $V$ tokens to deliver prompt-aligned edits while preserving non-edited content. The approach demonstrates state-of-the-art performance across image and video editing tasks, supporting both structure-consistent and structure-inconsistent edits, multi-region editing, and progressive control of structural consistency via a parameter $oldsymbol{\alpha}$. It also generalizes across MM-DiT variants and video models, enabling reliable, real-time editing without handcraft, and enabling robust multi-round editing and fine-grained control with practical impact for content creation. Overall, ConsistEdit leverages architecture-aware attention control to unlock reliable, flexible editing in MM-DiT foundations, with broad applicability to image and video domains.
Abstract
Recent advances in training-free attention control methods have enabled flexible and efficient text-guided editing capabilities for existing generation models. However, current approaches struggle to simultaneously deliver strong editing strength while preserving consistency with the source. This limitation becomes particularly critical in multi-round and video editing, where visual errors can accumulate over time. Moreover, most existing methods enforce global consistency, which limits their ability to modify individual attributes such as texture while preserving others, thereby hindering fine-grained editing. Recently, the architectural shift from U-Net to MM-DiT has brought significant improvements in generative performance and introduced a novel mechanism for integrating text and vision modalities. These advancements pave the way for overcoming challenges that previous methods failed to resolve. Through an in-depth analysis of MM-DiT, we identify three key insights into its attention mechanisms. Building on these, we propose ConsistEdit, a novel attention control method specifically tailored for MM-DiT. ConsistEdit incorporates vision-only attention control, mask-guided pre-attention fusion, and differentiated manipulation of the query, key, and value tokens to produce consistent, prompt-aligned edits. Extensive experiments demonstrate that ConsistEdit achieves state-of-the-art performance across a wide range of image and video editing tasks, including both structure-consistent and structure-inconsistent scenarios. Unlike prior methods, it is the first approach to perform editing across all inference steps and attention layers without handcraft, significantly enhancing reliability and consistency, which enables robust multi-round and multi-region editing. Furthermore, it supports progressive adjustment of structural consistency, enabling finer control.
