MagicQuill: An Intelligent Interactive Image Editing System

Zichen Liu, Yue Yu, Hao Ouyang, Qiuyu Wang, Ka Leong Cheng, Wen Wang, Zhiheng Liu, Qifeng Chen, Yujun Shen

Abstract

MagicQuill is an intelligent image editing system designed to bridge the gap between creative sketching and high-fidelity diffusion models. By integrating a "Draw&Guess" workflow powered by Multimodal Large Language Models (MLLMs), the system predicts user intent from simple brushstrokes, eliminating the need for manual text prompting. The architecture utilizes a dual-branch diffusion model to ensure spatial precision and color fidelity. Experimental results demonstrate that MagicQuill significantly reduces editing time while outperforming existing baselines in image quality and intent prediction accuracy.

1. Introduction

Generative AI has revolutionized image creation, yet precise, fine-grained editing remains challenging. Current state-of-the-art tools typically rely on either text instructions, which lack spatial precision, or mask-based inputs, which require cumbersome manual prompting. This "prompting gap"—the cognitive load of translating visual ideas into text strings—often hinders the creative process. MagicQuill addresses this by allowing users to interact solely through intuitive brushstrokes, with the system automatically inferring intent in real-time.

Overview of the MagicQuill interface and sequential editing workflow, demonstrating intent prediction and high-fidelity results.

2. Methodology

The MagicQuill system is composed of three primary modules: the Painting Assistor, the Editing Processor, and the Idea Collector.

2.1 Painting Assistor (Draw&Guess)

The Painting Assistor serves as the system's "brain," interpreting user sketches within the context of the original image. It utilizes a fine-tuned LLaVA-1.5 MLLM to perform the "Draw&Guess" task. By analyzing the rough contours of a sketch relative to the surrounding image content, the model predicts a concise semantic prompt (e.g., "flower crown" or "jacket"). This contextual awareness allows the system to distinguish between similar shapes based on their placement, such as a circle representing a button on a shirt versus a fruit on a plate.

2.2 Editing Processor

To translate predicted prompts into high-quality pixels, MagicQuill uses a dual-branch diffusion architecture:

  • Inpainting Branch: Provides content-aware guidance to ensure edited regions blend naturally with the original image.
  • Control Branch: Enforces structural and color fidelity using edge maps (via PiDiNet) and downsampled color blocks. These branches function as plug-ins, maintaining compatibility with various community-tuned base models without requiring weight alterations.

2.3 Idea Collector (Interface)

The user interface is designed for simplicity, featuring three specialized brushes:

  • Add Brush: Defines new structural edges.
  • Subtract Brush: Removes existing edges for object erasure.
  • Color Brush: Applies color blocks to guide the palette of the generated area.
The MagicQuill user interface and the specialized brush tools used for structural and color guidance.

3. Data and Evaluation

To train the Painting Assistor, the authors developed the Draw&Guess dataset, consisting of over 24,000 images synthesized from the Densely Captioned Images (DCI) dataset. User interactions were simulated by extracting object edges and applying mask expansion to mimic realistic, rough brushing.

3.1 Quantitative Results

MagicQuill was evaluated against baselines including SmartEdit, SketchEdit, and BrushNet. It achieved superior performance in image quality metrics, recording an LPIPS of 0.0667 and a PSNR of 27.282. Furthermore, its intent prediction accuracy (measured via GPT-4 similarity) reached 2.712, surpassing even GPT-4o (1.976) for this specialized task.

3.2 User Study

A study involving 30 participants demonstrated significant efficiency gains. MagicQuill reduced total editing time by approximately 25% on tablets and 20% on desktop PCs compared to traditional workflows requiring manual text entry.

4. Conclusion

MagicQuill presents a significant step forward in interactive image editing by automating the prompting process through intelligent sketch interpretation. By combining MLLM-based intent prediction with a robust dual-branch diffusion model, it provides a seamless, "brush-only" experience that preserves both creative freedom and technical precision. Future work will explore reference-based editing and layered generation for more complex scene compositions.

Summary updated

BibTeX
@inproceedings{liu2025magicquill,
  author = {Zichen Liu and Yue Yu and Hao Ouyang and Qiuyu Wang and Ka Leong Cheng and Wen Wang and Zhiheng Liu and Qifeng Chen and Yujun Shen},
  title = {{MagicQuill: An Intelligent Interactive Image Editing System}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01220},
}
Figure