Imagine
Use the world model to imagine what could happen after each candidate action.
World models are emerging as one of the most promising directions in physical AI. At the same time, reinforcement learning (RL) fine-tuning is pushing frontier models beyond what pretraining alone can achieve. We propose QWM, a framework that uses a world model to perform test-time scaling on top of Q-learning.
Our key idea: use the world model to perform test-time scaling on top of Q-learning.
We use this search in two places. During online RL, QWM selects better actions, helping the agent collect higher-quality experience for learning. During evaluation, QWM improves execution directly by searching over possible futures before committing to an action.
Instead of asking “Which action looks best now?”, QWM asks: “Which action leads to the best future?”
Unlike prior model-based RL approaches, QWM doesn’t learn from imagined trajectories. This keeps world-model errors out of the learning loop, using imagination only to choose better actions from real experience.
Use the world model to imagine what could happen after each candidate action.
Use the Q-function to score those imagined futures and pick the highest-value action.
Use the real world to learn — the policy and value function train only on real experience.
QWM augments standard Q-learning with world-model-guided test-time search. At each decision step, the current state forms the root of a search tree: the policy proposes candidate actions, the world model predicts their possible future states, and this process is recursively expanded over a short horizon. The learned Q-function is used to evaluate candidate state-action pairs and guide the search toward high-value futures.
QWM is evaluated across state-based Robomimic and pixel-based LIBERO settings, including comparisons to model-free baselines, model-based baselines, and the base methods it augments.
We compare action-conditioned next-step generation from the learned world model against ground-truth LIBERO trajectories. Each generated next step is stitched together into a full video, with ground truth on the left and the corresponding QWM prediction on the right.
QWM performs best when search is used during both online sampling and evaluation. Moderate search depth, future-value weighting, and action candidates provide the best trade-off between stronger lookahead, model reliability, and compute.