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

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

What is reinforcement learning?

61 questions

  1. 1

    What is reinforcement learning?

    Model answer

    Reinforcement learning is a branch of machine learning that learns control strategies for interacting with complex environments through experience.

    Explanation

    An agent learns from trial and error using positive and negative rewards or feedback rather than receiving instructions for every action.

  2. 2

    Why is reinforcement learning considered biologically inspired?

    Model answer

    It is biologically inspired because animals learn to interact with their environments through experience, trial and error, and rewards or penalties.

    Explanation

    Animal training provides a natural example: desired behavior is reinforced with rewards such as treats.

  3. 3

    How does reinforcement learning connect machine learning and control theory?

    Model answer

    It combines machine learning's use of data and optimization with control theory's focus on choosing actions to influence dynamic systems.

    Explanation

    Reinforcement learning learns action strategies for controlling systems while dealing with uncertain environments and feedback.

  4. 4

    What are the two major components of a reinforcement learning problem?

    Model answer

    The first component is the framework for learning to interact with an environment, and the second is the optimization problem of improving the agent's actions or policy.

    Explanation

    The framework specifies how states, actions, and rewards interact; optimization determines which policy produces the greatest future reward.

  5. 5

    Why can learning to walk with reinforcement learning be difficult?

    Model answer

    Walking is a complex, nonlinear control problem involving many interacting variables and difficult action choices.

    Explanation

    A simulated bipedal walker must coordinate actions to maintain balance and move successfully through its environment.

  6. 6

    What is the long-term goal of transferring reinforcement learning from simulation to physical systems?

    Model answer

    The goal is to use learned strategies to build better robots and physical agents that can interact effectively with the real world.

    Explanation

    Learning in simulation can provide control strategies that may later be transferred to real-world agents.

  7. 7

    In a mouse-in-a-maze example, what are the agent and the environment?

    Model answer

    The mouse is the agent, and the maze is the environment.

    Explanation

    The agent chooses actions, while the environment is the setting whose state changes in response to those actions.

  8. 8

    What does an agent's state represent?

    Model answer

    A state represents the information the agent measures about its current situation in the environment.

    Explanation

    A mouse may know where it currently is and remember aspects of its past, without observing the entire maze.

  9. 9

    Why might an agent not observe the full state of its environment?

    Model answer

    The agent may have only limited observations, so it knows its current local situation rather than the complete configuration of the environment.

    Explanation

    For example, a mouse in a maze does not have a top-down view of the entire maze.

  10. 10

    What is an action in reinforcement learning?

    Model answer

    An action is a decision made by the agent about what to do next in the environment.

    Explanation

    Possible mouse actions include turning left, turning right, or moving forward.

  11. 11

    What does it mean for an agent to have agency?

    Model answer

    An agent has agency when it can choose and control its own actions while interacting with the environment.

    Explanation

    The mouse has agency because it decides which direction to move rather than having its movement completely determined externally.

  12. 12

    What is a sparse reward?

    Model answer

    A sparse reward is feedback that occurs infrequently rather than after every action.

    Explanation

    In a maze, the mouse may receive cheese only after reaching the end, leaving most actions without immediate feedback.

  13. 13

    How do games such as chess illustrate reinforcement learning?

    Model answer

    They provide an environment with rules and a finite set of possible actions, while the agent chooses moves to achieve a goal.

    Explanation

    Chess also includes an adversarial opponent who actively tries to defeat the agent, making the environment more challenging.

  14. 14

    What is a policy in reinforcement learning?

    Model answer

    A policy specifies how the agent chooses actions based on its current state in order to maximize expected future reward.

    Explanation

    The policy is the agent's strategy for deciding what to do whenever it encounters a particular state.

  15. 15

    How is a probabilistic policy represented conceptually?

    Model answer

    A probabilistic policy gives the probability of taking action aaa when the agent is in state sss, written as π(a∣s)\pi(a\mid s)π(a∣s).

    Explanation

    The policy may assign different probabilities to several actions instead of always selecting one action deterministically.

  16. 16

    Why might a reinforcement learning policy be probabilistic rather than deterministic?

    Model answer

    A probabilistic policy accounts for uncertainty in the environment and allows the agent to explore different strategies.

    Explanation

    For example, an agent might choose one chess move most of the time but occasionally try another move in case conditions differ.

  17. 17

    How does a policy differ from a conventional deterministic control law?

    Model answer

    A conventional control law may produce the same action under fixed system rules, whereas a reinforcement learning policy can be probabilistic because the environment and outcomes are uncertain.

    Explanation

    Games such as chess involve changing opponents and uncertain consequences, unlike an idealized deterministic mechanical system.

  18. 18

    What is the value of a state under a policy?

    Model answer

    It is the expected future reward obtained by starting in state sss and following policy π\piπ.

    Explanation

    In chess, the value of a board position estimates the chance or amount of reward expected from that position when the policy is used.

  19. 19

    What does the discount factor represent in the value of a state?

    Model answer

    The discount factor, typically γ\gammaγ with 0<γ<10<\gamma<10<γ<1, determines how much future rewards are discounted relative to immediate rewards.

    Explanation

    A smaller emphasis on distant rewards represents a preference for receiving rewards sooner rather than later.

  20. 20

    Why are value functions useful for improving a policy?

    Model answer

    They identify states that are expected to produce high future rewards, helping the agent choose actions that lead toward those states.

    Explanation

    An agent can use estimated values of chess positions to refine its strategy and select better moves.

  21. 21

    How can counting pieces provide a rudimentary value function in chess?

    Model answer

    A board position can be assigned value by comparing the pieces remaining, such as treating a position where the opponent has lost a queen as more favorable.

    Explanation

    Material advantage is only a rough proxy because the strategic quality of a position depends on more than the number of pieces.

  22. 22

    Why is it difficult to represent every chess state explicitly?

    Model answer

    The number of possible chessboard configurations is combinatorially enormous, so no person or system can practically store and evaluate every state directly.

    Explanation

    Value functions and rules of thumb provide compact approximations of which positions are favorable.

  23. 23

    What is the overall optimization goal in reinforcement learning?

    Model answer

    The goal is to optimize the policy π\piπ so that the agent maximizes its expected future rewards.

    Explanation

    The policy determines the sequence of actions, and optimization searches for action-selection behavior that performs well over time.

  24. 24

    What is a Markov decision process?

    Model answer

    A Markov decision process is a model in which an agent takes an action in a state and transitions probabilistically to a possible next state.

    Explanation

    The transition from a current state and action to a future state can have multiple possible outcomes with different probabilities.

  25. 25

    Why are Markov decision processes useful for modeling reinforcement learning environments?

    Model answer

    They represent environments whose outcomes are stochastic rather than fully deterministic.

    Explanation

    For a given state and action, the agent may reach different next states, which makes planning and policy optimization uncertain.

  26. 26

    How does backgammon illustrate a Markov decision process?

    Model answer

    Backgammon has deterministic game rules but also random dice rolls that affect the next state.

    Explanation

    The rules constrain possible moves, while the dice introduce probabilistic transitions from the current state.

  27. 27

    Why do stochastic environments support the use of probabilistic policies?

    Model answer

    Because the same state and action may lead to uncertain outcomes, the agent benefits from a policy that can distribute probability across alternative actions.

    Explanation

    A probabilistic policy helps the agent respond flexibly to environmental randomness and continue exploring alternatives.

  28. 28

    What is the credit assignment problem?

    Model answer

    The credit assignment problem is the difficulty of determining which earlier actions or action sequences caused a later reward.

    Explanation

    When rewards are delayed and sparse, the agent cannot easily tell which decisions in a long sequence were good or bad.

  29. 29

    Why does a delayed reward make reinforcement learning difficult?

    Model answer

    A delayed reward is not directly linked to each individual action, so the agent must infer which earlier actions contributed to the outcome.

    Explanation

    For example, losing a chess game after one mistake makes it difficult to decide whether the entire preceding sequence should be rejected.

  30. 30

    How would rewarding every correct maze turn change the learning problem?

    Model answer

    It would provide dense, immediate supervisory feedback and make the task more like ordinary supervised learning.

    Explanation

    Each reward would act like a label indicating whether the corresponding action was correct.

  31. 31

    Why is reinforcement learning sometimes described as semi-supervised learning in this context?

    Model answer

    It receives supervisory feedback through rewards, but that feedback is sparse and delayed rather than supplied for every action.

    Explanation

    The agent gets information about success, but much less information than in classical supervised learning.

  32. 32

    What is the difference between dense and sparse rewards?

    Model answer

    Dense rewards provide frequent feedback during a task, whereas sparse rewards occur only occasionally, often near the end.

    Explanation

    A chess master commenting on individual moves would provide denser feedback than a game that reports only win or loss.

  33. 33

    Why are sparse rewards associated with sample inefficiency?

    Model answer

    With few informative rewards, the agent must experience many more trials before it can identify a successful policy.

    Explanation

    The agent needs large amounts of data and repeated trial and error to overcome the credit assignment problem.

  34. 34

    What is reward shaping?

    Model answer

    Reward shaping is the use of additional intermediate or proxy rewards to guide learning toward a final objective.

    Explanation

    An expert can provide denser feedback along the way instead of waiting for the agent to receive only the final reward.

  35. 35

    How does reward shaping help reinforcement learning?

    Model answer

    It supplies more frequent learning signals, helping the agent identify useful actions and learn an effective policy with fewer trials.

    Explanation

    Intermediate rewards make progress toward the final goal easier to evaluate.

  36. 36

    What is the exploration-exploitation trade-off?

    Model answer

    It is the need to balance exploiting the best-known strategy with exploring unfamiliar actions that might produce better rewards.

    Explanation

    Exploitation uses current knowledge, while exploration gathers information about alternatives that may initially fail but could be superior.

  37. 37

    Why is the exploration-exploitation trade-off fundamental in reinforcement learning?

    Model answer

    An agent must obtain rewards using known good actions while continuing to discover potentially better policies.

    Explanation

    Pure exploitation may miss better strategies, whereas pure exploration may fail to take advantage of what has already been learned.

  38. 38

    What is policy iteration?

    Model answer

    Policy iteration repeatedly updates a policy using new reward information so that the policy improves over time.

    Explanation

    The agent evaluates its current behavior and modifies the policy based on better information from subsequent experiences.

  39. 39

    How can optimization methods be used in reinforcement learning?

    Model answer

    They adjust policy parameters to improve expected rewards based on observed states, actions, and feedback.

    Explanation

    Reinforcement learning formulates policy improvement as a difficult, often nonlinear and nonconvex optimization problem.

  40. 40

    Name several optimization strategies that can be applied to reinforcement learning policies.

    Model answer

    Examples include differential programming, Monte Carlo methods, temporal-difference learning, simulated annealing, evolutionary optimization, gradient descent, and stochastic gradient descent.

    Explanation

    Modern implementations may also use neural-network optimizers such as Adam.

  41. 41

    What is the basic idea of Monte Carlo policy optimization?

    Model answer

    Monte Carlo methods evaluate policies using sampled episodes or trials and use the observed outcomes to improve the policy.

    Explanation

    The approach tries actions or strategies and learns from the rewards obtained over complete experiences.

  42. 42

    What is temporal-difference learning described as balancing?

    Model answer

    Temporal-difference learning is described as a balance between differential programming and Monte Carlo approaches.

    Explanation

    It updates estimates using information from ongoing experience rather than relying only on complete episodes.

  43. 43

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

    Model answer

    It means the method does not require an explicit model of the environment's dynamics.

    Explanation

    The agent can learn from observed transitions and rewards without knowing the physical or probabilistic rules in advance.

  44. 44

    How is reinforcement learning related to Bellman's optimization ideas?

    Model answer

    Bellman's work on optimal control provided foundational ideas for optimizing decisions and value functions in reinforcement learning.

    Explanation

    Bellman optimization connects the value of a current state and action to expected future values.

  45. 45

    How does imitation learning assist reinforcement learning in the ball-and-cup example?

    Model answer

    An expert human first demonstrates that the task is possible, after which the robot improves through trial and error.

    Explanation

    The demonstration gives the robot an initial example before reinforcement learning refines its behavior.

  46. 46

    What sensory information did the ball-and-cup robot use?

    Model answer

    It used visual information from a camera to distinguish the ball, cup, and surrounding screen.

    Explanation

    The system learned from the visual positions of the red ball and blue cup while attempting to catch the ball.

  47. 47

    What did the ball-and-cup robot learn through repeated trials?

    Model answer

    It learned the physical rules and control actions needed to place the ball into the cup.

    Explanation

    Repeated attempts gradually improved performance until the robot could reliably catch the ball.

  48. 48

    Why was the Pilco pendulum learner more sample-efficient than random trial and error?

    Model answer

    It combined trial and error with a physical model of the system, using known physics to guide learning.

    Explanation

    A model based on dynamics such as Newton's laws reduces the number of experiments needed to swing up and stabilize the pendulum.

  49. 49

    Why is learning pendulum control without a physical model highly sample-inefficient?

    Model answer

    Without a model, the agent must discover useful control signals through many random trials before finding states near the upright position.

    Explanation

    The system may require thousands of attempts because sparse success provides little guidance about the pendulum's dynamics.

  50. 50

    What is the main advantage of using a physical model in reinforcement learning?

    Model answer

    A physical model allows the agent to predict and exploit system dynamics, reducing the number of real or simulated trials required.

    Explanation

    Known relationships such as F=maF=maF=ma provide useful structure for planning actions efficiently.

  51. 51

    What is the key idea of Q-learning?

    Model answer

    Q-learning learns the quality of state-action pairs, thereby combining information about values and action selection.

    Explanation

    Instead of learning only the value of a state, it estimates how good it is to take a particular action in that state.

  52. 52

    What does the Q-function measure?

    Model answer

    The Q-function measures the expected quality of taking action aaa in state sss, assuming effective decisions are made in the future.

    Explanation

    It can be viewed as a value function over both states and actions.

  53. 53

    How does Q-learning choose an action once the Q-function is known?

    Model answer

    At state sss, it selects the action with the highest estimated Q-value.

    Explanation

    Comparing Q-values across available actions directly produces a policy for choosing the most promising action.

  54. 54

    What roles do the learning rate and discount factor play in a Q-learning update?

    Model answer

    The learning rate controls how strongly new experience changes the Q-value, while the discount factor controls the importance of future rewards.

    Explanation

    Together they determine how quickly estimates adapt and how much distant outcomes influence current action values.

  55. 55

    What does the maximum future Q-value represent in a Q-learning update?

    Model answer

    It represents the assumption that the agent will choose the best possible future action after the current transition.

    Explanation

    Using the maximum future Q-value estimates the quality of the current state-action pair under optimal subsequent behavior.

  56. 56

    Why can Q-learning be implemented with a deep neural network?

    Model answer

    A neural network can approximate the Q-function for complex state and action spaces.

    Explanation

    This allows Q-learning to handle problems where storing a separate value for every possible state-action pair is impractical.

  57. 57

    What is hindsight replay?

    Model answer

    Hindsight replay reinterprets unsuccessful experiences as successful examples for alternative goals or rewards.

    Explanation

    An action sequence that failed to achieve the intended goal may still have reached a different useful state.

  58. 58

    How does hindsight replay address sparse rewards?

    Model answer

    It extracts useful learning signals from experiences that would otherwise produce no reward for the original goal.

    Explanation

    Instead of discarding failed attempts, the agent treats the achieved outcome as a different target and gains additional training information.

  59. 59

    Give an example of hindsight replay in the ball-and-cup task.

    Model answer

    If the ball misses the cup but lands in another location, the agent can treat reaching that location as an alternative goal and learn from the action sequence.

    Explanation

    The failed attempt still reveals information about the system's physics and how to reach a particular state.

  60. 60

    Why does hindsight replay improve sample efficiency?

    Model answer

    It increases the amount of useful reinforcement obtained from each experience by learning from alternative outcomes.

    Explanation

    More transitions become informative, so the agent can learn complex tasks with fewer discarded trials.

  61. 61

    Why is hindsight replay analogous to how humans can learn from mistakes?

    Model answer

    Humans can recognize that an unintended outcome or failed attempt may become useful in a different future situation.

    Explanation

    For example, an unexpected tennis shot may provide a skill that is valuable when the player later wants to hit the ball in that direction.

1 of 61
Question 1 of 61

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent