MLCrack

    REINFORCEMENT LEARNING · INTERVIEW QUESTION

    Explain model-based vs model-free RL. What are the tradeoffs?

    🔴 advanced · Advanced RL

    Hint: Think about sample efficiency vs model accuracy.

    Answer

    Model-free RL: learns policy or value function directly from experience. No environment model needed.

    Examples: DQN, PPO, SAC.

    Pro: no model bias, simpler.

    Con: sample inefficient, needs millions of interactions. Model-based RL: learns a dynamics model T(s'|s,a) and uses it for planning (e.g., MuZero, Dreamer).

    Pro: much more sample efficient, can plan ahead.

    Con: model errors compound (model bias), harder to train.

    Hybrid approaches: Dyna architecture (learns model and does both real and simulated updates), world models (learn latent dynamics). MuZero (DeepMind) learns a latent model without explicit state prediction and achieved superhuman performance in games.

    For robotics, model-based methods are preferred due to limited real-world interactions.