用于智能体持续学习的循环线束

·

研究论文 · 2026/10/12

语言模型智能体日益在长交互流中运行,需要通过持续学习在线适应分布变化。然而,现有智能体框架通常仅通过前向信息流演化状态,或依赖额外回放或验证数据进行框架优化。为此,我们提出ReHarness,一种用于智能体持续学习的循环框架,在严格在线流协议下,以前向读写补充后向修正。我们探究框架状态中哪些信息可以不同方式捕获,以更好地为流中当前实例提供信息。具体而言,在每个实例之后,我们利用产生的轨迹作为反馈,修正为该实例检索的反思,从而通过文本框架状态向后传播反馈。在三个持续学习基准和三个语言模型骨干上,ReHarness始终优于强大的原始上下文基线、基于记忆和反思的方法以及提示优化方法。进一步分析表明,ReHarness产生有源可依且有意义的修正,在分布变化下纠正过度泛化或过时的经验,并提高持续学习中的稳定性和可塑性。

该工作提出了一种新颖的循环框架,通过后向修正文本状态来增强智能体的持续学习能力,在多个基准和模型上验证了有效性,并深入分析了其修正机制和稳定性-可塑性平衡,对在线持续学习领域有重要参考价值。

Language model agents increasingly operate over long interaction streams, requiring online adaptation to distribution shifts through continual learning. However, existing agent harnesses typically either evolve their states only through forward information flow or rely on additional replay or validation data for harness optimization. To address this, we propose ReHarness, a recurrent harness framework for agentic continual learning that complements forward read and write with backward revision under a strictly online streaming protocol. We ask what information could have been captured differently in the harness state to better inform the current instance in the stream. Specifically, after each instance, we leverage the resulting trajectory as feedback to revise the reflections retrieved for that instance, thereby propagating feedback backward through the textual harness state. Across three continual learning benchmarks and three language model backbones, ReHarness consistently outperforms strong raw-context baselines, memory- and reflection-based methods, and prompt optimization approaches. Further analysis shows that ReHarness produces source-grounded and meaningful revisions, corrects overgeneralized or outdated experience under distribution shifts, and improves both stability and plasticity during continual learning.

阅读原文

参与讨论