RECON:基于压缩的推理用于高效检索增强生成
RECON: Reasoning with Condensation for Efficient Retrieval-Augmented Generation
AI总结:
提出RECON框架,在强化学习搜索代理的多轮推理中插入观察压缩器,通过两阶段课程训练实现上下文压缩,提升训练和推理效率并增强问答性能。
摘要:
基于强化学习(RL)训练的搜索代理在多轮、工具集成的推理(TIR)循环中交错进行推理和工具调用,每次工具调用返回的环境观察被附加到代理的上下文中。随着rollout的进行,这些原始观察不断累积,增加了token成本并稀释了可用于下游推理的信号。与单次检索-读取流水线(其中上下文压缩是一次性后处理步骤)不同,多轮RL设置需要在每个观察步骤进行压缩,同时保持与策略优化解耦。我们引入了RECON(REasoning with CONdensation)框架,通过在推理循环中插入专用的观察压缩器来解决这一挑战。压缩器通过两阶段课程进行训练:在QA数据集上进行相关性预训练,然后从专有LLM进行多方面蒸馏,并在RL训练期间保持冻结以保持策略稳定性。集成到Search-R1搜索代理流水线中,RECON将总上下文长度减少35%,训练速度提高5.4%,推理延迟降低30.9%,同时在3B代理上平均精确匹配提升14.5%,在7B代理上提升3.0%,在多跳QA中表现尤为突出。这些结果表明,学习的观察压缩是构建实用、可扩展的RL训练搜索代理的关键组件。
英文摘要:
Search agents trained with reinforcement learning (RL) interleave reasoning with tool calls in a multi-turn, tool-integrated reasoning (TIR) loop, where each tool invocation returns an environment observation that is appended to the agent's context. As the rollout proceeds, these raw observations accumulate, inflating token cost and diluting the signal available for downstream reasoning. Unlike single-pass retrieve-then-read pipelines, where context compression is a one-time postprocessing step, the multi-turn RL setting requires compression that runs at every observation step while remaining decoupled from policy optimization. We introduce RECON (REasoning with CONdensation), a framework that addresses this challenge by inserting a dedicated observation compressor into the reasoning loop. The compressor is trained via a two-stage curriculum: relevance pretraining on QA datasets followed by multi-aspect distillation from proprietary LLMs, and remains frozen during RL training to preserve policy stability. Integrated into the Search-R1 search-agent pipeline, RECON reduces total context length by 35%, improves training speed by 5.4% and inference latency by 30.9%, while boosting average exact-match by 14.5% on the 3B agent and 3.0% on the 7B agent, with particular strength in multi-hop QA. These results establish learned observation compression as a key component for building practical, scalable RL-trained search agents.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。