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

  • 21Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Reinforcement Learning Basics

What is the role of the policy in a reinforcement learning system?

21 questions

  1. 1

    What is the role of the policy in a reinforcement learning system?

    1. A

      It represents the value of being in a given state.

    2. B

      It maps states to probabilistic actions for interacting with the environment.

    3. C

      It computes the discount factor for future rewards.

    4. D

      It stores past experiences for training the agent.

    Correct answer
    B

    It maps states to probabilistic actions for interacting with the environment.

    Explanation

    The policy is a probabilistic mapping from states to actions that the agent uses to decide how to interact with the environment. It is optimized to maximize cumulative future rewards.

  2. 2

    What does the value function represent in reinforcement learning?

    1. A

      The immediate reward received after taking an action.

    2. B

      The value of being in a given state under a specific policy.

    3. C

      The probability distribution over possible actions.

    4. D

      The quality of a state-action pair given the best future policy.

    Correct answer
    B

    The value of being in a given state under a specific policy.

    Explanation

    The value function Vπ(s)V^\pi(s)Vπ(s) tells the agent how valuable being in a state sss is, given the policy π\piπ it is enacting. It represents the expected cumulative future reward from that state.

  3. 3

    What is the purpose of the discount rate γ\gammaγ in reinforcement learning?

    1. A

      It makes distant future rewards worth less than near future rewards.

    2. B

      It normalizes the state values to a fixed range.

    3. C

      It controls the exploration-exploitation trade-off.

    4. D

      It determines how often the agent receives rewards.

    Correct answer
    A

    It makes distant future rewards worth less than near future rewards.

    Explanation

    The discount rate γ∈[0,1]\gamma \in [0,1]γ∈[0,1] prioritizes immediate rewards over distant ones, reflecting that rewards in the near future are more valuable. It helps stabilize learning in environments with sparse rewards.

  4. 4

    What is the credit assignment problem in reinforcement learning?

    1. A

      The challenge of determining which actions led to a delayed reward.

    2. B

      The issue of storing large amounts of experience replay data.

    3. C

      The problem of balancing exploration with exploitation.

    4. D

      The difficulty of assigning credit to different neural network layers.

    Correct answer
    A

    The challenge of determining which actions led to a delayed reward.

    Explanation

    Credit assignment is the challenge of identifying which specific actions contributed to a reward, especially when rewards are sparse and occur only at the end of a long sequence. This makes learning difficult.

  5. 5

    What is reward shaping in reinforcement learning?

    1. A

      A process of reshaping the neural network architecture for faster learning.

    2. B

      A method to provide intermediate rewards based on expert intuition.

    3. C

      A technique to prevent the agent from overfitting to the reward function.

    4. D

      A way to automatically generate reward functions from demonstrations.

    Correct answer
    B

    A method to provide intermediate rewards based on expert intuition.

    Explanation

    Reward shaping involves providing additional intermediate rewards to guide the agent, making the reward signal denser and helping it learn faster. It often relies on expert knowledge to design these auxiliary rewards.

  6. 6

    How is reinforcement learning biologically inspired?

    1. A

      It is based on Hebbian learning where rewards strengthen synaptic connections.

    2. B

      It mimics the way animals learn through trial and error, reinforced by rewards.

    3. C

      It uses genetic algorithms to evolve neural networks.

    4. D

      It directly copies the structure of the human brain's neocortex.

    Correct answer
    B

    It mimics the way animals learn through trial and error, reinforced by rewards.

    Explanation

    Reinforcement learning is inspired by how animals learn from interaction with their environment, where actions leading to rewards are reinforced. The concept of Hebbian learning ('neurons that fire together wire together') is a biological analogy, but RL itself is not directly copying it.

  7. 7

    How are deep neural networks typically used in deep reinforcement learning?

    1. A

      To replace the environment simulation with a learned model.

    2. B

      To store past experiences for experience replay.

    3. C

      To represent the policy or the Q-function as complex functions.

    4. D

      To compute the discount factor dynamically.

    Correct answer
    C

    To represent the policy or the Q-function as complex functions.

    Explanation

    Deep neural networks are used to approximate either the policy (policy network) or the Q-function (deep Q-network), allowing the agent to handle high-dimensional state spaces and complex decision boundaries.

  8. 8

    What is a deep Q-network (DQN)?

    1. A

      A network that learns a quality function Q(s,a)Q(s,a)Q(s,a) combining state and action.

    2. B

      A network that predicts the next state given current state and action.

    3. C

      A network that stores and replays past experiences for training.

    4. D

      A network that directly outputs a probability distribution over actions.

    Correct answer
    A

    A network that learns a quality function Q(s,a)Q(s,a)Q(s,a) combining state and action.

    Explanation

    A deep Q-network approximates the Q-function Q(s,a)Q(s,a)Q(s,a), which estimates the expected future reward for taking action aaa in state sss under the optimal policy. The agent then selects the action with the highest Q-value.

  9. 9

    How does a deep Q-network decide which action to take in a given state?

    1. A

      It samples an action from a probability distribution output by the network.

    2. B

      It selects a random action to encourage exploration.

    3. C

      It chooses the action with the highest Q-value for that state.

    4. D

      It uses a separate policy network to decide the action.

    Correct answer
    C

    It chooses the action with the highest Q-value for that state.

    Explanation

    Once the Q-network is trained, the agent picks the action aaa that maximizes Q(s,a)Q(s,a)Q(s,a) for the current state sss, effectively following a greedy policy derived from the learned Q-function.

  10. 10

    What does the parameter θ\thetaθ represent in a deep policy network?

    1. A

      The discount factor used for future rewards.

    2. B

      The weights and biases of the neural network.

    3. C

      The number of layers in the neural network.

    4. D

      The learning rate for gradient descent.

    Correct answer
    B

    The weights and biases of the neural network.

    Explanation

    In deep reinforcement learning, θ\thetaθ denotes the parameters (weights and biases) of the neural network that represents the policy. These parameters are updated during training to improve the policy.

  11. 11

    What was the key achievement of the 2015 Nature paper 'Human-level control through deep reinforcement learning'?

    1. A

      It demonstrated human-level performance on many classic Atari video games.

    2. B

      It showed that deep reinforcement learning could beat humans at chess.

    3. C

      It introduced the concept of reward shaping for complex environments.

    4. D

      It proved that reinforcement learning could be applied to robotic control.

    Correct answer
    A

    It demonstrated human-level performance on many classic Atari video games.

    Explanation

    The DeepMind paper showed that a single deep reinforcement learning algorithm could achieve human-level or superhuman performance on 49 Atari games, using only raw pixel inputs and game scores.

  12. 12

    How did the DeepMind Atari agent process the game environment?

    1. A

      It relied on preprocessed vectors of game variables.

    2. B

      It used the raw pixel values of the screen as input.

    3. C

      It received symbolic descriptions of the game objects.

    4. D

      It used hand-crafted features extracted from the game state.

    Correct answer
    B

    It used the raw pixel values of the screen as input.

    Explanation

    The agent used the pixels of the screen as input, passing them through convolutional layers and fully connected layers to decide which joystick action to take. This allowed it to learn directly from visual input without manual feature engineering.

  13. 13

    What was a major limitation of the Atari-playing deep reinforcement learning algorithm?

    1. A

      It required a separate retraining for each game and could not transfer learning.

    2. B

      It could only play games with discrete action spaces.

    3. C

      It could not learn from self-play to improve performance.

    4. D

      It used too much memory for experience replay.

    Correct answer
    A

    It required a separate retraining for each game and could not transfer learning.

    Explanation

    The algorithm was trained and tested on individual games. The learned policy for one game could not be applied to another without complete retraining, highlighting the lack of transfer learning.

  14. 14

    What is AlphaGo?

    1. A

      A deep reinforcement learning algorithm developed by DeepMind to play the game of Go.

    2. B

      An evolutionary algorithm that beat human champions at chess.

    3. C

      A reinforcement learning framework for robotic manipulation.

    4. D

      A general artificial intelligence system capable of learning any board game.

    Correct answer
    A

    A deep reinforcement learning algorithm developed by DeepMind to play the game of Go.

    Explanation

    AlphaGo is a deep reinforcement learning system created by DeepMind specifically to play Go. It defeated world champion Lee Sedol in 2016, a landmark achievement in AI.

  15. 15

    How did AlphaGo use reward shaping?

    1. A

      It used a separate value network to shape rewards.

    2. B

      It automatically generated dense rewards from self-play.

    3. C

      It received rewards only at the end of each game.

    4. D

      Human experts provided intermediate rewards to help it learn faster.

    Correct answer
    D

    Human experts provided intermediate rewards to help it learn faster.

    Explanation

    AlphaGo used reward shaping where human experts guided the reward structure by giving intermediate rewards, making the reward signal denser and speeding up learning. This approach, however, capped performance at human expert level.

  16. 16

    How did AlphaGo Zero differ from the original AlphaGo?

    1. A

      It required human expert guidance for the first few training iterations.

    2. B

      It was designed for chess rather than Go.

    3. C

      It did not use any human features or reward shaping; it learned solely through self-play.

    4. D

      It used a convolutional neural network instead of a residual network.

    Correct answer
    C

    It did not use any human features or reward shaping; it learned solely through self-play.

    Explanation

    AlphaGo Zero removed all human knowledge—it used no reward shaping or human-provided features. It learned entirely by playing against itself, starting from random play, and surpassed the original AlphaGo within days.

  17. 17

    What neural network architecture did AlphaGo Zero use?

    1. A

      A long short-term memory (LSTM) recurrent network.

    2. B

      A residual network with skip connections.

    3. C

      A variational autoencoder for state representation.

    4. D

      A simple feedforward network with one hidden layer.

    Correct answer
    B

    A residual network with skip connections.

    Explanation

    AlphaGo Zero used a residual network (ResNet) architecture, which includes skip connections that allow gradients to flow more easily during backpropagation, making training deeper networks feasible.

  18. 18

    What real-world application of reinforcement learning was mentioned for elevator scheduling?

    1. A

      Scheduling elevators in skyscrapers to minimize wait times.

    2. B

      Managing the number of elevators active during peak hours.

    3. C

      Controlling the speed of elevators for energy efficiency.

    4. D

      Optimizing the maintenance schedule for elevator components.

    Correct answer
    A

    Scheduling elevators in skyscrapers to minimize wait times.

    Explanation

    Reinforcement learning has been used to find near-optimal scheduling policies for elevators in large buildings, a combinatorially hard problem. This was one of the early industrial applications of RL.

  19. 19

    What is the OpenAI Gym?

    1. A

      A hardware platform for running reinforcement learning experiments.

    2. B

      A collection of pre-trained reinforcement learning models.

    3. C

      A gym where humans train AI agents through physical exercises.

    4. D

      An open-source framework for developing and comparing reinforcement learning algorithms.

    Correct answer
    D

    An open-source framework for developing and comparing reinforcement learning algorithms.

    Explanation

    OpenAI Gym is an open-source toolkit that provides a variety of environments (Atari games, robotics simulations, etc.) for testing and benchmarking reinforcement learning algorithms, making it easy to get started with RL research.

  20. 20

    Why is transfer learning a major challenge in reinforcement learning?

    1. A

      Because reinforcement learning algorithms cannot store large amounts of data.

    2. B

      Because deep neural networks overfit to the training environment.

    3. C

      Because agents typically cannot generalize knowledge from one task to another.

    4. D

      Because transfer learning requires supervised data, which is unavailable in RL.

    Correct answer
    C

    Because agents typically cannot generalize knowledge from one task to another.

    Explanation

    Current RL agents lack the ability to transfer knowledge learned in one environment to a different one. They must be retrained from scratch for each new task, unlike humans who can apply past experience to new situations.

  21. 21

    What is a pressing central challenge in modern reinforcement learning?

    1. A

      Improving the speed of training on single-GPU machines.

    2. B

      Achieving human-level performance on all Atari games.

    3. C

      Reducing the memory footprint of deep Q-networks.

    4. D

      Building agents that can learn and generalize across different environments.

    Correct answer
    D

    Building agents that can learn and generalize across different environments.

    Explanation

    A major open problem in RL is creating agents that can learn from prior experience and generalize to new tasks, akin to human learning. This is considered a key step toward general artificial intelligence.

Question 1 of 21
Question 1 of 21

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent