Text Guided Image Editing with Automatic Concept Locating and Forgetting
Jia Li, Lijie Hu, Zhixian He, Jingfeng Zhang, Tianhang Zheng, Di Wang
TL;DR
The paper addresses semantic misalignment in text-guided image editing with diffusion models by automatically locating target concepts in the input image through scene descriptions and dependency parsing, then applying negative forgetting during denoising to realign edits with the textual instruction. The proposed Locate and Forget (LaF) framework comprises a two-stage process: (1) align the input prompt with the image context to identify edit targets, and (2) perform selective forgetting via negative guidance during diffusion to suppress unintended content. Empirical results on TedBench and MagicBrush show substantial gains in alignment (CLIP-T) and realism (IS), with ablations highlighting an optimal forgetting strength; a human study further corroborates LaF’s superior editing quality. The work advances controllable, language-driven image editing by reducing reliance on manual localization and improving semantic coherence across diverse datasets, while also acknowledging limitations in quantifying certain numeric edits and broader societal implications.
Abstract
With the advancement of image-to-image diffusion models guided by text, significant progress has been made in image editing. However, a persistent challenge remains in seamlessly incorporating objects into images based on textual instructions, without relying on extra user-provided guidance. Text and images are inherently distinct modalities, bringing out difficulties in fully capturing the semantic intent conveyed through language and accurately translating that into the desired visual modifications. Therefore, text-guided image editing models often produce generations with residual object attributes that do not fully align with human expectations. To address this challenge, the models should comprehend the image content effectively away from a disconnect between the provided textual editing prompts and the actual modifications made to the image. In our paper, we propose a novel method called Locate and Forget (LaF), which effectively locates potential target concepts in the image for modification by comparing the syntactic trees of the target prompt and scene descriptions in the input image, intending to forget their existence clues in the generated image. Compared to the baselines, our method demonstrates its superiority in text-guided image editing tasks both qualitatively and quantitatively.
