arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.09248cs.LGcs.AIcs.CL
收藏

基于大语言模型推演的离线强化学习构建知识型智能体

Knowledgeable Agents by Offline Reinforcement Learning from Large Language Model Rollouts

Nanjing University(南京大学)

Jing-Cheng Pang, Si-Hang Yang, Kaiyuan Li, Jiaji Zhang, Xiong-Hui Chen, Nan Tang, Yang Yu

AI总结:

针对大语言模型与强化学习融合的语义鸿沟问题,提出KALM方法,通过微调LLM实现环境接地以生成虚构推演,经离线RL训练的智能体在未见目标任务上成功率显著优于基线。

摘要:

强化学习(RL)通过环境交互数据训练智能体完成复杂任务,但其能力也受限于可用数据的范围。为获得知识型智能体,一种颇具前景的方法是利用大语言模型(LLM)中的知识。尽管已有研究将LLM与RL结合,但二者间存在语义鸿沟,实现无缝融合仍具挑战。本文提出一种名为Knowledgeable Agents from Language Model Rollouts(KALM,基于语言模型推演的知识型智能体)的新方法,该方法以虚构推演的形式从LLM中提取知识,智能体可通过离线强化学习方法轻松学习这些知识。KALM的主要挑战在于LLM的环境接地问题,因为LLM本质上仅处理文本数据,而环境数据通常包含LLM未见过的数值向量。为解决这一问题,KALM对LLM进行微调,使其能基于环境数据执行多种任务,包括技能的自然语言描述与其对应推演数据之间的双向转换。这一接地过程增强了LLM对环境动态的理解,使其能够生成多样化且有意义的、体现新技能的虚构推演。在CLEVR-Robot环境上的初步实证评估表明,KALM使智能体能够完成任务目标的复杂改写,并将能力扩展到需要前所未有的最优行为的新任务中。KALM在执行含未见目标的任务时成功率达46%,大幅超过基线方法26%的成功率。此外,KALM有效使LLM理解环境动态,从而生成体现新技能的有意义虚构推演,证明了大语言模型与强化学习的无缝融合。

英文摘要:

Reinforcement learning (RL) trains agents to accomplish complex tasks through environmental interaction data, but its capacity is also limited by the scope of the available data. To obtain a knowledgeable agent, a promising approach is to leverage the knowledge from large language models (LLMs). Despite previous studies combining LLMs with RL, seamless integration of the two components remains challenging due to their semantic gap. This paper introduces a novel method, Knowledgeable Agents from Language Model Rollouts (KALM), which extracts knowledge from LLMs in the form of imaginary rollouts that can be easily learned by the agent through offline reinforcement learning methods. The primary challenge of KALM lies in LLM grounding, as LLMs are inherently limited to textual data, whereas environmental data often comprise numerical vectors unseen to LLMs. To address this, KALM fine-tunes the LLM to perform various tasks based on environmental data, including bidirectional translation between natural language descriptions of skills and their corresponding rollout data. This grounding process enhances the LLM's comprehension of environmental dynamics, enabling it to generate diverse and meaningful imaginary rollouts that reflect novel skills. Initial empirical evaluations on the CLEVR-Robot environment demonstrate that KALM enables agents to complete complex rephrasings of task goals and extend their capabilities to novel tasks requiring unprecedented optimal behaviors. KALM achieves a success rate of 46% in executing tasks with unseen goals, substantially surpassing the 26% success rate achieved by baseline methods. Furthermore, KALM effectively enables the LLM to comprehend environmental dynamics, resulting in the generation of meaningful imaginary rollouts that reflect novel skills and demonstrate the seamless integration of large language models and reinforcement learning.

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

↑