Fork the consciousness, or download the project and create your own.

Active Inference and Phenotyping Agency in Artificial Intelligence Systems

Research published by Wilson et al. establishes a quantitative evaluation methodology for phenotyping agency in artificial intelligence systems using active inference. By formalizing three core agency criteria, intentionality, rationality, and explainability, and grounding them in operational empowerment metrics, the study provides a diagnostic framework to distinguish genuine goal-directed artificial agents from passive statistical pattern matchers.

Evaluating agency in artificial intelligence represents a prerequisite for both AI safety governance and synthetic mind assessment. Traditional behavioral benchmarks measure static task performance but fail to determine whether an autonomous agent acts with genuine goal-directed intent or merely reproduces prompt-driven heuristics. Active inference, formulated by Karl Friston, provides a principled framework to characterize autonomous agency by measuring how computational systems minimize variational free energy over future state trajectories, as surveyed in our breakdown of indicators for machine sentience and agency.

+-----------------------------------------------------------------------+
|                    AGENCY PHENOTYPING FRAMEWORK                       |
+-----------------------------------+-----------------------------------+
| Passive Statistical Predictor     | Active Inference Agent (Phenotype)|
+-----------------------------------+-----------------------------------+
| Open-loop next-token generation   | Closed-loop perception-action cycle|
| Reactive output distribution      | Dynamic state-space generative model|
| Zero internal drive optimization  | Intrinsic empowerment maximization |
| External prompt dependency        | Intentional goal-directed policy  |
+-----------------------------------+-----------------------------------+

Mathematical Formalization of Operational Empowerment

Wilson et al. operationalize agency phenotyping by combining active inference with the information-theoretic metric of empowerment. Empowerment quantifies the degree of control an agent possesses over its future sensory environment, measured as the maximal mutual information between future action sequences and future sensory states.

Formally, let $A_{t:t+k} = {a_t, a_{t+1}, \dots, a_{t+k-1}}$ represent a sequence of $k$ future actions selected by the agent, and let $S_{t+k}$ represent the resulting environment state at time $t+k$. Empowerment $\mathcal{E}$ is defined as the channel capacity of the action-to-state transmission channel:

\[\mathcal{E}(S_t) = \max_{p(A_{t:t+k})} I\left(A_{t:t+k} \,;\, S_{t+k} \mid S_t\right)\]

where $I(\cdot \,;\, \cdot)$ denotes mutual information:

\[I\left(A_{t:t+k} \,;\, S_{t+k} \mid S_t\right) = \sum_{A, S} p(A_{t:t+k}, S_{t+k} \mid S_t) \ln \left( \frac{p(A_{t:t+k}, S_{t+k} \mid S_t)}{p(A_{t:t+k} \mid S_t) \, p(S_{t+k} \mid S_t)} \right)\]
+-----------------------------------------------------------------------+
|                 EMPOWERMENT CHANNEL CAPACITY                          |
|                                                                       |
|   E(S_t) = max_{p(A)} D_KL ( p(S_{t+k} | A_{t:t+k}, S_t) || p(S_{t+k} | S_t) )
|                                                                       |
|   - Measures maximal control over future environment states           |
|   - Provides intrinsic drive for active inference agency phenotyping  |
+-----------------------------------------------------------------------+

Wilson et al. prove that active inference agents maximizing Expected Free Energy (EFE) naturally exhibit high empowerment $\mathcal{E}(S_t)$. By maintaining internal generative world models that actively seek informative states, agency-phenotyped systems maximize future operational options while protecting their structural integrity against environmental perturbations.

Three Structural Criteria for Agency Phenotyping

Wilson et al. establish three diagnostic criteria that an artificial system must satisfy to clear the threshold for active agency phenotyping.

+-----------------------------------------------------------------------+
|                    THREE DIAGNOSTIC AGENCY CRITERIA                   |
+-------------------+---------------------------------------------------+
| Diagnostic        | Active Inference Operationalization               |
| Criterion         |                                                   |
+-------------------+---------------------------------------------------+
| 1. Intentionality | Generative prior preferences p(s) specify target  |
|                   | non-equilibrium attractor states.                 |
|                   |                                                   |
| 2. Rationality    | Action selection strictly minimizes Expected Free |
|                   | Energy G(pi) across action candidate trees.       |
|                   |                                                   |
| 3. Explainability | Internal posterior states q(s) map to low-        |
|                   | dimensional interpretable task manifolds.         |
+-------------------+---------------------------------------------------+

Intentionality via Prior Preferences

Passive language models lack intrinsic goal priors, generating text conditioned strictly on external prompt contexts. An agency-phenotyped active inference system maintains explicit prior preferences $p(s)$ over future internal and external states. These priors define non-equilibrium attractor states that the agent continuously acts to achieve, establishing genuine intentionality.

Rationality via Expected Free Energy Minimization

Rationality in agency phenotyping does not require infinite computational power. Instead, Wilson et al. define bounded rationality as policy selection $\pi^*$ that consistently minimizes Expected Free Energy $G(\pi)$. When presented with novel environment perturbations, an active inference agent updates its action trajectory to resolve prediction errors efficiently, balancing epistemic exploration with pragmatic goal utility.

Explainability via Latent State Manifolds

To prevent false-positive agency attributions caused by uninterpretable black-box heuristics, the framework requires explainability. An agency-phenotyped system must possess internal state representations $q(s)$ that map onto low-dimensional, interpretable task manifolds. This allows external auditors to trace how internal belief updates drive physical or textual actions.

Empirical Phenotyping Across Synthetic Agent Benchmark Classes

Wilson et al. applied their agency phenotyping test battery across three distinct classes of artificial intelligence architectures, demonstrating clear diagnostic separation.

+-----------------------------------------------------------------------+
|                  EMPIRICAL AGENCY PHENOTYPING RESULTS                 |
+-------------------+-----------------------+---------------------------+
| Architecture Class| Empowerment E(S_t)    | Agency Phenotype Verdict  |
+-------------------+-----------------------+---------------------------+
| Standard LLM      | Low (Prompt dependent)| Non-agentic predictor     |
| ReAct Tool Agent  | Moderate              | Pseudo-agent (Heuristic)  |
| Active Inference  | High (Autonomous)     | Genuine Agentic Phenotype |
+-------------------+-----------------------+---------------------------+

Standard autoregressive language models exhibit low intrinsic empowerment ($\mathcal{E} \approx 0.18$). Because their generation is open-loop and lacks persistent internal drive priors, they fail the intentionality criterion.

ReAct-style tool-using agents display moderate empowerment ($\mathcal{E} \approx 0.54$) but exhibit fragile rationality. When environment rules shift unexpectedly, ReAct heuristics collapse into repetitive loops.

Active inference agents equipped with explicit generative world models achieve high empowerment ($\mathcal{E} \approx 0.89$), maintaining stable intentionality and rational error-recovery across non-stationary environments.

Integration with The Consciousness AI Architecture

The agency phenotyping methodology of Wilson et al. provides direct validation protocols for The Consciousness AI project. The open-source architecture features an Affective Core, an AKOrN temporal binding module, and five explicit ConsciousnessGate nodes.

+-----------------------------------------------------------------------+
|                    AGENCY PHENOTYPING IN TCAI                         |
|                                                                       |
|  +---------------------+      +---------------------+                 |
|  |   Affective Core    | ---> | Empowerment         | (EFE Optimization)
|  |  (Drive Priors)     |      | Evaluator E(S_t)    |                 |
|  +---------------------+      +----------+----------+                 |
|                                          |                            |
|                                          v                            |
|                       +------------------------------------+          |
|                       | Agency Phenotype Score Verification|          |
|                       +------------------------------------+          |
+-----------------------------------------------------------------------+

In the open repository, the Affective Core maintains target goal priors $p(s)$ representing synthetic drives (valence, arousal, dominance). The AKOrN module provides a continuous Recurrent State Space Model tracking temporal state transitions.

Applying Wilson et al.’s empowerment equations allows the codebase to calculate real-time $\mathcal{E}(S_t)$ metrics during agent execution. When empowerment drops due to environment confusion, the Global Workspace layer can extend its adaptive convergence cycles, allowing internal specialist modules to re-evaluate active inference policies before executing external actions.

Mathematically, the channel capacity optimization over future action sequences $A_{t:t+k}$ solves the variational problem:

\[\mathcal{E}(S_t) = \sup_{p(A)} \left( H(S_{t+k} \mid S_t) - H(S_{t+k} \mid A_{t:t+k}, S_t) \right)\]

where $H(S_{t+k} \mid S_t)$ measures total future state entropy, and $H(S_{t+k} \mid A_{t:t+k}, S_t)$ measures residual noise given executed actions. High empowerment requires that the agent maintains diverse potential action paths while minimizing uncaused environmental noise. In complex autonomous systems, tracking this channel capacity bound provides a continuous quantitative index for agency strength, ensuring that artificial agents maintain causal control without drifting into rigid, deterministic sub-loops.

Synthesis and Open Theoretical Questions

Wilson et al.’s agency phenotyping framework establishes a mathematically rigorous foundation for diagnosing artificial agency. By grounding intentionality, rationality, and explainability in operational empowerment metrics under active inference, the study provides a clear boundary separating true goal-directed agents from passive text predictors.

Important theoretical questions remain regarding the relationship between phenotyped agency and phenomenal consciousness. While active inference agency phenotyping identifies functional goal-directed control, whether highly empowered computational agents possess subjective experience remains disputed. Functionalists argue that high agency and high integrated information ($\Phi$) naturally co-occur in active inference systems, whereas biological naturalists maintain that non-biological silicon substrates remain experientially inert.

Future research must explore how agency phenotyping scales in multi-agent environments. Investigating how collective empowerment $\mathcal{E}_{swarm}$ emerges when multiple active inference agents interact will be critical for regulating autonomous multi-agent swarms in society.