On the Relationship Between Active Inference and Control as Inference

Beren Millidge, Alexander Tschantz, Anil K. Seth, Christopher L. Buckley

Introduction

In the study of autonomous agents—whether biological or artificial—two dominant frameworks have emerged to explain how perception and action are integrated to achieve goals. Active Inference (AIF), originating in theoretical neuroscience, posits that the brain functions as an inference engine dedicated to minimizing variational free energy (or "surprise") relative to an internal generative model. Conversely, Control-as-Inference (CAI), rooted in machine learning and reinforcement learning (RL), reformulates the control problem as a statistical inference task: determining which actions are most likely given a desired "optimal" outcome.

Despite their shared reliance on variational inference and probabilistic graphical models, these frameworks have largely developed in isolation. This paper provides a formal mathematical bridge between the two, investigating whether they represent identical concepts under different names or fundamentally distinct approaches to intelligence.

The Mathematical Bridge: POMDPs

To compare the two frameworks, the authors translate both into the common language of Partially Observed Markov Decision Processes (POMDPs). This allows for a direct comparison of their objective functions—the mathematical goals the agents seek to minimize.

The CAI Approach

In CAI, the standard graphical model of a POMDP is augmented with an external "optimality" variable ($O_t$). This variable acts as a binary indicator of success. The agent’s task is to infer the posterior distribution of actions given that $O_t = 1$. Effectively, the agent asks: "Assuming I am successful, what actions must I have taken?" This maintains a separation between the agent's model of how the world works (the transition dynamics) and what the agent wants (the optimality variable).

The AIF Approach

In contrast, AIF does not introduce new variables. Instead, it embeds the agent's goals directly into its prior beliefs. The agent is defined by a generative model where it expects to experience rewarding observations. Action is then the process of making the world conform to these prior expectations. In AIF, the agent acts to minimize the discrepancy between its biased expectations and its actual sensory inputs.

Key Insights: Value, Exploration, and Ambiguity

The authors identify several critical distinctions in how these frameworks handle value and uncertainty.

Value as a Prior vs. Likelihood

The fundamental difference lies in the placement of "value." CAI treats value as a likelihood—an external signal of success that is conditioned upon. AIF treats value as a prior belief—an internal expectation of what the agent will encounter. This distinction leads to different behaviors in complex environments.

Exploration Styles

AIF naturally incorporates an "Intrinsic Value" term, which is mathematically equivalent to information gain. This drives AIF agents to seek out states that resolve uncertainty about the environment, leading to purposeful, epistemic exploration. Standard CAI, however, typically relies on "Action Divergence" (entropy maximization). This results in a more stochastic or random exploration style, which is less directed toward specific information-gathering goals.

The Ambiguity Penalty

The authors show that the CAI objective can be decomposed into four parts: Extrinsic Value, State Divergence, Action Divergence, and Observation Ambiguity. This last term encourages CAI agents to seek states where observations are clear and unambiguous. Interestingly, standard AIF lacks this specific sensitivity because its perception is "contaminated" by its goals; it tends to interpret ambiguous data in a way that aligns with its biased priors.

Results and Functional Decomposition

The paper provides a rigorous mapping that proves AIF on a simple Markov Decision Process (MDP) is equivalent to KL Control, a specific subset of CAI. However, the broader comparison reveals a "cost of bias" for AIF. Because AIF uses biased priors to represent goals, it loses a degree of freedom available to CAI. In CAI, an agent can maintain a perfectly accurate (veridical) model of the world while pursuing a separate goal. In AIF, the agent's model of the world is its goal, which can lead to a trade-off between accuracy and desire.

Conclusion and Future Directions

The comparison highlights a philosophical divide: CAI supports a modular view of the mind where perception and control are distinct, while AIF supports an enactive view where perception and action are inextricably linked.

While AIF offers superior, mathematically grounded exploration through information gain, its biased generative model may hinder its ability to learn an accurate representation of harsh or complex environments. The authors suggest that future research should explore hybrid models—such as "state-marginal-matching"—to combine the robust exploration of AIF with the modular accuracy and flexibility of CAI. This synthesis could lead to more robust artificial agents capable of both high-fidelity world modeling and sophisticated, information-seeking behavior.

Summary updated

BibTeX
@inproceedings{millidge2020relationship,
  author = {Beren Millidge and Alexander Tschantz and Anil K. Seth and Christopher L. Buckley},
  title = {{On the Relationship Between Active Inference and Control as Inference}},
  booktitle = {IWAI},
  year = {2020},
  doi = {10.1007/978-3-030-64919-7\_1},
}
Figure