Sub topic 5
Negative Reinforcement: Escape and Avoidance
This chapter assumes you know the four consequence types from the previous chapters (positive and negative reinforcement, positive and negative punishment) and the three-term contingency of antecedent, behavior, and consequence. It also assumes you can read short Python snippets.
What negative reinforcement means
Negative reinforcement is a procedure in which a behavior becomes more likely because it removes, reduces, or prevents an aversive stimulus. An aversive stimulus is something the organism tends to act to get away from, such as loud noise, pain, nagging, or an unpleasant task.
The word "negative" means a stimulus is taken away. It does not mean the outcome is bad, and it does not mean the behavior is bad. The word "reinforcement" means the behavior increases in future. Both parts must hold. If the stimulus is removed and the behavior does not become more frequent, you have not observed negative reinforcement.
A familiar example: your phone alarm is blaring, you press snooze, and the sound stops. Pressing snooze is more likely the next morning. The removal of the sound reinforced the pressing.
The contingency in three terms
Negative reinforcement fits the three-term contingency. The antecedent contains an aversive stimulus, the behavior is a response, and the consequence is that the aversive stimulus ends or never arrives.
| Antecedent | Behavior | Consequence | Effect on behavior |
|---|---|---|---|
| Headache | Take a painkiller | Pain fades | Taking painkillers becomes more likely |
| Baby crying | Parent picks up baby | Crying stops | Picking up becomes more likely |
| Hard worksheet | Student asks to go to the restroom | Task is removed | Asking to leave becomes more likely |
| Seat belt chime | Fasten the belt | Chime stops | Fastening becomes more likely |
The baby example shows an important feature. The parent's picking up is negatively reinforced by the end of crying. The baby's crying is positively reinforced by being held, if holding follows crying. Two people can each be reinforced in the same interaction. Analyze one person's behavior at a time.
Escape and avoidance
Negative reinforcement comes in two forms, and they differ in when the response happens.
- Escape is a response made while the aversive stimulus is present, and it ends that stimulus. Turning off the blaring alarm is escape.
- Avoidance is a response made before the aversive stimulus arrives, and it prevents the stimulus. Setting the alarm to a quieter sound, or leaving the phone in another room so you never hear a call, is avoidance.
Avoidance usually develops after escape. A rat in a chamber with an electrified floor first learns to escape by jumping to a safe compartment once the shock starts. If a warning signal, such as a tone, reliably comes before each shock, the rat starts jumping at the tone and the shock never happens. The tone is now a conditioned aversive stimulus, which is a signal that has become aversive through its pairing with the original one. This is a link to classical conditioning from your prerequisites. Escape from the tone is what reinforces the early jump.
Why avoidance is puzzling
Avoidance poses a puzzle. When the avoidance response works, nothing happens. No shock arrives, so what is reinforcing the response? A "nothing" seems an odd consequence.
Two main accounts address this.
- Two-factor theory. Learning has two stages. First, classical conditioning makes the warning signal aversive because it predicts the shock. Second, the avoidance response is reinforced by escape from the now-aversive signal. The reduction of fear at the signal is the reinforcer, so something does change.
- Operant (shock-frequency reduction) accounts. The reinforcer is the lower overall rate of aversive events that the response produces, and no mediating fear is required. Experiments in which animals avoid shocks without any warning signal support this view, because two-factor theory depends on a signal.
Both accounts have supporting evidence, and you do not need to pick one to classify examples. What matters in practice is that avoidance can be maintained by events that never occur.
Why avoidance resists extinction
This leads to a major gotcha. Suppose the shock is turned off permanently. The animal keeps jumping at the tone, so it never experiences that the shock has gone. The avoidance response blocks the chance to learn that the danger has ended. Avoidance behavior can therefore persist for a very long time.
This matters in human settings. A person with a fear of dogs crosses the street whenever a dog is near. Crossing is negatively reinforced by relief. Because the person never stays near a dog and sees that nothing bad happens, the fear is rarely tested. Exposure-based therapies work partly by preventing the avoidance response, so the feared outcome can be shown not to occur. This is extinction applied to the avoidance contingency, and it is why the response must be blocked and not just discouraged.
Simulating escape learning
The snippet below models a simple learner. On each trial an aversive stimulus is on. The learner can press a lever (escape) or do nothing. Pressing ends the stimulus at once. After each press the tendency to press increases, mimicking reinforcement by removal. It runs as shown.
import random
random.seed(3)
def run_trials(n_trials=30, start_p=0.1, step=0.08):
p_press = start_p
history = []
for _ in range(n_trials):
pressed = random.random() < p_press
if pressed:
# The aversive stimulus is removed, so pressing is reinforced.
p_press = min(0.95, p_press + step)
history.append(pressed)
return history, p_press
history, final_p = run_trials()
early = sum(history[:10])
late = sum(history[-10:])
print("presses in first 10 trials:", early)
print("presses in last 10 trials:", late)
print("final press probability:", round(final_p, 2))Early trials contain few presses, and later trials contain many. The probability of pressing rises only on trials where the response removed the stimulus. That rise is the defining feature of reinforcement.
Everyday and clinical examples
Negative reinforcement is common and often invisible, because the reinforcer is relief.
- Task avoidance. A student who disrupts class and is sent out of the room escapes the work. If this happens reliably, disruption becomes more likely. The teacher may believe they are punishing the student, but the function of the consequence is escape.
- Parent and child. A child whines until a parent relents. The parent's giving in is negatively reinforced when the whining stops. The child's whining is positively reinforced if it produces what the child wanted. Each reinforces the other, so the pattern strengthens.
- Safety behaviors in anxiety. Checking a lock repeatedly, or leaving a party early, brings relief. Relief reinforces the behavior, and the anxiety stays because the person never learns that the feared event would not have happened.
- Compliance. Fastening a seat belt to stop a chime, or paying a bill to end reminder calls, are mild everyday cases.
Common errors
- Calling it punishment. Because the stimulus is aversive, people assume the procedure is punishing. The test is the change in behavior. If the behavior increases, it is reinforcement.
- Reading "negative" as "bad." In operant terminology, negative means removal and positive means addition. A doctor who eases pain with a medicine that the patient then keeps using is relying on negative reinforcement, which is not a moral judgment.
- Mixing up whose behavior is analyzed. In the crying baby example, the baby and the parent have different contingencies. State the actor before you classify.
- Confusing negative reinforcement with negative punishment. Negative punishment removes a pleasant stimulus and behavior decreases, as when a phone is taken away after misbehavior. Negative reinforcement removes an aversive stimulus and behavior increases.
- Ignoring the function of avoidance. Responses that produce no visible consequence can still be reinforced, because preventing an event counts as a consequence.
Using the classifier from earlier
The two-question rule from the consequence matrix handles negative reinforcement directly. Ask whether a stimulus was added or removed, and whether behavior increased or decreased.
def classify(stimulus_change, behavior_effect):
table = {
("added", "increases"): "positive reinforcement",
("removed", "increases"): "negative reinforcement",
("added", "decreases"): "positive punishment",
("removed", "decreases"): "negative punishment",
}
return table[(stimulus_change, behavior_effect)]
# Pressing snooze removes the alarm, and snoozing becomes more frequent.
print(classify("removed", "increases"))
# A parent takes away a toy, and the misbehavior becomes less frequent.
print(classify("removed", "decreases"))Avoidance fits the "removed" row when you treat prevention as the removal of a stimulus that would otherwise have occurred.
Exercise
A teenager is nagged every evening until homework is done. After a few weeks the teenager starts homework right after dinner, before any nagging begins. (a) Which behavior is escape and which is avoidance? (b) Why might the teenager keep starting early even if the parent stops nagging altogether?
Show answer
(a) Doing homework while the nagging is happening, and thereby ending it, is escape. Starting homework before the nagging begins is avoidance, because it prevents the aversive stimulus. (b) Avoidance responses stop the teenager from ever learning that nagging would no longer occur, so the behavior can persist after the nagging has stopped. The teenager would have to skip starting early and see that no nagging follows for the contingency to extinguish.
Exercise
A student tells a joke in class, the teacher sends the student into the hallway, and over the following weeks the student tells more disruptive jokes during hard lessons. Classify the teacher's consequence and explain.
Show answer
The consequence is negative reinforcement for the student's disruption. Being sent out removes the aversive hard lesson, and disruption during hard lessons increased. Whatever the teacher intended, the function was escape, so it was not punishment. To change the pattern, the teacher could stop letting disruption end the task and reinforce on-task behavior instead.