[论文解读] Deconstructing deep active inference
本文通过系统性地构建并评估从变分自编码器到完整深度主动推理(DAI)智能体的分层生成模型,对深度主动推理(DAI)进行了剖析。研究发现,标准的期望自由能(expected free energy, EFE)公式导致退化探索——即智能体固定于单一动作(如“下”)——这是由于对认知不确定性(epistemic uncertainty)的最小化所致,最终虽具备高预测准确性,却严重损害任务表现。
Active inference is a theory of perception, learning and decision making, which can be applied to neuroscience, robotics, and machine learning. Recently, reasearch has been taking place to scale up this framework using Monte-Carlo tree search and deep learning. The goal of this activity is to solve more complicated tasks using deep active inference. First, we review the existing literature, then, we progresively build a deep active inference agent. For two agents, we have experimented with five definitions of the expected free energy and three different action selection strategies. According to our experiments, the models able to solve the dSprites environment are the ones that maximise rewards. Finally, we compare the similarity of the representation learned by the layers of various agents using centered kernel alignment. Importantly, the agent maximising reward and the agent minimising expected free energy learn very similar representations except for the last layer of the critic network (reflecting the difference in learning objective), and the variance layers of the transition and encoder networks. We found that the reward maximising agent is a lot more certain than the agent minimising expected free energy. This is because the agent minimising expected free energy always picks the action down, and does not gather enough data for the other actions. In contrast, the agent maximising reward, keeps on selecting the actions left and right, enabling it to successfully solve the task. The only difference between those two agents is the epistemic value, which aims to make the outputs of the transition and encoder networks as close as possible. Thus, the agent minimising expected free energy picks a single action (down), and becomes an expert at predicting the future when selecting this action. This makes the KL divergence between the output of the transition and encoder networks small.
研究动机与目标
- 从基础组件(如VAE和HMM)出发,系统构建深度主动推理智能体。
- 评估不同期望自由能公式与动作选择策略对任务表现的影响。
- 探究尽管理论前景良好,深度主动推理智能体为何无法解决dSprites等复杂任务。
- 通过中心化核对齐(centered kernel alignment)比较DAI、DQN与CHMM模型在dSprites环境中的表征相似性。
- 识别并解决期望自由能实现中的不一致性,这些不一致导致病态行为。
提出的方法
- 逐步构建深度主动推理智能体:VAE → 深层HMM → 关键HMM(CHMM)→ 完整DAI。
- 实现五种期望自由能公式与三种动作选择策略(贪婪、softmax、ε-贪婪)。
- 采用蒙特卡洛树搜索进行规划,并在基于图像观测的dSprites环境中训练智能体。
- 应用中心化核对齐比较不同模型(DAI、DQN、CHMM)之间的表征相似性。
- 对转移网络与编码器网络的方差层进行消融研究,以分析不确定性与置信度。
- 通过可视化动作选择分布与训练过程中的奖励动态,验证结果。
实验结果
研究问题
- RQ1为何深度主动推理智能体尽管使用了先进的深度学习组件,仍无法解决dSprites等基于图像的任务?
- RQ2期望自由能公式的选取如何影响探索行为与任务表现?
- RQ3认知不确定性在导致智能体固定于单一动作方面起何种作用?
- RQ4在dSprites环境中,DAI、DQN与CHMM智能体所学习的表征有多相似?
- RQ5DAI智能体中,softmax采样是否可能因Q值区分度不足而导致随机或低效的动作选择?
主要发现
- 最小化期望自由能的CHMM始终仅选择“下”一动作,因对转移预测的过度自信而无法探索其他动作。
- 最大化奖励的CHMM则主动探索左、右动作,从而成功解决任务,尽管其架构与训练设置与前一CHMM完全相同。
- 两者的唯一区别在于认知价值项,该部分驱动智能体最小化转移网络与编码器网络输出之间的KL散度。
- 奖励最大化CHMM的转移网络在非“下”动作上显著更确信,尤其相较于EFE最小化CHMM。
- EFE最小化智能体虽精通预测“下”动作的结果,但因从未收集其他动作的数据而失败,导致泛化能力差。
- 在DAI智能体中,当Q值过于接近时,softmax采样可能导致随机动作选择,表明动作选择机制而非表征本身,是部分情况下失败的根本原因。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。