An Imagination-Augmented Agent (I2A) is a reinforcement learning architecture that enhances a model-free policy network with a learned world model. The agent uses this internal model to simulate multiple possible future trajectories—its 'imagination'—from its current state. These rollouts are encoded and aggregated into an 'imagination core,' which provides additional context to the agent's primary policy and value networks, enabling it to make decisions informed by simulated consequences without requiring additional real-world experience.
Glossary
Imagination-Augmented Agent (I2A)

What is Imagination-Augmented Agent (I2A)?
The Imagination-Augmented Agent (I2A) is a hybrid reinforcement learning architecture that augments a standard model-free agent with a learned world model to generate simulated 'imagination' rollouts, which inform its policy and value function for improved planning and sample efficiency.
The I2A architecture, introduced by DeepMind, explicitly separates model-based imagination from the model-free core. This design improves sample efficiency by leveraging short-horizon predictions for better credit assignment and planning. It is distinct from pure model-based methods, as the world model is used to augment rather than replace the model-free learner. This hybrid approach allows the agent to benefit from the stability of model-free learning while gaining the foresight and data efficiency advantages of a predictive model.
Core Architectural Components
The Imagination-Augmented Agent (I2A) is a hybrid reinforcement learning architecture that enhances a standard model-free agent with a learned world model. This 'imagination' module enables the agent to perform internal rollouts to inform its decisions, dramatically improving sample efficiency and long-horizon planning.
Model-Free Backbone
The I2A architecture is built upon a standard model-free reinforcement learning agent, such as an A3C (Asynchronous Advantage Actor-Critic). This backbone provides the primary policy and value function that are updated using real environment experience. The 'imagination' components are auxiliary modules that augment, rather than replace, this core learning loop.
- Primary Role: Directly maps observations to actions and value estimates.
- Training Signal: Learns from real reward sequences and advantages.
- Foundation: The world model's imagined rollouts provide enriched context for this backbone's decisions.
Learned World Model
At the heart of I2A is a learned world model—a neural network that predicts future environment states and rewards given the current state and a sequence of actions. This model is trained in a supervised fashion on the agent's real experience to minimize prediction error.
- Function: Encodes environment dynamics:
f(s_t, a_t) -> (s_{t+1}, r_{t+1}). - Purpose: Serves as an internal simulator for planning.
- Key Property: It is trained jointly with the policy, allowing the imagination to specialize in trajectories relevant to the task.
Imagination Core (Rollout Encoder)
This component executes 'imagination' rollouts using the learned world model. Starting from the current state, it samples multiple action sequences (from the agent's policy or a rollout policy) and uses the world model to simulate potential futures. The outcomes of these rollouts are then encoded into a fixed-size vector.
- Process: Generates multiple simulated trajectories.
- Output: A compact embedding summarizing the imagined futures (e.g., expected rewards, final states).
- Integration: This embedding is concatenated with the real observation and fed into the model-free backbone's policy and value networks.
Imagination-Augmented Policy & Value Networks
The standard actor (policy) and critic (value) networks of the model-free backbone are modified to accept an augmented input. This input is the concatenation of the raw environment observation and the imagination embedding from the rollout encoder.
- Architectural Change:
Network Input = [Observation, Imagination Embedding]. - Result: The policy can condition its decisions not just on the present, but on simulated consequences.
- Benefit: Enables foresight and more strategic action selection, especially for sparse or delayed reward tasks.
Rollout Policy
During imagination, the agent needs to sample action sequences to simulate. The rollout policy determines which actions to try in the internal model. This can be:
- The Agent's Own Policy: Using the current policy for rollouts is simple and ensures imagination is relevant to learned behavior.
- A Separate, Trained Policy: A dedicated rollout policy can be optimized specifically for effective exploration within the model.
- Random or Heuristic Search: Methods like shotgun sampling can be used for broad coverage.
The choice of rollout policy critically affects the quality and diversity of the imagined futures.
Training and Loss Composition
I2A is trained end-to-end with a composite loss function that includes terms for both the model-free agent and the world model:
- Model-Free RL Loss: Standard policy gradient (e.g., A3C loss) computed on real experience.
- World Model Loss: Supervised prediction loss (e.g., MSE) for next-state and reward prediction.
- Gradient Flow: Gradients from the RL loss flow back through the imagination embedding and the world model, encouraging the world model to learn dynamics useful for decision-making.
- Key Challenge: Balancing the training of the potentially unstable world model with the policy learning.
I2A vs. Other Model-Based RL Approaches
This table compares the Imagination-Augmented Agent (I2A) architecture to other prominent model-based reinforcement learning paradigms, highlighting key design and operational differences.
| Architectural Feature | Imagination-Augmented Agent (I2A) | Pure Model-Based Planning (e.g., MCTS with Model) | Latent Model Rollout (e.g., Dreamer) | Model-Based Value Expansion (MBVE) |
|---|---|---|---|---|
Core Mechanism | Uses 'imagination' rollouts from a learned model as additional context for a model-free core policy/value network. | Plans online by simulating multiple trajectories from a model to select the best immediate action. | Learns a compact latent world model (RSSM) and trains an actor-critic entirely within the imagined latent space. | Uses short-horizon model rollouts to generate better target values (Q-targets) for a model-free Q-learning algorithm. |
Primary Use of Model | Context Augmentation | Online Planning | Latent Policy Training | Target Value Estimation |
Planning Horizon | Short, fixed rollout depth (e.g., 5-15 steps). | Variable, often deep, determined by search budget. | Very long, effectively infinite during latent training. | Short, fixed (typically 1-5 steps). |
Online Computation | Moderate (one forward pass per imagined rollout path). | Very High (extensive tree search per timestep). | Low (policy executes without planning). | Low (model used only during Q-learning updates, not at deployment). |
Handles Partial Observability | ||||
Learns Policy in Latent Space | ||||
Architecture Type | Hybrid (Model-Free Core + Model-Based Context) | Planning-Centric | Latent Model-Centric | Value-Augmentation Hybrid |
Sample Efficiency | High | Low to Moderate | Very High | High |
Applications and Demonstrations
The Imagination-Augmented Agent (I2A) architecture integrates a model-free policy with learned 'imagination' modules to improve planning. These cards detail its core components and operational mechanisms.
The Imagination Core
At the heart of I2A is a learned environment model or world model. This is a neural network trained to predict future states and rewards given the current state and a sequence of proposed actions. It enables the agent to perform internal rollouts or 'imagine' potential futures without interacting with the real environment. This model is typically trained on the agent's past experience, learning a compressed latent state representation that facilitates efficient prediction.
The Rollout Encoder
This component processes the outcomes of the imagination rollouts. For each imagined trajectory, it aggregates the sequence of predicted latent states and rewards into a fixed-length context vector. This encoding summarizes the potential consequences of different action sequences. The rollout encoder's output is then fed as additional input to the model-free core, enriching its decision-making context with foresight derived from the world model.
Model-Free Core Agent
The I2A architecture retains a standard model-free reinforcement learning agent (e.g., an A2C or A3C agent) as its foundation. This core agent consists of a policy network and a value network. Its key modification is that its input is augmented. Instead of receiving only the current state observation, it receives the concatenation of the current state and the context vector from the rollout encoder, allowing it to base decisions on both immediate perception and imagined futures.
The Imagination-Augmented Policy
The final policy π(a|s, g) is a function of the raw state s and the aggregated imagination encodings g. This allows the agent to:
- Evaluate long-term consequences of short-term actions.
- Plan over multiple horizons by varying the depth of imagination rollouts.
- Improve sample efficiency because the world model is trained on all collected experience, allowing the policy to learn from simulated data. The policy learns to interpret the rollout encodings to bias its actions toward imagined successful outcomes.
Training the World Model
The environment model is trained unsupervised on the agent's collected experience buffer. Using a reconstruction loss, it learns to encode raw observations (e.g., pixels) into a latent state. It is also trained with a dynamics prediction loss to accurately predict the next latent state and reward given the current latent state and action. This is often framed as a variational inference problem, similar to training a Variational Autoencoder (VAE) for states.
Contrast with Pure Model-Based RL
I2A differs from traditional Model-Based RL (MBRL) in a key way: it does not use the world model for explicit trajectory optimization (like Model-Predictive Control (MPC)). Instead, it uses the model to generate informative features for a model-free policy. This hybrid approach is more robust to model bias—errors in the learned world model—because the model-free core can learn to ignore misleading imagination outputs, whereas a pure planner would fail catastrophically.
Frequently Asked Questions
The Imagination-Augmented Agent (I2A) is a hybrid reinforcement learning architecture that combines model-free learning with learned 'imagination' to improve planning and sample efficiency. These FAQs address its core mechanisms, differences from other methods, and practical applications.
An Imagination-Augmented Agent (I2A) is a reinforcement learning architecture that enhances a standard model-free agent with a learned world model to simulate future outcomes, thereby improving its decision-making. The agent operates in two parallel streams: a model-free stream that processes the current, real observation directly, and an imagination core that uses a learned dynamics model to generate multiple simulated rollouts, or 'imagined' futures, from the current state. The outcomes of these rollouts are aggregated into a summary vector, which is then concatenated with the model-free features. This combined representation informs both the agent's policy (which action to take) and its value function (how good the state is), allowing it to base decisions not just on immediate experience but on anticipated consequences.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
An Imagination-Augmented Agent (I2A) integrates several advanced concepts from model-based reinforcement learning and planning. These related terms define the core components and mechanisms that enable its 'imagination' capability.
World Model
A world model is a learned or engineered internal representation of an environment that enables an agent to predict future states and outcomes without direct interaction. In an I2A, this model is the core 'imagination' engine used to generate synthetic rollouts.
- Function: Serves as a forward dynamics model, predicting the next state and reward given a current state and action.
- Architecture: Often implemented as a Recurrent State-Space Model (RSSM) or similar latent dynamics model.
- Purpose: Provides a compact, abstract simulation for planning, drastically improving sample efficiency compared to pure model-free learning.
Model-Based Reinforcement Learning (MBRL)
Model-Based Reinforcement Learning (MBRL) is a paradigm where an agent learns an explicit model of the environment's dynamics and uses it for planning or policy optimization. The I2A architecture is a specific, influential instance of MBRL.
- Core Idea: Decouples learning the environment (the model) from learning the policy.
- Advantage: Enables planning via internal simulation, reducing the need for expensive real-world interactions.
- I2A's Role: I2A enhances a model-free policy with model-based rollouts, creating a hybrid that leverages the strengths of both approaches.
Recurrent State-Space Model (RSSM)
A Recurrent State-Space Model (RSSM) is a specific world model architecture that combines a deterministic recurrent neural network with stochastic latent variables. It is the foundational model used in agents like Dreamer and conceptually underpins the I2A's imagination module.
- Components: Encodes past observations into a deterministic hidden state and a stochastic latent state.
- Benefit: Learns a temporally coherent and compact state representation ideal for long-horizon rollouts.
- Output: Predicts future rewards and observations (or their latent equivalents), enabling imagination-based planning.
Model-Predictive Control (MPC)
Model-Predictive Control (MPC) is an online planning method that uses a dynamics model to simulate multiple potential action sequences, selects the best one, and executes only the first action before replanning. I2A's imagination rollouts are a form of learned, neural MPC.
- Process: At each step, the agent runs multiple imagination rollouts from its current state using its world model.
- Outcome: The outcomes of these rollouts are aggregated to form a richer feature vector for the policy and value networks.
- Contrast: Unlike classical MPC which optimizes actions directly, I2A uses rollouts to inform a learned policy network.
Model-Based Value Expansion (MBVE)
Model-Based Value Expansion (MBVE) is a technique closely related to I2A's mechanism. It uses short-horizon rollouts from a learned dynamics model to generate more accurate target values (Q-targets) for training a model-free Q-function.
- Mechanism: The model is used to 'expand' a single real experience into a short simulated trajectory.
- Goal: Produces a better bootstrap target for Temporal Difference (TD) learning, reducing bias.
- Relation to I2A: I2A can be seen as a more integrated architecture where imagination features directly condition the policy, whereas MBVE focuses specifically on value function training.
State Representation
State representation is the process of encoding raw, high-dimensional observations (like pixels) into a compact, informative vector sufficient for decision-making. The quality of this representation is critical for the I2A's world model and rollouts.
- Challenge: Transforming pixels or sensor data into a Markovian state where the future is predictable given the current state.
- I2A's Approach: Uses the latent state of its world model (e.g., from an RSSM) as its state representation.
- Importance: A good representation enables effective long-horizon imagination and robust planning by abstracting away irrelevant details.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us