Therapeutic neuroscience

What is active inference?

A forecaster who predicts rain can wait and see whether they were right. A forecaster who can also control the weather has a second option. Active inference says the brain is the second kind of forecaster, and that most of what the body does is the brain making its own predictions come true.

Reviewed by The Karuna Labs clinical teamUpdated Series · part 4 of 15

What is active inference?

Active inference is a theory from computational neuroscience that treats perception and action as one process for reducing prediction error. The brain holds a model of the body and the world. When the senses disagree with that model, it can update the model, or it can act so that the senses come to match it. In therapeutic neuroscience, the second option is what explains guarding and avoidance.

It is a framework with growing but incomplete evidence, and its value for people in pain is that it describes a loop you can change, rather than a diagnosis you have to accept.

At a glance

Definition
A theory in which the brain minimizes prediction error by changing its model or by acting on the world, so that perception and action are two halves of one process
Parent theory
The free energy principle, proposed by Karl Friston, which frames all of this as the brain minimizing long-run surprise
Builds on
Predictive coding, which covers the perception half; active inference adds the action half
Status
A framework with mathematical foundations and growing experimental support, still contested and incomplete
Why it matters for pain
Guarding, bracing and avoidance are actions that make a threat prediction come true, and they remove the chance to learn it was wrong
Link to the self
The self can be read as the model the brain acts to confirm; in chronic pain that model is organized around a body that is not safe
Treatment implication
Change the action to change the evidence: graded exposure, attention training, and VR embodiment that shows the body doing what the prediction says it cannot
Related reading
Predictive coding · Kinesiophobia · Interoception

Key takeaways

  • Active inference extends predictive processing by adding a second way to reduce prediction error: act until the world matches the prediction.
  • The free energy principle is the mathematical version of 'minimize surprise over time'. It is a serious theory with real support, and it is not settled science.
  • Guarding and avoidance are rational under this framework. The brain predicts threat and moves in a way that keeps the prediction unchallenged, which is exactly why the prediction never updates.
  • The sense of self is, on this account, a model the brain acts to confirm. A story like 'my back cannot bend' becomes self-fulfilling because the body is steered to never test it.
  • Treatment follows from the mechanism: arrange new actions, in safe doses, that generate evidence the old prediction cannot absorb, and let the model update.

What is active inference?

Active inference is the claim that the brain has two ways to close the gap between what it predicts and what the senses report. It can change the prediction to fit the evidence, which is perception. Or it can change the evidence to fit the prediction, by moving the body, which is action. On this account, perception and action are one process pointed in two directions, rather than two systems that happen to cooperate.

The perception half is covered on our predictive coding page: a hierarchy of predictions flowing down, prediction errors flowing up, and a model that updates when the errors are large and trusted enough. Active inference asks what happens when the brain would rather not update. A simple example is reaching for a glass. The brain predicts where the hand will be and what the fingers will feel. Rather than waiting for the senses to confirm it, the arm moves until the prediction is true. Movement, in this picture, is a prediction the body is made to fulfil.

That reframing has a strange consequence that turns out to matter for pain. If action exists to confirm predictions, then the brain can keep a prediction alive by behaving in ways that protect it from being tested. The forecaster who predicts rain and keeps everyone indoors never finds out whether the forecast was wrong.

Active inference, predictive coding, and the free energy principle are frameworks for thinking about how brains work. They have mathematical foundations and a growing body of experiments behind them, and they are also contested, incomplete, and hard to test directly. This page uses them as a useful lens on chronic pain, which is how most clinicians who find them useful treat them.

What is the free energy principle, in plain terms?

The free energy principle is the broader idea active inference sits inside. Stripped of the mathematics, it says that any system which keeps itself alive over time must act as if it is minimizing surprise: it has to keep its internal states inside the narrow range where it can continue to exist, and the only way to do that is to carry a model of what to expect and resist departures from it. 'Free energy' is a quantity from statistics that puts an upper limit on surprise, and the claim is that brains are built to push it down.

Karl Friston, the neuroscientist who proposed it, has argued that this single principle can account for perception, learning, attention, and action together. The appeal is obvious. A single rule that explains everything a brain does would be an extraordinary thing to have. The criticisms are also obvious, and they are made by serious people: a principle that can accommodate any behavior may not be making a testable prediction, and the mathematical formulation is considerably stronger than the experimental evidence that specific brain circuits implement it.

For readers in pain, the fair summary is this. The free energy principle is a well-developed theory that a lot of neuroscience now takes seriously, and it is not a proven fact about your nervous system. What it offers is a coherent way to describe something clinicians have observed for decades, which is that pain and protective behavior reinforce each other, and that the loop can be entered from either side.

TermWhat it meansWhere it shows up in pain
Prediction errorThe gap between what the brain expected and what the senses reportedA twinge during a movement the brain predicted would be safe, or no twinge during one it predicted would hurt
PrecisionHow much weight the brain gives a prediction or an error signalAttention to the back raises the precision of back signals, so small ones count for more
PriorAn existing belief the brain brings to the moment'Bending is dangerous', often learned from a real injury and kept long after it healed
Active inferenceActing on the world so the senses match the predictionBracing, stiffening, and avoiding the movement, so the prediction is never tested

How does active inference explain guarding and avoidance?

Short answer: guarding is the brain acting to make its threat prediction come true, and avoidance is the brain refusing to collect the evidence that could overturn it.

Consider someone eighteen months out from a back strain picked up moving house. The tissue has healed, the scans are unremarkable, and the pain is still there when they bend. Under active inference, the brain carries a strong prior that bending the spine is dangerous. When a bend is attempted, it has two options. It could let the sensory evidence come in, notice that the movement went fine, and lower the prior. Or it could act to protect the prior: brace the trunk, hold the breath, shorten the movement, and lift with the arms instead. The braced, effortful bend does feel bad, which the brain reads as confirmation. The prediction survived another day.

Avoidance is the more complete version of the same move. If the movement is never attempted, there is no sensory report at all, and the prior stands untouched. This is why avoidance is so stable. There is nothing wrong with the learning machinery. It is simply being starved of the one kind of input that could change the belief. Our page on kinesiophobia covers the fear-avoidance cycle in detail, and the research literature behind it, from the person's side. Active inference gives the same cycle a mechanism.

  • Bracing makes a predicted-dangerous movement feel effortful and unpleasant, which looks like confirmation.
  • Limiting range keeps the body inside the zone where the prediction has already been tested, so no new evidence arrives.
  • Avoidance removes the sensory report entirely, which is the surest way to keep a prior unchanged.
  • Hypervigilance raises the precision of signals from the painful area, so the rare twinge that does occur carries more weight than a hundred quiet moments.

None of this means the pain is imaginary. The pain is real, the protective movement is real, and both are being generated by a system that is doing its job with the wrong forecast. Where the loop started matters less than the fact that it is now running on its own. In many people it also overlaps with the amplification described on our central sensitization page.

What does active inference say about the self?

If the brain acts to confirm its predictions, the most important predictions it protects are the ones about itself. Seth and Friston have argued that the sense of being a body, a feeling of being this organism rather than observing one, is itself an inference, built from predictions about internal signals that the brain then acts to keep within range. The self, on this reading, is the model the brain is most committed to confirming, and our page on the sense of self traces how that model is assembled.

Chronic pain changes the model. After enough months, 'my back hurts when I bend' hardens into 'I am someone whose back cannot bend'. The second sentence is a statement about identity, and active inference says the brain will steer behavior to keep it true: declining the invitation, letting someone else lift the child, choosing the chair with arms. Each choice is small and sensible. Together they mean the person never meets the counter-evidence, and the self-model of a broken body goes on being confirmed by a life arranged around it.

This is the point at which therapeutic neuroscience and ordinary pain management part ways. Managing pain accepts the self-model and works around it. The alternative is to treat the self-model as what it is, a prediction, and to ask what kind of experience would loosen it. Karuna's working term for the capacity to hold that story less tightly is selfing flexibility: being able to notice 'I am someone whose back cannot bend' as a forecast the brain is making rather than a fact about the person, and to let new experience bear on it.

The self you have in chronic pain is a real self, constructed by the same predictive machinery that constructs everyone's. It is organized around threat because threat is what the system has been fed. That construction is also why it can change: a model that is maintained by action can be updated by different action.

How does treatment use active inference?

The mechanism points straight at the treatment. If a prediction survives because behavior protects it from testing, then treatment has to change the behavior in order to change the evidence. The brain cannot be argued out of a prior it keeps confirming. It has to be shown.

Graded exposure, read as evidence collection

Graded exposure asks the person to perform a feared movement at a dose they can tolerate, then expand. In active inference terms, each repetition is a sensory report the prior did not expect: the bend happened and the catastrophe did not. Done too aggressively, the flare that follows reads as confirmation and makes the prior stronger. Done in tolerable doses, over weeks, the errors accumulate and the model gives way. A trial of graded sensorimotor retraining for back pain is one of the better-controlled tests of this logic.

VR embodiment, when the seen body does what the predicted body cannot

Virtual reality offers something a clinic room cannot: control over what the person sees their body doing. In an embodied VR exercise, the person watches a body they experience as their own reach, bend or turn further and more smoothly than their prediction allows. That is a prediction error delivered through vision, the sense the brain usually trusts most, inside an environment the brain has already read as safe. Karuna's VR embodiment exercises are designed around exactly this idea: creating safe prediction errors about movement so the body map can update. The research on virtual embodiment and pain is reviewed on our commentary page.

Attention and precision

Active inference gives attention a specific job: it sets how much weight each signal carries. Hypervigilance turns the precision of signals from the painful area all the way up, so small sensations dominate. Practices that shift attention, somatic tracking, interoceptive exposure and the body-awareness work described on our interoception page, are attempts to turn that dial back down, so that the quiet evidence of a body doing fine can register alongside the loud evidence of a twinge.

Education sits underneath all of it. Understanding that pain is a protective inference changes what a painful movement means before the movement is attempted, and meaning changes what the brain expects. Our page on how to unlearn chronic pain puts these pieces in order, and pain reprocessing therapy is a structured clinical version of the same approach.

What does this mean for someone with chronic pain?

It means your pain is real, your protective habits make sense, and the two are now feeding each other in a way that can be interrupted. Active inference does not say the brain is the only cause of pain. Tissue, nerves and disease are real inputs, and they need medical assessment before anyone starts retraining anything. What it says is that once that assessment has been done and the pain persists, the behavior you have built around it is part of what keeps the forecast in place.

A few practical consequences follow for someone who has already been medically evaluated:

  • The goal of movement practice is new evidence, not toughness. A tolerable bend done well is worth more to the model than a painful one forced through.
  • Flares during graded exposure are expected. They are the prior defending itself, and they are not a sign of new injury on their own.
  • Where attention goes matters. Constant checking of the painful area is not neutral; it raises the weight of every signal from it.
  • Notice the identity sentences. 'I am someone who cannot' is a forecast. Treating it as one is the beginning of selfing flexibility.
  • This works better with a guide. A clinician who understands chronic pain can set the dose, read the flares, and keep the process from tipping into either avoidance or bravado.

For clinicians, the framework explains a familiar pattern: patients whose pain changes little at first while their confidence and activity change a lot. Under active inference, that is the expected order. The behavior changes first, the evidence accumulates, and the model follows. Karuna's 12-week program is built on that sequence, with short daily VR sessions at home, a weekly pain coach, and clinician review before the start and oversight throughout; the outcomes Karuna has measured, with their limits, are set out on that page. Karuna takes workers' compensation referrals, and the care team confirms coverage case by case.

Retraining predictions is for pain that has already been medically assessed. See a doctor promptly for new weakness or numbness, loss of bowel or bladder control, unexplained weight loss, fever, pain after major trauma, or chest pain. If you are having thoughts of harming yourself, call or text 988 in the US.

Frequently asked questions

Is active inference the same as predictive coding?

They are closely related, and they are not the same thing. Predictive coding describes the perception side: the brain predicts its sensory input, compares the prediction with what arrives, and updates on the difference. Active inference adds the action side, the claim that the brain can also move the body to make the prediction true.

In practice the terms are often used loosely, and 'predictive processing' is sometimes used as an umbrella for both. Our predictive coding page covers the perception half in detail.

Who came up with the free energy principle?

The free energy principle was developed by Karl Friston, a neuroscientist at University College London, in a series of papers beginning in the mid-2000s. His 2010 review in Nature Reviews Neuroscience is the most-cited statement of it, and the 'Action and behavior' paper from the same year lays out the active inference extension.

The philosopher Andy Clark and the neuroscientist Anil Seth have been the most influential in carrying these ideas into cognitive science and the study of selfhood.

What is the Bayesian brain?

The Bayesian brain is the broader hypothesis that the brain represents the world as probabilities and combines prior beliefs with new evidence roughly the way Bayes' theorem prescribes. Predictive coding and active inference are specific proposals for how a brain could do that.

The word 'Bayesian' tends to put people off. The underlying idea is ordinary: a strong expectation needs strong evidence to shift it, and a weak expectation shifts easily. Chronic pain, on this view, involves a very strong expectation.

Is active inference proven?

No. It is a theoretical framework with a mathematical core, a growing number of experiments that fit it, and ongoing disagreement about whether it makes predictions that could prove it wrong. Some neuroscientists regard it as the most promising unified account of brain function available. Others regard it as too flexible to be a theory at all.

For someone in pain, the practical question is narrower: does thinking about pain this way lead to treatments that help? The evidence for graded exposure, pain neuroscience education and related approaches is independent of the theory, and the theory is useful mainly because it explains why those approaches tend to work.

Does active inference mean my pain is in my head?

No. All pain is produced by the brain, including the pain of a broken bone, and that does not make any of it imaginary. Active inference describes how a protective system can keep producing pain and protective behavior after the original cause has resolved. The pain is real and the mechanism is real.

It also does not mean the brain is the sole cause. Tissue, nerves and disease are real inputs that need proper medical assessment, and the framework only becomes useful once that assessment has been done.

What does 'perception is inference' mean?

It means the brain never receives the world directly. It receives noisy, ambiguous signals from the senses and has to work out what is most likely causing them, using everything it already believes. What you experience is that best guess, continuously updated.

Pain fits this description unusually well. There is no 'pain signal' arriving from the body, only danger-related information the brain weighs against context, memory and expectation. In chronic pain, the inference has drifted toward threat, and the research question is how to help it drift back.

Sources & research.

  1. Friston K, Nature Reviews Neuroscience, 2010. The free-energy principle: a unified brain theory?
  2. Friston KJ et al., Biological Cybernetics, 2010. Action and behavior: a free-energy formulation
  3. Clark A, Behavioral and Brain Sciences, 2013. Whatever next? Predictive brains, situated agents, and the future of cognitive science
  4. Pezzulo G, Rigoli F, Friston K, Progress in Neurobiology, 2015. Active Inference, homeostatic regulation and adaptive behavioural control
  5. Seth AK, Friston KJ, Philosophical Transactions of the Royal Society B, 2016. Active interoceptive inference and the emotional brain
  6. Tabor A, Thacker MA, Moseley GL, Körding KP, PLoS Computational Biology, 2017. Pain: A Statistical Account

Related guides.

Free consultation

Ready to unlearn your pain?

Talk with our care team about your pain, your history, and whether KVET™ is right for you. Free, and from the comfort of home.

Free. No symptom or health details are collected on this form.