Tutorial on Active Inference

<p>Active inference is the&nbsp;<a href="https://www.nature.com/articles/nrn2787" rel="noopener ugc nofollow" target="_blank">Free Energy principle of the brain</a>&nbsp;applied to action. It is relatively supported by experimental neuroscience studies and is a popular model of &lsquo;how the brain works&rsquo;. In this tutorial, we will consider the latest version, which is formulated as planning in&nbsp;<a href="https://en.wikipedia.org/wiki/Markov_decision_process" rel="noopener ugc nofollow" target="_blank">discrete state-space and time</a>. The&nbsp;<a href="https://www.fil.ion.ucl.ac.uk/~karl/Action%20and%20behavior%20A%20free-energy%20formulation.pdf" rel="noopener ugc nofollow" target="_blank">initial motivation</a>&nbsp;of active inference is that the agent wants to remain alive, by maintaining its homeostasis. To this end, the agent must ensure that important parameters, like body temperature or blood oxygenation, don&rsquo;t deviate too much from the norm, i.e. are not surprising. But since it&rsquo;s only possible to infer these parameters from sensory measurements, the agent minimizes surprise of sensory observations instead. Interestingly, this is equivalent to continuously improving agent&rsquo;s model of the world, as we will see shortly. So in short:&nbsp;<em>remain alive -&gt; maintain homeostasis -&gt; avoid surprising states -&gt; avoid surprising observations -&gt; by minimizing approximation to surprise(free energy).&nbsp;</em>While the&nbsp;<a href="https://medium.com/@solopchuk/intuitions-on-predictive-coding-and-the-free-energy-principle-3fc5bcedc754" rel="noopener">previous post</a>&nbsp;aimed to give a mere intuition on Free Energy, here we will get our hands dirty. No technical background is necessary except the&nbsp;<a href="https://www.mathsisfun.com/data/probability.html" rel="noopener ugc nofollow" target="_blank">probability theory</a>&nbsp;and&nbsp;<a href="https://www.mathsisfun.com/data/bayes-theorem.html" rel="noopener ugc nofollow" target="_blank">Bayes Theorem</a>. The idea goes as follows.</p> <p><a href="https://medium.com/@solopchuk/tutorial-on-active-inference-30edcf50f5dc"><strong>Website</strong></a></p>