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

Reinforcement Learning through Active Inference

Alexander Tschantz, Beren Millidge, Anil K. Seth, Christopher L. BuckleyarXiv 2020

Introduction

Traditional Reinforcement Learning (RL) agents typically aim to maximize a cumulative scalar reward. While effective, this paradigm often struggles with the exploration-exploitation dilemma and environments with sparse rewards. This paper introduces a novel objective for decision-making called the Free Energy of the Expected Future (FEEF), which bridges the gap between RL and Active Inference. By treating rewards as "prior preferences" rather than simple scalar signals, the FEEF algorithm naturally balances exploration and exploitation, outperforming state-of-the-art methods in challenging environments.

Methods: The Free Energy of the Expected Future

The core innovation of this work is the FEEF objective function ($\tilde{F}$). Minimizing this single objective is mathematically equivalent to maximizing two distinct terms:

  1. Expected Information Gain (Exploration): The agent actively seeks states and actions that reduce uncertainty regarding the world's dynamics and its own parameters.
  2. Extrinsic Value (Exploitation): The agent pursues states that align with its "prior preferences"—a Bayesian reformulation of rewards.

To implement this in high-dimensional continuous spaces, the authors employ a model-based RL approach. They utilize an ensemble of neural networks to model environment dynamics, allowing the agent to quantify epistemic uncertainty. Planning is conducted via the Cross-Entropy Method (CEM), optimizing action sequences over a 30-step lookahead horizon.

Experimental Evaluation

The FEEF algorithm was evaluated across several continuous control benchmarks, including Mountain Car, Cup Catch, Half Cheetah (Run & Flip), and the Ant Maze. The latter was specifically used to test pure exploration in a "no reward" setting.

State coverage and maze exploration performance of FEEF compared to reward-based and random baselines.

Results

The experimental results demonstrate the robustness of the Active Inference approach. In the Mountain Car task, the FEEF agent achieved optimal performance in just a single trial, whereas traditional baselines required dozens of episodes. In the Ant Maze, the agent demonstrated significant "intrinsic motivation," covering a much larger portion of the environment compared to a random baseline (see Figure 1).

Performance of FEEF across various continuous control tasks compared to Reward, Variance, and SAC baselines.

Furthermore, on dense reward tasks like Half Cheetah, FEEF proved more sample-efficient than Soft Actor-Critic (SAC), reaching higher returns with fewer interactions (see Figure 2). These results suggest that exploration is not merely an "add-on" but a fundamental mathematical necessity within the FEEF framework.

Discussion and Limitations

While FEEF shows great promise, it faces certain challenges. The use of CEM for planning is computationally expensive compared to model-free methods. Additionally, while CEM is robust, it may encounter difficulties in extremely high-dimensional action spaces where gradient-based optimization is typically preferred. Future research may explore more complex "preference distributions" beyond simple Gaussians and the integration of hierarchical models to handle longer planning horizons.

Summary updated

BibTeX
@misc{tschantz2020reinforcement,
  author = {Alexander Tschantz and Beren Millidge and Anil K. Seth and Christopher L. Buckley},
  title = {{Reinforcement Learning through Active Inference}},
  year = {2020},
  eprint = {2002.12636},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.12636},
}
Figure