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

Study methods

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

Reinforcement Learning Overview

  • 20Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Reinforcement Learning Fundamentals

What is the goal of reinforcement learning?

20 questions

  1. 1

    What is the goal of reinforcement learning?

    1. A

      To perfectly model the environment dynamics

    2. B

      To learn the optimal policy that maximizes cumulative future rewards

    3. C

      To minimize the number of states visited

    4. D

      To maximize immediate rewards at each step

    Correct answer
    B

    To learn the optimal policy that maximizes cumulative future rewards

    Explanation

    The goal is to learn a policy (π) that maximizes the expected sum of future discounted rewards, not just immediate rewards.

  2. 2

    In reinforcement learning, what does the policy (π) represent?

    1. A

      The probability of taking an action given a state

    2. B

      The model of the environment's dynamics

    3. C

      The expected future reward from a state

    4. D

      The discount factor applied to future rewards

    Correct answer
    A

    The probability of taking an action given a state

    Explanation

    The policy π(a|s) defines the probability of selecting action a when in state s. It can be deterministic or stochastic.

  3. 3

    What is the value function V(s) in reinforcement learning?

    1. A

      The expected cumulative discounted future reward starting from state s under a given policy

    2. B

      The probability of transitioning from state s to another state

    3. C

      The immediate reward received when entering state s

    4. D

      The optimal action to take in state s

    Correct answer
    A

    The expected cumulative discounted future reward starting from state s under a given policy

    Explanation

    The value function V(s) gives the expected total discounted reward starting from state s and following policy π thereafter.

  4. 4

    Why is a discount factor (γ) used in reinforcement learning?

    1. A

      To ensure the agent explores all states equally

    2. B

      To make future rewards less valuable, reflecting economic utility

    3. C

      To reduce the variance of reward estimates

    4. D

      To guarantee convergence of Q-learning

    Correct answer
    B

    To make future rewards less valuable, reflecting economic utility

    Explanation

    The discount factor (0 ≤ γ < 1) weights future rewards less than immediate rewards, similar to economic utility theory.

  5. 5

    What makes reinforcement learning challenging for games like chess and Go?

    1. A

      The state space is astronomically large, making enumeration infeasible

    2. B

      The reward structure is too dense

    3. C

      The environments are deterministic

    4. D

      The actions are continuous

    Correct answer
    A

    The state space is astronomically large, making enumeration infeasible

    Explanation

    Chess has about 10^80 possible states, and Go even more. This makes it impossible to directly compute value functions by enumeration.

  6. 6

    What is the key distinction between model-based and model-free reinforcement learning?

    1. A

      Model-based is always more scalable than model-free

    2. B

      Model-based assumes a known model of the environment, while model-free learns without one

    3. C

      Model-free requires a Markov decision process formulation

    4. D

      Model-based uses dynamic programming, while model-free uses Monte Carlo methods

    Correct answer
    B

    Model-based assumes a known model of the environment, while model-free learns without one

    Explanation

    Model-based RL leverages an explicit model of environment dynamics (e.g., MDP, differential equations). Model-free RL learns directly from interaction without a model.

  7. 7

    Which algorithms are typical examples of model-based reinforcement learning?

    1. A

      SARSA and Q-learning

    2. B

      Policy gradient and actor-critic

    3. C

      Policy iteration and value iteration

    4. D

      Monte Carlo tree search and deep Q-networks

    Correct answer
    C

    Policy iteration and value iteration

    Explanation

    Policy iteration and value iteration are dynamic programming methods used when the environment model (e.g., MDP) is known. They rely on Bellman optimality.

  8. 8

    Which equation underlies dynamic programming in model-based reinforcement learning for Markov decision processes?

    1. A

      Hamilton-Jacobi-Bellman (HJB) equation

    2. B

      State-action-reward-state-action (SARSA) update

    3. C

      Bellman expectation equation

    4. D

      Bellman optimality equation

    Correct answer
    D

    Bellman optimality equation

    Explanation

    The Bellman optimality equation for the value function is central to dynamic programming methods like policy iteration and value iteration.

  9. 9

    What is a major practical limitation of dynamic programming in model-based reinforcement learning?

    1. A

      It cannot handle stochastic environments

    2. B

      It often amounts to a brute-force search and does not scale to high-dimensional systems

    3. C

      It can only be applied to discrete action spaces

    4. D

      It requires gradient information that is rarely available

    Correct answer
    B

    It often amounts to a brute-force search and does not scale to high-dimensional systems

    Explanation

    Dynamic programming solves the Bellman equation by iterating over all states, which becomes computationally intractable for large state spaces.

  10. 10

    For continuous control problems (e.g., robotics), which equation generalizes Bellman optimality in model-based reinforcement learning?

    1. A

      Hamilton-Jacobi-Bellman (HJB) equation

    2. B

      Lyapunov equation

    3. C

      Riccati equation

    4. D

      Newton-Euler equation

    Correct answer
    A

    Hamilton-Jacobi-Bellman (HJB) equation

    Explanation

    The HJB equation is the continuous-time analog of the Bellman equation and is used for optimal nonlinear control.

  11. 11

    In model-free reinforcement learning, what are the two main subcategories?

    1. A

      Tabular and function approximation methods

    2. B

      Gradient-free and gradient-based methods

    3. C

      On-policy and off-policy methods

    4. D

      Value-based and policy-based methods

    Correct answer
    B

    Gradient-free and gradient-based methods

    Explanation

    Model-free methods are first divided into gradient-free (e.g., SARSA, Q-learning) and gradient-based (e.g., policy gradient) approaches.

  12. 12

    What distinguishes on-policy learning from off-policy learning in model-free reinforcement learning?

    1. A

      On-policy learns from actions taken under the current policy, while off-policy can learn from actions taken under a different policy

    2. B

      On-policy uses a fixed policy, while off-policy updates the policy continuously

    3. C

      On-policy is only used for continuous action spaces

    4. D

      Off-policy requires a model of the environment

    Correct answer
    A

    On-policy learns from actions taken under the current policy, while off-policy can learn from actions taken under a different policy

    Explanation

    On-policy methods evaluate and improve the same policy that generates behavior. Off-policy methods can learn from data generated by any policy (e.g., exploratory or demonstrator policies).

  13. 13

    Which algorithm is a classic example of on-policy gradient-free reinforcement learning?

    1. A

      SARSA (State-Action-Reward-State-Action)

    2. B

      Policy gradient

    3. C

      Deep Q-Network (DQN)

    4. D

      Q-learning

    Correct answer
    A

    SARSA (State-Action-Reward-State-Action)

    Explanation

    SARSA is an on-policy algorithm that updates its action-value function using the current policy's actions. It stands for State-Action-Reward-State-Action.

  14. 14

    Which algorithm is a classic example of off-policy gradient-free reinforcement learning?

    1. A

      Actor-critic

    2. B

      Q-learning

    3. C

      SARSA

    4. D

      Monte Carlo tree search

    Correct answer
    B

    Q-learning

    Explanation

    Q-learning is off-policy because it learns the optimal action-value function using the maximum over next actions, independent of the behavior policy.

  15. 15

    What is the Q-function (quality function) in reinforcement learning?

    1. A

      The gradient of the value function with respect to policy parameters

    2. B

      The expected discounted reward for taking action a in state s and then following the optimal policy

    3. C

      The probability of transitioning from state s to s' given action a

    4. D

      The value of a state under the optimal policy

    Correct answer
    B

    The expected discounted reward for taking action a in state s and then following the optimal policy

    Explanation

    The Q-function Q(s,a) gives the expected cumulative future reward when taking action a in state s and then acting optimally thereafter.

  16. 16

    How do on-policy and off-policy methods compare in terms of behavior?

    1. A

      On-policy methods require a model of the environment

    2. B

      On-policy methods are more conservative, while off-policy methods converge faster

    3. C

      Off-policy methods cannot handle stochastic environments

    4. D

      On-policy methods always outperform off-policy methods

    Correct answer
    B

    On-policy methods are more conservative, while off-policy methods converge faster

    Explanation

    On-policy methods (like SARSA) tend to be more cautious because they learn from the current policy. Off-policy methods (like Q-learning) often converge faster because they can use more exploratory data.

  17. 17

    Why are gradient-based methods in reinforcement learning often faster than gradient-free methods?

    1. A

      They directly optimize the policy or value function using gradient information, enabling more efficient updates

    2. B

      They do not need a reward signal

    3. C

      They avoid exploration entirely

    4. D

      They require fewer data samples

    Correct answer
    A

    They directly optimize the policy or value function using gradient information, enabling more efficient updates

    Explanation

    Gradient-based methods (e.g., policy gradient) compute gradients of the objective with respect to parameters, allowing for efficient optimization using steepest descent or Newton steps.

  18. 18

    Which technique has been crucial for recent breakthroughs in deep reinforcement learning, such as AlphaGo?

    1. A

      Ensemble of decision trees

    2. B

      Depth-first search

    3. C

      Deep neural networks to represent value functions, policies, or Q-functions

    4. D

      Linear quadratic regulators

    Correct answer
    C

    Deep neural networks to represent value functions, policies, or Q-functions

    Explanation

    Deep neural networks allow representation of complex functions (e.g., Q-function, policy) in high-dimensional spaces, enabling RL to tackle problems like Go and Atari games.

  19. 19

    What is the key idea behind actor-critic methods in reinforcement learning?

    1. A

      They combine on-policy and off-policy learning into a single algorithm

    2. B

      They only rely on Monte Carlo rollouts

    3. C

      They use two separate neural networks: one for value and one for policy

    4. D

      They require a known model of the environment

    Correct answer
    C

    They use two separate neural networks: one for value and one for policy

    Explanation

    Actor-critic methods have two components: an actor (policy) that selects actions and a critic (value function) that evaluates them. Both can be represented by neural networks.

  20. 20

    What is a common application of off-policy learning mentioned in the lecture?

    1. A

      Playing chess without any opponent model

    2. B

      Solving linear quadratic regulator problems

    3. C

      Imitation learning, where the agent learns by observing others' behavior

    4. D

      Training a robot with a known dynamics model

    Correct answer
    C

    Imitation learning, where the agent learns by observing others' behavior

    Explanation

    Off-policy methods like Q-learning can learn from data generated by any policy, making them suitable for imitation learning where the agent observes expert demonstrations.

Question 1 of 20
Question 1 of 20

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent