ChatEdit: Towards Multi-turn Interactive Facial Image Editing via Dialogue

Xing Cui, Zekun Li, Pei Li, Yibo Hu, Hailin Shi, Chunshui Cao, Zhaofeng He

Introduction

Facial image editing has seen significant advancements through Generative Adversarial Networks (GANs) and Diffusion models. However, most existing tools are designed for "one-shot" edits or treat multi-turn interactions as a simple chain of independent operations. This often leads to two critical failures: attribute forgetting, where previous edits are lost in subsequent steps, and error accumulation, where repeated editing of the same image introduces artifacts and distorts the subject's identity.

ChatEdit addresses these challenges by framing the editing process as a task-oriented dialogue. By tracking a cumulative "belief state" of all requested attributes and applying them simultaneously to the original source image, the system ensures high-quality, consistent results throughout a conversation.

Methodology

The ChatEdit framework bridges Natural Language Processing (NLP) and Computer Vision (CV) through a two-module architecture:

  1. Task-Oriented Dialogue (TOD) Module: Built on the T5 architecture (initialized with PPTOD), this module serves as the system's controller. It parses user utterances to update a Belief State—a structured record of all requested attributes (e.g., expression, hair color) across the entire dialogue history.
  2. Image Editing Module: This module utilizes StyleCLIP and StyleGAN2. Rather than editing the output of the previous turn, it takes the original source image and applies the full set of attributes from the current belief state. This "global" editing strategy minimizes noise and preserves identity by ensuring the final image is always only one generation step away from the source.
The ChatEdit framework utilizes a task-oriented dialogue system to track user requests and maintain a cumulative belief state of image attributes.

The CHATEDIT Dataset

To support this research, the authors developed the CHATEDIT dataset, the first benchmark specifically for multi-turn interactive facial editing. Built upon CelebA-HQ, it contains 12,000 dialogues with approximately 96,000 utterances. The dataset covers 21 editable attributes across categories such as Expression, Hair Color, Hair Style, and Makeup. Each turn is meticulously annotated with the user's request, the system's natural language response, and the ground-truth belief state.

Key Results and Insights

ChatEdit demonstrates a paradigm shift from sequential to cumulative editing. By resetting the "noise clock" at every turn, the model achieves superior visual fidelity.

  • Image Quality: In multi-turn scenarios, ChatEdit maintains a Fréchet Inception Distance (FID) of ~40.5, significantly outperforming sequential baselines which often reach FID scores as high as ~132.5 due to artifact buildup.
  • Attribute Retention: The model shows high relevance in its edits, successfully combining multiple instructions (e.g., adding bangs, changing hair color, and adding a smile) without dropping earlier requests.
  • Dialogue Performance: The TOD module achieves a joint accuracy of ~89% in tracking user requests, surpassing general-purpose LLMs like ChatGPT in this specialized domain.
  • Human Evaluation: In blind preference tests, human evaluators chose ChatEdit's results over the previous state-of-the-art (Talk-to-Edit) 68% of the time.
Visual progression of multi-turn facial editing, demonstrating the system's ability to handle complex, cumulative attribute changes while maintaining the subject's identity.

Conclusion and Future Work

ChatEdit provides a robust framework for interactive image manipulation by treating editing as a state-tracking problem. While currently limited to 21 predefined attributes, the success of the cumulative editing approach suggests a clear path forward for more complex interactive AI tools. Future research will explore end-to-end training of the dialogue and vision modules to further enhance the alignment between natural language and pixel-level manipulations.

Summary updated

BibTeX
@inproceedings{cui2023chatedit,
  author = {Xing Cui and Zekun Li and Pei Li and Yibo Hu and Hailin Shi and Chunshui Cao and Zhaofeng He},
  title = {{ChatEdit: Towards Multi-turn Interactive Facial Image Editing via Dialogue}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.899},
}
Figure