Why World Models?
From Vision to JEPA, Reinforcement Learning and Agents.
1. Why World Models over the Classical Ones?
Most AI models solve a specific problem:

The key idea of a World Model is:
Current State + Action
β
Future State
Instead of only reacting to the current observation, the agent can model possible future states before acting.
2. From Perception to World Modeling
A vision model can detect objects:
Image
β
Vision Encoder
β
Objects / Features
For example:
Image β YOLO β car, person, road
This answers:
What is present?
A World Model adds temporal and dynamic information:
Observation(t)
+
Action(t)
β
World Model
β
Predicted State(t+1)
The question becomes:
What happens if I perform this action?
3. Vision as the First Layer
World Models need a representation of the environment.
Several vision architectures provide useful building blocks.
CNN
CNNs extract hierarchical visual features:
Pixels
β
Edges
β
Textures
β
Shapes
β
Objects
ViT
Vision Transformer:
Image
β
Patch Embedding
β
Visual Tokens
β
Transformer
β
Visual Representation
YOLO
Object detection:
Image
β
YOLO
β
Bounding Boxes + Classes
DETR
Transformer-based object detection:
Image
β
Backbone
β
Transformer
β
Object Queries
β
Objects
SAM
Segmentation:
Image
β
SAM
β
Segmentation Masks
CLIP
Joint image-text representation:
Image β Image Embedding
β
Similarity
β
Text β Text Embedding
These models provide perception and representations that can feed a World Model.
4. Why Latent Space?
A World Model does not necessarily need to predict every pixel.
An image contains a large amount of information:
1920 Γ 1080 Γ 3 pixels
But for planning, the important information may be:
Objects
Positions
Motion
Relations
Context
Environment State
Therefore:
Observation
β
Encoder
β
Latent State
β
World Model
The objective is to learn a compact representation that preserves information useful for prediction and decision-making.
5. The Four Core Ideas
A useful way to understand World Models together with Reinforcement Learning is through four concepts:
- Compression / latent representation
- Reward over time
- Value
- Behavior learning

5.1 Compression β Latent Space
Instead of modeling raw observations directly:
Pixels
β
Encoder
β
Latent Representation
The latent state should contain the information needed to predict relevant future states.
A simplified dynamics model is:
where:
- \(z_t\) = current latent state
- \(a_t\) = action
- \(z_{t+1}\) = predicted future latent state
5.2 Reward Over Time
In Reinforcement Learning, an action can have consequences several steps later.
The return is:
where:
- \(r_t\) = reward at time \(t\)
- \(\gamma\) = discount factor
Therefore, an action should not only be evaluated by its immediate reward.
Action
β
Immediate reward
β
Future states
β
Future rewards
This is one reason temporal modeling is important.
5.3 Value
The value function estimates the expected future return from a state:
Simplified:
State
β
Value
β
Expected future quality
This is useful for comparing possible trajectories.
5.4 Learning Behavior
A common RL architecture separates the Actor and Critic:
State
/ \
β β
Actor Critic
β β
Action Value
- Actor: chooses an action.
- Critic: evaluates the state/action.
This is close to the broader cognitive architecture proposed by Yann LeCun, where a World Model sits alongside Perception, an Actor and a Critic:

This can be combined with a World Model:
Current State
β
World Model
β
Possible Futures
β
Critic / Value
β
Planner / Actor
β
Action
6. Model-Free vs Model-Based Reinforcement Learning
Model-Free RL
The agent learns a direct mapping:
State
β
Policy
β
Action
The agent mainly learns:
In this situation, which action works?
Model-Based RL
The agent also learns a model of the environment:
State + Action
β
World Model
β
Future State
β
Planning
β
Action
The agent can therefore evaluate actions using predicted outcomes.
7. World Models and Simulation
The main advantage of a learned world model is the possibility of simulation.
Suppose the agent has three possible actions:
Current State
β
βββ Action A β Future A
β
βββ Action B β Future B
β
βββ Action C β Future C
The agent can evaluate the predicted futures before executing an action.
This creates:
Observe
β
Represent
β
Predict
β
Simulate
β
Evaluate
β
Plan
β
Act
8. World Models + Planning
The World Model and the Planner have different roles.
World Model
What could happen?
Planner
Which sequence of actions should I choose?
Current State
β
World Model
β
Predicted Futures
/ | \
A B C
β β β
Future Future Future
\ | /
Planner
β
Best Action
9. World Models + Reinforcement Learning
The complete loop becomes:
Environment
β
Observation
β
World Model
β
Predicted Future States
β
Value / Reward
β
Planning
β
Action
β
Environment
This is the basis of many model-based RL approaches.
10. World Models
One important early work is World Models by Ha and Schmidhuber (2018).
The idea was to learn a compressed spatial-temporal representation of an environment and use this learned model to train a controller in an imagined environment.
Conceptually:
Real Environment
β
Collect Experience
β
Learn World Model
β
Dream / Simulate
β
Train Controller
β
Real Environment
Reference:
- Ha & Schmidhuber, World Models, 2018
- https://arxiv.org/abs/1803.10122
11. Dreamer
Dreamer is another important family of model-based RL methods.
The central idea is to learn an environment model and improve the policy using imagined trajectories.
Real Experience
β
World Model
β
Latent Dynamics
β
Imagined Trajectories
β
Actor-Critic
β
Improved Policy
DreamerV3 extended this approach across a broad set of tasks.
Reference:
- Hafner et al., Mastering Diverse Domains through World Models, 2023
- https://arxiv.org/abs/2301.04104
12. MuZero
MuZero is important because it does not need to reconstruct the complete environment.
It learns the information needed for planning:
Observation
β
Representation
β
Dynamics
β
Reward / Value
β
Planning
MuZero combines learned representations and dynamics with search.
It was demonstrated on environments including Atari and board games such as Go, chess and shogi.
Reference:
- Schrittwieser et al., Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model, Nature, 2020
- https://www.nature.com/articles/s41586-020-03051-4
13. JEPA
JEPA stands for:
Joint Embedding Predictive Architecture
The main idea is to predict representations rather than reconstruct every pixel.
Simplified:
Context
β
Encoder
β
Context Embedding
β
Predictor
β
Predicted Target Embedding
Target
β
Target Encoder
β
Target Embedding
The objective is to make the predicted representation close to the target representation.
This is different from pixel-level reconstruction.

14. I-JEPA
I-JEPA applies this principle to images.
Instead of predicting the exact pixels of a missing region, the model predicts the representation of that region.
Image
β
Context Region
β
Encoder
β
Predictor
β
Target Representation
The important idea is:
Learn useful semantic representations without requiring pixel-level reconstruction.
Reference:
- Assran et al., Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture, CVPR 2023
- https://arxiv.org/abs/2301.08243
15. V-JEPA
V-JEPA extends the JEPA idea to video.
A video contains both spatial and temporal information:
Frame(t-2)
Frame(t-1)
Frame(t)
Frame(t+1)
Frame(t+2)
Therefore:
Video
β
Spatio-Temporal Representation
β
Predict Missing / Future Representation
This is relevant to World Models because an environment is not static.
The model must represent:
What is here?
+
How does it change?
16. V-JEPA 2
V-JEPA 2 extends the predictive representation idea toward world modeling and physical reasoning.
A simplified view is:
Video
β
Vision Encoder
β
World Representation
β
Predictor
β
Future Representation
With action-conditioned learning:
Current State + Action
β
Predictor
β
Future State
This creates a connection between:
Self-Supervised Vision
+
JEPA
+
World Models
+
Actions
+
Planning
+
Robotics
Reference:
- Meta AI, V-JEPA 2
- https://ai.meta.com/blog/v-jepa-2-world-model-benchmarks/
17. World Model vs LLM
A simplified distinction:
LLM
Tokens
β
Transformer
β
Next-token prediction
World Model
State + Action
β
Future State
They can work together:
Agent
β
βββββββββ΄ββββββββ
β β
LLM World Model
β β
Reasoning Prediction
β β
βββββββββ¬ββββββββ
β
Planning
β
Action
A World Model is therefore not a replacement for an LLM.
It provides a model of an environment and its dynamics.
18. World Model vs RAG
RAG and World Models solve different problems.
RAG
Question
β
Retriever
β
Documents
β
LLM
β
Answer
Main question:
What information can I retrieve?
World Model
Current State
+
Action
β
Future State
Main question:
What could happen?
Therefore:
RAG β Knowledge
Memory β History
LLM β Reasoning
World Model β Dynamics
Planner β Decision
Tools β Action
19. World Model + Agents
A simple agent loop is:
Observe
β
Think
β
Act
A more advanced agent can use:
Observe
β
Understand
β
World Model
β
Predict
β
Plan
β
Validate
β
Act
β
Observe Again
This is particularly relevant to agentic systems.
20. Connection with Context Engineering
Context Engineering manages what the agent knows at a given moment:
System Instructions
+
User Request
+
Memory
+
RAG
+
Tool Results
+
Current State
A World Model adds another capability:
Current Context
β
World State
β
Dynamics
β
Future Prediction
So:
Context Engineering
β What information is available?
World Model
β How can the environment evolve?
21. Gymnasium
To experiment with these ideas, Gymnasium is particularly useful.
It provides standardized Reinforcement Learning environments and an API for agent-environment interaction.
The basic loop is:
Observation
β
Agent
β
Action
β
Environment
β
Reward + New Observation
Basic example:
import gymnasium as gym
env = gym.make("CartPole-v1")
observation, info = env.reset()
for _ in range(1000):
action = env.action_space.sample()
observation, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
observation, info = env.reset()
env.close()
Reference:
- https://gymnasium.farama.org/
22. Why Gymnasium is useful for World Model projects
Gymnasium provides controlled environments where we can collect transitions:
(s_t, a_t, r_t, s_t+1)
This is exactly the type of data required to learn environment dynamics.
For example:
State + Action
β
World Model
β
Predicted Next State
Then compare:
Predicted State
vs
Real State
This gives a measurable prediction error.
23. A Practical World Model Project Roadmap
Project 1 β Model-Free RL
Start with:
Gymnasium
β
Observation
β
Policy
β
Action
Examples:
- CartPole
- MountainCar
- LunarLander
Project 2 β Learn Environment Dynamics
Collect:
(s_t, a_t, r_t, s_t+1)
Train:
f(s_t, a_t) β s_t+1
Then measure:
Prediction Error
Project 3 β Model-Based RL
Use the learned model:
State
β
World Model
β
Simulate actions
β
Evaluate futures
β
Choose action
Project 4 β Latent World Model
Instead of predicting raw states:
Observation
β
Encoder
β
Latent State
β
Dynamics Model
β
Future Latent State
This is closer to modern latent world model approaches.
Project 5 β Vision World Model
Use visual observations:
Image / Video
β
Vision Encoder
β
Latent State
β
World Model
β
Future Latent State
Possible encoders:
ViT
CLIP
CNN
Video Transformer
JEPA-style encoder
Project 6 β Agent + World Model
Final architecture:
Environment
β
Perception
β
World Model
β
Simulation
β
Value
β
Planner
β
Agent
β
Tools / Actions
β
Environment
24. A Complete Architecture
ENVIRONMENT
β
βΌ
PERCEPTION
β
βββββββββββββ΄ββββββββββββ
β β
Vision Text
β β
βββββββββββββ¬ββββββββββββ
βΌ
WORLD STATE
β
βΌ
WORLD MODEL
β
βββββββββββ΄ββββββββββ
β β
Prediction Simulation
β β
βββββββββββ¬ββββββββββ
β
VALUE
β
PLANNER
β
AGENT
β
ββββββββ΄βββββββ
β β
LLM Tools
β β
ββββββββ¬βββββββ
β
VALIDATION
β
ACTION
β
ENVIRONMENT
β
ββββββ New Observation
25. Main Challenges
World Models are not perfect.
Prediction Error
Predicted Future
β
Real Future
Error Accumulation
Prediction t1
β
Prediction t2
β
Prediction t3
β
Increasing uncertainty
Distribution Shift
A model trained in one environment may fail in another.
Representation
The model must learn what information is actually useful for prediction and planning.
Computation
Long-horizon simulation can be expensive.
26. The Core Idea
The progression can be summarized as:
CNN
β
What do I see?
Transformer
β
How are the elements related?
Vision Models
β
What is in the environment?
LLM
β
How can I reason about information?
RAG
β
What information can I retrieve?
Agent
β
What can I do?
Reinforcement Learning
β
Which behavior maximizes future reward?
World Model
β
What could happen if I act?
And the complete loop becomes:
OBSERVE
β
REPRESENT
β
PREDICT
β
SIMULATE
β
EVALUATE
β
PLAN
β
ACT
β
OBSERVE AGAIN
27. Final Takeaway
A World Model is not simply another neural network architecture.
It is a way to model the dynamics of an environment so that an agent can:
- represent its current state;
- predict possible future states;
- evaluate consequences;
- simulate actions;
- plan;
- act;
- learn from feedback.
The main connection between the topics is:
Computer Vision
β
Representation Learning
β
JEPA
β
World Model
β
Prediction
β
Reinforcement Learning
β
Value
β
Planning
β
Agents
β
Action
The essential transition is:
Perception
β
Prediction
β
Simulation
β
Planning
β
Action
That is the main reason to study World Models.
References
-
Ha, D. & Schmidhuber, J. β World Models (2018)
https://arxiv.org/abs/1803.10122 -
Assran et al.Β β Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture (I-JEPA, CVPR 2023)
https://arxiv.org/abs/2301.08243 -
Schrittwieser et al.Β β Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model (MuZero, Nature 2020)
https://www.nature.com/articles/s41586-020-03051-4 -
Hafner et al.Β β Mastering Diverse Domains through World Models (DreamerV3, 2023)
https://arxiv.org/abs/2301.04104 -
Meta AI β V-JEPA 2
https://ai.meta.com/blog/v-jepa-2-world-model-benchmarks/ -
Gymnasium β Reinforcement Learning environments
https://gymnasium.farama.org/