Reproduce “RealRAG: Retrieval-augmented Realistic Image Generation via Self-reflective Contrastive Learning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yuanhuiyi Lyu, Xu Zheng, Lutao Jiang, Yibo Yan, Xin Zou, Huiyu Zhou, Linfeng Zhang, Xuming Hu
RealRAG introduces a retrieval-augmented generation framework for text-to-image models, employing a self-reflective contrastive learning mechanism to address knowledge gaps in generating fine-grained and novel real-world objects. This approach consistently lowered FID scores by an average of 3.62% to 8.94% across fine-grained datasets and improved classification accuracy by up to 3.89%, while human evaluations found over 70% of RealRAG-generated images to be realistic.
Key insights
- Leveraging a generator's current output as a 'reflective negative' during retriever training effectively guides the retriever to seek out genuinely missing or distinct visual information, rather than merely similar images.
- A modular RAG framework can seamlessly integrate with various pre-trained text-to-image architectures (U-Net, DiT, auto-regressive) without requiring their full retraining, making it broadly applicable.
- Focusing on object-specific missing knowledge, rather than just broad semantic relevance, is crucial for enhancing realism and accuracy in generating fine-grained and novel visual content.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.