Value Functions and Q Functions
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
30 questions
- 1Value functions and Q functions represent the sum of future expected_____starting from a state or state-action pair.
Hint
Think about what reinforcement learning agents maximize over time.
Answer
rewards
- 2In policy gradient methods, we increase the log likelihood of actions that have a_____future reward, subtracting a baseline.
Hint
Compare with the baseline to encourage above-average actions.
Answer
higher
- 3Actor-critic methods introduce an additional step in the loop: first estimate the_____for the current policy, then use it to improve the policy.
Hint
This estimate helps the actor decide which actions are good.
Answer
expected future reward
- 4In off-policy actor-critic, we can use past data to estimate a Q function by using a neural network that takes a state and_____as input and outputs a value.
Hint
Q functions depend on both the state and the action taken.
Answer
action
- 5For the off-policy Q-learning update, we sample a next action from the_____rather than from the past policy that generated the data.
Hint
We need to evaluate the Q function for the policy we are improving, not the old one.
Answer
current policy
- 6For accurate Q values in off-policy learning, you need sufficient_____in your dataset to cover actions your current policy might take.
Hint
The dataset must include diverse state-action pairs.
Answer
coverage
- 7If you have an accurate estimate of the Q function for a policy, you can formulate a new deterministic policy that always takes the action with the_____Q value.
Hint
Greedy action selection.
Answer
maximum
- 8In the 2D navigation example with a policy that always goes right, the new greedy policy based on Q is_____than the original policy.
Hint
Compare the expected returns from initial states.
Answer
better
- 9The two-step iterative procedure of policy evaluation and policy improvement is called_____.
Hint
It alternates between estimating the value of the current policy and improving it.
Answer
policy iteration
- 10Q-learning attempts to find a Q function that satisfies the Bellman_____equation.
Hint
This equation involves a max over next actions.
Answer
optimality
- 11In a simple tabular setting with sufficient exploration, Q-learning is guaranteed to_____.
Hint
Think about the theoretical guarantee under ideal conditions.
Answer
converge
- 12Q-learning is considered off-policy because it can learn from data generated by any_____.
Hint
The algorithm does not require the data to come from the current policy.
Answer
policy
- 13A common exploration policy in Q-learning is_____-greedy, which takes a random action with probability ε and the greedy action otherwise.
Hint
The parameter ε controls the exploration rate.
Answer
epsilon
- 14Another exploration strategy is_____exploration, where actions are sampled proportionally to exponentiated Q values.
Hint
Named after a distribution used in statistical mechanics.
Answer
Boltzmann
- 15In the full Q-learning algorithm, data is collected using an exploration policy and added to a_____.
Hint
A memory structure that stores past transitions.
Answer
replay buffer
- 16During Q-learning, we sample a batch of data from the replay buffer_____to decorrelate the data.
Hint
Random sampling to break temporal correlations.
Answer
uniformly
- 17In the Q-learning loop, after collecting data, you can take_____gradient steps (K) on the Q function before collecting more data.
Hint
K is a hyperparameter that controls how many updates per data collection.
Answer
multiple
- 18The DQN algorithm stabilizes Q-learning by using a_____network, whose parameters are frozen and updated periodically.
Hint
This network provides fixed targets for a number of steps.
Answer
target
- 19In DQN, the target network parameters are copied from the_____network every C steps.
Hint
The network being trained becomes the source for the frozen copy.
Answer
current
- 20In Q-learning, the loss function often_____over training because the Q values increase in scale.
Hint
This is contrary to normal supervised learning expectations.
Answer
increases
- 21Q-learning tends to_____the true Q values because the max operator exploits noise.
Hint
The max over actions picks actions with erroneously high values.
Answer
overestimate
- 22Double DQN reduces overestimation by using the current network for action selection and the_____network for evaluation.
Hint
Decoupling action selection and evaluation.
Answer
target
- 23N-step returns in Q-learning use a target that sums rewards over n steps and then adds the max Q at the_____state.
Hint
The horizon of the reward sum.
Answer
n-th next
- 24A downside of n-step returns in Q-learning is that the rewards come from the_____policy, not the optimal policy.
Hint
The policy that collected the data may differ from the target policy.
Answer
behavior
- 25To extract a policy from a trained Q function, you take the_____over actions at each state.
Hint
Greedy selection.
Answer
argmax
- 26Replay buffers are typically managed with a_____(first-in-first-out) principle to discard old data.
Hint
Acronym for a common queue discipline.
Answer
FIFO
- 27PPO is great when you care about stability and ease of use, but it is very_____.
Hint
It requires many interactions with the environment.
Answer
data inefficient
- 28DQN works well when you have discrete actions or_____action spaces.
Hint
Action spaces that are not too large.
Answer
low-dimensional
- 29Soft actor-critic (SAC) is great when you care most about_____, but requires more tuning.
Hint
Getting the most out of each interaction.
Answer
data efficiency
- 30The three tricks to stabilize Q-learning are: target network, double DQN, and_____.
Hint
Using a multi-step reward horizon.
Answer
n-step returns

Ask anything
We've read this whole study set, so questions about it get the best answers.