Tuning-Free Image Editing with Fidelity and Editability via Unified Latent Diffusion Model

Qi Mao, Lan Chen, Yuchao Gu, Mike Zheng Shou, Ming-Hsuan Yang
4/8/2025
4 citations
cs.CV
diffusion-flowtransformer-attention

Official code: CUC-MIPG/UnifyEdit (13 stars, last commit 2024-12-29).

Abstract

Balancing fidelity and editability is essential in text-based image editing (TIE), where failures commonly lead to over- or under-editing issues. Existing methods typically rely on attention injections for structure preservation and leverage the inherent text alignment capabilities of pre-trained text-to-image (T2I) models for editability, but they lack explicit and unified mechanisms to properly balance these two objectives.

Show full abstract

In this work, we introduce UnifyEdit, a tuning-free method that performs diffusion latent optimization to enable a balanced integration of fidelity and editability within a unified framework. Unlike direct attention injections, we develop two attention-based constraints: a self-attention (SA) preservation constraint for structural fidelity, and a cross-attention (CA) alignment constraint to enhance text alignment for improved editability. However, simultaneously applying both constraints can lead to gradient conflicts, where the dominance of one constraint results in over- or under-editing. To address this challenge, we introduce an adaptive time-step scheduler that dynamically adjusts the influence of these constraints, guiding the diffusion latent toward an optimal balance. Extensive quantitative and qualitative experiments validate the effectiveness of our approach, demonstrating its superiority in achieving a robust balance between structure preservation and text alignment across various editing tasks, outperforming other state-of-the-art methods. The source code will be available at https://github.com/CUC-MIPG/UnifyEdit.

View on arXivView PDF

Code Implementations(1)

CUC-MIPG/UnifyEditOfficial100%

Tuning-Free Image Editing with Fidelity and Editability via Unified Latent Diffusion Model

130Dec 29, 20241 years ago

Similar Papers

Cite this paper

@article{mao2025tuningfree,
  title  = {Tuning-Free Image Editing with Fidelity and Editability via Unified Latent Diffusion Model},
  author = {Qi Mao and Lan Chen and Yuchao Gu and Mike Zheng Shou and Ming-Hsuan Yang},
  year   = {2025},
  eprint = {2504.05594},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.05594v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.05594.svg)](https://codeofpaper.com/paper/2504.05594)

Discussion