Google Research Introduces Retrieve-for-Train (R4T): An RL-Compiled Diffusion Retriever for 12× to 20× Faster Query Fan-Out
Search and recommendation systems increasingly need to return a set of results, not one best match.A query like ‘camping gear’ should return a tent, a sleeping bag, a stove, and a headlamp.It should not return 10 near-identical tents.
Google Research has introduced Retrieve-for-Train (R4T) for this problem.The framework uses reinforcement learning (RL) once, offline, to learn good query fan-out.It then distills that behavior into a small diffusion model that produces all retrieval directions in 1 pass.
Why Standard Fan-Out Falls Short Query fan-out splits one broad prompt into several sub-queries.The research team identifies 2 problems when a generic LLM does this at inference time.The first is paraphrastic collapse.
For ‘Bohemian festival style,’ zero-shot Qwen3-4B wrote ‘bohemian festival fashion’ and ‘festival bohemian clothes.’ These near-synonyms retrieve a homogeneous slate.The second is latency.Autoregressive generation plus repeated retrieval calls is slow.
Best-of-N sampling improves quality but multiplies inference cost.The 3-Step R4T Pipeline Fan-out LM training: A fan-out language model (FOLM) generates k sub-queries.A frozen dense retriever executes them.A set-level reward scores the whole retrieved set, not each item alone.
Supervision synthesis: The trained FOLM samples 128 fan-outs per query at temperature 0.9.These become (query, target set) training pairs with no human labels.For open-ended tasks, targets are retrieved-content embeddings.For compositional tasks, targets are sub-query embeddings.
Diffusive retriever training: A 53.9M-parameter diffusion transformer learns to map a query embedding to a full set of target embeddings.It uses a variance-exploding formulation within the EDM framework.At inference, it generates all embeddings in a single non-autoregressive pass.
Nearest-neighbor search then maps each embedding to database items.Reward Design and Reward Hacking For open-ended abstract retrieval (OAR), the reward combines 3 weighted terms: Groundedness (λg = 0.6): penalizes distance between each sub-query embedding and its nearest database item.
Diversity (λd = 0.2): the Vendi Score over representative retrieved items, such as the top-1 item per sub-query.Alignment (λa = 0.2): mean cosine similarity between each sub-query and the original query.
For weakly supervised compositional retrieval (WSCR), the reward is the fraction of reference-set items the fan-out retrieves.The ablation explains why all 3 OAR terms are important.With groundedness alone, Gemma3-4B converged to strings like ‘line ending line ending line ending.
’ Adding alignment made collapse even faster, as the policy repeated paraphrases of the query.Adding diversity closed both shortcuts.Training uses GRPO with soft PPO regularization, which adds forward and reverse KL penalties.
Key settings include group size 8, learning rate 1×10⁻⁷, and global batch size 512.Interactive Explainer (function(){var f=document.getElementById("r4t-mtp-frame");window.addEventListener("message",function(e){if(!f||e.source!==f.contentWindow)return;var d=e.data;if(d&&typeof d.
r4tHeight==="number"&&d.r4tHeight>200){f.style.height=d.r4tHeight+"px";}});})(); Results Experiments used the Polyvore fashion outfit dataset with a CLIP-based matryoshka encoder at 128 dimensions.They also used a proprietary expert-playlist music dataset with MuLan embeddings.
Every fan-out method produced k = 10 sub-queries, and Best-of-N used N = 5.OAR quality was scored by an LLM judge on 5-point Likert scales.On Polyvore, Gemma3-4B R4T-FOLM averaged 49.1, versus 40.9 for Best-of-N and 38.5 zero-shot.Diversity rose from 56.0 zero-shot to 76.8.
R4T-Diffusion retained most of it at 74.3.On Music, Gemma3-4B R4T-FOLM averaged 58.1 versus 49.2 for Best-of-N.Groundedness is not reported for R4T-Diffusion, since it produces no text sub-queries.WSCR results on Polyvore show a coverage and diversity trade-off.R4T-FOLM (Qwen) reached 20.
9 Recall@5K and 64.6 Hit@5K, versus 15.7 and 52.1 for Gemini-2.5-Flash.Its Vendi Score, however, dropped to 27.5.The authors link this to reduced output entropy under strong RL optimization.R4T-Diffusion (Qwen) kept a higher Vendi Score of 34.7 with 16.5 Recall@5K.
Efficiency At batch size 8, autoregressive fan-out took about 1.46 seconds.The diffusion model took 0.07 seconds.At batch size 1024, autoregressive fan-out reached nearly 50 seconds, versus 4.21 seconds for diffusion.The authors report a consistent 12× to 20× speedup.
Key Takeaways R4T runs RL once offline, then deploys a 53.9M-parameter diffusion retriever.3 rewards (groundedness, diversity, alignment) block reward hacking and paraphrastic collapse.Gemma3-4B R4T-FOLM lifted Polyvore OAR average from 40.9 (Best-of-N) to 49.1.
Diffusion fan-out runs 12× to 20× faster than autoregressive fan-out.Check out the Paper and Technical details.All credit goes to the researcher of this project.Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!
are you on telegram?now you can join us on telegram as well.Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?
Connect with us The post Google Research Introduces Retrieve-for-Train (R4T): An RL-Compiled Diffusion Retriever for 12× to 20× Faster Query Fan-Out appeared first on MarkTechPost.
Related
相關文章

無問芯穹與華環電子簽署戰略合作,共同探索國產異構算力AI基礎設施新方向
無問芯穹與華環電子簽署戰略合作協議,雙方將結合各自在AI軟體平台、網路通信與硬體研發的優勢,共同探索國產異構算力基礎設施的協同方案。此次合作聚焦於智算中心解決方案及「Token工廠」新模式,目標是推動計算、網路與AI原生基礎設施深度融合,為AI規模化應用提供高效穩定的支撐。
Jina AI Releases jina-ocr-v1: A 3.4B MoE Document Parser With Built-In Speculative Decoding for Low-Budget GPUs
Jina AI, part of Elastic, has released jina-ocr-v1, an end-to-end visual document parser. It takes PDFs, scans, tables, charts or invoices and returns clean Markdown in 1 pass. The model has 3.

優步全球範圍裁員 10%,被裁員工稱 AI 已大舉滲透日常工作
作者:清源 責編:清源 評論: 9 月 18 日消息,據《商業內幕》今天(18 日)晚間報道,在優步(Uber),AI 已經滲透到員工工作的許多環節,從回答 Slack 裡的內部問題,到替乘客行程中聯繫客服時收到的消息撰寫回復。6 名近期遭裁員的員工透露,過去幾個月,AI 在工作中的使用範圍明顯擴大,其中一些人甚至會通過提示詞讓 AI 完成相當一部分任務。

智譜 ZCode 被質疑“偷傳代碼”:官方回應稱問題已修復,將開源代碼庫、引入第三方審查
作者:清源 責編:清源 評論: 感謝網友 咩咩洋 的線索投遞!9 月 18 日消息,針對社區中有關代碼庫數據上傳的討論,智譜旗下編程產品 ZCode 今天(18 日)通過智譜官方群組向受影響用戶致歉,併發布回應稱已第一時間完成自查,相關問題目前已經修復。

月之暗面遞表之後,Kimi 的成色要被驗算三遍
舒澤品牌手記2026.09.18 18:16 · 來自浙江全文4982字00:00 / 14:05Anthropic 的 30 萬次指控,會成為招股書的第幾頁?文 | 舒澤品牌手記9月17日,月之暗面發佈了一套金融行業解決方案。按官方披露,中信建投、中金公司、易方達等數十家金融機構已經在用 Kimi 處理投研建模、風險排查和盡調材料——研究人員把管理層報表、審計報告和盡調文件交給 Kimi,拿回一份可以繼續調整假設的 Excel 模型。同一天,深圳商報記者就港股上市進展、股東架構調整等事項向月之暗面發去採訪函。

Calibre上手 AI 互動寫作:電子書管理器搖身變成"文字冒險遊戲引擎"
這個遊戲默認藏而不發,不會跟著 Calibre 啟動就冒出來。用戶得主動在"首選項 — 工具欄和菜單"裡把它請到主工具欄,才算真正激活。它的玩法很清晰:由 AI 在後臺搭起並掌管一個虛構世界,用戶通過不斷輸入文字來推著故事往前走,等於把"讀電子書"這件事,翻轉成了"和 AI 一起寫故事"。