Off-policy TD control
Q-learning is an off-policy TD control algorithm in reinforcement learning.
Finding Q-learning’s Place
Q-learning is the name of a particular algorithm. The supplied definition places it within reinforcement learning and identifies it more precisely as an off-policy TD control algorithm. Reading that description accurately is the first skill: identify the broad field, the learning approach, the control role, and the policy relationship without adding mechanics that have not yet been introduced.
Q-learning is an off-policy TD control algorithm in reinforcement learning.
Reading the Definition Precisely
Classifying a named algorithm
Use the supplied definition to classify Q-learning without adding an unsupported defining expression or implementation detail.
- 1Identify the field
The phrase reinforcement learning identifies the broad area in which Q-learning belongs.
- 2Identify the learning approach
The abbreviation TD identifies temporal-difference learning in the supplied description.
- 3Identify the role
The word control indicates that the method belongs to TD control rather than being described only as value prediction.
- 4Identify the policy category
The word off-policy identifies the relationship between the policy being improved or evaluated and the actions used to produce experience.
Q-learning is a reinforcement learning algorithm in the off-policy TD control category.
Two Jobs in TD Control
TD control combines two activities. First, value prediction makes the value function better at predicting returns for the current policy. Second, local policy improvement uses that value information to improve the policy. These activities work together: experience supports value prediction, and the resulting value information supports a local improvement in action preference.
The word control matters because the process is not limited to predicting the returns of a fixed policy. The policy is also improved locally using the value function. Therefore, the on-policy or off-policy label does not say whether prediction or improvement occurs; TD control includes both. The label identifies the relationship between the policy being improved or evaluated and the actions used to produce experience.
Policy Relationships
The key diagnostic question is: does the current policy select the actions used to produce experience? In an on-policy method, the current policy is used to select actions. In an off-policy method, the current policy is not used to select those actions. The policy being improved need not be the policy that selected the observed actions.
| Method | Policy category | Source classification |
|---|---|---|
| Sarsa | On-policy | The current policy selects actions |
| Q-learning | Off-policy | The current policy does not select the actions used to produce experience |
| Expected Sarsa | Off-policy | The current policy does not select the actions used to produce experience |
Policy categories identified in the supplied material
Exploration and Learning
An agent must choose actions while it is still learning. The resulting experience helps the value function estimate returns, and that value information can then improve the policy locally. The central design issue is maintaining sufficient exploration while learning from experience. Action choices matter twice: they determine what experience is collected, and they are connected to the policy being evaluated or improved.
Classification Practice
A policy-category check
A learner is given three names from the material: Sarsa, Q-learning, and Expected Sarsa. Classify each as on-policy or off-policy.
- 1Classify Sarsa
The source identifies Sarsa as an on-policy TD control method because the current policy is used to select actions.
- 2Classify Q-learning
The source identifies Q-learning as an off-policy TD control algorithm.
- 3Classify Expected Sarsa
The source also classifies Expected Sarsa as off-policy.
- 4Check the diagnostic question
The distinction concerns the relationship between the current policy and the actions used to produce experience, not whether TD control includes prediction or improvement.
Sarsa is on-policy. Q-learning and Expected Sarsa are off-policy.
Explain in one or two sentences why the statement Q-learning is a reinforcement learning algorithm is less precise than the statement Q-learning is an off-policy TD control algorithm in reinforcement learning.
Hints
- Name the broad field first.
- Then identify the learning approach, control role, and policy category.
Common mistake Treating Q-learning as the name of reinforcement learning as a whole.
What it looks likeQ-learning and reinforcement learning are presented as interchangeable names.
Why it failsThe source identifies Q-learning as a particular algorithm within reinforcement learning.
Do this insteadDescribe reinforcement learning as the broad field and Q-learning as an algorithm within it.
Common mistake Assuming that off-policy means TD control does not perform value prediction.
What it looks likeAn off-policy method is described as policy improvement only.
Why it failsTD control combines value prediction for the current policy with local policy improvement.
Do this insteadUse off-policy to describe the policy relationship, while retaining both prediction and improvement as parts of TD control.
Common mistake Inferring a complete algorithmic expression from the classification alone.
What it looks likeThe phrase off-policy TD control is treated as if it supplies Q-learning’s defining expression.
Why it failsThe supplied material does not provide that defining expression.
Do this insteadKeep the conclusion at the supported level: Q-learning belongs to the off-policy TD control category.
Common mistake Classifying a method without asking which policy selects actions.
What it looks likeA method is called on-policy or off-policy without considering the relationship between action selection and the current policy.
Why it failsThat relationship is the key diagnostic question in the supplied explanation.
Do this insteadAsk whether the current policy is used to select the actions that produce experience.
Key Takeaways
- 1Q-learning is an off-policy TD control algorithm in reinforcement learning.
- 2TD control combines value prediction for the current policy with local policy improvement.
- 3On-policy methods use the current policy to select actions; Sarsa is the supplied example.
- 4Off-policy methods do not use the current policy to select actions; Q-learning and Expected Sarsa are the supplied examples.
- 5Exploration is central because the agent must collect informative experience while its value function and policy are being improved.
At a glance
- Q-learning is a particular reinforcement learning algorithm, not the name of reinforcement learning as a whole.
- Its precise supplied classification is off-policy TD control.
- TD control joins value prediction with local policy improvement.
- The on-policy or off-policy distinction concerns the relationship between the current policy and the actions producing experience.
- Sarsa is on-policy, while Q-learning and Expected Sarsa are off-policy in the supplied material.