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

Study methods

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

Reinforcement Learning Fundamentals

  • 44Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: RL Foundations

What is reinforcement learning primarily concerned with?

44 questions

  1. 1

    What is reinforcement learning primarily concerned with?

    1. A

      Deriving deterministic equations for physical systems

    2. B

      Learning control strategies for interacting with complex environments

    3. C

      Assigning fixed labels to every individual observation

    4. D

      Memorizing complete descriptions of every possible environment

    Correct answer
    B

    Learning control strategies for interacting with complex environments

    Explanation

    Reinforcement learning is a branch of machine learning concerned with learning control strategies for interacting with complex environments.

  2. 2

    How does reinforcement learning acquire behavior according to the lecture?

    1. A

      Through experience, trial and error, and reward feedback

    2. B

      Through observing only the final state of an environment

    3. C

      Through solving physical equations without collecting data

    4. D

      Through direct programming of every correct action

    Correct answer
    A

    Through experience, trial and error, and reward feedback

    Explanation

    Reinforcement learning learns from experience through trial and error and through positive or negative rewards and feedback.

  3. 3

    Why is reinforcement learning described as biologically inspired?

    1. A

      Animals calculate exact probability distributions before acting

    2. B

      Animals learn to interact with environments through experience and feedback

    3. C

      Animals receive labels for every action they perform

    4. D

      Animals use neural networks identical to modern artificial systems

    Correct answer
    B

    Animals learn to interact with environments through experience and feedback

    Explanation

    The framework is biologically inspired because animals learn behaviors through experience, trial and error, and reinforcement.

  4. 4

    In animal training, what does reinforcement generally mean?

    1. A

      Removing the animal from the environment after every action

    2. B

      Strengthening good behavior with rewards such as treats

    3. C

      Giving the animal a complete action sequence in advance

    4. D

      Randomizing behavior so that no action is repeated

    Correct answer
    B

    Strengthening good behavior with rewards such as treats

    Explanation

    The term reinforcement comes from reinforcing good behavior with rewards, such as giving an animal a treat.

  5. 5

    What are the two main pieces distinguished in the reinforcement learning framework?

    1. A

      A physical simulator and a deterministic control law

    2. B

      A labeling system and a database for storing observations

    3. C

      A reward generator and a system for removing uncertainty

    4. D

      A framework for interaction and an optimization problem for choosing actions

    Correct answer
    D

    A framework for interaction and an optimization problem for choosing actions

    Explanation

    The lecture separates the framework for learning to interact with an environment from the optimization problem used to optimize actions or policies.

  6. 6

    What is the agent's role in reinforcement learning?

    1. A

      To provide rewards to itself after every observation

    2. B

      To observe states and choose actions that interact with the environment

    3. C

      To determine all environmental rules before learning begins

    4. D

      To remain passive while the environment changes independently

    Correct answer
    B

    To observe states and choose actions that interact with the environment

    Explanation

    The agent has agency: it measures its state and chooses actions to interact with the environment.

  7. 7

    In the mouse-in-a-maze example, what is the environment?

    1. A

      The sequence of turns selected by the mouse

    2. B

      The maze through which the mouse moves

    3. C

      The mouse's current location measurement

    4. D

      The cheese given to the mouse at the goal

    Correct answer
    B

    The maze through which the mouse moves

    Explanation

    In the example, the mouse is the agent and the maze is the environment.

  8. 8

    What limitation does the mouse have when measuring the maze?

    1. A

      It observes its current situation rather than the complete maze from above

    2. B

      It observes every possible future path before taking an action

    3. C

      It observes only the final reward and never its current location

    4. D

      It observes the complete maze but cannot choose its movement

    Correct answer
    A

    It observes its current situation rather than the complete maze from above

    Explanation

    The mouse does not have a top-down view of the entire maze; it measures where it is currently and has information about the past.

  9. 9

    Which of the following is an example of an action available to the mouse?

    1. A

      Changing the maze rules before entering the maze

    2. B

      Turning left, turning right, or moving forward

    3. C

      Observing the entire maze from a top-down perspective

    4. D

      Assigning a label to every position in the maze

    Correct answer
    B

    Turning left, turning right, or moving forward

    Explanation

    The mouse can choose actions such as turning left, turning right, or moving forward.

  10. 10

    Why are rewards in the mouse-maze example described as sparse?

    1. A

      The mouse receives rewards before it takes any action

    2. B

      The mouse receives a reward only occasionally, such as at the maze's end

    3. C

      The mouse receives a different reward after every movement

    4. D

      The mouse receives a reward after every correct turn

    Correct answer
    B

    The mouse receives a reward only occasionally, such as at the maze's end

    Explanation

    The reward may arrive only at the end of the maze, making rewards infrequent and time-delayed.

  11. 11

    What learning challenge results when a reward arrives only at the end of a sequence?

    1. A

      It becomes unnecessary to explore alternative action sequences

    2. B

      It becomes difficult to determine which earlier actions caused the reward

    3. C

      It becomes possible to label every action with certainty

    4. D

      It makes the environment fully deterministic

    Correct answer
    B

    It becomes difficult to determine which earlier actions caused the reward

    Explanation

    A delayed reward makes it difficult to identify which actions or action sequences were responsible for obtaining it.

  12. 12

    Why can games such as chess be treated as reinforcement learning environments?

    1. A

      The agent receives a complete label for every move it makes

    2. B

      The environment has no competing player or changing conditions

    3. C

      The agent can select infinitely many actions at every position

    4. D

      The agent follows game rules while choosing from a finite set of actions

    Correct answer
    D

    The agent follows game rules while choosing from a finite set of actions

    Explanation

    Games provide rules and a finite set of possible actions through which an agent interacts with the environment.

  13. 13

    What makes chess especially interesting as a reinforcement learning environment?

    1. A

      The game provides a reward after every legal move

    2. B

      The agent has access to every future board position

    3. C

      The environment is completely independent of the agent's actions

    4. D

      An adversarial opponent actively tries to defeat the agent

    Correct answer
    D

    An adversarial opponent actively tries to defeat the agent

    Explanation

    In chess, the environment includes not only the rules but also an opponent who actively attempts to defeat the agent.

  14. 14

    What is the central objective of a reinforcement learning agent?

    1. A

      To minimize the number of states that can be observed

    2. B

      To reproduce every action taken by an expert without variation

    3. C

      To make the environment deterministic before acting

    4. D

      To choose actions given states in order to maximize future rewards

    Correct answer
    D

    To choose actions given states in order to maximize future rewards

    Explanation

    The main goal is to design a policy that selects actions based on states to maximize the chance of receiving future rewards.

  15. 15

    What does a policy specify in reinforcement learning?

    1. A

      The physical equation governing every environment

    2. B

      The probability of taking an action given the current state

    3. C

      The complete history of all actions taken by an agent

    4. D

      The exact future reward produced by every possible state

    Correct answer
    B

    The probability of taking an action given the current state

    Explanation

    A policy describes how likely the agent is to take each action when it is in a particular state.

  16. 16

    Why can a reinforcement learning policy be probabilistic?

    1. A

      The policy must ignore rewards when selecting actions

    2. B

      The environment may be stochastic, and randomization can support exploration

    3. C

      The agent is unable to measure any state information

    4. D

      The environment always follows exactly the same trajectory

    Correct answer
    B

    The environment may be stochastic, and randomization can support exploration

    Explanation

    Because environments can be probabilistic, policies may also be probabilistic. Randomized choices can additionally help the agent explore.

  17. 17

    How does a probabilistic policy differ from a deterministic control law in the lecture's comparison?

    1. A

      A deterministic control law changes randomly after each observation

    2. B

      A deterministic control law always requires an adversarial opponent

    3. C

      A probabilistic policy can assign different probabilities to alternative actions

    4. D

      A probabilistic policy cannot use information about the current state

    Correct answer
    C

    A probabilistic policy can assign different probabilities to alternative actions

    Explanation

    A policy may use a mixed strategy, such as selecting one action most of the time and another action occasionally, whereas a deterministic control law gives a fixed response under fixed conditions.

  18. 18

    What does the value of a state under a policy represent?

    1. A

      The number of actions that have already been taken in that state

    2. B

      The probability that the environment will become deterministic

    3. C

      The immediate reward received before entering that state

    4. D

      The expected future reward from starting in that state and following the policy

    Correct answer
    D

    The expected future reward from starting in that state and following the policy

    Explanation

    The value of a state is the expected amount of future reward when the agent starts in that state and follows the selected policy.

  19. 19

    What is the purpose of the discount factor in the value calculation?

    1. A

      To eliminate all rewards that occur immediately

    2. B

      To make all possible states equally valuable

    3. C

      To give relatively less weight to rewards received farther in the future

    4. D

      To guarantee that every future reward is received

    Correct answer
    C

    To give relatively less weight to rewards received farther in the future

    Explanation

    The discount factor reduces the contribution of delayed rewards relative to more immediate rewards.

  20. 20

    What does a discount factor between zero and one express?

    1. A

      How many actions are available in the current state

    2. B

      How strongly immediate rewards are preferred over delayed rewards

    3. C

      How frequently the environment changes its rules

    4. D

      How accurately the agent measures its current state

    Correct answer
    B

    How strongly immediate rewards are preferred over delayed rewards

    Explanation

    A discount factor between zero and one represents the degree to which the agent favors receiving rewards sooner rather than later.

  21. 21

    How can a human chess player use a simple proxy for state value?

    1. A

      By ignoring the opponent's pieces and possible future play

    2. B

      By counting only the number of moves already played

    3. C

      By assuming every board position has exactly the same value

    4. D

      By estimating board strength, such as comparing the pieces remaining

    Correct answer
    D

    By estimating board strength, such as comparing the pieces remaining

    Explanation

    Counting material, such as having captured the opponent's queen while retaining one's own, can serve as a rudimentary proxy for the value of a chess position.

  22. 22

    How can learning a better value function improve a policy?

    1. A

      It prevents the agent from evaluating alternative actions

    2. B

      It helps the agent identify and pursue states associated with better outcomes

    3. C

      It guarantees that the environment will follow a fixed trajectory

    4. D

      It replaces the need to receive any rewards during learning

    Correct answer
    B

    It helps the agent identify and pursue states associated with better outcomes

    Explanation

    A refined value function gives the agent a better understanding of desirable states, which can help it refine its policy.

  23. 23

    What characterizes a Markov decision process in the lecture?

    1. A

      An action in a current state leads probabilistically to a next state

    2. B

      The agent receives complete information about every future state

    3. C

      The environment provides a label for every possible action

    4. D

      A current action always produces exactly the same next state

    Correct answer
    A

    An action in a current state leads probabilistically to a next state

    Explanation

    In a Markov decision process, taking an action in a state can lead to multiple possible next states with associated probabilities.

  24. 24

    Why is backgammon presented as an example of a stochastic decision process?

    1. A

      Its rules are structured, but dice rolls introduce random outcomes

    2. B

      It has no rules governing the agent's available actions

    3. C

      It gives a separate instructional reward after every turn

    4. D

      Its outcome is determined entirely by the agent's first move

    Correct answer
    A

    Its rules are structured, but dice rolls introduce random outcomes

    Explanation

    Backgammon combines deterministic game rules with random dice rolls, creating stochastic transitions.

  25. 25

    What is the credit assignment problem?

    1. A

      Assigning every possible action the same numerical reward

    2. B

      Determining whether the agent is allowed to observe its current state

    3. C

      Selecting a physical model before defining the environment

    4. D

      Determining which actions in a sequence were responsible for a later reward

    Correct answer
    D

    Determining which actions in a sequence were responsible for a later reward

    Explanation

    The credit assignment problem arises because sparse, delayed rewards make it difficult to identify which earlier actions contributed to the outcome.

  26. 26

    How would denser rewards affect learning compared with sparse rewards?

    1. A

      They would remove the need for the agent to choose actions

    2. B

      They would make every environment completely deterministic

    3. C

      They would provide more intermediate feedback and could speed up learning

    4. D

      They would prevent the agent from learning long-term consequences

    Correct answer
    C

    They would provide more intermediate feedback and could speed up learning

    Explanation

    Intermediate feedback gives the agent more information about which actions are helpful, making learning faster than with only occasional final rewards.

  27. 27

    What does sample inefficiency mean in the context of sparse rewards?

    1. A

      The agent uses more labels than classical supervised learning

    2. B

      The agent learns an optimal policy from a single observation

    3. C

      The agent receives too many informative rewards during each trial

    4. D

      The agent needs many experiences to learn a good policy

    Correct answer
    D

    The agent needs many experiences to learn a good policy

    Explanation

    With sparse rewards, the agent often needs many trials and examples before it can learn an effective policy.

  28. 28

    What is reward shaping?

    1. A

      Making every action receive exactly the same reward

    2. B

      Removing the final reward so that only random actions remain

    3. C

      Adding intermediate proxy rewards to guide learning toward a final objective

    4. D

      Replacing the agent's policy with a fixed sequence of actions

    Correct answer
    C

    Adding intermediate proxy rewards to guide learning toward a final objective

    Explanation

    Reward shaping uses additional, often human-designed proxy rewards to provide denser feedback along the path to the desired final reward.

  29. 29

    Why does sparse reward reinforcement learning contain less supervision than classical supervised learning?

    1. A

      The environment provides no feedback under any circumstances

    2. B

      The agent is trained only on predetermined correct action sequences

    3. C

      The agent receives a label for every action but cannot store it

    4. D

      Feedback is delayed and is not attached to each individual action

    Correct answer
    D

    Feedback is delayed and is not attached to each individual action

    Explanation

    Sparse rewards still provide supervisory information, but they are rare, delayed, and not linked directly to every action.

  30. 30

    What is the exploration-exploitation trade-off?

    1. A

      Balancing trying unfamiliar actions with using a strategy already believed to work

    2. B

      Balancing immediate rewards with eliminating all future rewards

    3. C

      Balancing state observation with preventing the agent from acting

    4. D

      Balancing deterministic physics with removing the environment

    Correct answer
    A

    Balancing trying unfamiliar actions with using a strategy already believed to work

    Explanation

    The agent must decide how much to explore potentially better but untested strategies versus exploit the strategy it currently considers best.

  31. 31

    What is policy iteration?

    1. A

      Replacing rewards with labels before each individual movement

    2. B

      Repeatedly updating a policy using new reward information to improve it

    3. C

      Selecting one policy once and never changing it afterward

    4. D

      Enumerating every possible state without taking any action

    Correct answer
    B

    Repeatedly updating a policy using new reward information to improve it

    Explanation

    Policy iteration improves a policy iteratively as new and better information from rewards becomes available.

  32. 32

    Which statement correctly describes temporal-difference methods as presented?

    1. A

      They evaluate policies only after an infinite number of trials

    2. B

      They combine aspects of differential programming and Monte Carlo approaches

    3. C

      They eliminate the need for discounting future rewards

    4. D

      They require a complete physical model of the environment

    Correct answer
    B

    They combine aspects of differential programming and Monte Carlo approaches

    Explanation

    Temporal-difference methods were described as an intermediate approach between differential programming and Monte Carlo methods, and as model-free.

  33. 33

    What does it mean that a temporal-difference method is model-free?

    1. A

      It does not require an explicit model of the system

    2. B

      It can operate only when an expert supplies every action

    3. C

      It assumes that all state transitions are deterministic

    4. D

      It cannot use rewards to update its policy

    Correct answer
    A

    It does not require an explicit model of the system

    Explanation

    A model-free method can learn from experience without requiring a predefined model of the system's dynamics.

  34. 34

    Which set contains optimization strategies mentioned for reinforcement learning?

    1. A

      Simulated annealing, evolutionary optimization, and gradient descent

    2. B

      Manual labeling, static scheduling, and rule memorization

    3. C

      Fourier analysis, database indexing, and symbolic substitution

    4. D

      Image compression, sorting algorithms, and grammar parsing

    Correct answer
    A

    Simulated annealing, evolutionary optimization, and gradient descent

    Explanation

    The lecture lists simulated annealing, evolutionary optimization, gradient descent, stochastic gradient descent, and related machine learning tools.

  35. 35

    What is distinctive about q-learning compared with learning only a policy and a value function separately?

    1. A

      It ignores actions and evaluates only the current state

    2. B

      It requires the agent to follow a deterministic action sequence

    3. C

      It learns a quality function of both the state and the action

    4. D

      It learns only the final reward without estimating action quality

    Correct answer
    C

    It learns a quality function of both the state and the action

    Explanation

    The q-function evaluates the quality of being in a particular state and taking a particular action, combining information about states and actions.

  36. 36

    What does the q-function estimate?

    1. A

      The probability that the environment has no available actions

    2. B

      The quality of taking an action in a state while assuming good future decisions

    3. C

      The number of states visited without considering actions

    4. D

      The immediate reward regardless of future consequences

    Correct answer
    B

    The quality of taking an action in a state while assuming good future decisions

    Explanation

    The q-function represents the quality of a state-action pair while assuming that the agent will act optimally or as well as possible in the future.

  37. 37

    How can an agent select an action when it knows the q-function?

    1. A

      It can choose only the action associated with the lowest reward

    2. B

      It must choose the action that was taken most recently

    3. C

      It must choose an action uniformly at random

    4. D

      It can choose the available action with the highest quality

    Correct answer
    D

    It can choose the available action with the highest quality

    Explanation

    Given a state, the agent can compare the q-values of available actions and select the one with the greatest quality.

  38. 38

    Which quantities are used in the q-learning update described in the lecture?

    1. A

      A population size, a grammar rule, a pixel count, and a sorting key

    2. B

      A maze size, a camera color, a chessboard size, and a time limit

    3. C

      A learning rate, a discount rate, a reward, and future action quality

    4. D

      A fixed control law, a complete map, a label, and a sensor bias

    Correct answer
    C

    A learning rate, a discount rate, a reward, and future action quality

    Explanation

    The update uses the old quality estimate, the received reward, a learning rate, a discount rate, and the best future q-value.

  39. 39

    What is the main idea of hindsight replay?

    1. A

      Repeating only the exact action sequence that produced the final reward

    2. B

      Discarding every trajectory that fails to reach the original goal

    3. C

      Reinterpreting unsuccessful experiences as useful for achieving alternative goals

    4. D

      Replacing all rewards with a single fixed reward value

    Correct answer
    C

    Reinterpreting unsuccessful experiences as useful for achieving alternative goals

    Explanation

    Hindsight replay retains experiences that failed at the original goal by treating them as successful examples for a different goal or reward structure.

  40. 40

    Why can hindsight replay improve data efficiency?

    1. A

      It extracts learning value from experiences that would otherwise be discarded

    2. B

      It guarantees that every attempted action reaches the original goal

    3. C

      It supplies a complete physical model before any trial begins

    4. D

      It removes the need to explore different states and actions

    Correct answer
    A

    It extracts learning value from experiences that would otherwise be discarded

    Explanation

    By reusing unsuccessful experiences as information about alternative outcomes, hindsight replay provides additional effective reinforcement and makes learning more sample efficient.

  41. 41

    What did the ball-in-a-cup robot learn through reinforcement learning?

    1. A

      How to swing up a pendulum using a known physics model

    2. B

      How to use visual information and trial and error to catch the ball in the cup

    3. C

      How to identify every object in a camera image without acting

    4. D

      How to solve chess positions using only a symbolic game tree

    Correct answer
    B

    How to use visual information and trial and error to catch the ball in the cup

    Explanation

    The robot used camera information and trial and error, beginning with an expert demonstration, to learn how to catch the ball in the cup.

  42. 42

    What role did the expert demonstration play in the ball-in-a-cup example?

    1. A

      It prevented the robot from using visual information

    2. B

      It showed the robot that the task was possible before trial-and-error learning

    3. C

      It replaced reinforcement learning with a fixed control law

    4. D

      It supplied the robot with every action required for all future trials

    Correct answer
    B

    It showed the robot that the task was possible before trial-and-error learning

    Explanation

    The expert provided one example to demonstrate that the task was possible, after which the robot continued learning through imitation and trial and error.

  43. 43

    Why was the Pilco learner more sample efficient for the pendulum task?

    1. A

      It learned the task without interacting with the pendulum

    2. B

      It combined trial and error with a physical model of the system

    3. C

      It avoided modeling the system and used only random control signals

    4. D

      It received a reward after every possible motor command

    Correct answer
    B

    It combined trial and error with a physical model of the system

    Explanation

    Pilco leveraged a model of the physics along with trial and error, allowing it to learn the pendulum task using far fewer samples.

  44. 44

    What is the consequence of attempting to learn the pendulum task without a physics model?

    1. A

      Learning becomes highly sample inefficient and may require many trials

    2. B

      Learning becomes immediate because random actions cover all possibilities

    3. C

      The agent no longer needs to observe the pendulum's state

    4. D

      The pendulum becomes deterministic regardless of the controller

    Correct answer
    A

    Learning becomes highly sample inefficient and may require many trials

    Explanation

    Without a model, random trial and error can require thousands of trials and substantial computation before the pendulum is controlled effectively.

Question 1 of 44
Question 1 of 44

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent