Sub topic 4
Why Rewards Help the Link Form
This chapter assumes you know what a habit is, and that a cue in a stable context can trigger a learned response. It covers why rewards help that cue-response link form and how to use that when building a habit.
What a reward does in learning
A reward is an outcome that follows an action and makes the action more likely to be repeated in the same situation. It can be external, such as a snack or a compliment. It can also be internal, such as relief, a sense of progress, or enjoying the activity itself.
Rewards matter because the brain learns from outcomes. When an action leads to something better than expected, the link between the situation and that action gets stronger. When it leads to nothing, or something worse, the link gets weaker or stays flat.
The link is the thing that becomes a habit. The reward is not the habit. It is part of what builds the link early on.
Prediction error: better than expected
Learning researchers describe this with the idea of a prediction error. It is the gap between what you expected and what you got.
- If the outcome is better than expected, the error is positive and the link grows.
- If the outcome matches what you expected, little is learned.
- If the outcome is worse than expected, the error is negative and the link shrinks.
This explains a common pattern. The first few times you do something rewarding, the pleasure is a surprise and learning is fast. Once the reward is fully expected, each repetition teaches less. That fits the shape in the habit strength model from the previous chapter: big early gains, then a leveling off.
Timing and size of rewards
Two features of a reward affect how well it helps.
- Timing. A reward that comes right after the action links to it more clearly than a delayed one. Exercise has big long-term benefits, but they arrive weeks later. A small immediate reward, such as a favorite podcast you only hear during workouts, fills the gap.
- Size and reliability. A reward does not need to be large. A small one that follows the action consistently often works better than a large one that is rare. Unpredictable rewards can also keep behavior going, but they are a poor basis for a habit you want to build on purpose.
A small model of reward-driven learning
The code below extends the earlier strength model. Strength now grows in proportion to the prediction error, which is the reward received minus the reward expected. The expectation also updates after each repetition. Run it as written.
def simulate(days=10, reward=1.0, rate=0.3):
expected = 0.0 # reward the learner predicts
strength = 0.0 # link strength, kept simple
for day in range(1, days + 1):
error = reward - expected
strength += rate * error * 0.2
expected += rate * error
print(day, "error:", round(error, 3), "strength:", round(strength, 3))
simulate()The error is large on day 1 and shrinks every day as the reward becomes expected. Strength still rises, but by smaller amounts. This is an illustration of the idea, not a measured result.
Rewards and the move to automaticity
Early in habit formation, rewards help because they teach the brain that the action pays off. Later, a well-practiced habit can run even when the reward is small or absent, because the cue itself now triggers the response. This is one reason a habit can persist after you stop caring about its outcome.
For this to work, the reward must be tied to the action in the same context. A reward given somewhere unrelated does little to strengthen the cue-response link.
Common errors
- Treating a distant benefit as the reward. "I will be healthier in a year" is a goal, not a reward the brain can link to today's action. Add something immediate.
- Rewarding the wrong thing. A treat that cancels the point of the action, such as a large dessert after a workout, can work against your goal.
- Using rewards that need constant willpower. If you must decide each time whether you have "earned" the reward, you are back to deliberate choice.
- Expecting rewards to do all the work. Without a stable cue and repetition, a reward has nothing to attach to.
Exercise
In the simulation, why does the prediction error shrink from day to day even though the reward stays the same?
Show answer
The expected reward is updated after every repetition, so it moves toward the actual reward. The gap between them, which is the error, gets smaller. Once the reward is fully expected, each repetition adds little new learning.
Exercise
You want to build a habit of a ten-minute evening walk, but its benefits take months to appear. Suggest an immediate reward and explain why it helps.
Show answer
For example, listen to a favorite podcast only during the walk. It arrives right after and during the action, in the same context, so the brain links the cue (finishing dinner) and the response (walking) to a positive outcome.