Prediction and Control in Reinforcement Learning
Instrumental conditioning is learning in which consequences modify behavior.
A Consequence Changes What Happens Next
Consider an animal that performs an action and then receives something it likes. If that action becomes more likely later, the important learning event is not simply that the animal experienced a reward. The reward followed a particular behavior, and the consequence changed the future tendency to produce that behavior.
Instrumental conditioning is learning in which consequences modify behavior.
This is a control relationship. A behavior leads to a consequence, and that consequence is associated with a change in future behavior. In reinforcement learning, the algorithmic counterpart is policy improvement: the agent's future action choices are changed in light of what follows its actions.
Contingency Makes the Difference
For the instrumental arrangement described here, a reinforcing stimulus must be contingent on the behavior. Contingent means that the consequence occurs because it follows a particular behavior in the learning arrangement, rather than being merely an event the learner experiences independently of that behavior.
| Question | Instrumental arrangement | Broader prediction setting |
|---|---|---|
| What is central? | A behavior and its consequence | How an environmental feature is expected to unfold |
| Must the stimulus evaluate an earlier action? | The reinforcing consequence is contingent on behavior | No; a predicted stimulus need not be a reward or penalty evaluating an earlier action |
| What can change? | Future behavior | An estimate of an upcoming quantity |
The defining emphasis of instrumental conditioning is the behavior-consequence relationship; prediction is a broader activity.
This contingency-based distinction also limits the connection with classical conditioning. Prediction algorithms and classical conditioning can both involve predicting upcoming stimuli. However, the predicted stimulus does not have to be a reward or penalty that evaluates an earlier action. Therefore, prediction is not automatically an instrumental or classical-conditioning process; its meaning depends on what is being predicted and how that quantity relates to behavior and consequences.
From Consequences to Policy Improvement
A reinforcement-learning policy describes the agent's action choices. Policy improvement changes those choices so that some actions become more likely and others become less likely. Rewards increase the tendency toward rewarded behavior, while penalties decrease the tendency toward penalized behavior.
The diagram should be read as a control loop, not as a claim about one particular internal mechanism. The experimental consequence supplies the direction of change: a rewarded behavior becomes more likely, whereas a penalized behavior becomes less likely. Reinforcement learning's policy-improvement algorithms provide an algorithmic counterpart to this form of control.
Choosing Between Two Behaviors
An animal can perform behavior A or behavior B. When behavior A is followed by something the animal likes, behavior A becomes more likely later. When behavior B is followed by a penalty, behavior B becomes less likely later. How does this illustrate the connection between instrumental conditioning and policy improvement?
- 1Identify the behavior
The relevant learning event is not just the receipt of a stimulus. Behavior A and behavior B are the actions whose consequences are being considered.
- 2Identify the contingency
The liked consequence follows behavior A, and the penalty follows behavior B. Each consequence is connected to a particular behavior.
- 3Track the behavioral change
The tendency to produce behavior A increases, while the tendency to produce behavior B decreases.
- 4Translate to reinforcement learning
An algorithmic policy-improvement process changes future action choices in the same directional pattern: it favors the rewarded behavior and disfavors the penalized behavior.
Instrumental conditioning describes the behavior-consequence control relationship; policy improvement is its reinforcement-learning algorithmic counterpart.
Prediction Looks Toward the Future
A prediction algorithm in reinforcement learning estimates a quantity whose value depends on how features of the environment are expected to unfold in the future.
A useful way to understand prediction is to follow one target quantity through time. First identify the environmental feature to be predicted. Next consider how that feature is expected to unfold as the agent continues interacting with the environment. Finally produce an estimate of the future-dependent quantity.
When a prediction algorithm estimates future reward under a particular policy, it is performing policy evaluation. The estimate answers a question about the policy being followed: what amount of future reward is expected as the agent continues interacting with the environment?
Reward Is One Prediction Target
| Prediction target | What is estimated? | Relation to policy evaluation |
|---|---|---|
| Future reward | The reward expected as the agent continues interacting with the environment | When estimated under a policy, this is policy evaluation |
| Upcoming stimulus | How a stimulus is expected to unfold in the future | It need not evaluate an earlier action |
| Other numerical-valued environmental feature | The expected future behavior of that feature | It is prediction, but not necessarily future-reward evaluation |
Prediction is broader than estimating reward. The target can be any numerical-valued environmental feature whose expected future behavior is of interest.
Future reward is the main reinforcement-learning example, but it is not the boundary of prediction. Prediction algorithms can estimate upcoming stimuli and other numerical-valued environmental features. The important question is not whether the target is called a reward; it is whether the target is a quantity whose expected future behavior can be estimated.
Why Prediction Supports Control
Many reinforcement-learning questions concern what has not happened yet. An agent may need an estimate of the reward it can expect while it continues interacting with the environment. That estimate provides information about the consequences associated with the policy being evaluated.
The connection is indirect but important. A prediction algorithm estimates future reward associated with the policy being evaluated. Policy evaluation is an integral component of algorithms for improving policies, so prediction can support improvement without being identical to improvement itself.
Common mistake Treating reward experience as sufficient for instrumental conditioning
What it looks likeSaying that learning occurred merely because the animal received something it liked
Why it failsThe relevant relationship is that the reward followed a particular behavior and that the behavior later changed.
Do this insteadIdentify both the behavior and the consequence, then ask whether the consequence was contingent on that behavior.
Common mistake Using prediction and policy improvement as synonyms
What it looks likeCalling a future-reward estimate itself a policy change
Why it failsFuture-reward estimation is policy evaluation; evaluation contributes to, but is not identical to, policy improvement.
Do this insteadSeparate estimating what a policy produces from changing the policy's future action choices.
Common mistake Assuming every prediction is a reward prediction
What it looks likeTreating an upcoming stimulus as if it must be a reward or penalty
Why it failsPrediction algorithms can estimate upcoming stimuli and other numerical-valued environmental features.
Do this insteadName the target quantity first, then determine whether it is future reward, an upcoming stimulus, or another numerical-valued feature.
Common mistake Assuming every prediction task is a classical-conditioning task
What it looks likeConcluding that predicting any environmental quantity automatically creates a conditioning relationship
Why it failsThe connection with classical conditioning is narrower: both can involve predicting upcoming stimuli, but a predicted stimulus need not evaluate an earlier action.
Do this insteadDescribe the predicted quantity and its relationship to behavior before assigning a conditioning interpretation.
Check the Mechanism
A learner observes that an agent repeatedly performs behavior X. Something the agent likes follows behavior X, and behavior X becomes more likely later. Explain the case using all four terms: behavior, contingency, prediction, and policy improvement.
Hints
- Start by identifying what happens before the future tendency changes.
- Ask whether the liked consequence follows a particular behavior.
- Decide whether the case describes an estimate of future reward, a change in action tendency, or both.
- 1Instrumental conditioning is learning in which consequences modify behavior. In the arrangement described here, the reinforcing consequence is contingent on a particular behavior. Reinforcement learning expresses a corresponding form of control through policy improvement, in which future action tendencies change. A prediction algorithm estimates how a target quantity is expected to unfold in the future. When the target is future reward under a policy, the prediction is policy evaluation. Evaluation supports policy improvement but is not the same operation. Prediction is broader than reward estimation because its targets can also include upcoming stimuli and other numerical-valued environmental features.
Key Takeaways
- Instrumental conditioning links a behavior to a consequence that modifies future behavior.
- Contingency is central: the reinforcing consequence follows the relevant behavior rather than occurring independently of it.
- Policy improvement is the reinforcement-learning algorithmic counterpart to consequence-based control.
- Prediction estimates future-dependent quantities; future reward prediction under a policy is policy evaluation.
- Prediction is broader than reward estimation and can target upcoming stimuli or other numerical-valued environmental features.