arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05087cs.CLcs.IR
收藏

基于强化学习的黑盒检索文档优化

Document Optimization for Black-Box Retrieval via Reinforcement Learning

Stanford University(斯坦福大学);ContextualAI

Omri Uzan, Ron Polonsky, Douwe Kiela, Christopher Potts

AI总结:

提出通过强化学习(GRPO)优化文档表示,使其与目标检索器的查询分布对齐,仅需黑盒访问检索排名,在代码和视觉文档检索任务中提升性能,使小模型超越大模型。

摘要:

文档扩展是提升检索质量的经典技术,因其将计算移至离线、避免额外查询时处理而具有吸引力。然而,当应用于现代检索器时,它已被证明会降低性能,常常引入噪声从而混淆判别信号。我们将文档扩展重新定义为文档优化问题:使用GRPO,以检索器的排名改进作为奖励,微调语言模型或视觉语言模型,将文档转换为与目标检索器下预期查询分布更对齐的表示。该方法仅需黑盒访问检索排名,并适用于单向量、多向量和词法检索器。我们在代码检索和视觉文档检索(VDR)任务上评估了该方法。我们发现,学习到的文档变换带来了检索增益,并且在许多设置中,使得更小、更高效的检索器能够超越更大的检索器。例如,将文档优化应用于OpenAI text-embedding-3-small模型,在代码检索上nDCG5从58.7提升至66.8,在VDR上从53.3提升至57.6,甚至略微超过了贵6.5倍的OpenAI text-embedding-3-large模型(代码66.3;VDR 57.0)。当检索器权重可访问时,文档优化通常与微调竞争力相当,并且在大多数设置中,它们的组合表现最佳,将Jina-ColBERT-V2在VDR上从55.8提升至63.3,在代码检索上从48.6提升至61.8。

英文摘要:

Generative large language models (LLMs) are increasingly used as inference-time components in retrieval pipelines, for tasks such as query rewriting and document reranking. However, these online approaches place costly autoregressive computation directly on the latency-critical retrieval path. We explore an alternative axis: using LLMs to improve documents instead, rewriting them into better representations and shifting computation offline. Yet producing a useful document rewrite is not straightforward: retrieval is inherently discriminative, so an effective rewrite must make a document more similar to relevant queries than competing candidates under the retriever's notion of similarity. We therefore formulate document transformation as an optimization problem, directly training an LLM or VLM to produce rewrites that improve retrieval. Our approach, DocOpt, uses GRPO with retriever ranking improvements as rewards, requires only black-box access to retrieval ranks, and applies across single-vector, multi-vector, and lexical retrievers. We evaluate zero-shot LLM rewriting and DocOpt on code and visual retrieval tasks, finding that document rewriting can improve retrieval and that optimizing rewrites yields further gains. For example, OpenAI text-embedding-3-small achieves 58.35 nDCG@5 on average with direct retrieval; zero-shot rewriting improves this to 60.83 with GPT-5.4-mini, 63.75 with Claude Haiku 4.5, and 64.23 with Qwen3. DocOpt further improves performance to 67.94, surpassing the 6.5X more expensive text-embedding-3-large retriever at 66.15.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑