Abstract
Active inference is a probabilistic framework for modelling the behaviour of biological and artificial agents, which derives from the principle of minimising free energy. In recent years, this framework has successfully been applied to a variety of situations where the goal was to maximise reward, offering comparable and sometimes superior performance to alternative approaches. In this paper, we clarify the connection between reward maximisation and active inference by demonstrating how and when active inference agents perform actions that are optimal for maximising reward. Precisely, we show the conditions under which active inference produces the optimal solution to the Bellman equation--a formulation that underlies several approaches to model-based reinforcement learning and control. On partially observed Markov decision processes, the standard active inference scheme can produce Bellman optimal actions for planning horizons of 1, but not beyond. In contrast, a recently developed recursive active inference scheme (sophisticated inference) can produce Bellman optimal actions on any finite temporal horizon. We append the analysis with a discussion of the broader relationship between active inference and reinforcement learning.
Introduction
For decades, two dominant frameworks have sought to explain intelligent behavior. Reinforcement Learning (RL) and optimal control posit that agents act to maximize a scalar reward signal. Conversely, Active Inference suggests that agents act to minimize "surprise" (variational free energy) relative to an internal generative model. While Active Inference has demonstrated success in complex tasks, a fundamental question remains: is it truly maximizing reward, or is its behavior merely a proxy for it?
This paper addresses this question by establishing the exact mathematical conditions under which Active Inference aligns with the Bellman optimality principle, specifically within discrete, finite-horizon environments.
Theoretical Framework
The authors utilize formal mathematical analysis within the context of Markov Decision Processes (MDPs) and Partially Observed Markov Decision Processes (POMDPs).
The core of the analysis rests on three pillars:
- The Zero-Temperature Limit: By defining a preference distribution where the desire for a state is proportional to its reward and taking the limit as the "motivation" parameter ($\beta$) approaches infinity, the agent's objective becomes purely reward-maximizing.
- Expected Free Energy (EFE): The objective function for Active Inference, which decomposes into "risk" (divergence from preferred states) and "ambiguity" (uncertainty about observations).
- Sophisticated Inference: A recursive form of Active Inference. Unlike standard versions that average over future paths, sophisticated inference assumes the agent will continue to minimize free energy in the future, mirroring the structure of Backward Induction in dynamic programming.
Key Insights and Results
The mathematical derivations yield several critical findings:
- Standard Active Inference is "Short-Sighted": Theorem 15 proves that standard active inference is only Bellman optimal for a planning horizon of $T=1$. Because it averages over future action sequences rather than assuming future optimality, it may fail in complex reward landscapes over longer horizons.
- Recursive Optimality: Theorem 16 demonstrates that sophisticated active inference is Bellman optimal for any finite temporal horizon. Its recursive structure coincides perfectly with the backward induction algorithm used in RL.
- Intrinsic Exploration: Unlike traditional RL, where exploration (e.g., $\epsilon$-greedy) is often a heuristic addition, exploration in Active Inference emerges naturally from the mathematics of minimizing surprise. In POMDPs, the agent inherently selects actions that are "maximally informative" when multiple paths yield equivalent rewards (Proposition 18).
- A Broader Framework: The paper argues that Active Inference subsumes RL. It integrates state estimation, uncertainty management, and goal-directed exploration into a single objective function (Free Energy), whereas RL typically requires separate modules for these functions.
Limitations and Future Directions
While the theoretical bridge is established, practical implementation faces challenges:
- Computational Complexity: Sophisticated inference is computationally demanding due to the combinatorial explosion of future counterfactuals.
- Scaling: The current proofs focus on discrete states. Extending this to high-dimensional or continuous state spaces remains a frontier for research.
- Learning vs. Planning: The proofs assume known environment dynamics. Future work will focus on integrating these recursive schemes with neural networks (amortized inference) to handle learning and high-dimensional data.
The work concludes that Active Inference provides a principled, biologically grounded alternative to RL that naturally incorporates epistemic behavior while maintaining the capacity for optimal reward-seeking.
Summary updated