Uploaded July 2026 | Updated November 2026, 6 hours ago
Book: Fundamentals of Active Inference
Principles, Algorithms, and Applications of the Free Energy Principle for Engineers, by Sanjeev V. Namjoshi https://mitpress.mit.edu/9780262050951/fundamentals-of-active-inference/
Register: http://textbook-group.activeinference.institute/
Code: github.com/ActiveInferenceInstitute/fundamentals
Playlist of Textbook Group: youtube.com/playlist?list=PLNm0u2n1IwdrpoTg-9l37YIBiDrrOzTw-
Direct link to group document: coda.io/d/_dZHp_UGhVZE/Meetings_su3ToqMp
------
CHAPTERS
0:00 Intro: third discussion on Chapter 6
1:19 Why Chapter 6 is a turning point, and where people get stuck
2:24 Which sections matter most: 6.1, 6.3 and Example 6.1
3:39 Algorithm 8: the univariate generalized filtering loop
5:16 Generative process and generative model as environment and agent
6:31 Why a dynamic hidden state changes what the agent needs
7:36 Gradients, learning, and Euler's method
9:00 Prediction errors and update strength
9:57 Many ways to linearise an equation into procedural steps
12:13 Reading the algorithm as pseudo-code
12:39 Step 1: initialising the state space
13:09 The main loop: for each time step
14:13 Who moves first, the environment or the agent?
14:49 The generative process transitions to a new state
16:00 Computing the free energy gradient with respect to the belief
16:38 Why the gradient matters more than the absolute value
17:35 The flow estimate and the update rule
17:47 Perception targets beliefs about latent states, not observations
18:21 Colour in peripheral vision: perception as unconscious inference
19:22 Correction: flow and state transition functions, not transition matrices
20:38 Stochastic differential equations and the partially observable setting
22:07 How a discrete transition matrix relates to the continuous case
23:21 Comparison with the OODA and TOTE loops
25:00 Algorithm 9: the multivariate, generalized-coordinates version
26:18 Nested loops and what M means
26:52 Embedding orders: uppercase M and lowercase m
27:50 An erratum in the loop index
28:36 Precision matrices in the multivariate case
30:25 Embedding order is just the element of the generalized coordinate
31:27 Appendix B and the indexing conventions
32:16 Zooming out: univariate to multivariate is scalability
33:30 Generalized coordinates vs a rolling average or spline
34:24 Taylor approximation and anticipation in continuous time
35:26 Expanding observations vs expanding the latent state
36:35 Q&A: reading the policy transition matrices
38:32 Attractors in Chapter 6
39:06 Why the generative process follows Hooke's law
40:08 Lorenz attractors and chaotic systems
41:05 Why attractors matter for what you can model
42:44 Physics-based models, energy minima and flow landscapes
43:39 Q&A: mapping equation 6.2 onto 6.3
45:25 Q&A: page 132, equation 6.9 and the noise parameter
46:25 Q&A: reproducing Figure 6.4
47:14 Reading the figure: true states, beliefs, prediction errors, free energy
48:41 Q&A: is the trajectory through belief space unique?
49:34 Non-identifiability, model comparison, AIC and BIC
51:35 Occam's razor and metabolic cost: the store and Venus
52:56 The frame outside the frame: what modellers leave out
54:05 What is specific to active inference, and what is just modelling
55:14 Q&A: sigma vs omega, agent noise vs environment noise
56:38 Correlated noise, Ito vs Stratonovich, and why it rarely matters in practice
59:34 Natural language readings of equations
1:00:23 Wrap-up/_dZHp_UGhVZE/Meetings_su3ToqMp
------
Active Inference Institute information:
Website: https://activeinference.institute/
X: https://x.com/InferenceActive
Discord: https://discord.activeinference.institute/
Donate: https://donate.activeinference.institute/
YouTube: youtube.com/c/ActiveInference
Active Inference Livestreams: https://video.activeinference.institute/
Book: Fundamentals of Active Inference
Principles, Algorithms, and Applications of the Free Energy Principle for Engineers, by Sanjeev V. Namjoshi https://mitpress.mit.edu/9780262050951/fundamentals-of-active-inference/
Register: http://textbook-group.activeinference.institute/
Code: github.com/ActiveInferenceInstitute/fundamentals
Playlist of Textbook Group: youtube.com/playlist?list=PLNm0u2n1IwdrpoTg-9l37YIBiDrrOzTw-
Direct link to group document: coda.io/d/_dZHp_UGhVZE/Meetings_su3ToqMp
------
CHAPTERS
0:00 Intro: third discussion on Chapter 6
1:19 Why Chapter 6 is a turning point, and where people get stuck
2:24 Which sections matter most: 6.1, 6.3 and Example 6.1
3:39 Algorithm 8: the univariate generalized filtering loop
5:16 Generative process and generative model as environment and agent
6:31 Why a dynamic hidden state changes what the agent needs
7:36 Gradients, learning, and Euler's method
9:00 Prediction errors and update strength
9:57 Many ways to linearise an equation into procedural steps
12:13 Reading the algorithm as pseudo-code
12:39 Step 1: initialising the state space
13:09 The main loop: for each time step
14:13 Who moves first, the environment or the agent?
14:49 The generative process transitions to a new state
16:00 Computing the free energy gradient with respect to the belief
16:38 Why the gradient matters more than the absolute value
17:35 The flow estimate and the update rule
17:47 Perception targets beliefs about latent states, not observations
18:21 Colour in peripheral vision: perception as unconscious inference
19:22 Correction: flow and state transition functions, not transition matrices
20:38 Stochastic differential equations and the partially observable setting
22:07 How a discrete transition matrix relates to the continuous case
23:21 Comparison with the OODA and TOTE loops
25:00 Algorithm 9: the multivariate, generalized-coordinates version
26:18 Nested loops and what M means
26:52 Embedding orders: uppercase M and lowercase m
27:50 An erratum in the loop index
28:36 Precision matrices in the multivariate case
30:25 Embedding order is just the element of the generalized coordinate
31:27 Appendix B and the indexing conventions
32:16 Zooming out: univariate to multivariate is scalability
33:30 Generalized coordinates vs a rolling average or spline
34:24 Taylor approximation and anticipation in continuous time
35:26 Expanding observations vs expanding the latent state
36:35 Q&A: reading the policy transition matrices
38:32 Attractors in Chapter 6
39:06 Why the generative process follows Hooke's law
40:08 Lorenz attractors and chaotic systems
41:05 Why attractors matter for what you can model
42:44 Physics-based models, energy minima and flow landscapes
43:39 Q&A: mapping equation 6.2 onto 6.3
45:25 Q&A: page 132, equation 6.9 and the noise parameter
46:25 Q&A: reproducing Figure 6.4
47:14 Reading the figure: true states, beliefs, prediction errors, free energy
48:41 Q&A: is the trajectory through belief space unique?
49:34 Non-identifiability, model comparison, AIC and BIC
51:35 Occam's razor and metabolic cost: the store and Venus
52:56 The frame outside the frame: what modellers leave out
54:05 What is specific to active inference, and what is just modelling
55:14 Q&A: sigma vs omega, agent noise vs environment noise
56:38 Correlated noise, Ito vs Stratonovich, and why it rarely matters in practice
59:34 Natural language readings of equations
1:00:23 Wrap-up/_dZHp_UGhVZE/Meetings_su3ToqMp
------
Active Inference Institute information:
Website: https://activeinference.institute/
X: https://x.com/InferenceActive
Discord: https://discord.activeinference.institute/
Donate: https://donate.activeinference.institute/
YouTube: youtube.com/c/ActiveInference
Active Inference Livestreams: https://video.activeinference.institute/



![ActInf GuestStream 128.1: Active Inference as the Test-Time Scaling Law for Physical AI Agents
Active Inference as the Test-Time Scaling Law for Physical AI Agents
Omar Hashash, Christo Kurisummoottil Thomas, Walid Saad, Merouane Debbah, Karl Friston, Adeel Razi
https://arxiv.org/abs/2606.22813
In this paper, a novel test-time scaling law for physical artificial intelligence (AI) agents is introduced. This scaling law enables physical AI agents to reason with their world models to generalize in unforeseen scenarios at test time. The derived scaling law is grounded in the first principle of active inference, which equips agents with the general objective to survive in the real world, under which their specific task objectives are subsumed. Active inference achieves this by providing the reasoning to resolve prediction errors that arise when the agent encounters unforeseen situations outside its training distribution, enabling generalization in non-stationary environments. The proposed scaling law captures this by dynamically updating the agents policy with this reasoning at test time. This policy update is modeled as a soft Bayesian inference process in which beliefs about the policy are updated using the reasoning that reduces expected prediction errors under allowable policies as a likelihood. The resulting posterior policy admits a biological interpretation, recovering the scaling mechanism that engages the brains basal ganglia and prefrontal cortex at test time. To solve this analytically intractable problem, a variational inference solution minimizing free energy bounds is developed. This solution extends to enable learning beyond training by reinforcing new instances, resolved at test time, in both the policy and world model. Unlike existing scaling laws constrained by model size and training data, the derived solution scales with the continuous real-world experience of a physical AI agent. Simulation results on an autonomous driving task demonstrate that the proposed solution outperforms model-free Q-learning and model-based Bayesian reinforcement learning, achieving robust generalization to unforeseen scenarios while improving inference efficiency by over 36%.
Comments: 53 pages, 13 figures
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2606.22813 [cs.AI]
(or arXiv:2606.22813v1 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2606.22813
Active Inference Institute information:
Website: https://www.activeinference.institute/
Activities: https://activities.activeinference.institute/
Discord: https://discord.activeinference.institute/
Donate: http://donate.activeinference.institute/
YouTube: https://www.youtube.com/c/ActiveInference/
X: https://x.com/InferenceActive
Active Inference Livestreams: https://video.activeinference.institute/
CHAPTERS
0:00 Welcome and introductions
1:30 Background: wireless communications and world models
3:00 6G networks as a world for AI agents
4:30 Limits of todays robots
6:00 Generalization and autonomy
7:30 Planning and common sense
10:30 Toward cognitive AI
12:00 Prior work: world models over networks
13:30 Wireless sensing
15:00 Digital twins
16:30 Reasoning over the network
18:00 How the brain learns
19:30 System 1 and System 2
22:30 Triggers for deliberate reasoning
24:00 Survival as generalization
27:00 Reasoning to resolve prediction error
28:30 Test-time scaling
30:00 The network as a compute resource
33:00 Network-based sensing
34:30 Surprise thresholds for unforeseen scenarios
36:00 Returning value estimates to agents
37:30 Feed-forward and inference terms
39:00 Solution roadmap
42:00 Variational free energy
43:30 Generative model: A and B matrices
45:00 Posterior inference over states
46:30 Expected free energy and preferences
48:00 Inferring policies
49:30 Markov blankets and generalization
52:30 Learning the observation and transition models
55:30 Summary of the formalism
57:00 Simulation: the jaywalking scenario
1:01:30 Comparison with Bayesian RL baselines
1:03:00 Model-based vs. model-free trade-offs
1:06:00 Discussion
1:07:30 Q&A: inference capacity as a state variable
1:10:30 Q&A: message passing and local free energy
1:13:30 Q&A: what is new about scaling laws
1:15:00 Q&A: hierarchy and time scales
1:18:00 Q&A: training objectives and constraints
1:21:00 Q&A: first-principles solutions at test time
1:24:00 Closing ActInf GuestStream 128.1: Active Inference as the Test-Time Scaling Law for Physical AI Agents](https://i.ytimg.com/vi/vjtYYbO9jCY/mqdefault.jpg)






