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

Bayesian policy selection using active inference

Ozan Çatal, Johannes Nauta, Tim Verbelen, Pieter Simoens, Bart Dhoedt

Abstract

This paper bridges the gap between neuroscience-inspired Active Inference and modern machine learning by using neural networks to scale the framework to continuous environments. By treating action selection as a Bayesian inference problem aimed at minimizing "surprise," the authors demonstrate a system that can solve control tasks using either sparse rewards or expert demonstrations.

Introduction

Standard Reinforcement Learning (RL) often struggles with three major hurdles: the need for meticulous reward shaping, poor generalization to new environments, and high sample inefficiency. The authors look toward Active Inference, a theory from neuroscience which suggests that biological brains don't just maximize rewards; they maintain an internal model of the world and act to minimize variational free energy (a proxy for "surprise"). While Active Inference is theoretically elegant, previous implementations usually relied on manually engineered, discrete state spaces. This paper addresses the challenge of scaling these ideas to complex, continuous environments using deep learning.

Methods

The authors propose a generative model where an agent learns the dynamics of its environment through three neural network components: a Likelihood Model ($p_\xi$) for predicting observations, a Dynamics Model ($p_\theta$) for state transitions, and an Observation/Posterior Model ($q_\phi$) for state inference.

Schematic of the Active Inference framework architecture, showing the interaction between the policy, state transition model, and observation model.

The training objective is to minimize the Variational Free Energy, turning the system into a Variational Autoencoder (VAE) where the "prior" is provided by the transition model. For decision-making, the agent evaluates Expected Free Energy ($G$) for future trajectories. Actions are selected that lead to "preferred states"—states the agent believes a priori it should visit. To avoid expensive sampling at runtime, a "habit" policy network learns to map states directly to actions by minimizing $G$ through backpropagation.

Experiments and Results

The framework is validated on the Continuous Mountain Car problem from OpenAI Gym. To make it more realistic, the authors adapted it to provide only noisy observations and removed direct access to the velocity state, forcing the agent to infer the underlying physics from raw data.

World Modeling

The agent successfully learned an 8-dimensional latent state space capable of reconstructing and predicting environment observations accurately. As shown in Figure 3, the observation and state transition models closely track the ground truth position despite the noisy input.

Tracking performance of the observation and state transition models against ground truth position.

Control Performance

The agent successfully solved the Mountain Car problem, a task requiring non-greedy behavior to build momentum. The amortized "habit" policy generalized across different starting positions, consistently reaching the mountain top after training.

Discussion and Key Insights

Active Inference naturally balances exploration (epistemic value) and exploitation (instrumental value) within a single mathematical objective ($G$). The paper shows that "preferred states" can be defined by a sparse reward or by the distribution of states visited by an expert, providing a unified path for RL and Imitation Learning.

The primary limitation is the scale of the experiment; Mountain Car is low-dimensional compared to modern deep RL challenges. Future work involves applying this principle to more complex environments like the ATARI suite or real-world robotics, where the benefits of a robust internal world model and inherent epistemic exploration might provide a significant edge over standard model-free RL.

Summary updated

BibTeX
@inproceedings{catal2019bayesian,
  author = {Ozan Çatal and Johannes Nauta and Tim Verbelen and Pieter Simoens and Bart Dhoedt},
  title = {{Bayesian policy selection using active inference}},
  booktitle = {Ghent},
  year = {2019},
}
Figure