Grounding Large Language Models in Interactive Environments with Online Reinforcement Learning

Thomas Carta, Clément Romac, Thomas Wolf, S. Lamprier, Olivier Sigaud +1 more
2/12/2026

No official code found. Best implementation: flowersteam/Grounding_LLMs_with_online_RL (276 stars, MIT, last commit 2025-10-27). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

MIT

We perform functional grounding of LLMs' knowledge in BabyAI-Text

27633Shell, PythonFeb 1, 202311 months agoMIT
groundinginteractive-agentslanguage-modelreinforcement-learning
flowersteam/lamorelCommunity100%
MIT

Lamorel is a Python library designed for RL practitioners eager to use Large Language Models (LLMs).

24925PythonFeb 1, 202310 months agoMIT

Similar Papers

Cite this paper

@article{carta2026grounding,
  title  = {Grounding Large Language Models in Interactive Environments with Online Reinforcement Learning},
  author = {Thomas Carta and Clément Romac and Thomas Wolf and S. Lamprier and Olivier Sigaud and Pierre-Yves Oudeyer},
  year   = {2026},
  eprint = {2302.02662},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2302.02662},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.02662.svg)](https://codeofpaper.com/paper/2302.02662)

Discussion