Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: model-vs-model-free

Model-Based vs Model-Free

基于模型 vs 无模型 (MB vs MF)
🎯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 ε\varepsilon (e.g. TV distance DTV(Pϕ,P)εD_{\mathrm{TV}}(P_\phi, P^*) \le \varepsilon), the cumulative error of an HH-step model rollout is O(H2ε)O(H^2 \varepsilon). Intuition: the error ε\varepsilon introduced at step kk is amplified ~HkH-k times through the remaining value updates; summing over kk: k=1Hε(Hk)=εH(H1)2=O(H2ε)\sum_{k=1}^{H} \varepsilon (H-k) = \varepsilon \cdot \frac{H(H-1)}{2} = O(H^2 \varepsilon) — 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.
🎯5 High-Frequency Exam Points
1
Core differences between model-based and model-free: sample efficiency, model bias, compute?
2
Derive the compounding error O(H²ε): give the intuition and the summation.
3
When to choose model-based vs model-free (interaction cost, goal variability, data scale)?
4
How to hybridize the two to mitigate each other's flaws (Dyna, MBPO, offline RL)?
5
How to quantify/detect model bias? How to plan robustly under model uncertainty?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Model-Based vs Model-Free"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardDreamer RSSM (Latent Imagination)Next CardEmbodied AI & Robotics

🔗 More Reinforcement Learning Knowledge Cards

Actor-CriticBehavioral CloningContextual BanditCoT & Reasoning RL