Papers › Grounding Large Language Models in Interactive Environments with Online Reinforcement Learning

Grounding Large Language Models in Interactive Environments with Online Reinforcement Learning

6 Feb 2023arXiv:2302.02662archive 2025-07-28

Thomas Carta, Clément Romac, Thomas Wolf, Sylvain Lamprier, Olivier Sigaud, Pierre-Yves Oudeyer

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2302.02662")

Code

Syntology Ran 7 of 12 code samples harvested from 3 repositories linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 12 samples from 3 repositories, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

clementromac/lamorel officialmentioned in papermentioned on GitHubpytorchMIT report
flowersteam/grounding_llms_with_online_rl officialmentioned in papermentioned on GitHubpytorch report
flowersteam/lamorel officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 7 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
1ran · fixture could not drive it
3ran
5unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BaseUpdater flowersteam/lamorel/lamorel/src/lamorel/server/llms/updaters/base_updater.py official repository ran MIT (permissive) · b087b0213c49d353 · report
DictList flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository ran MIT (permissive) · f35eacbd3758dba2 · report
ExtraInfoCollector flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository ran MIT (permissive) · f93854005e6f5869 · report
emph flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · efa2c567105100f0 · report
info flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a01836a09eb71d45 · report
reward_function flowersteam/grounding_llms_with_online_rl/experiments/train_language_agent.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 351f0073ef3dccf5 · report
reward_function_shapped flowersteam/grounding_llms_with_online_rl/experiments/train_language_agent.py official repository ran · honoured contract fingerprinted MIT (permissive) · fdf8fa20114f1fbe · report
BaseAgent flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository unverified MIT (permissive) · 3a32c056e4db9777 · report
BasePPOAgent flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository unverified MIT (permissive) · e7ee48ded5e587f1 · report
LLMPPOAgent flowersteam/grounding_llms_with_online_rl/experiments/agents/ppo/llm_ppo_agent.py official repository unverified MIT (permissive) · 7c1ab31fe12a53a6 · report
load_hf_model_and_tokenizer clementromac/lamorel/lamorel/src/lamorel/server/llms/utils/load_hf_model_and_tokenizer.py official repository unverified MIT (permissive) · a71506f048bfc377 · report
prepare_args_for_parsing clementromac/lamorel/lamorel/src/lamorel_launcher/launch.py official repository unverified MIT (permissive) · 5451850f7e5ef008 · report

Tasks

Decision MakingReinforcement Learning (RL)reinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections