atlas

Research map / Image generation / Text-to-image diffusion

RealRAG: Retrieval-augmented Realistic Image Generation via Self-reflective Contrastive Learning

ICML 2025 · Image generation › Text-to-image diffusion · approach: Personalized and region-controlled generation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RealRAG, a retrieval-augmented text-to-image framework whose retriever is trained with self-reflective contrastive learning (generator-generated images used as hard negatives) to fetch real-object images that fill the generator's knowledge gaps.

Problem

Text-to-image generators store visual knowledge in fixed parameters trained on closed datasets, so they hallucinate or distort fine-grained and newly appearing real-world objects; similarity-based retrieval does not supply the missing knowledge.

Approach

Train a reflective retriever on top of CLIP by treating the generator's own outputs as hard negatives (the real-object images most similar to generated images), so retrieved references lie outside the generator's generation space yet near the text prompt; the retrieved image is then fed to the frozen generator (via ControlNet for diffusion models, directly for AR models).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply RealRAG to SD V2.1SD V2.1 · Stanford CarsCLIP-I: 61.48 -> 64.50Helped
Apply RealRAG to FluxFlux · Stanford CarsFID: 58.47 -> 52.28Helped
Apply RealRAG to SD V2.1SD V2.1 · Stanford DogsCLIP-I: 68.80 -> 79.06Helped
Apply RealRAG to SD V2.1SD V2.1 · Oxford FlowersCLIP-I: 82.97 -> 88.43Helped
Replace standard contrastive learning with self-reflective contrastive learning (ablation)Emu RealRAG · Stanford CarsFID: 76.85 -> 70.55Helped
Replace standard contrastive learning with self-reflective contrastive learning (ablation)Emu RealRAG · Stanford CarsCLIP-T: 14.31 -> 15.30Helped
Train the retriever with standard contrastive learning instead of using pre-trained CLIP retrieval (ablation)Emu RAG · Stanford CarsFID: 80.75 -> 76.85Helped
Replace standard contrastive learning with self-reflective contrastive learning (ablation)Emu RAG · Three fine-grained datasetsAverage accuracy: 38.98 -> 39.90Helped
Replace standard contrastive learning with self-reflective contrastive learning (ablation)SD V2.1 RAG · Three fine-grained datasetsAverage accuracy: 39.73 -> 40.23Helped
Replace standard contrastive learning with self-reflective contrastive learning (ablation)Flux RAG · Three fine-grained datasetsAverage accuracy: 39.27 -> 40.37Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Stanford Cars Stanford Dogs Oxford Flowers Google Images (novel objects)

Benchmarks: Stanford Cars Stanford Dogs Oxford Flowers

Metrics: FID CLIP-I CLIP-T classification accuracy (OpenCLIP) 7-point Likert human score

Baselines: OmniGen Emu Stable Diffusion V2.1 SDXL Stable Diffusion V3 Flux Zero-RAG Normal-RAG

Builds on: CLIP ControlNet contrastive learning for retrieval RDM (retrieval-augmented diffusion models)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy