Linear rollout
Imagines the frame after each action and plans the next action from it.
Agima (Agentic Imagination) trains an agent to imagine before it acts: a single omni model generates images of where its actions lead and plans over these imagined futures.
Agima generates actions and imagined frames in one sequence. Each imagined frame is the observation for the next action.
Figure 1. Planning with agentic imagination: (a) feedback after acting, (b) feedback through imagination with Agima, (c) counterfactual branching and forward thinking in Sokoban.
Imagines the frame after each action and plans the next action from it.
Imagines an alternative action and rejects it when its outcome fails.
Imagines complete candidate plans and commits to the one that succeeds.
We train Agima on an easier split of four environments (left clip of each pair) and test it on a harder split it never sees in training (right clip).








Figure 3. Ground-truth rollouts from the training and test splits.
K is the number of actions a model plans and executes per real observation. Between observations, Agima plans from its own imagined frames.
Planning traps are hard test sets built specifically to measure planning. In each, a move that looks reasonable fails several steps later. We compare the planning modes of Figure 2, each trained on the same data, at K = ∞.
One push puts the nearer box on the goal beside it. That goal is the only one the farther box can ever reach, so the farther box is left with nowhere to go.

Farther box blocked

Solved in 18 moves
Two pushes are legal here. Pushing up pins a box to the wall in a row with no goal, and no later move brings it back. Pushing right keeps the puzzle solvable.

Box pinned to the wall

Solved in 13 moves
Going for the nearer food first leaves Pacman no escape from the ghost. Going for the farther food first clears the level.

Caught by the ghost

All food eaten
We run RL from the fine-tuned Agima-A7B models on three-box Sokoban with only a binary success reward, and test on the Deadlock and Fork sets.
Every imagination variant improves, including on four-box puzzles never seen in RL, while the action-only model (No Imagine) stays near zero.
After RL, Agima-A7B (Forward) rolls out one plan and drafts another only if it predicts failure. Second plans drop from 79% to 26–31% of episodes.
(opens the full-size image)
After RL, Agima-A7B (Branching) opens more branches per episode, and more of them land where one push would make the puzzle unsolvable.
@misc{ge2026trainimaginativeagent,
title = {Train An Imaginative Agent},
author = {Ge, Jiaxin and Zhang, Junyi and Chai, Tianning and Yoo, Hanjun and Wang, Chenyang and Li, Xiuyu and Shi, Weijia and Wang, XuDong and Min, Sewon and Zettlemoyer, Luke and Darrell, Trevor and Feng, Haiwen},
year = {2026},
eprint = {2610.26845},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2610.26845}
}