Skip to main content
QUICK REVIEW

[Paper Review] Bayesian policy selection using active inference

Ozan Çatal, Johannes Nauta|arXiv (Cornell University)|Apr 17, 2019
Reinforcement Learning in RoboticsComputer Science22 references22 citations
TL;DR

This paper proposes a Bayesian policy selection framework using active inference, where agents learn world models via variational inference and select actions by minimizing expected free energy. It demonstrates success in solving the mountain car problem without reward shaping, generalizing across starting positions by learning from expert rollouts and leveraging a preferred state prior.

ABSTRACT

Learning to take actions based on observations is a core requirement for artificial agents to be able to be successful and robust at their task. Reinforcement Learning (RL) is a well-known technique for learning such policies. However, current RL algorithms often have to deal with reward shaping, have difficulties generalizing to other environments and are most often sample inefficient. In this paper, we explore active inference and the free energy principle, a normative theory from neuroscience that explains how self-organizing biological systems operate by maintaining a model of the world and casting action selection as an inference problem. We apply this concept to a typical problem known to the RL community, the mountain car problem, and show how active inference encompasses both RL and learning from demonstrations.

Motivation & Objective

  • To develop a reinforcement learning framework grounded in the free energy principle and active inference for robust, generalizable policy learning.
  • To address sample inefficiency and reward shaping challenges in traditional RL by framing action selection as Bayesian inference.
  • To integrate world model learning, planning, and exploration into a unified normative framework inspired by neuroscience.
  • To demonstrate the approach on the mountain car environment, showing generalization from any starting position.

Proposed method

  • The agent learns a dynamics model using a variational autoencoder (VAE) to infer a latent state space from observations.
  • It employs a generative model that factorizes into prior beliefs over states, observation likelihoods, and action policies.
  • Expected free energy G(π) is computed as a combination of KL divergence between predicted and preferred states and expected observation entropy.
  • Policies are selected via softmax over expected free energy, enabling goal-directed behavior with intrinsic epistemic exploration.
  • A policy is trained end-to-end by minimizing G(π) at each timestep, enabling amortized inference.
  • A preferred state prior is distilled from expert rollouts, representing the agent's goal state distribution.

Experimental results

Research questions

  • RQ1Can active inference with learned world models solve the mountain car problem without explicit reward shaping?
  • RQ2How does the integration of a preferred state prior and variational inference enable generalization across initial conditions?
  • RQ3To what extent does active inference support both goal-directed behavior and epistemic exploration in a single framework?
  • RQ4How does minimizing expected free energy compare to traditional RL objectives in sample efficiency and robustness?

Key findings

  • The agent successfully learns a dynamics model that accurately reconstructs and predicts environment observations, as shown in Figure 2.
  • Imaginary rollouts based on the learned model show that expected free energy G(π) effectively identifies trajectories leading to the mountain top.
  • The policy trained by minimizing G(π) generalizes to any starting position in the mountain car environment, consistently reaching the goal.
  • The preferred state distribution derived from expert rollouts captures the desired terminal state, effectively encoding a sparse reward signal without explicit reward shaping.
  • The method naturally incorporates epistemic exploration through uncertainty in state predictions, reducing reliance on external curiosity signals.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.