NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Scaling active inference

Alexander Tschantz, Manuel Baltieri, Anil K. Seth, Christopher L. BuckleyIJCNN 2019 · DOI

Abstract

In reinforcement learning (RL), agents often operate in partially observed and uncertain environments. Model-based RL suggests that this is best achieved by learning and exploiting a probabilistic model of the world. 'Active inference' is an emerging normative framework in cognitive and computational neuroscience that offers a unifying account of how biological agents achieve this. On this framework, inference, learning and action emerge from a single imperative to maximize the Bayesian evidence for a niched model of the world. However, implementations of this process have thus far been restricted to low-dimensional and idealized situations. Here, we present a working implementation of active inference that applies to high-dimensional tasks, with proof-of-principle results demonstrating efficient exploration and an order of magnitude increase in sample efficiency over strong model-free baselines. Our results demonstrate the feasibility of applying active inference at scale and highlight the operational homologies between active inference and current model-based approaches to RL.

1. Introduction

Standard Reinforcement Learning (RL) agents frequently encounter significant hurdles in sample efficiency and principled exploration. While model-free approaches often require millions of trials to learn effective policies, model-based RL offers a more data-efficient alternative by learning a world model. Active Inference (ActInf), a theoretical framework from neuroscience, provides a unified account of perception, learning, and action under a single imperative: the minimization of Variational Free Energy (VFE). Despite its theoretical elegance, ActInf has historically been confined to low-dimensional, discrete state spaces. This work bridges the gap between theoretical neuroscience and practical engineering by scaling Active Inference to high-dimensional, continuous control tasks.

2. Methodology

The proposed implementation scales Active Inference by integrating it with deep learning techniques:

  • Amortized Inference: Neural networks are utilized to parameterize the agent's beliefs, allowing for efficient inference in high-dimensional spaces.
  • Generative World Model: The agent learns a probabilistic transition and observation model. By employing Bayesian Neural Networks, the agent can explicitly track uncertainty in its own model parameters.
  • Expected Free Energy (EFE): Action selection is driven by the minimization of EFE, which naturally balances extrinsic value (reward-seeking) and intrinsic value (epistemic foraging).
  • Planning via Cross-Entropy Method (CEM): To handle continuous action spaces, the agent uses CEM to optimize future trajectories by "imagining" outcomes within its learned world model.

3. Experimental Results

3.1 Exploration and Epistemic Foraging

A key advantage of Active Inference is its principled approach to exploration. Unlike epsilon-greedy strategies that rely on stochastic noise, ActInf agents explore to resolve model uncertainty. In the Continuous MountainCar benchmark, the ActInf agent demonstrates superior coverage of the state space.

Comparison of state-space exploration between reward-only, epsilon-greedy, and Active Inference agents.

As shown in the figure above, the Active Inference agent (C) explores significantly more of the position-velocity state space compared to reward-only (A) or epsilon-greedy (B) agents. This behavior, known as epistemic foraging, allows the agent to ignore unlearnable noise (avoiding the "TV problem") while actively seeking out informative states.

3.2 Sample Efficiency and Performance

The framework was further evaluated on the Inverted Pendulum and Hopper tasks. Active Inference demonstrates a massive improvement in sample efficiency compared to model-free baselines like Deep Deterministic Policy Gradient (DDPG).

Learning curves for the Pendulum task comparing Active Inference and DDPG.

In the Pendulum task, the Active Inference agent (blue) achieves high performance in under 100 epochs, whereas the DDPG baseline (orange) requires significantly more data to reach comparable levels. Similar results were observed in the high-dimensional Hopper locomotion task, highlighting the scalability of the approach.

4. Discussion and Conclusion

This research demonstrates that Active Inference is not only a compelling theoretical framework for biological intelligence but also a viable and efficient approach for modern machine learning. By framing ActInf as a biologically grounded version of Model-Based RL, the authors highlight operational homologies that can inform both fields.

Future work will address the transition to pixel-based observations in fully partially observed environments and further investigate the dynamic balance between exploration and exploitation in complex, multi-stage tasks. While computationally more intensive per step due to Bayesian sampling, the gains in sample efficiency make scaled Active Inference a promising direction for robust and efficient autonomous agents.

Summary updated

BibTeX
@inproceedings{tschantz2019scaling,
  author = {Alexander Tschantz and Manuel Baltieri and Anil K. Seth and Christopher L. Buckley},
  title = {{Scaling active inference}},
  booktitle = {IJCNN},
  year = {2019},
  doi = {10.1109/ijcnn48605.2020.9207382},
}
Figure