Retrieval-Seeded Diffusion for Semantic Flow Models

Omer Seri, Shimon Malnick, Shai AvidanarXiv 2026

TL;DR

Standard text-to-image diffusion models always start their journey from the exact same place—pure, clueless Gaussian noise—regardless of what you ask them to draw. Retrieval-Seeded Diffusion (RSD) gives modern semantic flow models a massive head start by nudging that initial noise ever so slightly toward an average of real, prompt-relevant images from a target dataset. With zero retraining, it generates higher-fidelity, domain-aligned images in 6.25× fewer steps.

What Problem Does This Paper Address?

Imagine a sculptor starting every statue from an identical block of marble, whether carving a teacup or an elephant. That is how diffusion and flow-matching models work: they map a simple Gaussian distribution $\mathcal{N}(0, I)$ to complex images, ignoring both the text prompt and the desired style (like anime or oil paintings) at step zero.

Recently, a new breed of generative models has shifted away from traditional pixel-compression latent spaces (like standard VAEs, where images group by colors and textures) to semantic latent spaces (built on representation encoders like DINO or SigLIP, where images group by meaning). Yet even these semantic models still start from the same blind Gaussian prior. While researchers have tried learning prompt-dependent starting points before, those require training the model from scratch. The authors ask: Can we use an external folder of captioned images to build a plug-and-play, training-free starting point that steers a frozen model toward a specific domain?

Methods

RSD changes only where the sampler starts—the frozen model’s weights, schedule, and conditioning are completely untouched.

Figure 1. RSD shifts the seed ϵ toward an anchor. The anchor µ is a weighted mean of the semantic latents of images retrieved for the prompt. RSD moves ϵ a short step t0 towards it and lets the frozen flow model run from there. Left: from the same ϵ, the released sampler (orange) might land off the prompt’s mode, while RSD (blue) reaches it in fewer steps, drawn as segments. Right: the released sampler (SeFi-Image) with 50 steps (top) and RSD with 8 (bottom).

Here is how it works:

  1. Offline Indexing: You take a corpus of captioned images from your target domain. You store each caption's text embedding alongside the image's vector in the generator's semantic latent space.
  2. Retrieval & Anchoring: Given a new prompt, RSD finds the $k=50$ closest captions in the corpus. It fetches their corresponding image latents and computes a similarity-weighted average (controlled by a temperature $\tau = 0.02$). This average vector is the anchor ($\mu$).
  3. The 5% Nudge: Theoretically, a flow model's very first step from pure noise tries to point toward the expected mean of all images matching the prompt. Instead of making the network guess this from its weights, RSD analytically takes a tiny step $t_0 = 0.05$ directly toward the real-data anchor: $z_{t_0} = 0.05\mu + 0.95\epsilon$.
  4. Standard Sampling: Starting from $t_0 = 0.05$ (which is still 95% pure random noise!), the frozen flow model runs its standard Euler solver for just $N=8$ steps instead of 50.

Datasets

Because RSD is training-free, datasets serve as both the plug-and-play retrieval corpora and evaluation benchmarks (each split into a retrieval bank and 5,000 held-out test pairs):

  • COCO: Natural photographs (~118k corpus images).
  • Anime: Illustrations (~121k filtered images).
  • WikiArt: Fine art paintings (~70k filtered images, recaptioned via moondream2).

No new datasets were introduced, though the authors filtered Anime and WikiArt for token length, NSFW content, and near-duplicates of the test set.

Key Insights and Ideas

  • Why Semantic Spaces Are the Secret Sauce: If you average 50 photos of "a dog" in pixel space or a standard VAE space, you get a blurry brown blob because the spaces care about pixel appearance. To prove semantic spaces are different, the authors introduce retrieval impurity—the fraction of the entire dataset that sits closer to the anchor than the retrieved neighbors themselves. Traditional VAE spaces are 5 to 56 times more impure than semantic spaces! In a semantic space, neighbors form a tight conceptual cluster, so their average actually means something.
  • Look Ma, No Prompt Guidance: If you turn off text conditioning completely ($w=0$) and feed the model only the 5%-nudged noise seed, it still generates images matching the prompt—closing ~75% of the CLIP alignment gap to the guided baseline while beating its visual fidelity (FID).
  • Tiny Corpora Still Work: You don't need millions of images to steer a domain. Retrieving from a random subset of just 100 COCO images is enough to beat the 50-step baseline's FID.
  • It Doesn't Plagiarize or Collapse Modes: One might worry that seeding with real images causes copy-pasting or kills variety. Because the seed is still 95% Gaussian noise, near-duplicate rates remain tiny (matching the baseline), and per-prompt output diversity actually increases on DreamSim and Vendi metrics.

Key Results

Tested across three distinct, frozen semantic flow backbones (Scale-RAE, SVG-T2I, and SeFi-Image):

  • Faster & Better: Running in just 8 steps (a 6.25× step speedup over the 50-step baseline), RSD lowers FID (better image quality/domain match) in 8 out of 9 backbone-dataset combinations by up to 57% (e.g., Scale-RAE on WikiArt drops from 74.34 to 32.07 FID), while maintaining comparable CLIP prompt alignment.
  • Beats Training-Free Peers: Against Reference-Mean Guidance (RMG)—a training-free guidance method adapted from VAE spaces—RSD is 2.5× faster (8 steps vs. 20) and matches or beats RMG's FID in every single setting, with higher sample diversity.

Limitations and Future Work

  • Storage Footprint: Because corpus latents must be stored in the specific backbone's semantic space, the precomputed database can require up to tens of gigabytes of storage (the authors note an auxiliary network can be trained to predict the anchor directly from text to save space, though that sacrifices the "zero-training" perk when switching domains).
  • Domain Boundaries: Cross-corpus ablations show that RSD isn't a magic "make everything prettier" button—using an Anime corpus to seed COCO photo prompts hurts FID. Your corpus needs to match your target domain, and when a model's semantic space has high impurity on a domain (like SeFi-Image on Anime), the method falls short. (Note: Additional limitations are referenced as being in Section F of the appendix, which is outside the main text).

Summary updated

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