PlaNet(Deep Planning Network)是一种纯基于模型的 agent,仅从像素观测中学习环境动态,并在学习到的隐状态空间内通过在线规划(CEM)选取动作。它无需价值网络或策略网络,却在多个连续控制基准上以比 model-free 方法少得多的环境交互次数达到相近或更好的最终性能。PlaNet (Deep Planning Network) is a purely model-based agent that learns environment dynamics from pixel observations alone and selects actions by online planning (CEM) inside the learned latent state space. It needs no value network and no policy network, yet on several continuous control benchmarks it reaches comparable or better final performance with far fewer environment interactions than model-free methods.
强化学习在控制任务上取得了令人瞩目的成果,但绝大多数成功案例都依赖 model-free 方法——需要与环境进行数以百万计的交互。当传感器只能提供高维图像时,样本效率问题更为严峻。利用学习到的动态模型(dynamics model)进行规划,理论上可以大幅减少所需交互,但长期以来难以在复杂的图像域中可靠地实现。Reinforcement learning has produced striking results on control tasks, but the overwhelming majority of successes rely on model-free methods—which require millions of interactions with the environment. When the sensors provide only high-dimensional images, the sample-efficiency problem becomes even more severe. Planning with a learned dynamics model could in principle cut the required interactions drastically, but it has long been hard to realize reliably in complex image domains.
"Planning using learned models offers several benefits over model-free reinforcement learning. First, model-based planning can be more data efficient because it leverages a richer training signal and does not rely on propagating rewards through Bellman backups."
PlaNet 的核心是 Recurrent State Space Model(RSSM)——一个同时包含确定性(deterministic)和随机性(stochastic)转移分量的隐状态空间模型。通过变分自编码器(VAE)框架从像素中学习该模型,再利用 Cross-Entropy Method(CEM)在隐空间中规划动作序列,无需任何策略网络。At the core of PlaNet is the Recurrent State Space Model (RSSM)—a latent state space model whose transition contains both a deterministic and a stochastic component. The model is learned from pixels within a variational autoencoder (VAE) framework, and action sequences are then planned in latent space with the Cross-Entropy Method (CEM), without any policy network.
RSSM 将隐状态 zt 拆分为两部分:RSSM splits the latent state zt into two parts:
观测模型(decoder)和奖励模型(reward model)均以 (ht, st) 为输入进行预测。训练使用变分下界(ELBO),同时最大化图像重建对数似然和奖励预测准确性,并对 KL 散度施加正则化。Both the observation model (decoder) and the reward model take (ht, st) as input for prediction. Training uses the variational lower bound (ELBO), jointly maximizing the image reconstruction log-likelihood and the reward prediction accuracy while regularizing the KL divergence.
标准 VAE 目标(ELBO)只对单步转移进行变分推断,导致模型仅在一步预测上做优化,而规划需要准确的多步预测。论文提出 latent overshooting:在所有预测距离 d = 1, 2, …, D 上都附加 KL 散度惩罚项,迫使先验和后验在多个时间步上保持一致:The standard VAE objective (ELBO) performs variational inference over one-step transitions only, so the model is optimized for one-step prediction, whereas planning needs accurate multi-step prediction. The paper proposes latent overshooting: a KL divergence penalty is attached at every prediction distance d = 1, 2, …, D, forcing prior and posterior to stay consistent over multiple time steps:
Latent overshooting 的核心思路:"If we could train our model to make perfect one-step predictions, it would also make perfect multi-step predictions, so this would not be a problem. However, when using a model with limited capacity and restricted distributional family, training the model only on one-step predictions until convergence does in general not coincide with the model that is best at multi-step predictions."The core idea of latent overshooting: "If we could train our model to make perfect one-step predictions, it would also make perfect multi-step predictions, so this would not be a problem. However, when using a model with limited capacity and restricted distributional family, training the model only on one-step predictions until convergence does in general not coincide with the model that is best at multi-step predictions."
测试时,agent 利用学习到的 RSSM 进行 MPC(Model Predictive Control):在隐空间中以 CEM 采样并评估 H 步候选动作序列(默认 H=12,迭代 10 次,每次 1000 个候选),选取期望累积奖励最高的序列执行第一步动作,再重新规划。整个过程不需要任何策略网络或价值函数——模型是唯一"知识"来源。At test time the agent uses the learned RSSM for MPC (Model Predictive Control): candidate action sequences of H steps are sampled and evaluated with CEM in latent space (by default H=12, 10 iterations, 1000 candidates each); the sequence with the highest expected cumulative reward is chosen, its first action is executed, and planning is redone. The whole procedure needs no policy network and no value function—the model is the only source of "knowledge".
在 DeepMind Control Suite 的 6 个连续控制任务上,对比 A3C(模型无关、像素输入)、D4PG(模型无关、像素输入,proprioceptive 版本作为上界)、带真实动态的 CEM(oracle),以及纯随机随机策略。所有 pixel-based 方法使用相同 64×64 三阶段下采样图像。指标为最终性能的 median ± IQR(5 seeds × 10 trajectories)。On the 6 continuous control tasks of the DeepMind Control Suite, PlaNet is compared with A3C (model-free, pixel input), D4PG (model-free, pixel input, with the proprioceptive version as an upper bound), CEM with the true dynamics (oracle), and a purely random policy. All pixel-based methods use the same 64×64 three-stage downsampled images. The metric is the median ± IQR of final performance (5 seeds × 10 trajectories).
| 方法Method | 观测模态Observation modality | Episodes | 总 median 奖励Total median reward |
|---|---|---|---|
| A3C (pixels) | pixels | 100,000 | 214 |
| D4PG (pixels) | pixels | 100,000 | 462 |
| D4PG (proprioceptive) | proprioceptive | 100,000 | 961 |
| PlaNet / RSSM(本文)PlaNet / RSSM (this paper) | pixels | 1,000 | 862 |
| CEM + 真实动态(oracle)CEM + true dynamics (oracle) | state | — | 941 |
论文通过控制变量验证了各设计选择的必要性:The paper verifies the necessity of each design choice by controlled ablations:
CEM 规划在每个环境步骤都需要在隐空间中评估大量候选序列(默认 1000 × 10 次迭代 × 12 步),随着规划视野 H 增加,计算量线性增长。论文指出"对于实际实时控制问题这仍是一个挑战"。At every environment step, CEM planning has to evaluate a large number of candidate sequences in latent space (by default 1000 candidates × 10 iterations × 12 steps), and the amount of computation grows linearly as the planning horizon H increases. The paper notes that this "remains a challenge for practical real-time control problems".
论文明确表示该方法"在视觉复杂度很高或者部分可观测性严重时可能面临困难"。实验中的 64×64 像素任务视觉相对简单;在更真实的图像域中模型容量可能成为瓶颈。The paper states explicitly that the method "may run into difficulty when visual complexity is very high or partial observability is severe". The 64×64 pixel tasks used in the experiments are visually rather simple; in more realistic image domains model capacity may become the bottleneck.
PlaNet 的 CEM 规划天然适配连续动作空间,对高维离散动作空间或复杂操控任务(如机械臂抓取)的扩展性尚未验证。实验中的六个任务动作维度均较低(1–6维)。PlaNet's CEM planning fits continuous action spaces naturally; its extensibility to high-dimensional discrete action spaces or complex manipulation tasks (such as robot-arm grasping) has not been verified. The action dimensionality of all six tasks in the experiments is low (1–6 dimensions).
基于模型规划的固有问题:在分布外(out-of-distribution)的状态区域,learned dynamics 的预测误差会随规划步数累积,导致规划效果退化。论文通过缩短 MPC 重规划间隔来缓解,但未根本解决。An inherent problem of model-based planning: in out-of-distribution state regions, the prediction error of the learned dynamics accumulates with the number of planning steps and degrades planning quality. The paper mitigates this by shortening the MPC replanning interval, but does not solve it fundamentally.