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

Learning Generative State Space Models for Active Inference

Ozan Çatal, Samuel Wauthier, Cedric De Boom, Tim Verbelen, Bart DhoedtFrontiers Comput. Neurosci 2020 · DOI

Introduction

Active Inference, a theoretical framework derived from cognitive neuroscience, posits that biological organisms act to minimize "variational free energy"—a mathematical proxy for surprise or prediction error. While this framework elegantly unifies perception, learning, and action, its practical application in artificial intelligence has been hindered by a significant scaling bottleneck: the requirement for researchers to manually engineer the agent's internal generative models.

This paper addresses this limitation by leveraging deep neural networks to learn generative state-space models directly from high-dimensional, raw data. By automating the model-building process, the authors demonstrate that Active Inference can be scaled to complex environments, such as pixel-based games and real-world robotics, while maintaining superior sample efficiency compared to traditional Reinforcement Learning (RL).

Deep Generative Models for Active Inference

The authors formalize the agent's environment as a Partially Observable Markov Decision Process (POMDP). To navigate this environment, the agent must learn a internal model consisting of three primary components parameterized by neural networks:

  1. The Transition Model ($p_\theta$): Predicts the subsequent internal state based on the current state and action.
  2. The Likelihood Model ($p_\xi$): Decodes internal states back into observable data, such as pixel images.
  3. The Posterior Model ($p_\phi$): Serves as an encoder that infers the current internal state from observations and historical context.
Graphical representation of the generative model as a POMDP.

These networks are trained end-to-end using a loss function derived from Variational Free Energy. This training objective functions similarly to a Variational Autoencoder (VAE), but utilizes the learned transition model as a dynamic prior for the current state, rather than a static Gaussian distribution.

Planning through Imaginary Rollouts

Decision-making in this framework is treated as an inference problem. Instead of trial-and-error exploration, the agent performs "imaginary rollouts" using its learned transition model to simulate potential future trajectories. These trajectories are evaluated based on Expected Free Energy (G).

Comparison of the past model (inference) and the future model (planning).

The Expected Free Energy objective naturally decomposes into terms representing "risk" (divergence from preferred states) and "ambiguity" (uncertainty regarding outcomes). By minimizing G, the agent inherently balances goal-seeking behavior with epistemic exploration (curiosity). The authors introduced a hyperparameter, $\rho$, to weight the ambiguity term, allowing for the tuning of the agent's "personality" between greedy exploitation and cautious exploration.

Experimental Validation and Results

The proposed method was validated across three distinct benchmarks:

  • Mountain Car: In this classic control task, the Active Inference agent achieved a high success rate within 10 to 100 episodes. In comparison, a Deep Q-Network (DQN) required approximately 10,000 episodes, demonstrating a 100x improvement in sample efficiency.
  • OpenAI Gym Car Racing: Using 96x96 RGB pixel inputs, the agent learned to navigate tracks effectively after only seven human demonstrations, showcasing robust zero-shot generalization.
  • Real-World Robotics: Using a Kuka Youbot with RGB-D sensors, the agent learned a model of a warehouse environment. The agent proved resilient to physical perturbations, successfully re-planning its path to the goal state when pushed off-course.

Discussion and Future Work

A key insight of this research is that curiosity is an emergent property of the Free Energy Principle; the agent is mathematically driven to resolve ambiguity without requiring a separate intrinsic motivation module. Furthermore, the study proves that abstract neuroscientific principles can be successfully mapped to "messy" real-world data using standard deep learning architectures like CNNs and LSTMs.

However, challenges remain regarding temporal depth and computational efficiency. Future work will focus on online learning—where the agent learns and acts concurrently—and the implementation of "amortized" habits to reduce the computational cost of exhaustive policy search.

Summary updated

BibTeX
@article{catal2020learning,
  author = {Ozan Çatal and Samuel Wauthier and Cedric De Boom and Tim Verbelen and Bart Dhoedt},
  title = {{Learning Generative State Space Models for Active Inference}},
  journal = {Frontiers Comput. Neurosci.},
  year = {2020},
  doi = {10.3389/fncom.2020.574372},
}
Figure