[Paper Review] Deep active inference agents using Monte-Carlo methods
This paper proposes a deep active inference agent using Monte Carlo (MC) methods to enable planning and efficient learning in complex, continuous state-spaces. By integrating MC tree search for policy selection, a habitual network for policy approximation, MC dropout for belief updating, and learnable precision modulation, the agent achieves disentangled representations and reward-directed navigation—matching or exceeding reward-based agents in performance while remaining biologically plausible.
Active inference is a Bayesian framework for understanding biological intelligence. The underlying theory brings together perception and action under one single imperative: minimizing free energy. However, despite its theoretical utility in explaining intelligence, computational implementations have been restricted to low-dimensional and idealized situations. In this paper, we present a neural architecture for building deep active inference agents operating in complex, continuous state-spaces using multiple forms of Monte-Carlo (MC) sampling. For this, we introduce a number of techniques, novel to active inference. These include: i) selecting free-energy-optimal policies via MC tree search, ii) approximating this optimal policy distribution via a feed-forward `habitual' network, iii) predicting future parameter belief updates using MC dropouts and, finally, iv) optimizing state transition precision (a high-end form of attention). Our approach enables agents to learn environmental dynamics efficiently, while maintaining task performance, in relation to reward-based counterparts. We illustrate this in a new toy environment, based on the dSprites data-set, and demonstrate that active inference agents automatically create disentangled representations that are apt for modeling state transitions. In a more complex Animal-AI environment, our agents (using the same neural architecture) are able to simulate future state transitions and actions (i.e., plan), to evince reward-directed navigation - despite temporary suspension of visual input. These results show that deep active inference - equipped with MC methods - provides a flexible framework to develop biologically-inspired intelligent agents, with applications in both machine learning and cognitive science.
Motivation & Objective
- To extend active inference to high-dimensional, continuous state-spaces where prior implementations were limited to low-dimensional, discrete tasks.
- To enable effective planning in active inference agents using Monte Carlo tree search (MCTS) for free-energy-optimal policy selection.
- To reduce computational burden by approximating optimal policies via a feed-forward 'habitual' network, inspired by biological habit formation.
- To improve parameter belief updating using MC dropout, enabling efficient uncertainty estimation without ensemble networks.
- To introduce learnable state transition precision as a top-down attention mechanism, enhancing representation learning and disentanglement.
Proposed method
- Employing Monte Carlo tree search (MCTS) to select free-energy-optimal policies by sampling future trajectories and estimating expected free energy (EFE).
- Using a feed-forward neural network as a 'habitual' policy to approximate the optimal policy distribution, reducing the need for repeated planning in familiar states.
- Applying MC dropout to predict future belief updates over model parameters, enabling uncertainty-aware inference without ensembles.
- Introducing a learnable precision parameter (ωt) that modulates uncertainty in state transitions, functionally resembling attention mechanisms in biological systems.
- Formulating the entire agent within the active inference framework, where actions minimize variational free energy using a single deep neural architecture.
- Training the agent end-to-end using variational inference, with the loss function being the variational free energy bound (ELBO), ensuring both perception and action are optimized jointly.
Experimental results
Research questions
- RQ1Can Monte Carlo methods enable effective planning in deep active inference agents operating in continuous, high-dimensional state-spaces?
- RQ2How does the integration of MCTS and a habitual network improve sample efficiency and reduce computational cost in active inference?
- RQ3To what extent can MC dropout replace ensemble methods for uncertainty estimation in active inference?
- RQ4Does learnable precision over state transitions enhance representation disentanglement and improve learning in complex environments?
- RQ5Can a single deep neural architecture support both perception, planning, and policy learning under the active inference framework, while maintaining biological plausibility?
Key findings
- The DAIMC agent successfully learned disentangled representations in a dSprites-based environment, which were effective for modeling state transitions.
- In the Animal-AI environment, the agent demonstrated reward-directed navigation and future state transition simulation despite temporary visual input suspension, indicating robust internal planning.
- The agent's performance was comparable to or better than reward-based counterparts in complex tasks, suggesting that active inference with MC methods is a viable alternative to standard reinforcement learning.
- The use of MC dropout for belief updating achieved performance similar to ensemble methods but with lower computational cost, supporting its efficiency.
- Learnable precision (ωt) enhanced disentanglement by promoting statistical independence between latent features, aligning with attention mechanisms in biological systems.
- The agent's ability to plan using MCTS and maintain performance under partial observation demonstrates its robustness and adaptability in dynamic environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.