LLM 如何指导强化学习?一种基于价值的方法
How Can LLM Guide RL? A Value-Based Approach
AI总结:
本文提出基于价值的强化学习方法 LINVIT 及其简化版 SLINVIT,利用 LLM 策略先验作为正则化因子提升样本效率,在三个交互环境中取得领先成功率。
摘要:
强化学习(RL)通过利用反馈改进未来行动策略,已成为顺序决策问题的事实标准实践。然而,RL 算法可能需要大量的试错交互来收集有用的反馈以进行改进。另一方面,大语言模型(LLMs)的最新进展在语言理解和生成方面展示了令人印象深刻的能力,但它们在规划任务的探索和自我改进能力方面存在不足,缺乏基于反馈自主优化其响应的能力。因此,在本文中,我们研究由 LLM 提供的策略先验如何提高 RL 算法的样本效率。具体来说,我们开发了一种名为 LINVIT 的算法,该算法将 LLM 指导作为基于价值的强化学习中的正则化因子,从而显著减少学习所需的数据量,特别是当理想策略与 LLM 引导策略之间的差异较小时,这表明初始策略接近最优,减少了进一步探索的需求。此外,我们提出了一种实用算法 SLINVIT,它简化了价值函数的构造,并利用子目标来降低搜索复杂度。我们在三个交互式环境 ALFWorld、InterCode 和 BlocksWorld 上的实验表明,我们的方法取得了最先进的成功率,并且在样本效率方面也超越了以往的 RL 和 LLM 方法。我们的代码可在 https://github.com/agentification/Language-Integrated-VI 获取。
英文摘要:
Reinforcement learning (RL) has become the de facto standard practice for sequential decision-making problems by improving future acting policies with feedback. However, RL algorithms may require extensive trial-and-error interactions to collect useful feedback for improvement. On the other hand, recent developments in large language models (LLMs) have showcased impressive capabilities in language understanding and generation, yet they fall short in exploration and self-improvement capabilities for planning tasks, lacking the ability to autonomously refine their responses based on feedback. Therefore, in this paper, we study how the policy prior provided by the LLM can enhance the sample efficiency of RL algorithms. Specifically, we develop an algorithm named LINVIT that incorporates LLM guidance as a regularization factor in value-based RL, leading to significant reductions in the amount of data needed for learning, particularly when the difference between the ideal policy and the LLM-informed policy is small, which suggests that the initial policy is close to optimal, reducing the need for further exploration. Additionally, we present a practical algorithm SLINVIT that simplifies the construction of the value function and employs subgoals to reduce the search complexity. Our experiments across three interactive environments ALFWorld, InterCode, and BlocksWorld demonstrate that our method achieves state-of-the-art success rates and also surpasses previous RL and LLM approaches in terms of sample efficiency. Our code is available at https://github.com/agentification/Language-Integrated-VI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。