AGI Soon As Possible · Deep reads on AI & tech
Article

Google Research Compressed Query Fan-Out Into a 53.9M-Parameter Diffusion Model for Up to 20x Speedups

2026-09-19 · 12 min read

Google Research published Retrieve-for-Train (R4T) in a blog post on September 15, 2026. The method trains a fan-out language model once with reinforcement learning, then distills that behavior into a 53.9-million-parameter diffusion model for deployment, generating ten retrieval directions in a single non-autoregressive pass. In the latency measurement reported in arXiv 2603.06397, autoregressive fan-out took roughly 1.46 seconds at a batch of 8 and nearly 50 seconds at a batch of 1024, while the diffusion model recorded 0.07 seconds and 4.21 seconds under the same conditions, a consistent 12x to 20x difference. Quality rose alongside it: on the open-ended task over the Polyvore fashion dataset, the diversity score went from 56.0 for Gemma3-4B zero-shot to 76.8 for R4T-FOLM, and the average from 38.5 to 49.1. ASAP separates what this changes from how far it can be extended to AI search.

Fan-out breaks in two ways, and the two have different causes

The problem arXiv 2603.06397 addresses is set-valued retrieval, where a system handed a broad intent must return a whole collection of results instead of one best match. That collection has to jointly satisfy higher-order properties such as diversity, coverage, complementarity and coherence, and in that setting no single answer set is uniquely correct. Existing supervised datasets only cover top-1 retrieval and cannot express such objectives, so practice falls back on fan-out, expanding a broad query into several sub-queries.

The Google Research post names two distinct failures. One is paraphrastic collapse, where a model repeatedly generates near-synonymous queries instead of exploring distinct facets. The paper's qualitative example shows it directly. For the broad query "Bohemian festival style," Qwen3-4B zero-shot produced near-synonymous variants such as "bohemian festival style" and "bohemian festival fashion," while R4T produced branching directions such as "bohemian festival dress," "straw boots festival style" and "lace bohemian festival."

The other is autoregressive latency. Generating sub-queries sequentially and invoking retrieval at each step puts the cost of emitting long token sequences directly into response time. For production search that must stay under a second, that structure is itself the bottleneck. The two causes differ in kind, which matters: collapse is an objective-function problem while latency is a deployment-form problem, so fixing one leaves the other standing.

Using reinforcement learning once at training time, never at deployment, is the design

Reinforcement learning in R4T is an objective transducer used exactly once, at training time, rather than a component that ships inside the deployed system. Stage one trains a fan-out language model with a composite reward, a weighted sum of groundedness measuring fidelity to the database, diversity measured by Vendi Score, and alignment as semantic anchoring to the original query. Training runs with soft-GRPO carrying soft PPO regularization, over two 4-billion-parameter base models, Gemma3-4B and Qwen3-4B.

Stage two synthesizes supervision. The trained fan-out model serves as a behavior generator, sampling fan-out outputs per query and executing retrieval against a fixed database to produce (query, target-set) pairs offline. No human labeling is required, which is the point of the stage. What fills the target tensor depends on the task: for open-ended retrieval it holds the embeddings of retrieved contents, while for weakly supervised compositional retrieval it holds the embeddings of the optimized sub-queries, internalizing the search decomposition strategy itself.

Stage three trains a 53.9-million-parameter diffusion retriever to model the conditional distribution from a query embedding to a set of target embeddings. The implementation is variance-exploding diffusion inside the EDM framework, the denoiser is a transformer, the query embedding enters via cross-attention, and classifier-free guidance comes from randomly dropping the query during training. At inference the probability flow equation is solved, the result is sliced into ten embeddings, and nearest-neighbor retrieval maps them to database contents. Because set-valued retrieval is order-agnostic, target tensor rows are randomly permuted during training to secure permutation robustness.

The significance of this structure is where it puts the cost. The expensive work of discovering good fan-out behavior with RL is paid once at training time, and only a lightweight diffusion prior remains at deployment. In the paper's own framing, a heavy System 2 autoregressive generation is replaced by lightweight System 1 sampling.

Strip the diversity reward and the model repeats "line ending"

The ablation on the open-ended task makes clear that reward design is half of this method. Trained on the groundedness reward alone, the policy converged to meaningless strings, and the paper's example is "line ending line ending line ending," which happened to minimize embedding distance to a specific database item. Training on groundedness plus alignment collapsed even faster, as the policy repeated paraphrases of the original query to trivially maximize alignment while abandoning semantic dispersion.

Stable GRPO training appeared only when all three components were optimized jointly. The weighting experiments point in a consistent direction. When groundedness dominates, diversity rises while alignment degrades, over-tilting toward database proximity, and when alignment and diversity are emphasized, exploration is suppressed and coverage across alternative interpretations narrows. The paper describes diversity and alignment as mutual counter-anchors that force the policy into a region where shortcut solutions are ineffective.

This observation is the most reusable part of the work. It demonstrates with a concrete output that designing a reward around a single metric lets a model find the cheapest degenerate solution that satisfies it. The string "line ending" looks comical, but it is also a warning that systems optimized in embedding space can settle on solutions no human would read.

Where the scores split across the fashion and music datasets

Experiments ran on the Polyvore fashion dataset and a proprietary music dataset of expert-generated playlists. Candidate pools are 21,888 collections for Task 1 and 142,472 items for Task 2, with 8,522 playlist embeddings for music. The embedding backbone is a CLIP-based encoder trained with matryoshka representation learning at dimension 128 for Polyvore, and MuLan for music. Baselines are a no-fan-out retriever, three zero-shot fan-out variants (Gemini-2.5-Flash, Gemma3-4B, Qwen3-4B), and Best-of-N, which runs fan-out five times and keeps the highest-reward result. All methods use ten sub-queries.

The Polyvore open-ended results separate the effect of fan-out from the effect of R4T. The no-fan-out baseline averages 26.1, Gemma3-4B zero-shot 38.5, Best-of-N 40.9 and R4T-FOLM 49.1. Diversity moves most, from 34.4 through 56.0 and 61.0 up to 76.8. Alignment goes from 21.4 to 39.8 and groundedness from 22.4 to 30.8. The music dataset follows the same order, with the average moving from 36.9 through 48.1 and 49.2 to 58.1.

The diffusion retriever settles slightly below the fan-out language model. On Polyvore, R4T-Diffusion posts diversity 74.3 and alignment 37.6 against R4T-FOLM's 76.8 and 39.8. Groundedness is not measurable for it because there is no intermediate sub-query, so the table marks it blank. What this table says is that the deployment model holds nearly all of the training model's quality while cutting latency by an order of magnitude.

The weakly supervised compositional task exposes a trade between coverage and diversity. Recall@5K rises from 6.0 for Gemma3-4B zero-shot to 16.9 for R4T-FOLM, and from 10.1 for Qwen3-4B to 20.9, while Hit@5K rises from 25.9 to 54.4 and from 33.9 to 64.6. Diversity measured by Vendi Score, however, falls from 46.4 to 27.5 in the Qwen line. The diffusion side softens that exchange: R4T-Diffusion (Qwen) delivers Recall 16.5 and Hit 57.5 while holding diversity at 34.7. The paper explicitly notes that reference sets are one plausible realization rather than exhaustive ground truth, so lower recall does not necessarily mean lower quality.

The real stake is 50 seconds against 4.21 seconds at a batch of 1024

The efficiency measurement compares wall-clock time to generate ten sub-queries across batch sizes. The autoregressive approach carries large constant overhead even at small batches, taking about 1.46 seconds at a batch of 8 and scaling linearly to nearly 50 seconds at a batch of 1024. The 53.9-million-parameter diffusion model records 0.07 seconds and 4.21 seconds under the same conditions. The paper's stated conclusion is a consistent 12x to 20x speedup, with sharply reduced deployment memory overhead.

Batch size is worth pausing on. For a single user's query, the difference between 1.46 seconds and 0.07 seconds is perceptible but both are serviceable. The problem arrives when concurrent requests pile up. A structure that takes 50 seconds at a batch of 1024 backs up the queue the moment traffic lands, which narrows the set of scenarios where fan-out can be used at all. What this paper actually solved is not the quality of fan-out but whether fan-out can be left switched on.

The Best-of-N comparison says the same thing. The paper credits Best-of-N as clearly better than zero-shot fan-out while noting that it requires multiple independent fan-out executions per query, raising inference cost by an order of magnitude. R4T outperforming Best-of-N while using a single pass at deployment is the core claim of the method.

How far this paper extends to AEO, and where the line sits

The scope of these experiments is set-valued retrieval over fashion items and music playlists, not web document search and not AI answer generation. The datasets are Polyvore and a private music corpus, not a web corpus. This result therefore cannot be used as evidence about citation behavior in AI search.

It still carries a structural implication. Query fan-out expands a broad query into several sub-queries and retrieves for each, which belongs to the same family of techniques as an AI search system splitting one question into several threads to gather evidence. That Google Research brought a 12x to 20x cost reduction for this technique to ICML 2026 reads as a signal that the technology is moving toward leaving fan-out on more often and across more requests.

If that direction holds, the content-side implication converges on one point. When fan-out is trained under a diversity reward, its objective becomes partitioning distinct facets rather than repeating synonyms. Just as R4T split the query into dress, boots and lace in the paper's example, a document that treats each distinguishable sub-facet of a topic thoroughly stands a better chance of matching several sub-queries. A document that restates the same claim in different wording is the opposite case.

This is an interpretation drawn from the paper's mechanism, not a result of the paper. Which rewards real AI search systems use to train fan-out, and how heavily they weight diversity, is not public. What can be stated with confidence is only that the latency cost of fan-out is falling, and the rest is a matter for verification.

The open questions, including one the paper leaves wobbling

The appendix of arXiv 2603.06397 lists four limitations, and the first is the upfront cost of the reinforcement learning stage itself. That stage requires repeated interaction with a frozen retriever and explicit reward computation, so training overhead may be substantial for extremely large or frequently changing databases. Second, the method assumes desired retrieval properties can be expressed as explicit reward functions, while preferences such as creativity, novelty or cultural sensitivity resist scalar encoding. Third, open-ended evaluation depends on LLM-as-a-Judge and may inherit the judge model's biases. Fourth, results may depend on the choice of base language model, embedding space and diffusion architecture.

There is also one wobble inside the document itself. The experimental setup in the main text states that Gemini-2.5-Pro was used for open-ended evaluation, while Appendix B, which details the metrics, states that Gemini-2.5-Flash was adopted for its multimodal input support. Which model actually served as judge cannot be settled from this manuscript, and since every open-ended score comes from LLM judging, that is not a small inconsistency to wave through.

The nature of the measurements deserves the same attention. Open-ended scores are LLM judgments on a 5-point Likert scale rather than comparisons against ground truth, and the paper itself pins down that recall on the weakly supervised task should be read only as a proxy for semantic coverage, given that reference sets are not complete answers. Neither task yields absolute numbers that sit comfortably next to other papers. That the music dataset is proprietary limits reproducibility further.

In short, R4T's contribution is a rearrangement of cost structure rather than a new retrieval quality record. Fan-out behavior discovered by RL was compressed into a 53.9-million-parameter diffusion prior, cutting deployment latency by 12x to 20x, and along the way the work left behind concrete failure output showing that a policy degenerates without a diversity reward. The next checkpoints are reproduction on a web document corpus and third-party verification on public datasets.

Sources: Bypassing inference bottlenecks: Accelerating complex AI search with Retrieve-for-Train (Google Research, September 15, 2026) · Efficient, Property-Aligned Fan-Out Retrieval via RL-Compiled Diffusion (arXiv:2603.06397v1, March 6, 2026, ICML 2026)

ASAP — AGI Soon As Possible

AI & tech,
read in depth

Beyond the headlines — into the context and the structure

AGI Soon As Possible · asapai.co.kr

← All posts