Chapters 4, 5 and 8IntermediateNew
Why you can't tickle yourself
To move at all, an active inference agent has to turn down its confidence in the sensations its own movement will cause. Otherwise the evidence that it is not yet moving would overrule its prediction that it is. One consequence is that your own touch feels weaker than the same touch from someone else. Seven steps on one fingertip show why.
AII: EduActive · Watch, then do
One short clip, one thing to try
This passage comes from one of the Institute’s textbook study groups. The session is on chapter 2, and here the speaker looks ahead to sensory attenuation, which the textbook reaches in chapter 5. It runs for about two and a half minutes. Watch it, then press the button and look for the same thing on the fingertip above.
- The ideaA few plain sentences. Enough on its own.
- Listen for, then tryOne line from the clip, and one thing to do on the stage.
- In the modelWhich matrix, term or rate carries the idea, and how this page differs from what is said.
-
Plays here, from 33:54. Nothing loads from YouTube until you press play.Open on YouTube at 33:54
1Before you start
Getting up from a chair
Suppose you are sitting and you intend to stand. Your senses report that you are still sitting, and that report argues against the intention. To move at all, you have to turn down for a moment how much those reports count. This turning down is called sensory attenuation.
Listen forThen tryDo the opposite of turning the senses down. Here γ is the amount of attenuation, and a negative value turns the senses up, as if the agent attended closely to its finger. Predict how much of the intended force a half-second press will reach.In the model attenuation γ
The “gain” in the passage is a precision. On this page γ is the number of log units by which the precision of proprioception and touch is turned down while the agent intends to move. That sets the weight w given to the intention against the evidence, and the reflex closes on the intended force at a rate proportional to w.
The clip opens with a few lines read aloud from chapter 5 of the textbook; the rest is the speaker’s own everyday example of standing up. Tickling is not mentioned, and neither is the force-matching task. The page’s model is one fingertip pressing with a force. In it a held intention is always fulfilled in the end, and attenuation changes how fast. So it is the brief press that fails when the senses are turned up, not every movement.
The quoted lines are taken from the automatic captions, with punctuation added and hesitations removed. The speaker’s example is getting up from a chair; tickling is not mentioned. The clip stops at the end of the passage. The full recordings are listed under Sources.
Learn by doing
Try this
The seven steps above are the main exercise. These five experiments each set the stage up for you; the settings they change are named on the button.
- Do one trial of each kind. Predict: will your direct match be too strong, too weak, or right? You are matching a glow to a remembered glow, so your error is the model's. Then do the same with the slider.
- Attend to the movement. Predict: if the agent attends closely to what its finger feels while it tries to press, will it press better or worse? Negative γ raises sensory precision above its resting value. The belief “I am pressing” is corrected almost at once and the press nearly vanishes.
- Let the agent match. Predict: how much more force will it need? The machine presses 1.5 N; the agent then presses until its felt intensity equals what it remembers. Read the two forces on the trace.
- Make your own stroke feel foreign. Predict: which matters more, 200 ms or 60°? A delayed or turned stroke is only partly explained by the hand's movement. The unexplained share is sensed at full precision.
- Break it, then recover. Predict: with γ = 0 and very precise priors, the agent can move again. What does it now believe about outside forces while it presses? Then restore attenuation and press once more.
The mathematics
What is being computed
Forces are in newtons and precisions in N−2. Logarithms are natural. μi and μe are the agent's current expectations of the two hidden causes: its own intended force and an outside force. ηi is the prior expectation of the first, which is the intention; the prior expectation of the second, ηe, is zero. The values under each equation are those on the stage now.
Proprioception yp is predicted by the agent's own force alone. Touch ys is predicted by the sum of both causes, so by itself it cannot say who is pressing. Code: errors.
Each Π is a precision, an inverse variance. Code: freeEnergy. The test checks that F is minus the log of the joint density of the four Gaussian factors.
κ is a rate constant (a setting, 4). Because F is quadratic these equations are linear, and the page advances them with their exact solution over each step of 1/240 s. Their fixed point is the exact posterior mean. Code: grad, stepBelief, posterior.
Action a is the force command, and in this page's world the force follows it at once, so ∂yp/∂a = 1. Action changes F only through what is sensed. The reflex has its own fixed precision Πr, equal to the resting sensory precision. Code: create().tick.
λ0 is the resting log-precision. The gate m is zero at rest, jumps to m0 as soon as the agent intends a force, and deepens with that force. It stays on while the agent still believes it is pressing (μi above 0.05 N), so that letting go is attenuated too. γ is the attenuation. The gate is set from the moment before and is treated as a context: F is not differentiated through it. Code: gate, gateForce, precisions.
When beliefs settle much faster than the reflex acts, the belief about the agent's own force is a weighted average of the intention and the evidence, with weight w on the intention. The reflex chases that belief, so the force approaches the intention at a rate proportional to w. With unlimited time the press is completed at any precision; a brief intention is fulfilled only if w is large. Code: priorWeight, pressAnalytic, tested against the simulation.
P is the matrix of second derivatives of F with respect to the two beliefs; its inverse is the posterior covariance. z = 1.645 marks the lower end of a 90% interval. This reporting rule is the assumption Brown et al. (2013) make, not a measured law. Code: touchSd, perceived.
c is the correlation between the stroke predicted from the hand's movement and the stroke that arrives, delayed by d and turned by θ; ω is 2π times the stroke frequency (a setting, 0.8 Hz). σa and σ0 are the standard deviations of felt force with and without attenuation. Code: tickleCorr, tickleRating.
Reading
Where this comes from
To do this, we need to be able to predict that we are moving. However, until we are moving, the proprioceptive data to hand contradicts this hypothesis and could prompt its revision.Parr, Pezzulo & Friston (2022), Active Inference, chapter 5, p. 92
| Measure | Published | This model, now |
|---|---|---|
| Direct matching against the joystick: slope, intercept | +49%, +0.53 N (Shergill et al. 2003) | |
| Escalation over eight turns from 0.25 N | +3.2 N, 38% per turn (Shergill et al. 2003) | |
| Tickle rating with delay and with rotation | rises significantly with each (Blakemore et al. 1999) | |
| Force achieved in a 0.5 s press of 1 N, γ = 6.5, 0, −4 | movement fails as sensory precision comes to dominate (Brown et al. 2013, their model) |
The middle column holds measurements on people, except the last row, which is a result of a published simulation. The right column is computed by this page's model at its current settings. The default settings were chosen by hand so that the matching line resembles the published one; nothing was fitted to data.
What is established
People asked to reproduce a force on their own finger by pressing directly use too much force, and are much more accurate with a joystick; pairs who trade presses escalate (Shergill et al. 2003). Self-produced touch is rated as less tickly than the same touch produced externally, and is accompanied by less activity in somatosensory cortex (Blakemore et al. 1998). Delaying or turning the stroke relative to the hand's movement raises the rating (Blakemore et al. 1999). In one study, a group of patients with a diagnosis of schizophrenia showed less attenuation on average than a group of healthy volunteers (Shergill et al. 2005).
The explanation given here is a model, not a finding. Brown et al. (2013) showed that an active inference agent must attenuate sensory precision in order to move, and that this reproduces the force-matching illusion. Adams, Shipp and Friston (2013) set out the view of motor commands as proprioceptive predictions fulfilled by reflex arcs. Adams et al. (2013) relate failures of precision to psychosis as a hypothesis. The free energy principle is a modelling framework; this page illustrates it and is not evidence for it.
What this model leaves out
This is a reduced version of Brown et al. (2013). Theirs is a hierarchical model in generalised coordinates of motion, with hidden states that have their own dynamics between causes and sensations, a force that decays, and a saturating effect of action. Here the two causes map straight onto the two sensations, there are no hidden-state dynamics, and the force equals the action.
Their sensory precision depends on the inferred force and its cause, and their scheme differentiates free energy through that dependence. Here precision is set by the gate m from the intention, or from the believed force while letting go, with an added step m0 at the onset of movement, and it is held fixed while beliefs update. That keeps each moment linear, so that every fixed point can be checked exactly. Their intention is a brief pulse; here it is switched on and off. In this page the reflex keeps a fixed gain while attenuation acts only on the errors that update beliefs. If the reflex gain were attenuated as well, attenuation would slow the press instead of permitting it.
In this model a held intention is always fulfilled in the end; what attenuation changes is how fast. The inferred opposing force in step 7 is a transient during the press. The model's escalation is steeper than the published 38% per turn, and it has no upper limit on force. The slider match is exact here, where people are only much more accurate. The tickle step attenuates the predicted share of the stroke; it does not model the cerebellum or the skin. The hands are drawings, the glow is a display of a model quantity, and nothing here measures you.
- Active Inference Institute (2025). ActInf Textbook Group, Cohort 8, Session 4 (Chapter 2). Recording. youtube.com/watch?v=1sYOrZqbGZ8
- Brown, H., Adams, R. A., Parees, I., Edwards, M. & Friston, K. (2013). Active inference, sensory attenuation and illusions. Cognitive Processing 14, 411–427. doi:10.1007/s10339-013-0571-3
- Shergill, S. S., Bays, P. M., Frith, C. D. & Wolpert, D. M. (2003). Two eyes for an eye: the neuroscience of force escalation. Science 301, 187. doi:10.1126/science.1085327
- Blakemore, S.-J., Wolpert, D. M. & Frith, C. D. (1998). Central cancellation of self-produced tickle sensation. Nature Neuroscience 1, 635–640. doi:10.1038/2870
- Blakemore, S.-J., Frith, C. D. & Wolpert, D. M. (1999). Spatio-temporal prediction modulates the perception of self-produced stimuli. Journal of Cognitive Neuroscience 11, 551–559. doi:10.1162/089892999563607
- Shergill, S. S., Samson, G., Bays, P. M., Frith, C. D. & Wolpert, D. M. (2005). Evidence for sensory prediction deficits in schizophrenia. American Journal of Psychiatry 162, 2384–2386. doi:10.1176/appi.ajp.162.12.2384
- Adams, R. A., Shipp, S. & Friston, K. J. (2013). Predictions not commands: active inference in the motor system. Brain Structure and Function 218, 611–643. doi:10.1007/s00429-012-0475-5
- Adams, R. A., Stephan, K. E., Brown, H. R., Frith, C. D. & Friston, K. J. (2013). The computational anatomy of psychosis. Frontiers in Psychiatry 4, 47. doi:10.3389/fpsyt.2013.00047
- Parr, T., Pezzulo, G. & Friston, K. J. (2022). Active Inference: The Free Energy Principle in Mind, Brain, and Behavior. MIT Press. Chapters 4, 5 and 8. doi:10.7551/mitpress/12441.001.0001
- Friston, K. (2010). The free-energy principle: a unified brain theory? Nature Reviews Neuroscience 11, 127–138. doi:10.1038/nrn2787
- Bogacz, R. (2017). A tutorial on the free-energy framework for modelling perception and learning. Journal of Mathematical Psychology 76, 198–211. doi:10.1016/j.jmp.2015.11.003
- Buckley, C. L., Kim, C. S., McGregor, S. & Seth, A. K. (2017). The free energy principle for action and perception: a mathematical review. Journal of Mathematical Psychology 81, 55–79. doi:10.1016/j.jmp.2017.09.004