TL;DR
ImagineBench is the first standardized benchmark for evaluating offline reinforcement learning (RL) using "imaginary rollouts"—synthetic trajectories generated by fine-tuned Large Language Models (LLMs) to teach agents novel tasks without real-world interactions. Across five diverse continuous control and navigation environments, the authors show that while LLM imagination significantly improves zero-shot policy generalization over training on real data alone, a substantial performance gap remains compared to real-world experience.
What Problem Does This Paper Address?
Traditional RL agents require vast amounts of trial-and-error interaction to acquire new skills. Recent works address this by using LLMs grounded on environment dynamics to "imagine" synthetic trajectories (state-action rollouts) from natural language instructions—a paradigm called Reinforcement Learning from Imaginary Rollouts (RLIM).
However, RLIM research has suffered from a lack of standardized evaluation:
- Existing studies rely on custom, non-standardized environments and disparate LLM backbones.
- Fine-tuning LLMs on environment dynamics requires massive computational resources, creating a steep barrier to entry.
- There is no unified testbed to assess how well offline RL algorithms handle the noise, hallucinations, and distributional shifts inherent to LLM-generated trajectories.
Methods
ImagineBench formalizes a multi-stage workflow and releases a unified evaluation suite:
- LLM Grounding via Supervised Fine-Tuning (SFT): Backbone LLMs (Qwen-3-4B and LLaMA-2-7B) are fine-tuned on real environment data using three auxiliary objectives:
- Dynamics prediction: Predicting $s_{t+1}$ given $(s_t, a_t)$.
- Rollout explanation: Describing state-action trajectories in natural language.
- Rollout generation: Generating full state-action sequences $\{a_0, s_1, a_1, \dots\}$ conditioned on an initial state $s_0$ and a novel language goal $G$.
- Offline RL on Mixed Datasets: The benchmark pre-packages verified datasets containing both real environment rollouts and synthetic imaginary rollouts. Algorithms are trained on uniform mixtures of both data sources.
- Algorithm Baselines: ImagineBench evaluates seven representative RL algorithms spanning behavioral cloning (BC), conservative offline RL (CQL, BCQ, TD3+BC), dataset-regularized methods (PRDC), model-based offline RL (COMBO), and actor-critic methods (SAC).
- Online Adaptation: The benchmark evaluates offline-to-online transfer by fine-tuning policies pre-trained on imaginary rollouts using PPO.
Datasets
ImagineBench spans five environments featuring structured, vectorized state spaces:
- Meta-world: 7-DoF robotic arm manipulation (e.g., doors, drawers, buttons, faucets; $\mathbb{R}^{91}$ state space, $\mathbb{R}^4$ action space).
- CLEVR-Robot: Multi-object manipulation with five colored balls ($\mathbb{R}^{10}$ state space, 40 discrete pushing actions).
- BabyAI: Gridworld instruction navigation and manipulation ($\mathbb{Z}^{17}$ state space, 7 discrete actions).
- LIBERO: Long-horizon tabletop manipulation using the LIBERO-Object suite ($\mathbb{R}^{44}$ state space, $\mathbb{R}^7$ action space).
- MuJoCo (HalfCheetah): Continuous locomotion benchmark ($\mathbb{R}^{18}$ state space, $\mathbb{R}^6$ action space).
Tasks are categorized across four hierarchical complexity levels:
- Training: Tasks seen during expert rollout collection.
- Rephrasing: Seen tasks expressed with paraphrased language instructions.
- Easy: Unseen tasks with simple single-step or directional requirements.
- Hard: Complex, multi-stage, compositional, or long-horizon tasks (e.g., sequentially moving multiple objects).
Key Insights and Ideas
- Imagination acts as a crucial prior: Policies trained with imaginary rollouts consistently outperform policies trained strictly on real offline data when tested on novel tasks, proving that LLMs can transfer world knowledge into vectorized decision spaces.
- Existing offline RL fails to close the reality gap: Current offline algorithms treat synthetic data the same as real data. Naive combination results in a severe performance drop compared to an oracle trained on real data of the novel tasks.
- LLM capacity directly governs rollout validity: Trajectory quality improves markedly with LLM model scale. LLaMA-2-7B produces significantly higher single-step transition accuracy, legal environment states, and goal completion rates than Qwen-3-4B.
- Long horizons break down imagination: While LLMs excel at generating valid rollouts for paraphrased and simple instructions, their rollout completion rates drop precipitously on compositional "Hard" tasks (often attempting actions simultaneously rather than sequentially).
- Strong initialization for online fine-tuning: Initializing an RL policy (e.g., CQL) on imaginary rollouts accelerates subsequent online PPO learning and yields higher asymptotic reward compared to training from scratch.
Key Results
- Performance Gap: On unseen hard tasks, offline RL algorithms trained with imaginary rollouts achieved an average task completion rate of 35.44%, whereas policies trained on actual real data reached 64.37%.
- Rollout Quality vs. Task Complexity (BabyAI):
- Rephrasing: 88.0% rollout success rate, 96.0% transition correctness (LLaMA-2-7B).
- Easy: 43.8% rollout success rate, 82.2% transition correctness.
- Hard: 25.8% rollout success rate (down to 13.5% with Qwen-3-4B), though state legality remained above 65%.
- Data Scaling: Ablation studies on BabyAI showed monotonic improvements when scaling the ratio of imaginary rollouts during offline training (e.g., Behavioral Cloning success on rephrased tasks jumped from ~5% with 0% imaginary data to ~80% with 100% imaginary data).
- Online Adaptation: On CLEVR-Robot, policies pre-trained with imaginary rollouts reached ~70% online success in fewer environment steps, cleanly outperforming online RL initialized from scratch (~50%).
Limitations and Future Work
- Vectorized States Only: Current tasks rely on numerical state vectors. Extending the benchmark to visual inputs via Vision-Language Models (VLMs) remains an open challenge.
- Algorithmic Shortcomings: Existing offline RL algorithms lack mechanisms to explicitly handle synthetic data artifacts, hallucinated transitions, and bias.
- Compounding Errors in Long Tasks: Fine-tuned LLMs frequently fail at sequential task dependencies. Better conditioning or iterative rollout validation (e.g., simulator-in-the-loop verification) is needed.
- Adaptation & Catastrophic Forgetting: Future efforts must explore meta-RL and lightweight regularization to rapidly adapt to real-world dynamics without erasing the broad knowledge acquired during LLM pre-training.
Summary updated