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

Junyan Ye, Leiqi Zhu, Yuncheng Guo, Dongzhi Jiang, Zilong Huang, Yifan Zhang, Zhiyuan Yan, Haohuan Fu, Conghui He, Weijia LiarXiv 2025 · OpenReview

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.

Introduction: Escaping the Uncanny Valley

Despite the massive success of models like FLUX, GPT-4o, and Qwen-Image, AI-generated photos often fall into the "uncanny valley." They frequently exhibit distinct artifacts: skin that is "too perfect" or "overly smooth," unnatural "oily" facial sheens, and a lack of the subtle imperfections found in real photography. Current training methods—which often rely on human preference scores—are part of the problem. Humans tend to favor "pretty" or "artistic" images over strictly "realistic" ones. Consequently, models learn to produce aesthetically pleasing but fundamentally "fake-looking" results. The challenge is finding an objective, scalable way to reward true photorealism without human-in-the-loop bottlenecks.

The RealGen Framework

RealGen introduces a "Detector-for-Generation" paradigm. Instead of relying on subjective human scores, it uses specialized AI models designed to catch fakes as the primary reward signal. The framework consists of two main parts:

  1. LLM Optimization: A Large Language Model (Qwen-3 4B) is trained to rewrite simple user prompts into rich, "realism-aware" descriptions. It learns to explicitly mention natural details like "faint pores" or "slight sheens" to guide the image generator.
  2. Diffusion Optimization: The diffusion model (FLUX.1-dev with LoRA) is fine-tuned using Group Relative Policy Optimization (GRPO). It learns to adjust its internal weights to produce images that "evade" detectors while maintaining high text alignment.
The RealGen optimization process: evading synthetic detectors to improve semantic and feature-level realism over 200 training steps.

The system uses two types of detectors to evaluate generated images: Semantic Detectors (e.g., Forensic-Chat), which look for visible artifacts like unnatural background blur, and Feature-level Detectors (e.g., OmniAID), which analyze deep-seated pixel patterns and frequency artifacts that signify a synthetic origin.

Evaluation and RealBench

To evaluate photorealism accurately, we introduced RealBench, a new benchmark consisting of 1,000 high-quality, real-world images and captions across seven categories (Portrait, Outdoor, Indoor, Object, etc.). Evaluation is performed via Detector-Scoring and Arena-Scoring (judged by GPT-5).

In head-to-head battles, RealGen achieved a win rate of nearly 50% against actual real-world photos, suggesting its outputs are becoming difficult to distinguish from reality. Furthermore, RealGen significantly outperformed state-of-the-art models in detector evasion. On the Forensic-Chat detector, it scored 80.84, compared to 75.63 for GPT-Image-1 and 57.10 for the specialized FLUX-Krea.

Diverse photorealistic outputs generated by RealGen across various categories, demonstrating high detail and authentic textures.

Conclusion

RealGen proves that optimizing for "non-detectability" is a more effective path to photorealism than optimizing for general aesthetic beauty. By treating photorealism as an adversarial game against synthetic detectors, RealGen successfully eliminates common AI artifacts, replacing them with realistic skin pores, natural lighting, and authentic textures. Future work will explore scaling this framework to video generation, where temporal artifacts remain a significant challenge.

Summary updated

BibTeX
@misc{ye2025realgen,
  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},
  title = {{RealGen: Photorealistic Text-to-Image Generation via Detector-Guided Rewards}},
  year = {2025},
  eprint = {2512.00473},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.00473},
}
Figure