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

即时强化学习:无需梯度更新的LLM智能体持续学习

Just-In-Time Reinforcement Learning: Continual Learning in LLM Agents Without Gradient Updates

University of Science and Technology of China(中国科学技术大学)

Yibo Li, Zijie Lin, Ailin Deng, Xuan Zhang, Yufei He, Shuo Ji, Tri Cao, Bryan Hooi

AI总结:

提出JitRL框架,通过动态非参数记忆和即时优势估计,无需梯度更新即可实现LLM智能体的测试时策略优化,在WebArena和Jericho上达到训练无关方法最优,且性能超越微调方法,成本降低30倍以上。

摘要:

尽管大型语言模型(LLM)智能体在通用任务上表现出色,但由于部署后权重冻结,它们在持续适应方面存在固有困难。传统的强化学习(RL)提供了一种解决方案,但会带来高昂的计算成本和灾难性遗忘的风险。我们引入了即时强化学习(JitRL),这是一个无需训练的框架,能够在没有任何梯度更新的情况下实现测试时策略优化。JitRL维护一个动态的非参数经验记忆,并检索相关轨迹以即时估计动作优势。这些估计随后用于直接调制LLM的输出logits。我们从理论上证明,这种加法更新规则是KL约束策略优化目标的精确闭式解。在WebArena和Jericho上的大量实验表明,JitRL在训练无关方法中建立了新的最先进水平。关键的是,JitRL在性能上超越了计算昂贵的微调方法(如WebRL),同时将货币成本降低了30倍以上,为持续学习智能体提供了一条可扩展的路径。代码可在https://github.com/liushiliushi/JitRL获取。

英文摘要:

While Large Language Model (LLM) agents excel at general tasks, they inherently struggle with continual adaptation due to the frozen weights after deployment. Conventional reinforcement learning (RL) offers a solution but incurs prohibitive computational costs and the risk of catastrophic forgetting. We introduce Just-In-Time Reinforcement Learning (JitRL), a training-free framework that enables test-time policy optimization without any gradient updates. JitRL maintains a dynamic, non-parametric memory of experiences and retrieves relevant trajectories to estimate action advantages on-the-fly. These estimates are then used to directly modulate the LLM's output logits. We theoretically prove that this additive update rule is the exact closed-form solution to the KL-constrained policy optimization objective. Extensive experiments on WebArena and Jericho demonstrate that JitRL establishes a new state-of-the-art among training-free methods. Crucially, JitRL outperforms the performance of computationally expensive fine-tuning methods (e.g., WebRL) while reducing monetary costs by over 30 times, offering a scalable path for continual learning agents. The code is available at https://github.com/liushiliushi/JitRL.

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

↑