RealGen: Photorealistic Text-to-Image Generation via Detector-Guided Rewards

Junyan Ye, Leiqi Zhu, Yuncheng Guo, Dongzhi Jiang, Zilong Huang +5 more
11/29/2025
cs.CVcs.AI

Official code: yejy53/RealGen (328 stars, last commit 2026-03-13).

Abstract

With the continuous advancement of image generation technology, advanced models such as GPT-Image-1 and Qwen-Image have achieved remarkable text-to-image consistency and world knowledge However, these models still fall short in photorealistic image generation. Even on simple T2I tasks, they tend to produce " fake" images with distinct AI artifacts, often characterized by "overly smooth skin" and "oily facial sheens". To recapture the original goal of "indistinguishable-from-reality" generation, we propose RealGen, a photorealistic text-to-image framework. RealGen integrates an LLM component for prompt optimization and a diffusion model for realistic image generation. Inspired by adversarial generation, RealGen introduces a "Detector Reward" mechanism, which quantifies artifacts and assesses realism using both semantic-level and feature-level synthetic image detectors. We leverage this reward signal with the GRPO algorithm to optimize the entire generation pipeline, significantly enhancing image realism and detail. Furthermore, we propose RealBench, an automated evaluation benchmark employing Detector-Scoring and Arena-Scoring. It enables human-free photorealism assessment, yielding results that are more accurate and aligned with real user experience. Experiments demonstrate that RealGen significantly outperforms general models like GPT-Image-1 and Qwen-Image, as well as specialized photorealistic models like FLUX-Krea, in terms of realism, detail, and aesthetics. The code is available at https://github.com/yejy53/RealGen.

View on arXivView PDF

Code Implementations(1)

yejy53/RealGenOfficial100%

RealGen: Photorealistic Text-to-Image Generation via Detector-Guided Rewards.

32818Shell, PythonNov 27, 20257 months ago

Similar Papers

Cite this paper

@article{ye2025realgen,
  title  = {RealGen: Photorealistic Text-to-Image Generation via Detector-Guided Rewards},
  author = {Junyan Ye and Leiqi Zhu and Yuncheng Guo and Dongzhi Jiang and Zilong Huang and Yifan Zhang and Zhiyuan Yan and Haohuan Fu and Conghui He and Weijia Li},
  year   = {2025},
  eprint = {2512.00473},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.00473v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.00473.svg)](https://codeofpaper.com/paper/2512.00473)

Discussion