[Paper Review] Active Inference in String Diagrams: A Categorical Account of Predictive Processing and Free Energy
This paper presents a categorical, diagrammatic formulation of Predictive Processing and Active Inference using string diagrams in monoidal categories with copying and discarding. It provides a fully graphical derivation of the active inference formula via free energy minimisation and establishes a compositionality property for variational free energy, enabling hierarchical application across system levels.
We present a categorical formulation of the cognitive frameworks of Predictive Processing and Active Inference, expressed in terms of string diagrams interpreted in a monoidal category with copying and discarding. This includes diagrammatic accounts of generative models, Bayesian updating, perception, planning, active inference, and free energy. In particular we present a diagrammatic derivation of the formula for active inference via free energy minimisation, and establish a compositionality property for free energy, allowing free energy to be applied at all levels of an agent's generative model. Aside from aiming to provide a helpful graphical language for those familiar with active inference, we conversely hope that this article may provide a concise formulation and introduction to the framework.
Motivation & Objective
- To provide a conceptually clear, compositional, and graphical formalisation of Predictive Processing and Active Inference using category theory.
- To address the lack of formal diagrammatic treatments for Bayesian updating, perception, planning, and free energy minimisation in active inference.
- To establish that free energy minimisation is compositional across hierarchical generative models, enabling application at all system levels.
- To introduce open generative models and variational free energy for such models, supporting modular reasoning.
- To bridge the gap between active inference and categorical frameworks like cd-categories and Markov categories, offering a new language for reasoning in cognitive science and AI.
Proposed method
- Formalising generative models, perception, and planning as string diagrams in a cd-category (e.g., MatR+ for finite discrete systems).
- Using string diagrams to represent Bayesian updating, including soft observations via Jeffrey and Pearl updating, and variational free energy (VFE) updating.
- Deriving the active inference formula purely graphically by composing perception and planning diagrams, avoiding traditional probabilistic calculations.
- Introducing open generative models with inputs to support modular, hierarchical composition of larger models.
- Defining variational free energy for open models and proving its compositionality: global VFE minimisation reduces to local minimisation in sub-models.
- Leveraging the structure of cd-categories to ensure that probabilistic reasoning, including conditioning and marginalisation, is fully diagrammatic and compositional.
Experimental results
Research questions
- RQ1How can active inference and free energy minimisation be fully formalised using string diagrams in a categorical framework?
- RQ2Can the standard formula for active inference be derived purely graphically from the high-level structure of a generative model?
- RQ3Does free energy minimisation exhibit a compositionality property when applied across hierarchical or modular generative models?
- RQ4How do soft observations and different forms of Bayesian updating (Jeffrey, Pearl, VFE) fit into the diagrammatic categorical framework?
- RQ5What new insights does the categorical and compositional perspective bring to active inference, especially in relation to consciousness and causal reasoning?
Key findings
- A fully graphical derivation of the active inference formula is achieved through string diagram composition, providing a transparent and principled justification for the standard result.
- The paper establishes that variational free energy (VFE) is compositional: a system minimising global VFE can do so by minimising VFE locally in each sub-model.
- Open generative models are formally introduced with inputs, enabling modular construction of complex models and supporting hierarchical inference.
- The framework naturally accommodates soft observations and multiple forms of Bayesian updating (Jeffrey, Pearl, VFE), with VFE updating shown to be compatible with compositionality.
- The categorical approach provides a unified, high-level language for reasoning about perception, planning, and inference, with potential for integration into AI and cognitive science.
- The results lay a foundation for extending the framework to continuous settings, message-passing algorithms, and causal reasoning via interventions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.