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

TextualRL:用于上下文管理的文本强化学习

TextualRL: Textual Reinforcement Learning for Context Management

School of Computer Science and Technology, East China Normal University(华东师范大学计算机科学与技术学院);Shanghai Innovation Institute(上海创新研究院);Fudan University(复旦大学)

Tianyu Huai, Jie Zhou, Bo Mao, Qin Chen, Liang He, Xipeng Qiu

AI总结:

TextualRL是一种无梯度强化学习框架,以同一任务的一组轨迹为策略批判单元,经分组策略批判与跨组策略更新生成文本补丁,在六个基准测试中分别使GPT-5.5和Qwen3.8-27B的测试准确率提升24.4和15.3个百分点。

摘要:

大语言模型(LLM)智能体可通过修改指导其行为的文本上下文来适配任务反馈,且无需调整模型参数。然而,将执行奖励转化为可复用的上下文更新颇具挑战:单个轨迹仅能提供关于需修改内容的有限对比证据,而针对特定任务的修复若被纳入共享上下文,可能出现过度泛化问题。我们提出TextualRL,这是一种无梯度强化学习框架,它将同一上下文下同一任务的一组rollouts(轨迹)而非孤立轨迹作为策略批判的单元。分组策略批判会对比同一任务内成功与失败的rollouts;当结果一致时,它会借助跨任务证据识别值得保留的行为或制定修复假设。跨组策略更新会结合各组汇总的证据(包括未提出任何编辑的观测结果)来审查生成的提议,以优化其内容与适用性。经审查的提议构成有界文本补丁,候选上下文的采用由保留验证奖励决定。这些组件共同构建了一个奖励驱动的策略优化循环,其中多次尝试协同为可复用上下文更新提供信息。我们在六个基准测试中评估了TextualRL对五个目标智能体的性能。在六个基准测试的平均值上,TextualRL使GPT-5.5的测试准确率较基础模型提升24.4个百分点,使Qwen3.8-27B提升15.3个百分点。

英文摘要:

LLM agents can adapt to task feedback by revising the textual context that guides their behavior, without changing their model parameters. However, turning execution rewards into reusable context updates is challenging: individual trajectories offer limited comparative evidence about what to change, while task-specific fixes may overgeneralize when incorporated into a shared context. We introduce TextualRL, a gradient-free reinforcement learning framework that treats a group of rollouts from the same task under the same context, rather than an isolated trajectory, as the unit of policy critique. Groupwise Policy Critique contrasts successful and failed rollouts within a task; when outcomes are uniform, it draws on cross-task evidence to identify behaviors worth preserving or formulate repair hypotheses. Cross-Group Policy Update reviews the resulting proposals against evidence pooled across groups, including observations that yield no proposed edit, to refine their content and applicability. Reviewed proposals form a bounded textual patch, with adoption of the candidate context determined by held-out validation rewards. Together, these components establish a reward-driven policy optimization loop in which multiple attempts jointly inform reusable context updates. We evaluate TextualRL with five target agents on six benchmarks. Averaged over the six benchmarks, TextualRL improves test accuracy over the base model by 24.4 and 15.3 percentage points for GPT-5.5 and Qwen3.8-27B, respectively.

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

↑