Agentic Retoucher for Text-To-Image Generation
Shaocheng Shen, Jianfeng Liang. Chunlei Cai, Cong Geng, Huiyu Duan, Xiaoyun Zhang, Qiang Hu, Guangtao Zhai
TL;DR
This work tackles persistent localized distortions in text-to-image diffusion outputs by reframing post-generation editing as a perception–reasoning–action loop. It introduces Agentic Retoucher, a three-agent system that localizes distortions via a context-aware saliency predictor, performs human-aligned reasoning with progressive preference optimization, and executes adaptive, region-specific inpainting through a modular toolset. To enable supervised learning and evaluation of fine-grained artifacts, the GenBlemish-27K dataset provides pixel-level masks and natural-language descriptions across 12 artifact categories. Empirical results show consistent improvements in local perceptual quality, distortion localization, and human preference alignment over state-of-the-art baselines, establishing a self-corrective paradigm for reliable T2I generation. The approach promises practical impact in industrial and creative workflows by enabling autonomous, interpretable refinements without full-image re-generation.
Abstract
Text-to-image (T2I) diffusion models such as SDXL and FLUX have achieved impressive photorealism, yet small-scale distortions remain pervasive in limbs, face, text and so on. Existing refinement approaches either perform costly iterative re-generation or rely on vision-language models (VLMs) with weak spatial grounding, leading to semantic drift and unreliable local edits. To close this gap, we propose Agentic Retoucher, a hierarchical decision-driven framework that reformulates post-generation correction as a human-like perception-reasoning-action loop. Specifically, we design (1) a perception agent that learns contextual saliency for fine-grained distortion localization under text-image consistency cues, (2) a reasoning agent that performs human-aligned inferential diagnosis via progressive preference alignment, and (3) an action agent that adaptively plans localized inpainting guided by user preference. This design integrates perceptual evidence, linguistic reasoning, and controllable correction into a unified, self-corrective decision process. To enable fine-grained supervision and quantitative evaluation, we further construct GenBlemish-27K, a dataset of 6K T2I images with 27K annotated artifact regions across 12 categories. Extensive experiments demonstrate that Agentic Retoucher consistently outperforms state-of-the-art methods in perceptual quality, distortion localization and human preference alignment, establishing a new paradigm for self-corrective and perceptually reliable T2I generation.
