DiffDoctor: Diagnosing Image Diffusion Models Before Treating
Yiyang Wang, Xi Chen, Xiaogang Xu, Sihui Ji, Yu Liu, Yujun Shen, Hengshuang Zhao
TL;DR
DiffDoctor presents a novel diagnose-then-treat framework that uses pixel-level artifact maps to actively steer image diffusion models away from generating artifacts. A robust artifact detector is trained on 1M+ samples through class-balanced data collection and human-in-the-loop labeling, producing per-pixel confidence maps $C(\cdot)$. These maps back-propagate into the diffusion process via a pixel-level loss $\mathcal{L}_{\text{pixel}}$, optionally complemented by an offline regularization term $\mathcal{L}_{\text{offline}}$, to yield improved artifact suppression while maintaining overall image quality on unseen prompts. The approach demonstrates reduced artifact frequencies across multiple backbones (e.g., FLUX.1, SDXL, Kolors) and outperforms baselines in both objective metrics and human studies, with demonstrated applicability to DreamBooth. Limitations include challenges with semantically complex artifacts, motivating future work on richer artifact reasoning within the detector.
Abstract
In spite of recent progress, image diffusion models still produce artifacts. A common solution is to leverage the feedback provided by quality assessment systems or human annotators to optimize the model, where images are generally rated in their entirety. In this work, we believe problem-solving starts with identification, yielding the request that the model should be aware of not just the presence of defects in an image, but their specific locations. Motivated by this, we propose DiffDoctor, a two-stage pipeline to assist image diffusion models in generating fewer artifacts. Concretely, the first stage targets developing a robust artifact detector, for which we collect a dataset of over 1M flawed synthesized images and set up an efficient human-in-the-loop annotation process, incorporating a carefully designed class-balance strategy. The learned artifact detector is then involved in the second stage to optimize the diffusion model by providing pixel-level feedback. Extensive experiments on text-to-image diffusion models demonstrate the effectiveness of our artifact detector as well as the soundness of our diagnose-then-treat design.
