ClickDiffusion: Harnessing LLMs for Interactive Precise Image Editing
Alec Helbling, Seongmin Lee, Polo Chau
TL;DR
This paper tackles the challenge of achieving precise image edits with natural language prompts alone by introducing ClickDiffusion, which fuses NL instructions with direct manipulation to disambiguate targets and specify exact spatial edits. It serializes the image layout and multimodal instructions into text, leverages an LLM with in-context and chain-of-thought prompting to generate an edited layout, and then renders the result using a layout-based diffusion generator. Key contributions include a novel LLM-based framework for integrating visual feedback with text instructions, a lightweight five-tool UI for accessible editing, and a few-shot prompting approach that generalizes to unseen transformations without training. The approach promises practical impact by enabling fine-grained, interactive edits with concise instructions, reducing reliance on complex prompts and enabling precise control over object location and appearance.
Abstract
Recently, researchers have proposed powerful systems for generating and manipulating images using natural language instructions. However, it is difficult to precisely specify many common classes of image transformations with text alone. For example, a user may wish to change the location and breed of a particular dog in an image with several similar dogs. This task is quite difficult with natural language alone, and would require a user to write a laboriously complex prompt that both disambiguates the target dog and describes the destination. We propose ClickDiffusion, a system for precise image manipulation and generation that combines natural language instructions with visual feedback provided by the user through a direct manipulation interface. We demonstrate that by serializing both an image and a multi-modal instruction into a textual representation it is possible to leverage LLMs to perform precise transformations of the layout and appearance of an image. Code available at https://github.com/poloclub/ClickDiffusion.
