# Poster 27971

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/27971

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, so I'm presenting the paper Zero-Shot Model-Based Reinforcement Learning using Large Language Models. I'm Abdelhakim Benyshab and these are my co-authors. To start with some preliminaries, we will tackle the reinforcement learning we will try to solve a markup decision process. And the goal is to find a policy which is a mapping from states to distribution over actions that maximizes discounted sum of rewards.
In model-based reinforcement learning, we first try to learn a model of the transition function of the environment. So from past data, we try to maximize the likelihood of the next state given the current state actions and use this model in a surrogate MDP and do policy search under this learned MDP.
We want to use large language models to predict the dynamics of the environment. Large language models are transformer-based decoder-only models trained using autoregressive next token prediction. How do we use this for numerical data? We look at the language model tokenizer for instance. It has tokens for each digit from 0 to 999. So if you have a time series, we rescale and cod this time series and now we have token per time step value and we can do prediction by looking at the softmax of the token.
of the LN predictions over only the digits corresponding or the tokens corresponding to digits. So this was introduced in the paper LN planning.
In the in -context learning paradigm, we show some labeled data in the context and we try to extrapolate. So what's interesting us is not the supervised learning formulation of ICL, but rather the dynamic system formulation of ICL from these paper transformers as algorithms where we show realization of a given dynamic system and we try to know what would be the next. It's really forecasting the behavior of a given dynamic system.
so we want to apply this to reinforcement learning systems trajectories so states actions maybe also rewards and the goal is to find the distribution of the next state for all the dimensions of the state in the old time steps and challenges are this are multivariate data so the number of dimensions of the state is larger than one and also we need to include the actions in the context so it's not only the dynamic-assisted information but also the
Also the control team.
Our approach is called DICO, disentangled in-context learning, where given a trajectory, we first project its feature space into a space of disentangled features, and then we do the LLM in-context learning forecasting, and then we transform back to the original space and autoregressively predict the next time steps. For instance, we use PCA in practice, where the projection space is a space of linearly uncorrelated.
related components and we can see in the correlation matrix that in the case we have two jet system there are many linear correlations to capture between the seed dimensions and the action dimensions. So for the results we showed that we improved the multi-step MSE error compared to an MLP baseline also we observed that
Prediction error gets smaller and smaller as the trajectory in context get longer and longer, which is natural as the LLM has more information to process and also we can improve the runtime using Bickle by selecting only a subset of the principal components that we project on.
We integrated the vehicle with soft actor critic. This results in better coverage of speed of stack and we use this by sampling some trajectories from the replay buffer of stack and predicting what would be the next state and augmenting the replay buffer with another replay buffer of synthetically generated data from the LLM dynamics model.
In terms of theoretical guarantees, we proved that there is a bound between the policy evaluation that is based on this branching mechanism from the LLM dynamics model and the evaluation of the policy under the true environments in this bound depends on the context and the length of the trajectory that we put in the context, the privacy branch, which basically means how many data we generate from the LLM dynamics learner.
And also, okay, the branch length, how many steps do we do under the LLM dynamics. We also tried decal for policy evaluation where this time we feed in the trajectory of states, actions, and rewards, and we tried to predict what would be the reward trajectory for up to 500 steps.
And finally, by extracting the probabilities from the softmax categorical distribution that outputs the LLM, we can build distributions over our predictions and we evaluate the calibration or the quantile calibration of such distributions and prove that they are well calibrated. In conclusion, LLMs are powerful foundation models, trained on vast amounts of data, and vehicle is an effective way to adapt them to model-based reinforcement training.
Thank you and if you want to know more feel free to reach out.
