实践出真知:通过强化学习使大语言模型与具身环境对齐
True Knowledge Comes from Practice: Aligning LLMs with Embodied Environments via Reinforcement Learning
AI总结:
针对大语言模型知识与具身环境不对齐、传统强化学习难融先验的问题,提出TWOSOME在线框架,通过基于LLM的行为策略、归一化与提示设计、共享LoRA的PPO架构,实现高效对齐与强泛化,且不损失LLM原有能力。
摘要:
尽管大语言模型(LLM)在众多任务上表现出色,但由于其内部知识与环境不对齐,往往无法解决简单的决策任务。相反,强化学习(RL)智能体从零开始学习策略,因此始终能与环境对齐,但难以融入先验知识以实现高效探索。为缩小这一差距,我们提出TWOSOME,这是一种新颖的通用在线框架,将LLM部署为决策智能体,通过RL与具身环境高效交互并对齐,无需任何预构建数据集或环境先验知识。首先,我们利用LLM查询每个有效动作的联合概率,构建行为策略。随后,为提升策略的稳定性与鲁棒性,我们提出两种归一化方法,并总结出四条提示词设计原则。最后,我们设计了一种新颖的参数高效训练架构:智能体与评价器共享一个冻结的LLM,该LLM搭载由PPO更新的低秩适配器(LoRA)。我们开展了大量实验评估TWOSOME的性能:其一,在经典决策环境Overcooked与模拟家庭环境VirtualHome中,TWOSOME的样本效率与性能均显著优于传统RL方法PPO和提示调优方法SayCan;其二,得益于LLM的开放词汇特性,TWOSOME对未见过的任务展现出卓越的泛化能力;其三,在我们的框架下,在线PPO微调过程中LLM的原有能力未出现显著下降。
英文摘要:
Despite the impressive performance across numerous tasks, large language models (LLMs) often fail in solving simple decision-making tasks due to the misalignment of the knowledge in LLMs with environments. On the contrary, reinforcement learning (RL) agents learn policies from scratch, which makes them always align with environments but difficult to incorporate prior knowledge for efficient explorations. To narrow the gap, we propose TWOSOME, a novel general online framework that deploys LLMs as decision-making agents to efficiently interact and align with embodied environments via RL without requiring any prepared datasets or prior knowledge of the environments. Firstly, we query the joint probabilities of each valid action with LLMs to form behavior policies. Then, to enhance the stability and robustness of the policies, we propose two normalization methods and summarize four prompt design principles. Finally, we design a novel parameter-efficient training architecture where the actor and critic share one frozen LLM equipped with low-rank adapters (LoRA) updated by PPO. We conduct extensive experiments to evaluate TWOSOME. i) TWOSOME exhibits significantly better sample efficiency and performance compared to the conventional RL method, PPO, and prompt tuning method, SayCan, in both classical decision-making environment, Overcooked, and simulated household environment, VirtualHome. ii) Benefiting from LLMs' open-vocabulary feature, TWOSOME shows superior generalization ability to unseen tasks. iii) Under our framework, there is no significant loss of the LLMs' original ability during online PPO finetuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。