[论文解读] Grounding Large Language Models in Interactive Environments with Online Reinforcement Learning
本文介绍了 GLAM,一种在在线强化学习的基础上将 LLM 作为代理策略,在交互式文本环境(BabyAI-Text)中进行 grounding,以提升任务求解和泛化能力的方法。
Recent works successfully leveraged Large Language Models' (LLM) abilities to capture abstract knowledge about world's physics to solve decision-making problems. Yet, the alignment between LLMs' knowledge and the environment can be wrong and limit functional competence due to lack of grounding. In this paper, we study an approach (named GLAM) to achieve this alignment through functional grounding: we consider an agent using an LLM as a policy that is progressively updated as the agent interacts with the environment, leveraging online Reinforcement Learning to improve its performance to solve goals. Using an interactive textual environment designed to study higher-level forms of functional grounding, and a set of spatial and navigation tasks, we study several scientific questions: 1) Can LLMs boost sample efficiency for online learning of various RL tasks? 2) How can it boost different forms of generalization? 3) What is the impact of online learning? We study these questions by functionally grounding several variants (size, architecture) of FLAN-T5.
研究动机与目标
- 通过将其知识与交互式环境对齐来实现对 LLM 的功能性 grounding。
- 评估在线 RL 是否能使 LLM 策略在解决空间/导航任务方面更加高效。
- 研究对新对象、新任务的泛化能力,以及对语言/词汇替换的鲁棒性。
- 将在线 RL grounding 与离线 Behavioral Cloning 进行比较,并分析在线干预在 grounding 中的作用。
提出的方法
- 将文本强化学习问题形式化为以文本为观测和行动的目标增强部分可观测马尔可夫决策过程(goal-augmented POMDP)。
- 通过给定提示,从 token-level 条件概率计算行动概率,使用 LLM 作为策略。
- 通过在在线上使用带有价值头的 PPO,对 LLM 进行微调,以估计状态值。
- 利用分布式推理/训练设置(Lamorel),并行对多個 LLM 工作节点进行打分和训练。
- 使用仅文本的 BabyAI-Text 环境来研究语言条件策略在导航任务中的 grounding。
实验结果
研究问题
- RQ1Q1:LLM 能以多快的速度适应并学习解决空间和导航问题,以及预训练如何帮助样本效率?
- RQ2Q2:在解决训练任务的同时,grounded 的 LLM 能在新对象上有多好的泛化?
- RQ3Q3:grounded 的 LLM 能否泛化到新任务或任务的组合,以及同义词或语言变换如何影响性能?
- RQ4Q4:在线强化学习相对于离线 Behavioral Cloning 对 grounding 质量和泛化有何影响?
主要发现
- GFlan-T5(grounded Flan-T5)相比基线实现了快速学习和强任务表现,展示出更高的样本效率。
- grounded 代理能泛化到未出现在词汇表中的名词和自创对象,表明对几何和指令的符号 grounding。
- grounding 使得对新任务组合和同义动作具有有限的零-shot 泛化,在若干设定中优于非 grounding 的基线。
- 在线 RL grounding 在 grounding 质量和任务表现上显著优于离线 Behavioral Cloning 基线,强调了交互式数据收集的价值。
- 一个专用的分布式框架(Lamorel)促进在强化学习设置中对 LLM 的可扩展在线 grounding。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。