Zero-shot Model-based Reinforcement Learning using Large Language Models

Abdelhakim Benechehab, Youssef Attia El Hili, Ambroise Odonnat, Oussama Zekri, Albert Thomas +4 more
10/15/2024
stat.MLcs.LG

Official code: abenechehab/dicl (25 stars, MIT, last commit 2025-02-14).

Abstract

The emerging zero-shot capabilities of Large Language Models (LLMs) have led to their applications in areas extending well beyond natural language processing tasks. In reinforcement learning, while LLMs have been extensively used in text-based environments, their integration with continuous state spaces remains understudied. In this paper, we investigate how pre-trained LLMs can be leveraged to predict in context the dynamics of continuous Markov decision processes. We identify handling multivariate data and incorporating the control signal as key challenges that limit the potential of LLMs' deployment in this setup and propose Disentangled In-Context Learning (DICL) to address them. We present proof-of-concept applications in two reinforcement learning settings: model-based policy evaluation and data-augmented off-policy reinforcement learning, supported by theoretical analysis of the proposed methods. Our experiments further demonstrate that our approach produces well-calibrated uncertainty estimates. We release the code at https://github.com/abenechehab/dicl.

View on arXivView PDF

Code Implementations(1)

abenechehab/diclOfficial100%
MIT

[ICLR 2025] Official implementation of DICL (Disentangled In-Context Learning), featured in the paper "Zero-shot Model-based Reinforcement Learning using Large Language Models".

255Python, Jupyter NotebookOct 13, 20241 years agoMIT
in-context-learninglarge-language-modelsmodel-based-reinforcement-learningreinforcement-learning

Cite this paper

@article{benechehab2024zeroshot,
  title  = {Zero-shot Model-based Reinforcement Learning using Large Language Models},
  author = {Abdelhakim Benechehab and Youssef Attia El Hili and Ambroise Odonnat and Oussama Zekri and Albert Thomas and Giuseppe Paolo and Maurizio Filippone and Ievgen Redko and Balázs Kégl},
  year   = {2024},
  eprint = {2410.11711},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.11711v2},
  journal = {ICLR 2024 2024}
}

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/2410.11711.svg)](https://codeofpaper.com/paper/2410.11711)

Discussion