Specify and Edit: Overcoming Ambiguity in Text-Based Image Editing
Ekaterina Iakovleva, Fabio Pizzati, Philip Torr, Stéphane Lathuilière
TL;DR
This work tackles the fragility of text-based diffusion editing under ambiguous user prompts by introducing SANE, a zero-shot pipeline that uses a large language model to decompose an ambiguous instruction into a set of specific edits. It then combines these specific instructions with the original prompt inside the diffusion denoising process via a novel noise-aggregation and CFG-based guidance, enabling accurate, interpretable, and diverse edits without model training. The approach yields consistent gains across multiple baselines and datasets, with higher gains as the number of specific instructions increases, and is shown to improve interpretability by exposing the decomposition to users. SANE is broadly applicable to pre-trained instruction-based diffusion models and advances practical image editing by addressing ambiguity in natural language instructions.
Abstract
Text-based editing diffusion models exhibit limited performance when the user's input instruction is ambiguous. To solve this problem, we propose $\textit{Specify ANd Edit}$ (SANE), a zero-shot inference pipeline for diffusion-based editing systems. We use a large language model (LLM) to decompose the input instruction into specific instructions, i.e. well-defined interventions to apply to the input image to satisfy the user's request. We benefit from the LLM-derived instructions along the original one, thanks to a novel denoising guidance strategy specifically designed for the task. Our experiments with three baselines and on two datasets demonstrate the benefits of SANE in all setups. Moreover, our pipeline improves the interpretability of editing models, and boosts the output diversity. We also demonstrate that our approach can be applied to any edit, whether ambiguous or not. Our code is public at https://github.com/fabvio/SANE.
