DialogDraw: Image Generation and Editing System Based on Multi-Turn Dialogue

Shichao Ma, Xinfeng Zhang, Zeng Zhao, Bai Liu, Changjie Fan, Zhipeng HuAAAI 2025

Abstract

DialogDraw is a conversational image generation and editing framework designed to address the challenges of iterative creativity. By employing an Intention Recognition and Parameter Extraction Model (IRPEM) to orchestrate a library of specialized drawing pipelines, the system maintains visual consistency and command compliance across multi-turn dialogues. Experimental results demonstrate that DialogDraw outperforms existing monolithic models like GPT-4 in both subject preservation and instruction following.

Introduction

While text-to-image (T2I) models like Stable Diffusion and DALL-E 3 have revolutionized digital art, they often struggle with the "iterative" nature of creativity. Most current workflows are single-turn: a user provides a prompt, receives an image, and must either start over or use complex manual tools if the result is unsatisfactory.

Existing conversational agents frequently suffer from two primary issues: intent mismatch, where they expand simple requests into flowery prompts that ignore specific instructions, and consistency loss, where re-generating images from scratch causes subjects or styles to drift significantly from the original context.

Methods and System Architecture

DialogDraw functions as an intelligent controller for a library of specialized image generation and editing tools. The core of the system is the Intention Recognition and Parameter Extraction Model (IRPEM), built on the Qwen-VL Multi-modal Large Language Model (MLLM).

Example of multi-turn dialogue processing in DialogDraw, showing intention recognition and parameter extraction.

As shown in the figure above, the IRPEM identifies the appropriate "tool" (pipeline) for a user's request and extracts necessary parameters, such as prompts or reference images. The system utilizes a modular library of 20 popular open-source pipelines, including SDXL for generation and InstructPix2Pix for editing. This modularity allows for high scalability; adding new capabilities simply requires integrating a new pipeline into the database.

Training Process

The model undergoes a two-stage training process to refine its orchestration capabilities:

  1. Supervised Fine-Tuning (SFT): The model is trained to map human dialogue to structured tool calls in JSON format.
  2. Direct Preference Optimization (DPO): A form of Reinforcement Learning from Human Feedback (RLHF) ensures the model follows human preferences and avoids generating repetitive or garbled text.

The DrawnConvos Dataset

To support multi-turn drawing dialogues, the authors introduced DrawnConvos, a dataset of 10,000 dialogues ranging from single-turn to complex 3+ turn interactions. The dataset was constructed using GPT-4 for dialogue generation and SDXL for image creation, with human annotations providing a "gold standard" for the RLHF/DPO training phase. This dataset also serves as a benchmark for evaluating multi-turn Visual Question Answering (VQA) and image consistency.

Key Results and Evaluation

DialogDraw was evaluated against several heavyweights, including GPT-4 and DialogGen, using metrics focused on consistency and instruction compliance.

Qualitative comparison of DialogDraw against SEED-LLaMA, DialogGen, and GPT-4 across two multi-turn dialogues.
  • Image Consistency: Using the Multi-turn CLIP Similarity metric, DialogDraw achieved a score of 0.7835, significantly outperforming GPT-4 (0.7412). This is largely due to its ability to perform direct latent editing rather than full re-generation.
  • Command Compliance: On the Instruct Edit Coherence (IEC) metric, which measures the ability to execute specific edits accurately, DialogDraw led the pack with a score of 0.8196.
  • Human Preference: In blind tests, users preferred DialogDraw’s outputs for complex, multi-step commands, resulting in a "Human Score" of 0.8494, the highest in the study.

Conclusion

DialogDraw demonstrates the power of orchestration over monolithic modeling. By acting as a high-level router for specialized tools, it preserves subject identity and ensures cumulative context is respected throughout a conversation. Future work will focus on expanding the pipeline library to include more niche artistic styles and refining general conversation capabilities to match the fluidity of general-purpose LLMs.

Summary updated

BibTeX
@inproceedings{ma2025dialogdraw,
  author = {Shichao Ma and Xinfeng Zhang and Zeng Zhao and Bai Liu and Changjie Fan and Zhipeng Hu},
  title = {{DialogDraw: Image Generation and Editing System Based on Multi-Turn Dialogue}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i23.34661},
}
Figure