Active Inference as a Convex Markov Decision Process

Nikola Milosevic, Nicolás Hinrichs, Nico ScherfarXiv 2026

TL;DR

This paper bridges the gap between Active Inference (AIF) and Reinforcement Learning (RL) by proving that Expected Free Energy (EFE) minimization can be mathematically framed as a convex Markov Decision Process (MDP). By leveraging this connection, the authors introduce a novel mirror-descent algorithm (MD-AIF) that guarantees a clean $O(1/K)$ convergence rate and provides a rigorous foundation for scaling active inference using modern RL optimization tools.

What Problem Does This Paper Address?

Active Inference (AIF) is a powerful framework in cognitive science and machine learning that models agents as minimizing Expected Free Energy (EFE). Unlike standard RL, which purely maximizes an external reward signal, AIF naturally unifies pragmatic (goal-directed) and epistemic (exploratory/curiosity-driven) behaviors under a single variational principle.

However, AIF has historically suffered from a major theoretical blind spot: its optimization properties are poorly understood. While model-based policy optimization in RL enjoys well-established convergence and policy-improvement guarantees, it was previously unknown whether a unique EFE minimum even exists, or what class of optimization problems AIF actually belongs to. This lack of theoretical grounding has blocked researchers from safely transferring efficient, scalable algorithms from the RL literature to AIF agents.

Methods

The authors resolve this by making two slight modifications to the standard AIF protocol to make it compatible with RL theory:

  1. An Episodic View: Instead of updating the agent's world model at every single environment step, the agent alternates between full episodes of data collection (minimizing Variational Free Energy, or VFE) and policy planning (minimizing EFE).
  2. Causal Imagination: The agent uses a causal posterior over the future, ensuring that its internal "imagined" rollouts are Markovian and can be efficiently sampled.
The episodic active inference framework separating model learning (VFE) and policy optimization (EFE) in a latent MDP.

With these in place, the authors prove that EFE minimization under a fixed model is a convex MDP. In this setting, the pragmatic goals remain linear with respect to state occupancies, but the epistemic drive (negative state-marginal entropy) introduces a convex nonlinearity.

To solve this convex MDP, they derive MD-AIF (Mirror Descent Active Inference). At each iteration, MD-AIF locally linearizes the non-linear EFE objective around the current policy's state marginals. This transforms the complex objective into a sequence of standard soft-MDP subproblems with a policy-dependent reward (effectively acting as a dynamic curiosity bonus), which can be solved efficiently using standard softmax dynamic programming.

Datasets

The paper evaluates the proposed framework using synthetic, deterministic gridworld environments:

  • $5 \times 5$ Gridworld: Used to evaluate optimization convergence and state occupancy behavior under a Manhattan-distance goal preference.
  • $10 \times 10$ Gridworld: Used to evaluate model-learning efficiency under a uniform preference (pure epistemic exploration drive).

No standard external machine learning datasets or benchmarks were used.

Key Insights and Ideas

  • Epistemic Drive as a Performative Reward: Framing AIF as a convex MDP reveals that the informational value of exploration acts mathematically as a policy-dependent reward. The reward changes because the policy changes the state occupancy distribution.
  • Guaranteed Convergence Rate: By proving that the EFE objective is relatively smooth with respect to conditional negative entropy, the authors prove that the MD-AIF algorithm converges at a predictable rate of $O(1/K)$.
  • The Performative RL Loop: When the agent updates its world model using data collected from its own deployed policy, the system enters the realm of Performative Reinforcement Learning. If the agent fails to visit certain states, the model refitting target shifts dynamically, potentially creating unstable feedback loops.

Key Results

  • Optimization Efficiency: In the $5 \times 5$ gridworld, MD-AIF successfully minimized the EFE, strictly tracking the theoretical $O(1/K)$ convergence line. It significantly outperformed standard Euclidean gradient descent on the EFE and traditional entropy-regularized RL (which lacks the novelty-seeking term and greedily focuses only on the goal path).
  • Superior Exploration for Model Learning: In the $10 \times 10$ gridworld, the closed-loop version of MD-AIF (alternating planning and model refitting) achieved broader state coverage. This accelerated world-model learning, reducing the model error (measured via Total Variation distance) much faster than standard RL, EFE gradient descent, or myopic short-horizon AIF planning baselines.

Limitations and Future Work

The primary limitation is that the convergence guarantees apply strictly to a fixed world model. Once the loop is closed—meaning the world model is continuously retrained on policy-dependent data—the optimization landscape becomes highly complex and potentially unstable due to the performative feedback loop.

While the authors prove that a stable policy-model fixed point exists, they leave the formal convergence analysis of this full, closed-loop performative setting to future work. Additionally, the current experimental validation is restricted to tabular settings; scaling these insights to deep, continuous state-space architectures (like Dreamer) remains an open engineering challenge.

Summary updated

BibTeX
@misc{milosevic2026active,
  author = {Nikola Milosevic and Nicolás Hinrichs and Nico Scherf},
  title = {{Active Inference as a Convex Markov Decision Process}},
  year = {2026},
  eprint = {2607.20152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.20152},
}
Figure