Abstract
ConsistEdit is a novel, training-free attention control framework designed specifically for Multi-Modal Diffusion Transformers (MM-DiT), such as Stable Diffusion 3 and FLUX. By isolating attention manipulation to vision tokens and introducing a "consistency strength" parameter, it enables highly precise, multi-round image and video editing. Unlike previous methods that struggle with the transition from U-Net to Transformer architectures, ConsistEdit preserves structural integrity and background consistency by disentangling spatial layout from content generation through differentiated QKV manipulation. Experimental results demonstrate state-of-the-art performance across multiple benchmarks, particularly in structural similarity and background preservation.
Introduction
The generative AI landscape is currently undergoing a fundamental architectural shift from classic U-Net structures to Multi-Modal Diffusion Transformers (MM-DiT). While models like Stable Diffusion 3 and FLUX offer superior image generation capabilities, editing their outputs remains a significant technical challenge.
Existing training-free editing methods—which manipulate internal attention maps during inference—were primarily optimized for U-Nets. When applied to MM-DiTs, these methods frequently encounter two critical issues:
- The Consistency-Strength Tradeoff: Increasing the strength of an edit (e.g., changing a "shirt" to a "jacket") often results in the loss of the original subject's identity or the background's structural layout.
- Error Accumulation: In multi-round editing or video processing, minor visual discrepancies compound, leading to "hallucinated" artifacts or temporal flickering.
ConsistEdit addresses these challenges by identifying that the simultaneous processing of text and vision tokens in MM-DiTs renders traditional cross-attention manipulation ineffective.
Methodology
ConsistEdit introduces a surgical approach to attention control tailored for the MM-DiT architecture, resting on four core technical pillars:
Vision-Only Attention Control
In MM-DiT blocks, text and image tokens are processed within the same layers. ConsistEdit researchers discovered that interfering with text tokens during the editing process causes significant instability. Consequently, the framework applies edits exclusively to vision tokens across all transformer layers, preventing the "color bleeding" and identity loss common in earlier attempts.
Mask-Guided Pre-Attention Fusion
Rather than blending images after the attention calculation, ConsistEdit moves the blending process to the pre-attention stage. Using a technique termed "Structure Fusion," the spatial layout of the source image is integrated directly into the Query ($Q$) and Key ($K$) tokens of the target image, ensuring the structural skeleton is maintained before the model generates new content.
Differentiated QKV Manipulation
A key innovation of ConsistEdit is the separate treatment of Query, Key, and Value tokens. The framework utilizes $Q$ and $K$ to maintain structural geometry and layout, while the $V$ (Value) tokens are manipulated to inject new content, such as colors, textures, and specific objects. This disentanglement allows for dramatic material changes (e.g., turning a plastic object into bronze) without altering the object's silhouette.
Fine-Grained Consistency Strength ($\alpha$)
To provide users with granular control, the framework introduces a consistency strength parameter ($\alpha$). This allows for a sliding scale between strict structural preservation—keeping every fine detail of the source—and flexible editing, which allows the shape of the object to evolve to fit the new prompt.
Experimental Evaluation
The researchers evaluated ConsistEdit using the PIE-Bench (700 editing pairs across 10 edit types) and various real-world high-resolution images and videos. Performance was measured using three primary metrics:
- Canny SSIM: To measure structural similarity via edge maps.
- PSNR: To evaluate background preservation in non-edited regions.
- CLIP Similarity: To ensure the final edit aligns with the target text prompt.
Results and Key Insights
ConsistEdit achieved a new state-of-the-art (SOTA) across multiple benchmarks, demonstrating superior performance in both quantitative and qualitative assessments:
- Structural Consistency: On tasks requiring color and material changes, ConsistEdit achieved a Canny SSIM of 0.8811, significantly outperforming the previous leading method, DiTCtrl (0.8235).
- Background Preservation: The model maintained a PSNR of 36.76 in non-edited regions, ensuring that the context of the image remains virtually identical to the source.
- User Preference: In a study involving 18 participants, ConsistEdit was preferred 71.11% of the time over five other leading methods.
- Multi-Round Editing: The framework successfully demonstrated three-round edits (e.g., sequentially changing clothing, motion, and hair) on real images without the quality degradation typically seen in training-free methods.
Conclusion and Limitations
ConsistEdit represents a significant advancement in making MM-DiT models practical for precise visual editing. However, some limitations remain. The method is sensitive to the quality of the initial "inversion" process; if the mathematical representation of the real image is noisy, the edit will reflect that noise. Additionally, the framework can struggle with semantic ambiguity—such as confusing a subject's lipstick with the lipstick case—if the base model's internal attention maps are weak. Future research will focus on improving text-to-image localization and extending these techniques to larger-scale video foundation models.
Summary updated