1. Home
  2. Explore
  3. Computer Science
  4. Deep Reinforcement Learning

Study methods

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

Deep Reinforcement Learning

  • 11Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Policy Networks

What is the primary function of a deep policy network in reinforcement learning?

11 questions

  1. 1

    What is the primary function of a deep policy network in reinforcement learning?

    1. A

      To compute the temporal difference error

    2. B

      To estimate the value function for a given state

    3. C

      To parametrize the policy as a neural network that outputs action probabilities

    4. D

      To store and replay past experiences for training

    Correct answer
    C

    To parametrize the policy as a neural network that outputs action probabilities

    Explanation

    A deep policy network uses a neural network to represent the policy function π, taking the state as input and outputting the probability of each action.

  2. 2

    In the policy gradient derivation, what does the gradient of the expected reward with respect to the policy parameters involve?

    1. A

      The gradient of the reward function with respect to the action

    2. B

      The gradient of the log policy multiplied by the quality function

    3. C

      The gradient of the temporal difference error

    4. D

      The gradient of the value function with respect to the state

    Correct answer
    B

    The gradient of the log policy multiplied by the quality function

    Explanation

    The policy gradient is given by the expected value of the quality function times the gradient of the log policy, i.e., ∇θJ=E[Q(s,a)∇θlog⁡πθ(a∣s)]\nabla_\theta J = \mathbb{E}[Q(s,a) \nabla_\theta \log \pi_\theta(a|s)]∇θ​J=E[Q(s,a)∇θ​logπθ​(a∣s)].

  3. 3

    What is the main advantage of using deep Q learning over tabular Q learning?

    1. A

      It requires no experience replay

    2. B

      It eliminates the need for exploration

    3. C

      It guarantees convergence to the optimal policy

    4. D

      It can handle very large or continuous state spaces using function approximation

    Correct answer
    D

    It can handle very large or continuous state spaces using function approximation

    Explanation

    Deep Q learning parametrizes the Q function with a neural network, allowing generalization across states and addressing the curse of dimensionality.

  4. 4

    What loss function is minimized in deep Q learning?

    1. A

      The negative log-likelihood of the policy

    2. B

      The expectation of the squared temporal difference error

    3. C

      The cross-entropy between predicted and target Q values

    4. D

      The mean absolute error between state values

    Correct answer
    B

    The expectation of the squared temporal difference error

    Explanation

    The cost function is L(θ)=E[(r+γmax⁡a′Qθ(s′,a′)−Qθ(s,a))2]L(\theta) = \mathbb{E}\left[\left(r + \gamma \max_{a'} Q_{\theta}(s', a') - Q_{\theta}(s,a)\right)^2\right]L(θ)=E[(r+γmaxa′​Qθ​(s′,a′)−Qθ​(s,a))2], which is the mean squared TD error.

  5. 5

    What is the key architectural innovation in dueling deep Q networks (DDQN)?

    1. A

      Using two separate Q networks to reduce overestimation

    2. B

      Replacing convolutional layers with fully connected layers

    3. C

      Splitting the Q function into a value function and an advantage function

    4. D

      Adding a recurrent layer to handle partial observability

    Correct answer
    C

    Splitting the Q function into a value function and an advantage function

    Explanation

    DDQN decomposes the Q function as Q(s,a)=V(s)+A(s,a)Q(s,a) = V(s) + A(s,a)Q(s,a)=V(s)+A(s,a), allowing the network to learn state values separately from the advantage of each action.

  6. 6

    In an actor-critic method, what role does the critic play?

    1. A

      It learns the policy directly

    2. B

      It estimates the value function to critique the actor's actions

    3. C

      It stores and replays experiences

    4. D

      It explores the environment by taking random actions

    Correct answer
    B

    It estimates the value function to critique the actor's actions

    Explanation

    The critic learns a value function (or Q function) and provides feedback to the actor, which updates the policy based on the critic's evaluation.

  7. 7

    How does an advantage actor-critic (A2C) typically compute the policy gradient?

    1. A

      Using the advantage function A(s,a)=Q(s,a)−V(s)A(s,a) = Q(s,a) - V(s)A(s,a)=Q(s,a)−V(s) as the weight

    2. B

      Using the raw return as the weight for the log policy gradient

    3. C

      Using only the value function V(s)V(s)V(s) as the baseline

    4. D

      Using the temporal difference error without any baseline

    Correct answer
    A

    Using the advantage function A(s,a)=Q(s,a)−V(s)A(s,a) = Q(s,a) - V(s)A(s,a)=Q(s,a)−V(s) as the weight

    Explanation

    A2C uses the advantage function to reduce variance in the policy gradient estimate, where the advantage is often computed as the TD error.

  8. 8

    What is the primary purpose of deep model predictive control (MPC) in the context of reinforcement learning?

    1. A

      To perform value iteration in continuous state spaces

    2. B

      To replace the need for exploration

    3. C

      To directly optimize the Q function using gradient descent

    4. D

      To learn a policy that mimics an expensive optimal controller

    Correct answer
    D

    To learn a policy that mimics an expensive optimal controller

    Explanation

    Deep MPC trains a neural network policy to approximate the behavior of a computationally intensive model predictive controller, enabling fast execution.

  9. 9

    Which of the following best describes the relationship between the actor and critic in an actor-critic architecture?

    1. A

      The actor directly updates the critic's parameters

    2. B

      The actor and critic are trained independently on separate data

    3. C

      The critic provides a learning signal to the actor, and both are updated jointly

    4. D

      The critic uses the actor's policy to generate experience

    Correct answer
    C

    The critic provides a learning signal to the actor, and both are updated jointly

    Explanation

    In actor-critic, the critic estimates the value function and the actor updates its policy using the critic's evaluation, allowing combined learning.

  10. 10

    In policy gradient methods, why is it beneficial to use the quality function Q(s,a)Q(s,a)Q(s,a) in the gradient estimate?

    1. A

      It eliminates the need for a baseline

    2. B

      It makes the gradient independent of the policy parameters

    3. C

      It guarantees monotonic improvement of the policy

    4. D

      It provides a lower variance estimate compared to using the full return

    Correct answer
    D

    It provides a lower variance estimate compared to using the full return

    Explanation

    Using Q(s,a)Q(s,a)Q(s,a) as the weight in the policy gradient reduces variance by providing a more focused credit assignment for each action.

  11. 11

    What is a key characteristic of deep Q learning that distinguishes it from actor-critic methods?

    1. A

      Deep Q learning learns a value function and derives a policy implicitly, while actor-critic explicitly learns a policy

    2. B

      Deep Q learning uses a neural network only for the policy, not the value function

    3. C

      Deep Q learning directly optimizes the policy, while actor-critic optimizes the value function

    4. D

      Deep Q learning is on-policy, while actor-critic is off-policy

    Correct answer
    A

    Deep Q learning learns a value function and derives a policy implicitly, while actor-critic explicitly learns a policy

    Explanation

    Deep Q learning learns the Q function (value-based) and the policy is obtained by greedily selecting actions; actor-critic directly learns a policy (actor) and a value function (critic).

Question 1 of 11
Question 1 of 11

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent