Sub topic 13
Brain systems and action chunking
This chapter assumes you have read the earlier chapters on goal-directed and habitual control, cue-response associations, and the habit strength curve. You don't need any neuroscience background. You should be comfortable with the idea that a habit is a response triggered by context. You can optionally read short Python snippets.
The earlier chapters described habits in behavioural terms. This chapter asks what the brain does while a habit forms. It also covers a second idea, action chunking, which explains why a habitual sequence feels like one unit instead of many steps. Most of the detailed evidence comes from animal studies, so the chapter also marks where the human evidence is weaker.
Two systems, one set of loops
The brain regions involved in habits are part of the basal ganglia. This is a group of structures deep in the brain that receive input from the cortex and send signals back to it through the thalamus. The input area of the basal ganglia is the striatum, and it has two parts that matter here.
- Dorsomedial striatum (DMS). In rodents, this region works with prefrontal cortex and supports goal-directed action. In primates, including humans, the matching region is usually the caudate nucleus (the anterior part of the dorsal striatum).
- Dorsolateral striatum (DLS). This region supports habitual action. In primates the matching region is usually the putamen.
The two regions sit in separate loops. Each loop starts in a cortical area, passes through the striatum and other basal ganglia structures, and returns to cortex. The associative loop supports flexible, outcome-sensitive behaviour. The sensorimotor loop supports stimulus-response behaviour.
The two loops are not independent modules that take turns. Both run at once, and their outputs compete or combine. This fits the earlier chapters: a habit is the case where the stimulus-response loop wins out over the outcome-sensitive one.
Evidence for the division
Most of the causal evidence comes from rodent experiments that use two behavioural tests.
- Outcome devaluation. An animal learns to press a lever for food. The food is then made less valuable, for example by feeding the animal to satiety. If the animal still presses, the behaviour is not tracking the outcome, which suggests a habit. If it presses less, the behaviour is goal-directed.
- Contingency degradation. The experimenter breaks the link between the action and the reward. A goal-directed animal notices and reduces the action. A habitual animal keeps going.
Using these tests, researchers have found a consistent pattern:
| Manipulation | Typical result |
|---|---|
| Damage or inactivate DMS before training | Behaviour is habitual even after little training |
| Damage or inactivate DLS | Behaviour stays goal-directed even after extensive training |
| Damage prelimbic cortex (rodent prefrontal region) | Loss of goal-directed sensitivity |
| Damage infralimbic cortex | Habits can fail to form or fail to persist, depending on timing |
The infralimbic result is less settled than the striatal one. Studies disagree about whether this region is needed to express a habit or to switch it off, so treat any simple summary with caution.
Human work points the same way but is less direct. Brain imaging studies show that activity moves from anterior, caudate-like regions toward posterior, putamen-like regions as people practise a task. Neurological evidence also fits. People with Parkinson's disease lose dopamine input to the putamen and often have trouble with well-practised movement sequences.
Dopamine and the learning signal
The reward chapter covered learning from outcomes. Dopamine neurons are the main biological source of the signal. Their firing tracks reward prediction error, the difference between the reward received and the reward expected. A better-than-expected outcome produces a burst. A worse-than-expected outcome produces a dip.
Computational models turn this into two learning styles.
- Model-based learning builds a map of what leads to what and plans ahead. It is flexible and costly in effort. It resembles goal-directed control.
- Model-free learning stores a cached value for each cue-response pair and updates it with prediction errors. It is cheap and fast to run but slow to adapt. It resembles habitual control.
This mapping is a useful working model, not an exact equivalence. Some behaviours that look habitual in humans are better explained by other mechanisms, and some model-free signals appear in goal-directed circuits.
Action chunking
A chunk is a sequence of actions that the brain stores and runs as one unit. Think of typing your password or tying a shoelace. You don't decide each finger movement. You trigger the sequence, and it unfolds.
The best-known neural evidence comes from recordings in the striatum of rats learning a maze task. Early in learning, striatal neurons fire throughout the run. As the rats become fluent, many neurons fire mainly at the start and the end of the sequence, and much less in the middle. This pattern is called task bracketing. It suggests the sequence is being packaged: the brain marks where the unit begins and ends, and the middle runs with less moment-to-moment control.
Chunking has three practical consequences.
- Fewer decisions. One decision starts the whole sequence, so it takes less effort and attention.
- Speed and smoothness. Steps within a chunk run faster and with less variability.
- Rigidity. A chunk tends to run to its end once started. If you begin the habitual route to work while meaning to go elsewhere, you may notice only after several steps.
A small model of chunking cost
The next snippet counts how many deliberate decisions are needed to run a 12-step routine at different chunk sizes. It is a toy model, not a measurement. It only shows why bundling steps reduces effort.
import math
def decisions_needed(steps, chunk_size):
"""Deliberate decisions needed to run `steps` actions.
Each chunk costs one decision to start. Steps inside a chunk
run without further decisions.
"""
if chunk_size < 1:
raise ValueError("chunk_size must be at least 1")
return math.ceil(steps / chunk_size)
steps = 12
for chunk_size in (1, 3, 4, 12):
count = decisions_needed(steps, chunk_size)
print(f"chunk size {chunk_size:>2}: {count:>2} decisions")This prints 12, 4, 3 and 1 decisions. A fully chunked routine needs one decision to begin. The model leaves out the cost: a large chunk is harder to modify midway, which is the rigidity described above.
What this means for building habits
The brain-level picture supports several points from earlier chapters.
- Stable context matters because chunks are cued. The start of a chunk needs a reliable trigger. A varying cue means the trigger sometimes fails, and the sequence never gets bracketed as a unit.
- Consistent sequences chunk better. If you change the order or content of a routine each day, there is no stable unit to store. Keep the early version of a new routine small and the same each time.
- Repetition shifts control gradually. The move from caudate-like to putamen-like control is slow and uneven, which fits the levelling-off curve and the wide range of formation times.
- Rewards support the early phase. Dopamine prediction errors help set values while the associative loop is still in charge.
Limits of the evidence
There are four limits you should keep in mind when you read this literature.
- Species gap. Rodent regions and primate regions are only roughly matched. Devaluation tests are also harder to run in humans, and results in human studies are mixed.
- Reverse inference. Seeing putamen activity does not prove that a person is acting habitually. That region has other roles.
- Different meanings of "habit". Laboratory habits, defined by insensitivity to outcome, differ from everyday habits, defined by context-triggered automatic repetition. They are related but not identical.
- Chunking is not the same as habit. A skilled pianist's sequence is chunked, yet the pianist can still choose to play it for a goal. Chunking describes how an action is packaged. Habit describes how an action is triggered and whether it depends on its outcome. Real behaviour often involves both.
Exercises
Exercise
A rat has been trained for weeks to press a lever for food. After the food is devalued by feeding to satiety, the rat keeps pressing at the same rate. Which striatal region is most likely driving this behaviour, and what does the result suggest?
Show answer
The dorsolateral striatum (putamen-like in primates) is most likely driving it. Continued pressing despite a devalued outcome means the behaviour is insensitive to its outcome, which is the laboratory definition of a habit. It suggests that stimulus-response control has taken over from goal-directed control.
Exercise
In the maze recordings, striatal activity concentrates at the start and end of a learned sequence. What does this task bracketing suggest about how the brain stores the sequence, and what is one practical cost of this storage?
Show answer
It suggests the brain stores the sequence as a single chunk, marking where the unit begins and ends so the middle can run with less control. One cost is rigidity: once a chunk starts it tends to run to its end, so changing course midway is harder and you may notice a mistake only after several steps.
Exercise
Using the decisions_needed function, how many decisions does a 10-step routine need at chunk size 4, and why does a larger chunk size not always help in practice?
Show answer
It needs 3 decisions, since ceil(10 / 4) = 3. A larger chunk reduces the number of decisions but makes the routine less flexible, because a chunk is harder to interrupt or modify once it has started. The toy model counts only the decision savings and leaves this cost out.