Deep active inference agents using Monte-Carlo methods
Zafeirios Fountas, Noor Sajid, Pedro A. M. Mediano, Karl J. Friston
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext fc7e92e4-ddba-4f14-a581-55f922498962Cited by top-tier papers6
- Contrastive Active InferencePietro Mazzaglia, Tim Verbelen, Bart DhoedtNeurIPS 2021 · 44 citations
- Information is Power: Intrinsic Control via Information CaptureNicholas Rhinehart, Jenny Wang, Glen Berseth, John D. Co-Reyes et al.NeurIPS 2021 · 14 citations
- SPO: Sequential Monte Carlo Policy OptimisationMatthew Macfarlane, Edan Toledo, Donal Byrne, Paul Duckworth et al.NeurIPS 2024 · 8 citations
- Distributional Active InferenceAbdullah Akgül, Gulcin Baykal, Manuel Haussmann, Mustafa Mert Çelikok et al.ICML 2026
- Learning Human Habits with Rule-Guided Active InferenceGong Zhiren, Chao Yang, Wendi Ren, Shuang LiICLR 2026
Builds on1
Related papers
- Backprop-Free Reinforcement Learning with Active Neural Generative CodingAlexander G. Ororbia II, Ankur MaliAAAI 2022 · 23 citations
- Predictive Coding Enhances Meta-RL To Achieve Interpretable Bayes-Optimal Belief Representation Under Partial ObservabilityPo-Chen Kuo, Han Hou, Will Dabney, Edgar Y. WalkerNeurIPS 2025
- Bayesian Posterior Approximation With Stochastic EnsemblesOleksandr Balabanov, Bernhard Mehlig, Hampus LinanderCVPR 2023
- DiBS: Differentiable Bayesian Structure LearningLars Lorch, Jonas Rothfuss, Bernhard Schölkopf, Andreas KrauseNeurIPS 2021 · 144 citations
- Agentic Monte Carlo: Simulating Reinforcement Learning for Black-Box AgentsDaeyon Hwang, Raunaq Suri, Valentin Villecroze, Anthony Caterini et al.ICML 2026
