Skip to main content
QUICK REVIEW

[Paper Review] Deconstructing deep active inference

Théophile Champion, Marek Grześ|arXiv (Cornell University)|Mar 2, 2023
Explainable Artificial Intelligence (XAI)Computer Science3 citations
TL;DR

This paper deconstructs deep active inference (DAI) by systematically building and evaluating a hierarchical generative model from variational autoencoders to a full DAI agent. It identifies that the standard expected free energy formulation leads to degenerate exploration—where agents fixate on a single action (e.g., 'down')—due to epistemic uncertainty minimization, ultimately undermining task performance despite high predictive accuracy.

ABSTRACT

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.

Motivation & Objective

  • To systematically construct a deep active inference agent from foundational components like VAEs and HMMs.
  • To evaluate the impact of different expected free energy formulations and action selection strategies on task performance.
  • To investigate why deep active inference agents fail to solve complex tasks like dSprites despite theoretical promise.
  • To compare learned representations across DAI, DQN, and CHMM models using centered kernel alignment.
  • To identify and resolve inconsistencies in the implementation of expected free energy that lead to pathological behavior.

Proposed method

  • Built a deep active inference agent step-by-step: VAE → deep HMM → critical HMM (CHMM) → full DAI.
  • Implemented five formulations of expected free energy and three action selection strategies (greedy, softmax, epsilon-greedy).
  • Used Monte Carlo tree search for planning and trained the agent in the dSprites environment with image-based observations.
  • Applied centered kernel alignment to compare representation similarity across models (DAI, DQN, CHMM).
  • Conducted ablation studies on variance layers of transition and encoder networks to analyze uncertainty and confidence.
  • Validated results via visual inspection of action selection distributions and reward dynamics over training.

Experimental results

Research questions

  • RQ1Why do deep active inference agents fail to solve image-based tasks like dSprites despite using advanced deep learning components?
  • RQ2How does the choice of expected free energy formulation affect exploration and task performance?
  • RQ3What role does epistemic uncertainty play in causing agents to fixate on a single action?
  • RQ4How similar are the representations learned by DAI, DQN, and CHMM agents in the dSprites environment?
  • RQ5Can softmax sampling in DAI agents lead to random or ineffective action selection due to low Q-value discrimination?

Key findings

  • The CHMM minimizing expected free energy consistently selects only the 'down' action, failing to explore other actions due to overconfidence in transition predictions.
  • The CHMM maximizing reward actively explores left and right actions, enabling successful task solving, despite identical architecture and training setup.
  • The only difference between the two CHMMs is the epistemic value term, which drives the agent to minimize KL divergence between transition and encoder network outputs.
  • The transition network of the reward-maximizing CHMM is significantly more certain than that of the EFE-minimizing CHMM, especially for non-'down' actions.
  • The EFE-minimizing agent becomes an expert at predicting outcomes for 'down' but fails because it never gathers data for other actions, leading to poor generalization.
  • Softmax sampling in DAI agents may cause random action selection when Q-values are too close, suggesting that the action selection mechanism, not representation, is the root cause of failure in some cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.