Imagine-then-Plan: Agent Learning from Adaptive Lookahead with World Models
Youwei Liu, Jian Wang, Hanlin Wang, Beichen Guo, Wenjie Li
TL;DR
Imagine-then-Plan (ITP) introduces an adaptive lookahead mechanism that uses a learned world model to imagine multi-step futures and guide policy for LLM-based agents. By formulating a POIMDP, ITP dynamically balances foresight depth against efficiency, and it comes in two forms: a training-free variant (ITP$_{\text{I}}$) and a reinforcement-trained variant (ITP$_{\text{R}}$) that learns when and how long to imagine. Empirical results on ALFWorld and ScienceWorld show substantial improvements over strong prompts and existing world-model baselines, with ablations highlighting the necessity of online horizon optimization. The work advances deliberate, model-based planning for long-horizon tasks, while acknowledging limitations in multimodal transfer and real-time constraints, and points to future work on broader environments and efficiency improvements.
Abstract
Recent advances in world models have shown promise for modeling future dynamics of environmental states, enabling agents to reason and act without accessing real environments. Current methods mainly perform single-step or fixed-horizon rollouts, leaving their potential for complex task planning under-exploited. We propose Imagine-then-Plan (\texttt{ITP}), a unified framework for agent learning via lookahead imagination, where an agent's policy model interacts with the learned world model, yielding multi-step ``imagined'' trajectories. Since the imagination horizon may vary by tasks and stages, we introduce a novel adaptive lookahead mechanism by trading off the ultimate goal and task progress. The resulting imagined trajectories provide rich signals about future consequences, such as achieved progress and potential conflicts, which are fused with current observations, formulating a partially \textit{observable} and \textit{imaginable} Markov decision process to guide policy learning. We instantiate \texttt{ITP} with both training-free and reinforcement-trained variants. Extensive experiments across representative agent benchmarks demonstrate that \texttt{ITP} significantly outperforms competitive baselines. Further analyses validate that our adaptive lookahead largely enhances agents' reasoning capability, providing valuable insights into addressing broader, complex tasks.
