arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.21173cs.LGcs.AI
收藏

逆推贝尔曼方程:从 $Q$ 值到世界模型

Inverting the Bellman Equation: From $Q$-Values to World Models

FLAIR, University of Oxford(FLAIR,牛津大学);Google DeepMind(谷歌DeepMind);Mila, University of Montreal(Mila,蒙特利尔大学)

Alistair Letcher, Mattie Fellows, Alexander D. Goldie, Jonathan Richens, Jakob N. Foerster, Oliver Richardson

AI总结:

本文证明基于值的智能体在丰富奖励函数上训练时隐式编码世界模型,提出 $P$-learning 从 $Q$ 值提取模型,并给出编码真实转移核的充分条件,实验验证了隐式模型的准确性和泛化能力。

摘要:

基于模型和无模型的强化学习传统上被视为不同的范式:无模型智能体通常估计与特定策略和奖励相关的值函数,而不是学习转移核 $P$ 的模型。在本文中,我们通过证明在足够丰富的奖励函数集上训练的值基智能体(例如使用目标条件强化学习)隐式编码了唯一且准确的世界模型,来挑战这种二分法。为了在实践中提取这个模型,我们引入了 \textit{$P$-learning},这是 $Q$-learning 的逆模拟,它从智能体的 $Q$ 值、策略和奖励中采样以解码其环境的内部模型。然后,我们提供了关于智能体编码真实核 $P$ 的目标类型和数量的充分条件,涵盖了有限或连续状态空间上的随机和确定性 MDP。即使我们的假设被违反,我们实验证明在少数奖励函数上训练的智能体在 $\texttt{Reacher}$、$\texttt{MountainCar}$ 和 $\texttt{FourRooms}$ 的随机变体中编码了准确的动力学。令人惊讶的是,我们发现仅在 \texttt{Reacher} 智能体的隐式世界模型上训练的策略在基于速度的分布外目标上几乎是最优的,尽管只有位置训练——这表明智能体包含隐藏的泛化能力,并为基于模型、无模型和目标条件强化学习之间的联系提供了新的视角。

英文摘要:

Model-based and model-free reinforcement learning are traditionally viewed as separate paradigms: instead of learning a model of the transition kernel $P$, model-free agents typically estimate value functions tied to a specific policy and reward. In this paper, we challenge this dichotomy by proving that value-based agents trained on a sufficiently rich set of reward functions, e.g. using goal-conditioned RL, implicitly encode a unique and accurate world model. To extract this model in practice, we introduce \textit{$P$-learning}, an inverse analogue to $Q$-learning that samples from an agent's $Q$-values, policies and rewards to decode its internal model of the environment. We then provide sufficient conditions on the type and number of goals for which agents encode the true kernel $P$, covering both stochastic and deterministic MDPs over finite or continuous state spaces. Even when our assumptions are violated, we empirically demonstrate that agents trained on a handful of reward functions encode accurate dynamics in $\texttt{Reacher}$, $\texttt{MountainCar}$ and stochastic variants of $\texttt{FourRooms}$. Surprisingly, we find that policies trained exclusively on a \texttt{Reacher} agent's implicit world model are quasi-optimal on out-of-distribution, velocity-based goals despite position-only training -- suggesting that agents contain hidden generalisation capabilities and providing a new lens into the connection between model-based, model-free, and goal-conditioned RL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑