ImageRAG: Dynamic Image Retrieval for Reference-Guided Image Generation

Rotem Shalev-Arkushin, Rinon Gal, Amit H. Bermano, Ohad Fried
2/13/2025
cs.CVcs.GR

No confident code implementation found for this paper.

Abstract

Diffusion models enable high-quality and diverse visual content synthesis. However, they struggle to generate rare or unseen concepts. To address this challenge, we explore the usage of Retrieval-Augmented Generation (RAG) with image generation models. We propose ImageRAG, a method that dynamically retrieves relevant images based on a given text prompt, and uses them as context to guide the generation process. Prior approaches that used retrieved images to improve generation, trained models specifically for retrieval-based generation. In contrast, ImageRAG leverages the capabilities of existing image conditioning models, and does not require RAG-specific training. Our approach is highly adaptable and can be applied across different model types, showing significant improvement in generating rare and fine-grained concepts using different base models. Our project page is available at: https://rotem-shalev.github.io/ImageRAG

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shalevarkushin2025imagerag,
  title  = {ImageRAG: Dynamic Image Retrieval for Reference-Guided Image Generation},
  author = {Rotem Shalev-Arkushin and Rinon Gal and Amit H. Bermano and Ohad Fried},
  year   = {2025},
  eprint = {2502.09411},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.09411v2}
}

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/2502.09411.svg)](https://codeofpaper.com/paper/2502.09411)

Discussion