FusionEdit: Semantic Fusion and Attention Modulation for Training-Free Image Editing
Yongwen Lai, Chaoqun Wang, Shaobo Min
TL;DR
FusionEdit addresses the challenge of training-free, precise text guided image editing by automatically localizing edits through semantic discrepancy between source and target prompts. It introduces a distance aware soft mask via region growing and total variation regularization to create smooth boundaries, enabling natural edits without hard mask artifacts. Disparity aware attention modulation (DAM) via AdaIN injects global source statistics into the masked editing path, preserving global coherence while maintaining local editability. Extensive experiments on PIE-Bench demonstrate state-of-the-art performance, validating both the soft boundary fusion and DAM components for robust, controllable editing without extra supervision.
Abstract
Text-guided image editing aims to modify specific regions according to the target prompt while preserving the identity of the source image. Recent methods exploit explicit binary masks to constrain editing, but hard mask boundaries introduce artifacts and reduce editability. To address these issues, we propose FusionEdit, a training-free image editing framework that achieves precise and controllable edits. First, editing and preserved regions are automatically identified by measuring semantic discrepancies between source and target prompts. To mitigate boundary artifacts, FusionEdit performs distance-aware latent fusion along region boundaries to yield the soft and accurate mask, and employs a total variation loss to enforce smooth transitions, obtaining natural editing results. Second, FusionEdit leverages AdaIN-based modulation within DiT attention layers to perform a statistical attention fusion in the editing region, enhancing editability while preserving global consistency with the source image. Extensive experiments demonstrate that our FusionEdit significantly outperforms state-of-the-art methods. Code is available at \href{https://github.com/Yvan1001/FusionEdit}{https://github.com/Yvan1001/FusionEdit}.
