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

利用大语言模型的背景知识提升强化学习的样本效率

Improving Sample Efficiency of Reinforcement Learning with Background Knowledge from Large Language Models

Nanjing University(南京大学);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);Tencent(腾讯)

Fuxiang Zhang, Junyou Li, Yi-Chen Li, Zongzhang Zhang, Yang Yu, Deheng Ye

AI总结:

本文提出利用大语言模型提取环境通用背景知识并以势函数形式进行奖励塑形,从而在保持策略最优性的同时提升多种下游强化学习任务的样本效率。

摘要:

低样本效率是强化学习(RL)长期面临的挑战。随着通用大语言模型(LLMs)的出现,近期研究通过引入常识知识来加速RL过程的策略学习。然而,我们注意到此类指导通常针对某一特定任务定制,因而丧失了泛化能力。本文提出一个框架,利用LLMs提取环境的背景知识,其中包含对整个环境的通用理解,使各种下游RL任务都能从一次性的知识表示中受益。我们通过输入少量预先收集的经验来锚定LLMs,并要求它们描述环境的背景知识。随后,我们将输出的知识表示为势函数,用于基于势的奖励塑形,该方法具有良好的性质,能够保持来自任务奖励的策略最优性。我们实例化了三种提示LLMs获取背景知识的变体,包括编写代码、标注偏好和分配目标。实验表明,这些方法在Minigrid和Crafter领域的一系列下游任务中取得了显著的样本效率提升。

英文摘要:

Low sample efficiency is an enduring challenge of reinforcement learning (RL). With the advent of versatile large language models (LLMs), recent works impart common-sense knowledge to accelerate policy learning for RL processes. However, we note that such guidance is often tailored for one specific task but loses generalizability. In this paper, we introduce a framework that harnesses LLMs to extract background knowledge of an environment, which contains general understandings of the entire environment, making various downstream RL tasks benefit from one-time knowledge representation. We ground LLMs by feeding a few pre-collected experiences and requesting them to delineate background knowledge of the environment. Afterward, we represent the output knowledge as potential functions for potential-based reward shaping, which has a good property for maintaining policy optimality from task rewards. We instantiate three variants to prompt LLMs for background knowledge, including writing code, annotating preferences, and assigning goals. Our experiments show that these methods achieve significant sample efficiency improvements in a spectrum of downstream tasks from Minigrid and Crafter domains.

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

↑