两厢情愿:强化学习协同进化生成式检索器

·

研究论文 · 2026/09/03

检索是现代搜索和广告系统的第一阶段,从大型物品库中选择候选集供下游排序和拍卖使用。近期工作越来越多地利用大语言模型(LLM)通过查询扩展、数据合成和检索反馈训练来改进检索。然而,生成组件通常用于查询侧增强,而最终匹配仍由下游检索器完成。我们提出CoGR,一种检索框架,直接训练LLM在查询和物品两侧构建检索表示。每个生成器产生一组紧凑的关键词,通过倒排索引直接匹配,保持与现有基于关键词的检索基础设施兼容。CoGR采用两阶段训练流程:监督微调首先建立对齐的关键词空间,然后协同进化强化学习交替优化查询侧和物品侧生成器,使用GRPO针对对侧冻结索引。两侧优化相同的查询到物品检索F1目标:查询侧直接接收检索F1,而物品侧接收反事实边际奖励,衡量其生成关键词引起的查询侧F1变化。在10个代表性的稀疏、密集和生成基线上,CoGR在内部APP市场数据集和公共WANDS基准上均取得最佳性能,F1分别比最强基线提高10.9%和36.1%。进一步分析显示训练过程中稳定的协同进化和日益对齐的查询-物品关键词空间。

该论文提出了一种新颖的检索框架CoGR,将生成式LLM直接用于构建查询和物品两侧的检索表示,并通过协同进化强化学习优化,在多个基线上取得显著提升。其方法创新性强,实验充分,对检索领域具有重要参考价值。

Retrieval is the first stage of modern search and advertising systems, selecting a candidate set from a large item universe for downstream ranking and auction. Recent work increasingly leverages LLMs to improve retrieval through query expansion, data synthesis, and retrieval-feedback training. However, the generative component is typically used for query-side augmentation, while final matching is still delegated to a downstream retriever. We introduce CoGR, a retrieval framework that instead trains LLMs to directly construct retrieval representations on both query and item sides. Each generator produces a compact set of keywords, which are matched directly through an inverted index, preserving compatibility with existing keyword-based retrieval infrastructure. CoGR uses a two-stage training pipeline. Supervised fine-tuning first establishes an aligned keyword space, after which co-evolving reinforcement learning alternately optimizes the query- and item-side generators with GRPO against the opposite side's frozen index. Both sides optimize the same query-to-item retrieval F_1 objective: the query side receives retrieval F_1 directly, while the item side receives a counterfactual marginal reward measuring the change in query-side F_1 caused by its generated keywords. Across 10 representative sparse, dense, and generative baselines, CoGR achieves the best performance on both an internal APP Marketplace dataset and the public WANDS benchmark, improving F_1 over the strongest baseline by 10.9% and 36.1%, respectively. Further analysis shows stable co-evolution and increasingly aligned query--item keyword spaces over training.

阅读原文

参与讨论