Sub topic 11
Discriminative stimuli and stimulus control
This chapter assumes you know the three-term contingency (antecedent, behavior, consequence), the four consequence types, and extinction. The Python snippet is optional and needs only basic function and dictionary syntax.
Behavior depends on context
Operant behavior is not emitted at random. A pigeon that is reinforced for pecking a key when a green light is on learns to peck under green and stop pecking when the light is off. You answer a ringing phone and ignore a ringing phone in a movie. The antecedent, the first term of the contingency, is what carries this information about when a behavior pays off.
Two terms describe the antecedents:
- Discriminative stimulus (SD): a stimulus in whose presence a response has been reinforced. It signals that the response is likely to produce a consequence.
- S-delta (SΔ): a stimulus in whose presence the same response has not been reinforced, so it has been on extinction.
An SD does not force the behavior. A respondent (classical) stimulus elicits a reflex, as food elicits salivation. An SD only sets the occasion for a response, and the response remains a voluntary operant. The SD is predictive, not causal. Behavior occurs more often in its presence because it has paid off there.
How discrimination is trained
Discrimination training reinforces a response in the presence of one stimulus and withholds reinforcement in the presence of another.
- Reinforce the response when the SD is present.
- Do not reinforce the response when the SΔ is present.
- Repeat across many trials.
Responding under the SD is maintained. Responding under the SΔ undergoes extinction and declines. Once the difference is reliable, the behavior is under stimulus control. That means the probability of the response differs reliably depending on which stimulus is present.
A simulation of discrimination training
The snippet models a learner whose probability of responding changes only when it responds. Responses under the "light on" SD are reinforced and become more likely. Responses under "light off" go unreinforced and become less likely.
import random
random.seed(3)
p = {"light_on": 0.5, "light_off": 0.5} # probability of responding
def trial(stimulus):
responded = random.random() < p[stimulus]
if responded:
if stimulus == "light_on": # SD: response is reinforced
p[stimulus] = min(0.95, p[stimulus] + 0.05)
else: # S-delta: response is not reinforced
p[stimulus] = max(0.05, p[stimulus] - 0.05)
for _ in range(200):
trial("light_on")
trial("light_off")
print({k: round(v, 2) for k, v in p.items()})
# Expect light_on near 0.95 and light_off near 0.05The two floor and ceiling values stop the probabilities from reaching exactly 0 or 1. Real behavior also rarely becomes perfectly stimulus-bound.
Generalization and discrimination
Learning to respond under one stimulus does not stay limited to that stimulus. Stimulus generalization is responding to stimuli that resemble the trained SD. A child reinforced for saying "dog" at a beagle will also say "dog" at a collie and, at first, at a fox.
If you test responding across a range of stimuli, such as tones of different pitch, you get a generalization gradient. Responding is highest at the trained value and falls off as the test stimulus becomes less similar. A steep gradient means tight stimulus control. A flat gradient means the behavior occurs almost regardless of the stimulus.
Discrimination is the opposite process, in which responding becomes specific to the SD. Generalization and discrimination are not separate abilities. Reinforcing "dog" for beagles and collies and withholding reinforcement for foxes and cats sharpens the gradient. This is how many concepts are taught: the learner responds to a shared feature across varied examples (generalization within the class) and not to non-examples (discrimination between classes).
Stimulus control in everyday behavior
Stimulus control accounts for much behavior that looks like "knowing the rules":
| Situation | SD | Response | Consequence that built it |
|---|---|---|---|
| Driving | Green traffic light | Press accelerator | Movement toward the goal without collision |
| Driving | Red light | Press brake | Avoids crashes and tickets |
| Office | Open door, colleague at desk | Ask a question | Receive an answer |
| Office | Closed door | Do not knock | Knocking was met with annoyance |
| Phone | Ringtone | Pick up | Contact with a caller |
Stimuli can also signal punishment. A police car behind you is an SD for slowing down, because speeding has been punished in its presence. The sight of the car does not cause the slowing the way a reflex would. It indicates that a punishing consequence is now likely if you speed.
Transferring and fading control
Often you want a behavior to occur under a new stimulus. Two common tools:
- Prompts are extra antecedents that make the correct response more likely, such as pointing at the right answer. They are added during teaching and removed later.
- Fading is the gradual removal of a prompt so that control transfers to the natural SD. A teacher may first say a word with the object in view, then say only the first sound, then say nothing, until the object alone evokes the response.
Prompts can create a problem called prompt dependence. The learner responds only when the prompt is present, because the prompt, not the natural cue, became the SD. Fading must be gradual enough to avoid errors, but it must actually happen.
Common errors
- Treating an SD as a cause. A ringing phone does not make you answer. If answering stopped being reinforced, ringing would lose its control.
- Confusing an SD with a motivating operation. An SD signals that a response will be reinforced. A motivating operation, such as food deprivation, changes how much the reinforcer is worth. Both affect behavior, but they are different variables.
- Confusing an SD with a conditioned stimulus. A conditioned stimulus in classical conditioning elicits a reflexive response through pairing with an unconditioned stimulus. An SD is tied to a response-consequence relation.
- Ignoring the SΔ. If a behavior is reinforced regardless of context, as when a parent gives in sometimes in public and sometimes at home without a clear pattern, no discrimination develops and the behavior occurs everywhere.
- Overgeneralization after narrow training. Teaching with a single example (one toy, one room, one person) usually produces narrow control. Varying examples broadens appropriate generalization.
Exercise
A dog is reinforced with a treat for sitting when its owner says "sit" and is never reinforced for sitting when the owner says nothing. After training, the dog sits almost only when it hears the word. Name the SD, the SΔ and the term for the resulting relationship. Then explain what the dog's behavior would look like if it sat equally often in response to "sit," "sip," and "sick." Which concept does that describe?
Show answer
The SD is the spoken word "sit," and the SΔ is the absence of the word (or other cues for which sitting was never reinforced). The resulting relationship is stimulus control, since the probability of sitting differs reliably between the two conditions. If the dog sat equally often at "sit," "sip," and "sick," the generalization gradient would be flat across similar-sounding words. This is stimulus generalization with weak discrimination, which could be corrected by reinforcing sitting for "sit" and withholding reinforcement for the similar words.
Exercise
A tutor gives a student a hint ("remember to carry the one") on every problem. The student answers correctly with the hint but fails without it. What went wrong, and what procedure should the tutor use?
Show answer
The hint became the SD for correct responding, which is prompt dependence, so the natural cues in the problem never took control. The tutor should fade the prompt gradually, for example by shortening it to "what comes next?" and then removing it. The fading should be paced so the student keeps answering correctly and keeps being reinforced, which moves control to the problem itself.