RSD

Retrieval-Seeded Diffusion

for Semantic Flow Models

Omer SeriShimon MalnickShai Avidan

Tel Aviv University

Retrieved neighbours give a frozen model a better start, closer to the target domain

Source N(0, I)Targett = 0t = 1Retrievedt = t₀shifttoward μμεzt₀

Released sampler0 / 50 steps

Released sampler: An outdoor area with many animals including a zebra and a rhinoceros.

RSD0 / 8 steps

RSD: An outdoor area with many animals including a zebra and a rhinoceros.

An outdoor area with many animals including a zebra and a rhinoceros.

Released samplerRSD

Released sampler: A young girl with a blue bow in her hair wears a yellow hat and looks at the viewer.
RSD: A young girl with a blue bow in her hair wears a yellow hat and looks at the viewer.
A young girl with a blue bow in her hair wears a yellow hat and looks at the viewer.
Released sampler: A half eaten banana being held by a human hand.
RSD: A half eaten banana being held by a human hand.
A half eaten banana being held by a human hand.
Released sampler: three dogs on a field of green grass
RSD: three dogs on a field of green grass
three dogs on a field of green grass
Released sampler: A large black semi parked in a parking lot.
RSD: A large black semi parked in a parking lot.
A large black semi parked in a parking lot.

Abstract

Diffusion models are trained to map a source distribution (usually, a Gaussian) to a target distribution (say, of natural images). The Gaussian distribution is chosen because it is easy to sample from, and the diffusion process is often guided by a text prompt in order to achieve a specific outcome. A recent line of text-to-image models operates in semantic latent spaces rather than a pixel compression one, so that nearby latents share content rather than appearance, and it is these semantic models that we focus on. Often, the images we want belong to the domain of a specific dataset, such as photographs, anime or paintings, yet sampling still starts from the same Gaussian, which takes neither the prompt nor the dataset into account. We propose a method that generates images more similar to the dataset's domain, in fewer steps, by enhancing the Gaussian using the dataset, and call this approach Retrieval-Seeded Diffusion, or RSD. Specifically, we store a semantic latents dataset of captioned images. Given a new text prompt, we find its nearest neighbours in the text embedding space, use them to retrieve their semantic latent image representation counterparts, and use the mean of the semantic latent image vectors to guide the initial seed for the diffusion model. Relying on a dataset requires no training and a new dataset can always be introduced or updated. Experiments on three frozen semantic backbones, Scale-RAE, SVG-T2I and SeFi-Image, and three retrieved datasets, show that RSD lowers FID to the target dataset in eight of nine settings, by up to 57%, at 6.25× fewer sampling steps, with comparable prompt alignment.

Method

From neighbours to a new seed

RetrievalWeighted MeanFrozen ModelFull Flowprompt“A painting of a lakewith mountains in thedistance, featuring atree with red leavesin the foreground.”qtext spaceembedtop-kA painting of a tree with red leaves and amountain in the background.37%A painting of a mountain landscape with ared tree in the foreground.32%A painting of a tree in the foreground witha lake and mountains in the background.7%37%32%7%Σweightedmeananchor μnoise εnew seed zt₀vθfrozenstep 0 / 88 stepsdecodeRSD outputprompt“A painting of a lakewith mountains in thedistance, featuring atree with red leavesin the foreground.”text spaceneighbours37%32%7%Σweightedmeananchor μnoise εRetrievalWeighted MeanFrozen ModelFull Flowprompt“A painting of a lakewith mountains in thedistance, featuring atree with red leavesin the foreground.”qtext spaceembedtop-kA painting of a tree with red leaves and amountain in the background.37%A painting of a mountain landscape with ared tree in the foreground.32%A painting of a tree in the foreground witha lake and mountains in the background.7%37%32%7%Σweightedmeananchor μnoise εnew seed zt₀vθfrozenstep 0 / 8decodeRSD outputprompt“A painting of a lakewith mountains in thedistance, featuring atree with red leavesin the foreground.”text spaceneighbours37%32%7%Σweightedmeananchor μnoise εnew seed zt₀vθfrozen8 stepsdecodeRSD output

How far to step

Why semantic spaces

Semantic neighbours stay together

Impurity

Corpus images closer to μ than the n-th neighbour All corpus images

Neighbours are found by their captions, Impurity checks whether their images also stay together.

The same image latent neighbours stay together in a semantic space and are scattered among other image latents in a VAE space.

Cite

BibTeX

seri2026rsd.bib
@misc{seri2026rsd,  title         = {Retrieval-Seeded Diffusion for Semantic Flow Models},  author        = {Seri, Omer and Malnick, Shimon and Avidan, Shai},  year          = {2026},  eprint        = {2611.39943},  archivePrefix = {arXiv},  primaryClass  = {cs.CV},  url           = {https://arxiv.org/abs/2611.39943}}