Active Inference or Control as Inference? A Unifying View

Abraham Imohiosen, Joe Watson, Jan Peters

Abstract

Active Inference (AI) offers a compelling theoretical framework for understanding biological intelligence by treating perception and action as a unified process of minimizing variational free energy. However, its mathematical density has often hindered its adoption in practical robotics compared to Control as Inference (CaI). This paper bridges this gap by demonstrating that AI is a specific case of partially-observed CaI. We present the Input Inference for Control (i2c) framework, which provides a computationally clear path to implementing AI-inspired controllers using mature engineering tools.

Introduction

For years, the neuroscience community has championed Active Inference as a grand unified theory of the brain. By framing both perception and action as the minimization of "surprise," AI suggests a deep symmetry in how agents interact with the world. Despite its theoretical elegance, AI has struggled to compete with modern robotics controllers, often being criticized as opaque and difficult to scale to complex, non-linear systems.

Conversely, the machine learning and robotics communities have developed Control as Inference (CaI), which frames trajectory optimization as a probabilistic inference problem. While CaI is numerically robust and scales well, it often lacks the unified perception-action loop characteristic of AI. This work provides a "Rosetta Stone" to translate between these two domains, aiming for computational clarity without sacrificing biological insight.

Methodology: Input Inference for Control (i2c)

The authors propose a unified framework called Input Inference for Control (i2c), grounded in the language of Variational Inference. The core idea is to treat the agent's desired future states as "data" that the agent must explain through its actions.

The objective function splits the timeline at the current time step $\tau$:

  1. The Past ($t < \tau$): The agent performs state estimation (perception) by comparing its internal model to actual noisy measurements.
  2. The Future ($t \geq \tau$): The agent performs optimal control (action) by treating desired future observations as data it must reach.

By using this structure, the "Variational Free Energy" central to Active Inference is shown to be mathematically identical to the negative Evidence Lower Bound (ELBO) used in machine learning. This demystifies AI for the broader engineering community.

Key Insights

A critical contribution of this work is the demonstration that a quadratic control cost—a staple of classical engineering—can be mathematically transformed into a Gaussian observation likelihood. This allows the strength of a controller's feedback to be derived naturally through Bayes' rule, depending on the certainty of the state estimate and the correlation between states and actions.

Furthermore, by framing AI as a form of CaI, the authors open the door to using mature engineering tools—such as Taylor approximations, message passing, and sequential Monte Carlo—to implement Active Inference in high-dimensional, non-linear robotic systems.

Results: Recovering the Linear Quadratic Regulator

To validate the framework, the authors applied the i2c approach to a synthetic Linear Gaussian system. The results demonstrate that the unified framework perfectly recovers the solution of a Linear Quadratic Regulator (LQR), which is the gold standard for linear control.

Figure 1: Comparison of state trajectories ($x_1, x_2$) and control input ($u$) between the proposed inference framework and the Linear Quadratic Regulator (LQR). The simulation shows a seamless transition at $t=50$ from observation to optimal control execution.

As shown in the figure, the posterior estimates and control signals generated by the i2c framework align precisely with the LQR benchmarks. The simulation highlights a smooth transition at $t=50$ from observing random controls to executing optimal control, all within a single probabilistic inference pass.

Conclusion

By establishing the mathematical equivalence between Active Inference and Control as Inference, this work provides a rigorous foundation for building high-performance, biologically-inspired controllers. While the current demonstration is limited to linear systems with known dynamics, the i2c framework provides a clear roadmap for extending these principles to complex, non-linear robotics tasks. Future work will focus on scaling these methods to high-dimensional environments where the agent must simultaneously learn the "laws of physics" while performing inference-based control.

Summary updated

BibTeX
@inproceedings{imohiosen2020active,
  author = {Abraham Imohiosen and Joe Watson and Jan Peters},
  title = {{Active Inference or Control as Inference? A Unifying View}},
  booktitle = {IWAI},
  year = {2020},
  url = {https://openreview.net/forum?id=Q4ifjlG3CI},
}
Figure