Module 4
The Free-Energy Principle
Friston’s free-energy principle (FEP) proposes that any self-organising system that persists must minimise its variational free energy — an upper bound on surprise. FEP unifies perception, action, learning, and homeostasis under a single imperative. This module covers the mathematical core and the Markov- blanket formulation.
1. Surprise and Its Bound
Surprise (surprisal) is −log P(x): the negative log probability of an observation under the generative model. Direct minimisation requires integrating over latents. Variational free energy provides a tractable upper bound:
\[ F \;=\; \mathbb{E}_{Q}[\log Q(z) - \log P(x, z)] \;=\; D_{KL}[Q\|P(z|x)] - \log P(x) \]
Because KL divergence is non-negative, F ≥ −log P(x). Minimising F simultaneously (a) pushes Q toward the true posterior and (b) reduces surprise. This is the same ELBO from M2, with the sign flipped and the perspective changed.
2. Markov Blankets & Self-Organisation
Friston 2013 and 2019 extended the FEP using Markov-blanket formalism: a system is defined by the partition of its state into internal, external, and blanket (sensory + active) states, with conditional independence across the blanket. Any system that exists as a distinct entity implicitly has a Markov blanket, and the dynamics of internal states that maintain the partition correspond to free-energy minimisation. This is the controversial but far-reaching claim that life itself is Bayesian inference.
Simulation: Variational Free Energy
Click Run to execute the Python code
Code will be executed with Python 3 on the server
3. Objections & Criticisms
FEP is controversial: critics (Colombo 2021, van Es 2020) argue that the mathematical generality comes at the cost of empirical content — any self-maintaining system trivially minimises free energy by construction, so the principle may be more descriptive than predictive. Proponents counter that the value is in the common currency it provides across perception, action, and learning, and in the falsifiable computational models (predictive coding, active inference) the principle generates.
Key References
• Friston, K. J. (2010). “The free-energy principle: a unified brain theory?” Nat. Rev. Neurosci., 11, 127–138.
• Friston, K. et al. (2013). “Life as we know it.” J. R. Soc. Interface, 10, 20130475.
• Parr, T., Pezzulo, G. & Friston, K. J. (2022). Active Inference: The Free Energy Principle in Mind, Brain, and Behavior. MIT Press.
• Colombo, M. & Palacios, P. (2021). “Non-equilibrium thermodynamics and the free-energy principle in biology.” Biol. Philos., 36, 41.