Skip to main content
QUICK REVIEW

[Paper Review] Grounding Large Language Models in Interactive Environments with Online Reinforcement Learning

Thomas Carta, Clément Romac|arXiv (Cornell University)|Feb 6, 2023
Topic ModelingComputer Science31 citations
TL;DR

This paper introduces GLAM, a method that uses an LLM as an agent policy grounded online via reinforcement learning in an interactive text environment (BabyAI-Text) to improve task solving and generalization.

ABSTRACT

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.

Motivation & Objective

  • Motivate functional grounding of LLMs by aligning their knowledge with interactive environments.
  • Evaluate whether online RL can adapt LLM policies to solve spatial/navigation tasks more efficiently.
  • Investigate generalization to new objects, new tasks, and robustness to language/word substitutions.
  • Compare online RL grounding with offline Behavioral Cloning and analyze the role of online interventions in grounding.

Proposed method

  • Formalize the textual RL problem as a goal-augmented POMDP with text-based observations and actions.
  • Use an LLM as the policy by computing action probabilities from token-level conditional probabilities given a prompt.
  • Fine-tune the LLM online using PPO with a value head attached to the LLM decoder to estimate state values.
  • Leverage a distributed inference/training setup (Lamorel) to score and train with multiple LLM workers in parallel.
  • Employ a text-only BabyAI-Text environment to study grounding of language-conditioned policies in navigation tasks.

Experimental results

Research questions

  • RQ1Q1: How fast can an LLM adapt and learn to solve spatial and navigation problems, and how does pretraining assist sample efficiency?
  • RQ2Q2: How well can a grounded LLM generalize to new objects while solving trained tasks?
  • RQ3Q3: Can the grounded LLM generalize to new tasks or compositions of tasks, and how does synonymy or language shifts affect performance?
  • RQ4Q4: What is the impact of online reinforcement learning versus behavioral cloning on grounding quality and generalization?

Key findings

  • GFlan-T5 (grounded Flan-T5) achieves rapid learning and strong task performance compared to baselines, demonstrating superior sample efficiency.
  • Grounded agents generalize to out-of-vocabulary nouns and invented objects, indicating symbol grounding of geometry and instructions.
  • Grounding enables limited zero-shot generalization to new task compositions and synonym actions, outperforming non-grounded baselines in several setups.
  • Online RL grounding substantially outperforms offline Behavioral Cloning baselines in grounding quality and task performance, highlighting the value of interactive data collection.
  • A dedicated distributed framework (Lamorel) facilitates scalable online grounding of LLMs in RL settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.