Look Back: Reinforcement Learning with Counterfactual World Models

ML RL PGPO
处于复杂、随机环境中的智能体,必须应对两类挑战:一是环境动力学可能超出其世界模型的预测能力;二是环境固有的随机性会掩盖智能体自身行为所导致的实际后果。我们提出一种假设:在如此复杂的环境中,相较于从头构想全新的轨迹,基于已观测到的轨迹、仅对其中的动作进行替换并推演其结果,往往更为容易。反事实世界模型以实际观测为条件,利用过往经验作为参照,来预测在相同底层环境随机性下、仅因动作改变而引发的不同结果,从而专门刻画动作依赖型的变化。本文提出一种策略梯度估计器——“REINFORCE回溯法”(REINFORCE Look Back, RLB),该方法采用反事实回报作为基线,以区分动作本身带来的效应与环境随机性(即“环境运气”)的影响,并严格证明了该估计器在何种条件下具备无偏性,且能有效降低方差。在环境演化本身难以预测、而动作引发的变化相对更易建模的场景中,我们证实:反事实世界模型不仅比普通世界模型更容易学习,还能支撑更优的策略学习效果。我们的研究结果表明,反事实思维可助力智能体在无需独立复现其所在世界全部复杂性的前提下,依然学会高效的行为策略。
Agents in complex, stochastic environments must contend with dynamics that can exceed their world models' predictive capacity and randomness that obscure the consequences of their actions. We hypothesize that, compared to imagining entirely new trajectories in such complex environments, it can be easier to transform observed trajectories with alternative actions. Counterfactual world models condition on observations to predict alternative outcomes under the same underlying environmental randomness, using experience as a reference for predicting action-dependent changes. We present a policy gradient estimator, REINFORCE Look Back (RLB), that uses counterfactual returns as baselines to distinguish action effects from environmental luck, and prove conditions for unbiasedness and variance reduction. In settings where environmental evolution is harder to predict than action-induced changes, we show that counterfactual world models are easier to learn and support better policy learning than ordinary world models. Our findings suggest that counterfactual thinking can help agents learn effective behavior without independently reproducing the full complexity of their worlds.
许愿