ImagineBench: Evaluating Reinforcement Learning with Large Language Model Rollouts

Jing-Cheng Pang, Kaiyuan Li, Yidi Wang, Si-Hang Yang, Shengyi Jiang, Yang Yu · DOI

Introduction

Reinforcement Learning (RL) is notoriously data-hungry, often requiring millions of real-world interactions to learn effective policies. A promising new paradigm, Reinforcement Learning from Imaginary Rollouts (RLIM), attempts to mitigate this by fine-tuning Large Language Models (LLMs) on small amounts of environment data. These LLMs then "imagine" synthetic execution trajectories for entirely new tasks, which are used to train RL agents offline.

Despite the potential of RLIM, the field has lacked a standardized evaluation framework. Previous studies relied on fragmented environments and inconsistent protocols, making it difficult to discern whether performance gains stemmed from improved RL algorithms or more capable LLMs. ImagineBench addresses this gap by providing a unified benchmark to measure how effectively offline RL agents can learn from "hallucinated" experiences.

The RLIM Paradigm and Workflow

The authors formalize the RLIM workflow into a distinct two-step process designed to leverage the generative power of LLMs for policy training.

The RLIM workflow: Fine-tuning LLMs on real data to generate synthetic rollouts for offline RL training.
  1. LLM Fine-tuning: An LLM (specifically Llama-2-7b-chat) undergoes Supervised Fine-Tuning (SFT) on three specific tasks: predicting environment dynamics, explaining rollouts in natural language, and generating new rollouts based on a goal.
  2. Offline RL Training: Standard offline RL algorithms—such as CQL, BCQ, and TD3+BC—are trained on a hybrid dataset. This dataset combines real rollouts from known ("prefixed") tasks with LLM-generated imaginary rollouts for novel tasks.

ImagineBench: A Unified Benchmark

ImagineBench spans five diverse domains, including Locomotion (MuJoCo), Robotic Manipulation (Meta-world, LIBERO, CLEVR-Robot), and Navigation (BabyAI). The suite includes over 180,000 real rollouts and hundreds of thousands of LLM-generated trajectories, all paired with natural language instructions.

Comparison of real and imaginary rollout datasets within ImagineBench.

To test different facets of generalization, the benchmark categorizes tasks into a hierarchy:

  • Training: Tasks seen during LLM fine-tuning.
  • Rephrasing: Known tasks described with varying natural language to test linguistic robustness.
  • Easy: Novel tasks with straightforward logic.
  • Hard: Novel tasks requiring complex, multi-step compositions of behavior.

Key Insights and Results

The benchmark reveals a significant performance gap between learning from real versus synthetic data. On "Hard" tasks, agents trained with LLM-imaginary rollouts achieved only a 35.44% success rate, compared to 64.37% for those trained on real data. In complex environments like Meta-World and CLEVR-Robot, success rates for imaginary-rollout-trained agents often plummeted below 10%.

The "Imagination" Quality Trade-off

LLMs demonstrate a surprising ability to maintain "environmental legality" (e.g., ensuring agents do not teleport), with legality scores often exceeding 80%. They also excel at generating rollouts for rephrased instructions (88% consistency in BabyAI), suggesting they are excellent translators of intent. However, they struggle with goal consistency—actually completing the requested task—as complexity increases.

Algorithm Performance

Interestingly, simpler methods like Behavior Cloning (BC), Conservative Q-Learning (CQL), and BCQ generally outperformed more complex algorithms like COMBO or PRDC. This suggests that current offline RL algorithms are not yet optimized to handle the specific biases and hallucinations inherent in LLM-generated trajectories.

Limitations and Future Directions

The study identifies several critical bottlenecks in the RLIM pipeline:

  • Suboptimal Rewards: Reward signals in imaginary rollouts often fail to accurately reflect task progress, leading to incorrect policies.
  • Physical Grounding: LLMs still struggle to ground their "imagination" in the fine-grained physics required for complex robotic manipulation.

Future research should focus on developing methods to automatically prune low-quality imaginary rollouts, creating "few-shot" RL frameworks that can correct LLM errors through minimal real-world interaction, and moving toward multi-modal Vision-Language Models (VLMs) capable of imagining visual rollouts.

Summary updated

BibTeX
@misc{pang2025imaginebench,
  author = {Jing-Cheng Pang and Kaiyuan Li and Yidi Wang and Si-Hang Yang and Shengyi Jiang and Yang Yu},
  title = {{ImagineBench: Evaluating Reinforcement Learning with Large Language Model Rollouts}},
  year = {2025},
  eprint = {2505.10010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.10010},
}
Figure