ReSum: 通过强化学习协同LLM推理与摘要生成
ReSum: Synergizing LLM Reasoning and Summarization with Reinforcement Learning
AI总结:
提出ReSum框架,利用自摘要机制让LLM压缩和组织推理轨迹,通过对比评估自适应触发摘要,在提升性能4%的同时减少18.6%的推理长度。
摘要:
可验证奖励强化学习(RLVR)是提升大语言模型(LLM)长程推理的核心技术。然而,现有RLVR方法常鼓励不必要的长推理轨迹,这会降低推理连贯性并耗尽可用上下文预算。现有的长上下文组织方法通常依赖外部机制来组织轨迹,而非让模型自主管理推理过程。为解决此局限,我们提出ReSum,一种新颖的RLVR框架,使LLM能够通过自摘要压缩和组织其推理轨迹。我们的初步研究表明,自摘要通过降低token级熵来稳定生成,并且引入“摘要”短语可显著减少从错误轨迹前缀传播的误差。受此启发,ReSum采用一种摘要感知的自适应轨迹机制,通过对比评估自摘要是否有利于当前推理过程。具体而言,当模型自发触发自摘要时,ReSum屏蔽摘要短语以创建对比分支;对于非摘要位置,则随机注入该短语以创建匹配分支。我们进一步设计了摘要感知优势函数,以实现对比轨迹之间更细粒度的比较。大量实验表明,ReSum在平均提升4%性能的同时,将推理长度减少18.6%。
英文摘要:
Reinforcement Learning with Verifiable Rewards (RLVR) is a central technique for improving long-horizon reasoning in Large Language Models (LLMs). However, existing RLVR methods often encourage unnecessarily long reasoning rollouts, which can degrade reasoning coherence and exhaust the available context budget. Existing approaches to long-context organization often depend on external mechanisms to organize rollouts, rather than enabling the model to manage its own reasoning trajectory. To address this limitation, we propose ReSum, a novel RLVR framework that enables LLMs to compress and organize their reasoning trajectories through self-summarization. Our pilot studies show that self-summarization stabilizes generation by lowering token-level entropy, and that introducing a ``summarization'' phrase can substantially mitigate errors propagated from an incorrect rollout prefix. Motivated by these findings, ReSum adopts a summarization-aware adaptive rollout mechanism that contrastively evaluates whether self-summarization benefits the ongoing reasoning process. Specifically, when the model spontaneously triggers self-summarization, ReSum masks the summarization phrase to create a contrastive branch; for non-summarization positions, it instead randomly injects the phrase to create a matched branch. We further design a summarization-aware advantage to enable finer-grained comparison between contrastive rollout trajectories. Extensive experiments show that ReSum improves performance at an average of 4\% while reducing rollout length by 18.6\%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。