Active Inference and Intentional Behaviour

Karl J. Friston, Tommaso Salvatori, Takuya Isomura, Alexander Tschantz, Alex B. Kiefer, Tim Verbelen, Magnus T. Koudahl, Aswin Paul, Thomas Parr, Adeel Razi, Brett Kagan, Christopher L. Buckley, Maxwell J. D. RamsteadarXiv 2023

Abstract

Recent advances in theoretical biology suggest that basal cognition and sentient behaviour are emergent properties of in vitro cell cultures and neuronal networks, respectively. Such neuronal networks spontaneously learn structured behaviours in the absence of reward or reinforcement. In this paper, we characterise this kind of self-organisation through the lens of the free energy principle, i.e., as self-evidencing. We do this by first discussing the definitions of reactive and sentient behaviour in the setting of active inference, which describes the behaviour of agents that model the consequences of their actions. We then introduce a formal account of intentional behaviour, that describes agents as driven by a preferred endpoint or goal in latent state-spaces. We then investigate these forms of (reactive, sentient, and intentional) behaviour using simulations. First, we simulate the aforementioned in vitro experiments, in which neuronal cultures spontaneously learn to play Pong, by implementing nested, free energy minimising processes. The simulations are then used to deconstruct the ensuing predictive behaviour, leading to the distinction between merely reactive, sentient, and intentional behaviour, with the latter formalised in terms of inductive planning. This distinction is further studied using simple machine learning benchmarks (navigation in a grid world and the Tower of Hanoi problem), that show how quickly and efficiently adaptive behaviour emerges under an inductive form of active inference.

Introduction

In 2022, the "DishBrain" study demonstrated that a culture of neurons could spontaneously learn to play Pong. While this sparked debates regarding "sentience," it highlighted a gap in our formal understanding of different levels of agency. This paper provides a rigorous mathematical taxonomy to distinguish between agents that simply react, those that perceive consequences (sentient), and those that act with specific latent goals (intentional). The primary technical challenge addressed is planning depth: standard active inference agents often face a computationally explosive "tree search" as future horizons expand. We propose inductive planning—a form of backwards induction—to achieve deep foresight efficiently.

A Taxonomy of Agency

We categorize behavior into three distinct levels based on the complexity of the underlying generative model:

  1. Reactive Behaviour: Actions are selected as a direct response to an observed state, often modeled via a stimulus-response mapping or a Q-table.
  2. Sentient Behaviour: Planning is based on predicted sensory consequences. The agent acts to minimize the divergence between predicted and preferred outcomes.
  3. Intentional Behaviour: Planning is driven by specific goals in latent state-spaces. This requires a model of unobservable causes and a preference for specific latent states rather than just sensory inputs.
Figure 2: Formal definitions of reactive behavior versus risk-sensitive control as inference.

Methods: Inductive Planning and Generative Models

Agents are modeled using Partially Observed Markov Decision Processes (POMDPs), where they act to minimize variational free energy. The core innovation is Inductive Planning:

  • Backwards Induction: Instead of searching forward, the agent starts at a desired goal state and works backward through the transition matrix to identify compatible actions.
  • Logical Constraints ($H$): This backward pass generates a constraint that prunes the search tree, penalizing actions that lead to "dead ends."
  • Efficiency: This allows agents to solve deep problems using only one-step-ahead lookups, as the logical path is pre-marked by the inductive process.
Figure 4: The POMDP generative model structure, illustrating the relationships between observations (o), latent states (s), and actions (u).

Experimental Results

We evaluated these models across three benchmarks:

  • In Vitro Pong: Simulating the DishBrain experiment, we found that "Intentional" agents mastered the game in less than three minutes of simulated time, whereas standard sentient agents struggled with harder grid configurations.
  • Grid World Maze: Agents successfully navigated mazes by avoiding dispreferred "shock" states and targeting specific goals through learned layout models.
  • Tower of Hanoi: This logic puzzle served as the ultimate test for planning depth. While standard abductive agents failed beyond 4-5 moves, inductive agents solved 100% of trials (up to 9+ moves) almost instantaneously, completing 100 trials in under 10 seconds.

Discussion and Conclusion

The results suggest that the DishBrain's behavior is "sentient" (avoiding the surprise of aversive noise) but not necessarily "intentional," as it lacks a specific goal state in its latent model. Inductive planning provides a "fast and frugal" path to intentionality, though it currently requires precise priors regarding state transitions. Future work will explore how these intended states and transition models can be learned hierarchically, potentially making complex planning habitual and even more computationally efficient.

Summary updated

BibTeX
@misc{friston2023active,
  author = {Karl J. Friston and Tommaso Salvatori and Takuya Isomura and Alexander Tschantz and Alex B. Kiefer and Tim Verbelen and Magnus T. Koudahl and Aswin Paul and Thomas Parr and Adeel Razi and Brett Kagan and Christopher L. Buckley and Maxwell J. D. Ramstead},
  title = {{Active Inference and Intentional Behaviour}},
  year = {2023},
  eprint = {2312.07547},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.07547},
}
Figure