Model-Based Reinforcement Learning
1. Key Concepts and Terminology
Model-Based Reinforcement Learning: Key Concepts and Terminology
Dynamics Models
In model-based reinforcement learning (MBRL), a dynamics model represents the underlying system dynamics, typically expressed as a transition function f(sₜ, aₜ) that predicts the next state sₜ₊₁ given the current state sₜ and action aₜ. The model can be deterministic or stochastic, with the latter often parameterized as a Gaussian distribution:
where fμ predicts the mean and fΣ the covariance. Common implementations use neural networks, Gaussian processes, or linear approximations.
Planning and Policy Optimization
MBRL separates model learning from planning. Once a dynamics model is learned, planning algorithms—such as model-predictive control (MPC) or Monte Carlo tree search (MCTS)—generate actions by simulating trajectories. The objective is to maximize the expected cumulative reward R over a horizon H:
where γ is the discount factor. Unlike model-free methods, MBRL’s reliance on simulated rollouts reduces real-world interaction costs.
Model Bias and Uncertainty
A critical challenge in MBRL is model bias—discrepancies between the learned model and true dynamics. Techniques like Bayesian neural networks or ensemble methods quantify epistemic uncertainty to mitigate compounding errors during long-horizon predictions. For example, an ensemble of N models approximates uncertainty via disagreement:
Sample Efficiency vs. Computational Cost
MBRL trades off sample efficiency (fewer real-world interactions) against computational overhead (simulation and planning). For instance, the PILCO framework achieves high sample efficiency by using Gaussian processes for dynamics modeling, but scales poorly to high-dimensional states. Modern approaches like PETS combine neural networks with MPC to balance these constraints.
Key Terminology
- Forward Dynamics: Predicts next state given current state and action.
- Inverse Dynamics: Infers action given consecutive states.
- Imaginary Rollouts: Trajectories simulated entirely within the learned model.
- Model-Predictive Control (MPC): Replanning at each step using short-horizon optimization.
1.2 Comparison with Model-Free Reinforcement Learning
Model-based reinforcement learning (MBRL) and model-free reinforcement learning (MFRL) represent two fundamentally distinct approaches to solving sequential decision-making problems. The core distinction lies in whether the agent explicitly learns or assumes a model of the environment dynamics.
Key Conceptual Differences
In MFRL, the agent learns a policy or value function directly from interactions with the environment without constructing an explicit model of state transitions or rewards. Algorithms like Q-learning and policy gradient methods fall under this category. The Bellman equation for Q-learning illustrates this model-free approach:
In contrast, MBRL explicitly learns or uses a model $$M$$ of the environment, typically represented as $$M = (P, R)$$, where $$P(s'|s,a)$$ describes state transition probabilities and $$R(s,a)$$ represents the reward function. Planning is then performed using this model, either through dynamic programming or sampling-based methods.
Sample Efficiency Trade-offs
The most significant practical difference lies in sample efficiency. MBRL methods generally require fewer environment interactions because the learned model can be used for internal simulation, allowing the agent to "imagine" trajectories without real-world experience. For instance, Dyna-Q demonstrates this principle by blending real experience with simulated experience from a learned model:
MFRL methods often need orders of magnitude more samples since they must encounter each relevant state-action pair sufficiently many times to estimate values accurately.
Bias-Variance Considerations
MBRL introduces potential model bias - errors in the learned model propagate into suboptimal policies. The model error $$\epsilon_M$$ can be formalized as:
MFRL avoids this bias but typically exhibits higher variance in value estimates, particularly in sparse-reward or long-horizon tasks. Modern MBRL approaches mitigate model bias through uncertainty quantification (e.g., Bayesian neural networks) or model ensemble methods.
Computational Complexity
MBRL shifts the computational burden from environment interaction time (sample complexity) to planning time. The computational cost grows with:
- Model learning complexity (e.g., neural network training)
- Planning horizon depth
- State-action space dimensionality
MFRL methods often have lower per-iteration computational costs but may require more iterations to converge. The trade-off depends on whether environment interactions or computation constitute the limiting resource.
Robustness to Model Misspecification
When environment dynamics are stochastic or partially observable, model errors can compound rapidly in MBRL. The value compounding error phenomenon shows how small model errors $$\epsilon$$ over $$T$$ timesteps can lead to exponential value error:
MFRL methods are generally more robust in such cases, though recent advances in probabilistic MBRL (e.g., PETS) have improved robustness through uncertainty-aware models.
Hybrid Approaches
Modern systems often blend both paradigms. For example, AlphaZero uses:
- A model-free policy/value network for generalization
- Monte Carlo tree search (model-based planning) for local policy improvement
Theoretical work suggests such hybrids can achieve the best of both approaches - the sample efficiency of MBRL with the robustness of MFRL.

1.3 Markov Decision Processes (MDPs) and Dynamics Models
Formal Definition of MDPs
A Markov Decision Process (MDP) is a tuple (S, A, P, R, γ), where:
- S is a finite set of states,
- A is a finite set of actions,
- P(s'|s, a) is the transition dynamics model defining the probability of reaching state s' from state s under action a,
- R(s, a, s') is the reward function, and
- γ ∈ [0, 1] is the discount factor.
The Markov property enforces that transitions depend only on the current state and action, not history:
Dynamics Models in Model-Based RL
In model-based RL, the dynamics model P(s'|s, a) is either known (e.g., in tabular settings) or learned (e.g., via neural networks). For continuous states, it’s often approximated as a Gaussian:
where f_θ is a learned function (e.g., a neural network) and Σ captures aleatoric uncertainty. Model learning typically minimizes the negative log-likelihood:
Value Functions and Bellman Equations
The state-value function V^π(s) and action-value function Q^π(s, a) under policy π satisfy the Bellman equations:
For the optimal policy π*, the Bellman optimality equation holds:
Partial Observability and POMDPs
When states are not fully observable, MDPs generalize to Partially Observable MDPs (POMDPs), which include an observation model O(o|s). Belief states b(s) replace actual states, requiring inference (e.g., via Bayes filters).
Practical Challenges
- Model bias: Approximate dynamics models may propagate errors in long-horizon predictions.
- Sample efficiency: Learned models require careful regularization to avoid overfitting.
- Uncertainty quantification: Epistemic uncertainty (model uncertainty) must be addressed for robust planning.
Case Study: MuZero
DeepMind’s MuZero combines MDPs with learned models, using a latent dynamics model h_ heta to predict rewards, values, and transitions in abstract space:
This avoids explicit state reconstruction, enabling mastery of games like Go and Atari without prior environment knowledge.

2. Dyna and Prioritized Sweeping
Dyna and Prioritized Sweeping
Dyna is a model-based reinforcement learning (MBRL) framework that integrates learning from real experience with simulated experience generated by an internal model. The key insight is that an agent can improve its policy more efficiently by leveraging both real interactions with the environment and simulated interactions from its learned model. Dyna-Q, a classic implementation, alternates between:
- Direct reinforcement learning (updating Q-values based on real experience)
- Model learning (estimating transition dynamics and rewards)
- Planning (updating Q-values using simulated experience from the model)
The Dyna architecture can be formalized as follows. Let M be the learned model of the environment's transition dynamics P(s'|s,a) and reward function R(s,a). After each real transition (s, a, r, s'), the agent:
Then updates its model M with the observed transition. During planning, the agent samples n simulated transitions (s̃, ã, r̃, s̃') from M and applies the same Q-update:
Prioritized Sweeping
A limitation of standard Dyna is that it performs random sweeps through state-action space during planning, which can be inefficient. Prioritized sweeping addresses this by focusing updates on states where the Bellman error is largest. The algorithm maintains a priority queue where the priority of a state-action pair (s,a) is:
The update procedure becomes:
- After each real transition, compute the priority p(s,a) and add to the queue if above threshold
- While the queue is not empty:
- Pop the highest priority (s,a)
- Update its Q-value
- For all predecessor states s̄ that could transition to s, compute their new priorities and add to queue if significant
Implementation Considerations
Practical implementations must handle several challenges:
- Model accuracy: The quality of simulated experience depends on how well M approximates the true environment
- Queue management: The priority queue should efficiently handle insertions and maximum-priority extractions
- Computational budget: The number of planning updates per real step must be carefully balanced
Prioritized sweeping typically converges faster than standard Dyna, particularly in environments where rewards are sparse or the consequences of actions propagate through many states. The method has been successfully applied to problems ranging from robotic control to game playing, where efficient credit assignment is crucial.

Model Predictive Control (MPC)
Model Predictive Control (MPC) is an advanced control strategy that leverages an explicit dynamic model of the system to optimize future behavior over a finite horizon. Unlike traditional control methods, MPC solves an online optimization problem at each time step, incorporating constraints and system dynamics directly into the control law. This receding-horizon approach makes it particularly effective for complex, nonlinear, or constrained systems.
Mathematical Formulation
At each time step t, MPC solves the following finite-horizon optimal control problem:
subject to:
where:
- \(x_{t+k}\) is the predicted state at step t+k,
- \(u_{t+k}\) is the control input,
- \(\ell(\cdot)\) is the stage cost,
- \(V_f(\cdot)\) is the terminal cost,
- \(H\) is the prediction horizon,
- \(\mathcal{X}, \mathcal{U}\) are state and input constraints,
- \(\mathcal{X}_f\) is the terminal constraint set.
Receding Horizon Principle
After solving the optimization problem, only the first control input \(u_t\) is applied to the system. The horizon then shifts forward, and the process repeats at the next time step. This feedback mechanism ensures robustness to model inaccuracies and disturbances.
Practical Considerations
MPC’s computational cost scales with the horizon length \(H\) and system dimensionality. Real-time implementations often rely on:
- Linear approximations (e.g., linearized dynamics, quadratic costs) for convexity,
- Warm-starting the solver using the previous solution,
- Constraint tightening for robust MPC under uncertainty.
Applications
MPC is widely used in:
- Autonomous vehicles for trajectory planning,
- Process control in chemical plants,
- Robotics for motion planning under constraints.
Extensions and Variants
Recent advances include:
- Stochastic MPC for handling probabilistic uncertainty,
- Learning-based MPC where the model \(f(\cdot)\) is learned via neural networks,
- Distributed MPC for multi-agent systems.
where \(\mathbf{H}, \mathbf{F}, \mathbf{G}, \mathbf{w}, \mathbf{E}\) are derived from the linearized dynamics and constraints.

2.3 Probabilistic Ensembles with Trajectory Sampling (PETS)
Architecture Overview
PETS combines probabilistic dynamics models with model predictive control (MPC) to achieve sample-efficient reinforcement learning. The framework consists of three key components: an ensemble of probabilistic neural networks that model system dynamics, trajectory sampling for long-horizon prediction, and a model predictive controller that optimizes actions using the learned dynamics.
Probabilistic Ensemble Dynamics Model
The dynamics model is implemented as an ensemble of B neural networks, each outputting a Gaussian distribution over next states given current states and actions:
where b indexes ensemble members and θ represents network parameters. Each network is trained to maximize the log-likelihood of transitions under its predicted distribution, with regularization to prevent overfitting to small datasets.
Trajectory Sampling Procedure
For planning, PETS uses a sampling-based approach:
- Sample K candidate action sequences from a proposal distribution
- For each action sequence, propagate multiple state trajectories through the ensemble
- Compute expected rewards using the propagated states
- Select the action sequence with highest expected reward
The trajectory sampling accounts for both epistemic uncertainty (via the ensemble) and aleatoric uncertainty (via the probabilistic outputs).
CEM Optimization
PETS employs Cross-Entropy Method (CEM) for action sequence optimization:
where H is the planning horizon. CEM iteratively refines a distribution over action sequences by:
- Sampling candidate sequences from current distribution
- Evaluating sequences via trajectory sampling
- Updating distribution parameters toward elite samples
Practical Implementation
Key implementation details include:
- Network architecture: 4-layer MLPs with 200 hidden units per layer
- Ensemble size: Typically 5-10 networks
- Training: Early stopping based on validation set performance
- Planning: 5 CEM iterations with 500 candidate sequences per iteration
Performance Characteristics
PETS demonstrates several advantages:
- Sample efficiency: Achieves good performance with 10-100x fewer environment interactions than model-free methods
- Handling of uncertainty: Explicit modeling prevents overfitting to limited data
- Parallelizability: Ensemble evaluation and trajectory sampling are embarrassingly parallel
where d is model complexity and N is number of training samples, showing the method's data efficiency.
3. Neural Network-Based Dynamics Models
Neural Network-Based Dynamics Models
Neural network-based dynamics models approximate the transition function f(st, at) → st+1 in model-based reinforcement learning (MBRL). Unlike linear models, neural networks capture complex, nonlinear dynamics through hierarchical feature extraction, making them suitable for high-dimensional state-action spaces. The core challenge lies in balancing expressiveness with sample efficiency while maintaining stability during long-horizon predictions.
Architecture Design Choices
Feedforward networks are commonly used for deterministic dynamics, with architectures varying by problem complexity:
- Multilayer Perceptrons (MLPs): Standard choice for low-to-medium dimensional spaces. Hidden layers typically use ReLU or Swish activations.
- Residual Connections: Critical for deep networks to mitigate vanishing gradients in long prediction horizons. The output becomes st+1 = st + fθ(st, at).
- Probabilistic Networks: For stochastic environments, output a Gaussian distribution 𝒩(μθ, Σθ) using a dual-head architecture.
Training Dynamics
Networks are trained via maximum likelihood estimation (MLE) on transition data 𝒟 = {(st, at, st+1)}. The loss function decomposes as:
Batch normalization and layer normalization are essential for stabilizing training across varying state scales. Techniques like ensemble averaging (5-10 networks) improve robustness by quantifying epistemic uncertainty.
Practical Challenges
Compounding Errors: Small prediction errors accumulate over long horizons. Solutions include:
- Training on mixed horizons (1-step to k-step predictions)
- Regularizing Jacobians of the dynamics model
- Using scheduled sampling to blend real and predicted states
Partial Observability: For POMDPs, recurrent networks (LSTMs/GRUs) or transformer-based architectures encode history. The state becomes ht = gϕ(ht−1, st, at), with gϕ trained jointly with fθ.
Case Study: PETS Algorithm
The Probabilistic Ensembles with Trajectory Sampling (PETS) framework uses an ensemble of probabilistic neural networks for dynamics modeling. Key innovations:
- Bootstrapped ensembles for uncertainty-aware predictions
- Trajectory sampling via cross-entropy method (CEM) for planning
- Handles continuous control tasks like MuJoCo with 10-100× fewer samples than model-free methods
Empirical results show neural dynamics models outperform Gaussian processes in high dimensions but require careful regularization to prevent overfitting to sparse data.

3.2 Gaussian Processes for Model Learning
Gaussian Processes (GPs) provide a principled, non-parametric approach to model learning in reinforcement learning by representing uncertainty over functions. A GP defines a distribution over functions where any finite set of function values follows a multivariate Gaussian distribution. Formally, a GP is fully specified by its mean function m(x) and covariance (kernel) function k(x, x'):
For model-based RL, we typically set m(x) = 0 for simplicity, shifting the modeling burden to the kernel function. The squared exponential kernel is commonly used:
where σf controls function variance, l determines the length-scale of correlations, and σn represents observation noise. The Kronecker delta δxx' is 1 if x = x' and 0 otherwise.
Posterior Predictive Distribution
Given training inputs X and outputs y, the predictive distribution at test point x* is Gaussian with closed-form mean and variance:
where K is the kernel matrix with entries Kij = k(xi, xj), and k* = [k(x*, x1), ..., k(x*, xn)]T. This posterior directly quantifies model uncertainty, crucial for exploration in RL.
Hyperparameter Optimization
The kernel hyperparameters θ = {σf, l, σn} are typically learned by maximizing the marginal likelihood:
Gradient-based optimization of this objective balances data fit (first term) against model complexity (second term). The partial derivatives with respect to θ can be computed analytically, enabling efficient optimization via conjugate gradient methods.
Sparse Gaussian Processes
The O(n3) computational cost of exact GPs becomes prohibitive for large datasets. Sparse approximations introduce m ≪ n inducing points Z to approximate the full covariance structure. The variational free energy (VFE) approximation provides a rigorous lower bound on the marginal likelihood:
where Qnn = KnmKmm-1Kmn. This reduces computational complexity to O(nm2) while maintaining well-calibrated uncertainty estimates.
Applications in Model-Based RL
GPs excel in model-based RL when:
- Data efficiency is critical (e.g., robotics where real-world samples are expensive)
- Uncertainty quantification guides exploration (e.g., avoiding catastrophic actions)
- The state-action space is continuous and moderate-dimensional (typically ≤ 10D)
PILCO (Probabilistic Inference for Learning Control) demonstrates this by using GPs to learn dynamics models directly from pixels, enabling data-efficient policy learning. The GP's uncertainty estimates naturally facilitate risk-sensitive control through chance-constrained optimization.
Recent advances combine GPs with deep learning through deep kernel learning, where neural networks learn feature representations that feed into standard GP kernels. This hybrid approach scales to higher-dimensional inputs while retaining probabilistic calibration.

3.3 Handling Uncertainty in Learned Models
Model-based reinforcement learning (MBRL) relies on learned dynamics models to predict future states and rewards. However, these models are inherently uncertain due to limited data, stochastic environments, and approximation errors. Ignoring this uncertainty can lead to overconfident predictions, poor policy performance, and catastrophic failures in real-world applications. Effective uncertainty quantification and propagation are therefore critical for robust MBRL.
Sources of Uncertainty in Learned Models
Uncertainty in learned models arises from multiple sources:
- Epistemic uncertainty (model uncertainty): Results from limited training data and imperfect model architectures. This uncertainty can be reduced with more data or better models.
- Aleatoric uncertainty (inherent stochasticity): Stems from the environment's intrinsic randomness, which cannot be reduced even with infinite data.
- Approximation uncertainty: Occurs due to function approximation errors in neural networks or other parametric models.
Bayesian Neural Networks for Uncertainty Estimation
Bayesian neural networks (BNNs) provide a principled framework for modeling uncertainty by treating network weights as probability distributions rather than point estimates. The predictive distribution for a state transition given input state-action pair (s, a) is:
where θ represents the network parameters and 𝒟 is the training data. In practice, this integral is approximated using Monte Carlo dropout or variational inference.
Ensemble Methods for Model Uncertainty
An alternative to BNNs is using ensembles of deterministic models. Each model in the ensemble {f_θ₁, f_θ₂, ..., f_θₙ} is trained with different initializations or data subsets. The ensemble's predictions provide both a mean prediction and variance estimate:
Ensembles often outperform single BNNs in practice due to their simplicity and parallelizability.
Uncertainty-Aware Planning
When using uncertain models for planning, we must account for prediction variance. Common approaches include:
- Pessimistic planning: Penalize states with high uncertainty during trajectory optimization.
- Uncertainty-weighted rewards: Modify the reward function to include uncertainty terms.
- Chance-constrained optimization: Enforce probabilistic constraints on state transitions.
The cross-entropy method (CEM) for trajectory optimization can be extended to handle uncertainty by sampling multiple model rollouts and selecting actions that perform well across all samples.
Information-Directed Exploration
Model uncertainty naturally suggests exploration strategies that seek to reduce uncertainty about the environment dynamics. The information gain IG(s,a) from taking action a in state s can be quantified using the KL divergence between the current model posterior and the expected posterior after observing the transition:
This leads to exploration strategies that balance reward maximization with information gain, similar to Bayesian optimization approaches.
Practical Considerations
In real-world applications, computational constraints often limit the complexity of uncertainty estimation methods. Key trade-offs include:
- The computational cost of uncertainty estimation versus its benefits for policy performance
- The choice between sampling-based methods (e.g., ensembles) and analytic approximations (e.g., variational inference)
- The horizon over which uncertainty should be propagated during planning
Recent work has shown that even simple uncertainty estimates, when properly incorporated into planning, can significantly improve MBRL performance in safety-critical domains like robotics and autonomous systems.

4. Hybrid Model-Based and Model-Free Approaches
Hybrid Model-Based and Model-Free Approaches
Hybrid approaches in reinforcement learning (RL) combine the strengths of model-based and model-free methods, leveraging learned or approximate dynamics models while retaining the flexibility of direct policy optimization. These methods often outperform purely model-free algorithms in sample efficiency while avoiding the compounding errors inherent in purely model-based approaches.
Architecture of Hybrid RL Systems
The most common hybrid architectures use a learned dynamics model to generate synthetic rollouts while simultaneously training a model-free policy on both real and simulated data. The Dyna architecture exemplifies this paradigm:
- Real experience buffer: Stores actual environment transitions (s, a, r, s')
- Learned model: Parameterized transition function T̂(s'|s,a) and reward function R̂(s,a)
- Virtual experience generator: Produces additional training samples using the learned model
The model-free component typically employs standard temporal difference learning, with the value function or policy updated using a mixture of real and imagined trajectories. The balance between real and simulated data is often controlled through a hyperparameter β ∈ [0,1]:
Uncertainty-Aware Hybrid Learning
Advanced hybrid methods incorporate uncertainty quantification to dynamically weight model-based and model-free updates. Bayesian neural networks or ensemble methods estimate epistemic uncertainty in the learned model:
where σ is the sigmoid function, κ is a sensitivity parameter, and σ̂(s,a) represents the model's uncertainty estimate. This approach automatically reduces reliance on the model in unfamiliar state-action regions.
Algorithmic Implementations
Modern hybrid RL algorithms employ several key innovations:
- Model-based value expansion: Short model-based rollouts bootstrap the value function (e.g., MVE, STEVE)
- Latent space models: Variational models operating in compressed representations (e.g., Dreamer, PlaNet)
- Policy-guided search: Using model-free policies to direct model-based planning (e.g., AlphaZero)
The gradient updates in these systems often combine terms from both paradigms. For a policy π_θ with parameters θ, the hybrid objective becomes:
where λ controls the relative weighting between model-free (MF) and model-based (MB) components.
Empirical Performance Characteristics
Hybrid methods demonstrate distinct advantages in different regimes:
- Early training: Model-free components dominate due to poor initial model quality
- Mid-training: Model-based components accelerate learning as the dynamics model improves
- Asymptotic performance: Model-free components typically determine final performance
The sample complexity of hybrid methods often follows a composite scaling law:
where ε represents the target error rate, showing better scaling than purely model-free (O(1/ε²)) or model-based (O(1/ε)) approaches alone.

Meta-Learning for Fast Model Adaptation
Meta-learning, or learning-to-learn, enables reinforcement learning (RL) agents to rapidly adapt to new tasks by leveraging prior experience. In model-based RL, this involves learning an initial dynamics model that can be efficiently fine-tuned with minimal data from a target task. The key challenge lies in designing meta-learning algorithms that generalize across task distributions while maintaining sample efficiency.
Gradient-Based Meta-Learning for Dynamics Models
Model-Agnostic Meta-Learning (MAML) provides a framework for learning model parameters that are sensitive to task-specific updates. For a dynamics model fθ, the meta-objective optimizes for fast adaptation via gradient descent:
where θi' = θ - α∇θℒτi(fθ) represents the adapted parameters after one or few gradient steps on task τi. The outer loop updates θ to minimize the loss across tasks after adaptation.
Bayesian Meta-Learning Approaches
Probabilistic formulations treat the dynamics model as a latent variable model, where task-specific parameters are drawn from a learned prior. The Neural Process framework combines neural networks with Gaussian processes to model the distribution over dynamics functions:
Here, z represents latent task variables, and the encoder-decoder architecture enables few-shot adaptation through amortized variational inference.
Memory-Augmented Architectures
External memory systems like Differentiable Neural Computers (DNCs) allow models to store and retrieve task-specific information. The memory matrix M is updated through write heads conditioned on the current state and reward signals:
where wt is a write weighting vector and et is the memory update. This enables rapid adaptation by retrieving relevant experiences without parameter updates.
Practical Considerations
- Task Distributions: The meta-training tasks must sufficiently cover the test task distribution for effective generalization
- Second-Order Optimization: MAML requires computing gradients through gradient steps, necessitating careful handling of computational graphs
- Multi-Task Scaling: Performance improves with the diversity and quantity of meta-training tasks, but requires balancing computational costs
Recent advances like PEARL and VariBAD demonstrate these techniques in robotic control and autonomous systems, achieving adaptation with just 1-10 episodes in novel environments. The field continues to evolve with hybrid approaches combining gradient-based and memory-based methods.

4.3 Latent Space Models for High-Dimensional State Spaces
High-dimensional state spaces, such as those encountered in image-based reinforcement learning (RL), present significant challenges for model-based approaches. Traditional dynamics models struggle with the curse of dimensionality, making latent space models an essential tool for efficient learning and planning.
Latent State Representation
The core idea of latent space models is to learn a low-dimensional embedding zt of the high-dimensional observation xt through an encoder E(xt) = zt. This transformation must preserve the relevant information for predicting future states while discarding irrelevant details. The dynamics model then operates in this compressed space:
where fθ is typically parameterized as a neural network. The decoder D(zt) reconstructs the original observation space, enabling end-to-end training through a reconstruction loss:
Stochastic Latent Models
For more robust representations, modern approaches employ stochastic latent variables. The PlaNet model, for instance, uses a variational autoencoder (VAE) framework with a latent transition model:
The evidence lower bound (ELBO) objective combines reconstruction quality with dynamics prediction:
Temporal Consistency
Effective latent models must maintain temporal coherence across transitions. Contrastive methods like CURL (Contrastive Unsupervised Representations for Reinforcement Learning) enforce this by maximizing agreement between augmented views of the same state while pushing apart different states:
where τ is a temperature parameter and zi, zj are positive pairs from the same observation.
Planning in Latent Space
Once learned, the latent model enables efficient planning through methods like:
- Latent MPC: Model Predictive Control using the learned dynamics fθ
- Latent Value Estimation: Training Q-functions directly in latent space
- Dreamer-style Planning: Imagining latent trajectories for policy improvement
The Dreamer algorithm demonstrates this approach by learning a world model entirely in latent space, then training an actor-critic agent through imagined rollouts. This achieves state-of-the-art performance while being sample-efficient.
Implementation Considerations
Key practical aspects when implementing latent space models include:
- Balancing reconstruction quality with dynamics prediction accuracy
- Handling partial observability through recurrent connections
- Managing the trade-off between latent dimensionality and compression
- Addressing distributional shift between learned and real dynamics
Recent advances like RSSM (Recurrent State Space Model) combine stochastic and deterministic paths in the latent space, while transformers are increasingly used for modeling long-range dependencies in latent trajectories.

5. Robotics and Autonomous Systems
Robotics and Autonomous Systems
Model-based reinforcement learning (MBRL) has emerged as a powerful paradigm for robotics and autonomous systems, where learning an accurate dynamics model can significantly reduce the sample complexity inherent in model-free approaches. The core idea revolves around leveraging learned or known transition dynamics p(s'|s, a) to plan optimal actions while minimizing real-world interactions.
Dynamics Model Learning in Robotics
In robotics, the dynamics model f_θ(s, a) is typically parameterized as a neural network that predicts the next state s' given the current state s and action a. The model is trained to minimize the prediction error:
where D represents the collected transition data. For high-dimensional state spaces common in robotics (e.g., joint angles, camera images), the dynamics model often employs convolutional or recurrent architectures to handle temporal dependencies.
Model Predictive Control (MPC) Integration
MBRL in robotics frequently combines learned dynamics with model predictive control. At each timestep, the agent:
- Samples a sequence of candidate actions {a_t, ..., a_{t+H}}
- Rolls out trajectories using the learned model f_θ
- Selects the action sequence maximizing expected reward
- Executes the first action and replans
The optimization is often performed via cross-entropy method (CEM) or gradient-based approaches when differentiable dynamics are available.
Uncertainty-Aware Planning
A critical challenge in applying MBRL to real robots is model inaccuracy. Bayesian neural networks or ensemble methods provide uncertainty estimates that improve robustness:
where λ controls the exploration-exploitation tradeoff. This approach prevents catastrophic actions in states where the model is uncertain.
Real-World Applications
Recent advances have demonstrated MBRL for:
- Quadrupedal locomotion adapting to unseen terrains
- Robotic manipulation with sparse rewards
- Autonomous drone racing at human-competitive speeds
These systems typically combine learned residual dynamics with prior physical models, enabling fast adaptation while maintaining stability guarantees.
Sample Efficiency Comparison
The table below contrasts sample efficiency between model-free and model-based approaches on common robotic benchmarks:
| Task | Model-Free Samples | Model-Based Samples |
|---|---|---|
| Door Opening | 1M+ | 50K |
| Peg Insertion | 2.5M | 100K |
This efficiency stems from the model's ability to generalize from limited data through physical priors and differentiable simulation.
Challenges and Open Problems
Key remaining challenges include:
- Learning contact-rich dynamics for dexterous manipulation
- Scaling to high-DoF systems with complex constraints
- Bridging the sim-to-real gap without extensive domain randomization
Recent work in hierarchical MBRL and meta-learning shows promise in addressing these limitations by learning reusable skill primitives.

5.2 Game Playing and Simulation
Model-based reinforcement learning (MBRL) excels in game playing and simulation due to its ability to learn and exploit environment dynamics. Unlike model-free methods, which rely on trial-and-error interactions, MBRL constructs an internal model of the environment, enabling more efficient planning and decision-making. This is particularly advantageous in domains where simulations are computationally expensive or real-world interactions are costly.
Dynamics Model Learning
In game playing, the dynamics model f(s, a) predicts the next state s' given the current state s and action a. The model is typically trained using supervised learning on transition data (s, a, s') collected from interactions. For deterministic environments, a mean-squared error (MSE) loss is sufficient:
For stochastic environments, probabilistic models like Gaussian processes or variational autoencoders (VAEs) are employed to capture uncertainty. The learned model can then be used for planning, where actions are selected by simulating trajectories.
Monte Carlo Tree Search (MCTS) Integration
MBRL often integrates with Monte Carlo Tree Search (MCTS) for decision-making in games. MCTS uses the learned dynamics model to simulate possible future states, evaluating actions based on their expected rewards. The Upper Confidence Bound for Trees (UCT) algorithm balances exploration and exploitation:
where Q(s, a) is the action-value estimate, N(s) is the visit count of state s, and c is an exploration constant. AlphaGo and AlphaZero famously combined MCTS with deep neural networks for dynamics modeling.
Simulation-Based Policy Optimization
In simulation-heavy domains like robotics or autonomous driving, MBRL leverages the learned model to optimize policies without real-world interaction. Model Predictive Control (MPC) is a common approach, where at each step, the agent solves a finite-horizon optimization problem:
subject to s_{k+1} = f(s_k, a_k). The first action of the optimized sequence is executed, and the process repeats. This is computationally intensive but avoids costly real-world trials.
Case Study: Atari Games
In the Arcade Learning Environment (ALE), MBRL has been applied to Atari games by learning pixel-level dynamics models. Unlike model-free approaches like DQN, MBRL methods such as SimPLe (Model-Based Reinforcement Learning for Atari) achieve competitive performance with significantly fewer environment interactions. The key insight is that a compact latent-state representation can be learned using VAEs, reducing the complexity of the dynamics model.
Challenges and Trade-offs
While MBRL offers sample efficiency, it faces challenges in high-dimensional or partially observable environments. Model bias—where inaccuracies in the learned dynamics compound over long planning horizons—can degrade performance. Techniques like ensemble models and Bayesian neural networks mitigate this by quantifying uncertainty. Additionally, the computational cost of planning grows with the complexity of the model, requiring trade-offs between accuracy and real-time decision-making.
5.3 Real-World Challenges and Solutions
Model Inaccuracy and Distributional Shift
Learned dynamics models often suffer from compounding errors when predicting long-horizon trajectories, particularly in regions of the state-action space not covered by the training data. This distributional shift arises because the agent's policy may visit states where the model's predictions are unreliable. Formally, if the true transition dynamics are P(s'|s,a) and the learned model is P̂(s'|s,a), the error accumulates as:
Where DKL is the Kullback-Leibler divergence. This error grows exponentially with the planning horizon t, leading to catastrophic failures in deployment. Recent approaches address this through:
- Uncertainty-aware planning: Using Bayesian neural networks or ensemble methods to estimate epistemic uncertainty, allowing the agent to avoid states where the model is uncertain.
- Model-predictive control (MPC): Replanning at each step with a short horizon to minimize error accumulation.
- Data augmentation: Actively exploring the environment to collect additional training data in regions of high model error.
Computational Complexity
Model-based RL requires solving nested optimization problems: learning the dynamics model P̂, then optimizing the policy π under this model. For continuous state-action spaces, this involves:
The cross-entropy method (CEM) and differentiable planning (e.g., Dreamer) have emerged as solutions:
- CEM: Samples candidate action sequences, evaluates them through the model, and iteratively refines the sampling distribution.
- Differentiable planning: Unrolls the model through time and backpropagates gradients to update the policy directly, as in:
Partial Observability
Many real-world systems exhibit partial observability, where the state st is not fully known. This necessitates maintaining a belief state bt using recurrent networks or particle filters. The dynamics model must then operate on the belief space:
Recent work combines world models with contrastive predictive coding to learn latent representations that capture the essential dynamics while being robust to partial observability.
Sim-to-Real Transfer
When training models in simulation for real-world deployment, domain gaps cause performance degradation. Solutions include:
- Domain randomization: Training on a distribution of simulated environments with randomized parameters to improve robustness.
- System identification: Adapting the model parameters to match real-world observations using limited real data.
- Meta-learning: Pre-training models that can quickly adapt to new environments with few samples.
The sim-to-real objective can be formalized as finding model parameters θ that minimize the expected error across the real-world distribution:
Where ℰreal represents the distribution of real-world environments.
6. Key Research Papers
6.1 Key Research Papers
- [2006.16712] Model-based Reinforcement Learning: A Survey. - ar5iv — The survey is organized as follows. After a short introduction of the MDP optimization problem (Sec. 2), we first define the categories of model-based reinforcement learning and their relation to the fields of planning and model-free reinforcement learning (Sec. 3).Afterwards, Sections 4-7 present the main body of this survey. The crucial first step of most model-based RL algorithms is ...
- PDF Towards Efficient and Effective Deep Model-based Reinforcement Learning — Reinforcement Learning through Deep Model-Based Algorithms: An Exploration of Online, Expressive, Offline, and Safe Learning ... (Online): 2320-9364, ISSN (Print): 2320-9356 International Journal of Research in Engineering and Science (IJRES) www.ijres.org Volume 10 Issue 8 ǁAugust 2022 ǁPP. 01-186 ... In recent years deep reinforcement ...
- Model-based Reinforcement Learning: A Survey. - arXiv.org — be combined, in a eld which is known as model-based reinforcement learning. We de ne model-based RL as: 'any MDP approach that i) uses a model (known or learned) and ii) uses learning to approximate a global value or policy function'. While model-based RL has shown great success (Silver et al., 2017a; Levine and Koltun,
- A Unifying Framework for Reinforcement Learning and Planning — 1. Introduction. Sequential decision making is a key challenge in artificial intelligence (AI) research. The problem, commonly formalized as a Markov Decision Process (MDP) (Bellman, 1954; Puterman, 2014), has been studied in different research fields.The two prime research directions are reinforcement learning (RL) (Sutton and Barto, 2018), a subfield of machine learning, and planning (also ...
- PDF Reinforcement Learning and Optimal Control - MIT — 1. Rollout, Policy Iteration, and Distributed Reinforcement Learning, by Dimitri P. Bertsekas, 2020, ISBN 978-1-886529-07-6, 480 pages 2. Reinforcement Learning and Optimal Control, by Dimitri P.Bert-sekas, 2019, ISBN 978-1-886529-39-7, 388 pages 3. Abstract Dynamic Programming, 2nd Edition, by Dimitri P. Bert-
- Benchmarking Model-Based Reinforcement Learning - ResearchGate — Model-based reinforcement learning (MBRL) is widely seen as having the potential to be significantly more sample efficient than model-free RL. However, research in model-based RL has not been very ...
- PDF Efficient Model-Based Reinforcement Learning through Optimistic Policy ... — Model-Based Reinforcement Learning (MBRL) with probabilistic dynamical models can solve many challenging high-dimensional tasks with impressive sample efficiency (Chua et al., 2018). These algorithms alternate between two phases: first, they collect data with a policy and fit a model to the data; then, they simulate transitions with the ...
- Published as a conference paper at ICLR 2020 - OpenReview — Atari games train a GAN-based world model along with a Q-function. Azizzadenesheli et al. (2018) primarily discuss various failure modes of the GATS algorithm. Our method achieves around 64 times the score of GATS on Pong and 10 times on Breakout. 1 Outside of games, model-based reinforcement learning has been investigated at length for ...
- Efficient hyperparameter optimization through model-based reinforcement ... — In this paper, we propose a new model-based method that applies reinforcement learning (RL) to solve the HPO problem. RL is a powerful framework for learning decision-making tasks. Concretely, we first treat the hyperparameter optimization as a sequential decision process and model it as a Markov decision process (MDP).
- Efficient model-based reinforcement learning for approximate online ... — A key contribution of this paper and our preliminary work in Kamalapurkar, Rosenfeld, and Dixon (2015) is the observation that online implementation of an ADP-based approximate optimal controller does not require an estimate of the optimal value function over the entire domain of operation of the system. Instead, only an estimate of the slope of the value function evaluated at the current ...
6.2 Books and Comprehensive Reviews
- Model-based Reinforcement Learning: A Survey. - arXiv.org — The key idea of model-based reinforcement learning is to combine a model and a global solution in one algorithm (Table 1): Model-based reinforcement learning is a class of MDP algorithms that 1) use a model, and 2) store a global solution.
- [2006.16712] Model-based Reinforcement Learning: A Survey. - ar5iv — This paper presents a survey of the integration of both fields, better known as model-based reinforcement learning. Model-based RL has two main steps. First, we systematically cover approaches to dynamics model learning, including challenges like dealing with stochasticity, uncertainty, partial observability, and temporal abstraction.
- A Survey on Deep Reinforcement Learning Algorithms for Robotic ... - MDPI — We begin by outlining the fundamental ideas of reinforcement learning and the parts of a reinforcement learning system. The many deep reinforcement learning algorithms, such as value-based methods, policy-based methods, and actor-critic approaches, that have been suggested for robotic manipulation tasks are then covered.
- A Comprehensive Review of Recommender Systems: Transitioning from ... — We explore the development from traditional RS techniques like content-based and collaborative filtering to advanced methods involving deep learning, graph-based models, reinforcement learning, and large language models. We also discuss specialized systems such as context-aware, review-based, and fairness-aware RS.
- Model-Based Reinforcement Learning - Wiley-VCH — * An online, Python-based toolbox that accompanies the contents covered in the book, as well as the necessary code and data Model-Based Reinforcement Learning is a useful reference for senior undergraduate students, graduate students, research assistants, professors, process control engineers, and roboticists.
- PDF Reinforcement Learning and Optimal Control — On the other hand, the present book provides a more comprehensive coverage of reinforcement learning, and includes the development of topics that are not covered at all in the 2020 book, such as approximation in policy space, aggregation, and temporal di erence methods.
- Model-Based Reinforcement Learning: From Data to Continuous Actions ... — This new technique for assessing classical results will allow for a more efficient reinforcement learning system. At its heart, this book is focused on providing an end-to-end framework—from design to application—of a more tractable model-based reinforcement learning technique.
- A Comprehensive Review of Deep Learning Techniques in Mobile ... - MDPI — Deep Reinforcement Learning (DRL) has emerged as a transformative approach in mobile robot path planning, addressing challenges associated with dynamic and uncertain environments. This comprehensive review categorizes and analyzes DRL methodologies, highlighting their effectiveness in navigating high-dimensional state-action spaces and adapting to complex real-world scenarios. The paper ...
- PDF Deep Reinforcement Learning as Foundation for Artificial General ... — E-mail: [email protected] Deep machine learning and reinforcement learning are two complementing fields within the study of intelligent systems. When combined, it is argued that they offer a promising path for achieving artificial general intelligence (AGI). This chapter outlines the concepts facilitating such merger of technologies and motivates a framework for building scalable intelligent ...
- Deep reinforcement learning in smart manufacturing: A review and ... — To facilitate the personalized smart manufacturing paradigm with cognitive automation capabilities, Deep Reinforcement Learning (DRL) has attracted ever-increasing attention by offering an adaptive and flexible solution.
6.3 Online Resources and Tutorials
- PDF Towards Efficient and Effective Deep Model-based Reinforcement Learning — Reinforcement Learning through Deep Model-Based Algorithms: An Exploration of Online, Expressive, Offline, and Safe Learning Approaches Junxia Deng University of Southern California California, USA Ceil Hong. Zhang Massachusetts Institute of Technology Massachusetts, USA [email protected] ISSN (Online): 2320-9364, ISSN (Print): 2320-9356
- CMPS 4660/6660: Reinforcement Learning - Fall 2020 - Tulane University — Reinforcement learning (RL) has found successful applications in various domains, including recommender systems, health care, energy, finance, robotics, transportation, and computer systems. ... DDPG , model-based RL: Lillicrap, et al., "Continuous ... Resources and support are available: you can learn more at allin.tulane.edu. Any and all of ...
- Week 5: Model-Based Methods - Deep RL Course — This page provides a comprehensive overview of Model-Based Reinforcement Learning (MBRL), covering foundational concepts, key methodologies, and modern algorithms. It explores the integration of planning and learning, dynamics model learning, and advanced techniques for handling stochasticity, uncertainty, and partial observability. The document also highlights state-of-the-art MBRL algorithms ...
- Model-Based Reinforcement Learning - SpringerLink — This chapter will start with an example showing how model-based methods work. Next, we describe in more detail different kinds of model-based approaches: approaches that focus on learning an accurate model and approaches for planning with an imperfect model. Finally, we describe application environments for which model-based methods have been used in practice, to see how well the approaches ...
- Decision Making and Reinforcement Learning — This course is an introduction to sequential decision making and reinforcement learning. We start with a discussion of utility theory to learn how preferences can be represented and modeled for decision making. We first model simple decision problems as multi-armed bandit problems in and discuss several approaches to evaluate feedback.
- Reinforcement Learning with Model-Based Approaches for Dynamic Resource ... — On the other hand, Reinforcement Learning (RL) techniques learn the optimal policy without requiring the knowledge of the statistics of the system. A model-free reinforcement learning techniques with Q-Learning for autonomic resource allocation in the cloud was proposed by Dutreilh et al. in . They focus on a single node queuing system where ...
- Efficient model-based reinforcement learning for approximate online ... — A key contribution of this paper and our preliminary work in Kamalapurkar, Rosenfeld, and Dixon (2015) is the observation that online implementation of an ADP-based approximate optimal controller does not require an estimate of the optimal value function over the entire domain of operation of the system. Instead, only an estimate of the slope of the value function evaluated at the current ...
- Efficient hyperparameter optimization through model-based reinforcement ... — Firstly, we frame this optimization process as a reinforcement learning problem and then employ an agent to tune hyperparameters sequentially. In addition, a model that learns how to evaluate an algorithm is used to speed up the training. However, model inaccuracy is further exacerbated by long-term use, resulting in collapse performance.
- Chapter 4. Reinforcement Learning with Ray RLlib - O'Reilly Media — Chapter 4. Reinforcement Learning with Ray RLlib. In Chapter 3 you built an RL environment, a simulation to play out some games, an RL algorithm, and the code to parallelize the training of the algorithm—all completely from scratch. It's good to know how to do all that, but in practice the only thing you really want to do when training RL algorithms is the first part, namely, specifying ...
- PDF The Path Forward: A Primer for Reinforcement Learning - Stanford University — Also important was the use of learning by self play to learn a value function (as it was in many other games and even in chess, although learning did not play a big role in the 1997 program that first beat a world champion).








