1. Home
  2. Explore
  3. Computer Science
  4. Value Functions and Q Functions

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Value Functions and Q Functions

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Value Functions and Policies
Value functions and Q functions represent the sum of future expected
starting from a state or state-action pair.

30 questions

  1. 1
    Value 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

  2. 2
    In 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

  3. 3
    Actor-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

  4. 4
    In 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

  5. 5
    For 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

  6. 6
    For 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

  7. 7
    If 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

  8. 8
    In 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

  9. 9
    The 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

  10. 10
    Q-learning attempts to find a Q function that satisfies the Bellman
    _____
    equation.
    Hint

    This equation involves a max over next actions.

    Answer

    optimality

  11. 11
    In a simple tabular setting with sufficient exploration, Q-learning is guaranteed to
    _____
    .
    Hint

    Think about the theoretical guarantee under ideal conditions.

    Answer

    converge

  12. 12
    Q-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

  13. 13
    A 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

  14. 14
    Another exploration strategy is
    _____
    exploration, where actions are sampled proportionally to exponentiated Q values.
    Hint

    Named after a distribution used in statistical mechanics.

    Answer

    Boltzmann

  15. 15
    In 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

  16. 16
    During 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

  17. 17
    In 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

  18. 18
    The 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

  19. 19
    In 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

  20. 20
    In 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

  21. 21
    Q-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

  22. 22
    Double DQN reduces overestimation by using the current network for action selection and the
    _____
    network for evaluation.
    Hint

    Decoupling action selection and evaluation.

    Answer

    target

  23. 23
    N-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

  24. 24
    A 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

  25. 25
    To extract a policy from a trained Q function, you take the
    _____
    over actions at each state.
    Hint

    Greedy selection.

    Answer

    argmax

  26. 26
    Replay buffers are typically managed with a
    _____
    (first-in-first-out) principle to discard old data.
    Hint

    Acronym for a common queue discipline.

    Answer

    FIFO

  27. 27
    PPO 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

  28. 28
    DQN works well when you have discrete actions or
    _____
    action spaces.
    Hint

    Action spaces that are not too large.

    Answer

    low-dimensional

  29. 29
    Soft 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

  30. 30
    The three tricks to stabilize Q-learning are: target network, double DQN, and
    _____
    .
    Hint

    Using a multi-step reward horizon.

    Answer

    n-step returns

1 of 30
Question 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent