← Back to Reinforcement Learning Mind Map
🎮 Reinforcement LearningID: dreamer

Dreamer RSSM (Latent Imagination)

Dreamer RSSM 潜想象
🎯Core Definition
Dreamer learns a world model from pixel observations with an RSSM (Recurrent State-Space Model) and trains the policy in latent imagination. The RSSM latent state has two paths: ① deterministic path: ht=f(ht−1,zt−1,at−1)h_t = f(h_{t-1}, z_{t-1}, a_{t-1}) — a recurrent network integrating history;② stochastic path: zt∼q(zt∣ht,ot)z_t \sim q(z_t | h_t, o_t) — a stochastic latent variable encoding the current observation; reconstruction heads: o^t=o(ht,zt)\hat{o}_t = o(h_t, z_t) (reconstruct observation) and r^t=r(ht,zt)\hat{r}_t = r(h_t, z_t) (predict reward).
📌Overview
Policy training in latent imagination: two phases — first train the world model on real sequences only (observation reconstruction + reward prediction + KL regularizer keeping qq close to the prior); then freeze the model and 'dream': from the current latent state, roll out the latent trajectory with the current policy, then update actor-critic to maximize discounted return along this purely imagined trajectory. Policy and value heads are trained entirely in latent space, never touching the real environment.
💡Use Cases
pixel-based control (DMC, Atari), robot learning; Dreamer V1/V2/V3 are the SOTA model-based line for pixel control; interviews probe how 'dreaming in latent space' saves samples.
⚡Key Problems Solved
pixel-level model-free RL is extremely sample-hungry; the RSSM's deterministic + stochastic hybrid captures both temporal dependencies and observation uncertainty, keeping long imagined rollouts stable (pure stochastic models diverge in imagination) — roughly an order-of-magnitude sample-efficiency gain over model-free SOTA.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Dreamer RSSM (Latent Imagination).
Use Cases
In production engineering, what are the primary use cases for Dreamer RSSM (Latent Imagination) and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
What do RSSM's deterministic and stochastic states capture? Write and explain h_t = f(h_{t-1}, z_{t-1}, a_{t-1}).
2
How does Dreamer train its policy 'in dreams'? The full latent imagined rollout procedure?
3
Why is the stochastic latent z_t necessary for imagined rollouts? What happens with purely deterministic or purely stochastic models?
4
Dreamer vs MuZero latent modeling: similarities and differences?
5
How much more sample-efficient is Dreamer than model-free SOTA on pixel control, and why?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Dreamer RSSM (Latent Imagination)"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardMuZero Latent ModelNext Card →Model-Based vs Model-Free

🔗 More Reinforcement Learning Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/RL/card/dreamer
中文速览与面试要点

Dreamer RSSM 潜想象 (Dreamer RSSM (Latent Imagination))

定义: Dreamer 用 RSSM (Recurrent State-Space Model, 循环状态空间模型) 从像素观测学习世界模型,再在潜想象中训练策略。RSSM 的潜状态分两条路径: ① 确定性路径: h_t = f(h_t-1, z_t-1, a_t-1)——循环网络整合历史信息;② 随机路径: z_t q(z_t | h_t, o_t)——编码当前观测的随机潜变量; 重建头: o_t = o(h_t, z_t)(重建观测)、 r_t = r(h_t, z_t)(预测奖励)。 潜想象训练策略: 两阶段——先只用真实序列训练世界模型(重建观测 + 预测奖励 + KL 正则,使 q 贴近先验);然后冻结模型"做梦":从当前潜状态出发,用当前策略在潜空间展开 rollout,得到纯想象的轨迹序列,再用 actor-critic 在这条想象轨迹上最大化折扣回报。策略与价值头只在潜空间训练,不接触真实环境。 使用场景: 像素级控制(DMC、Atari)、机器人学习;Dreamer V1/V2/V3 是 Model-Based 像素控制 SOTA 系列;面试关注"潜空间做梦"如何省样本。 解决的问题: 像素级无模型 RL 样本效率极低;RSSM 的确定+随机混合设计同时捕捉时序依赖与观测不确定性,使长程想象 rollout 保持稳定(纯随机模型在想象中发散),样本效率比无模型 SOTA 高约一个数量级。

核心要点

  • RSSM 的确定性状态与随机状态分别建模什么?写出更新式 h_t = f(h_t-1, z_t-1, a_t-1) 并解释。
  • Dreamer 如何"做梦"训练策略?潜想象 rollout 的完整流程?
  • 为什么随机潜变量 z_t 对想象 rollout 是必要的?纯确定性/纯随机模型会怎样?
  • Dreamer 与 MuZero 的潜空间建模有何异同?
  • Dreamer 在像素控制上的样本效率比无模型 SOTA 高多少?为什么?