🎯Core Definition
The two RL paradigms contrasted:
📌Overview
| Aspect | Model-Based | Model-Free |
| --- | --- | --- |
| Sample efficiency | High (imagined rollouts reuse data) | Low (needs vast real interaction) |
| Model bias | Yes (a wrong model misleads the policy) | None (learns from real interaction) |
| Policy expression | Planning is the policy; goals swap on the fly | Fixed policy; retrain for new goals |
| Compute | Training + per-step planning cost | Cheap inference, low deployment cost |
| Examples | Dyna, MPC, MuZero, Dreamer | DQN, PPO, SAC, GRPO |
📌Overview
Core risk — compounding error: with per-step model error
ε (e.g. TV distance
DTV(Pϕ,P∗)≤ε), the cumulative error of an
H-step model rollout is
O(H2ε). Intuition: the error
ε introduced at step
k is amplified ~
H−k times through the remaining value updates; summing over
k:
∑k=1Hε(H−k)=ε⋅2H(H−1)=O(H2ε) — error grows quadratically with horizon.
💡Use Cases
a must-ask comparison in interviews (sample efficiency vs model bias); algorithm choice — pick MF when interaction is cheap/data is abundant (stable, simple), pick MB when interaction is expensive or the goal is reusable; offline RL often combines both (model-generated data + conservative Q constraints).
⚡Key Problems Solved
the two are complementary — MF is unbiased but sample-hungry, MB is efficient but biased; hybrid routes (Dyna-style replay, MBPO mixing model rollouts into the buffer, offline RL augmenting datasets with the model) get the best of both.