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

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

What is reinforcement learning?

88 questions

  1. 1

    What is reinforcement learning?

    Model answer

    Reinforcement learning is the study of an automated agent learning through experience to make good decisions.

    Explanation

    The agent interacts with an environment, receives feedback, and improves its decisions based on experience.

  2. 2

    Why is decision-making essential to general artificial intelligence?

    Model answer

    Intelligence requires more than perceiving objects or patterns; it also requires using perceptions and information to choose good actions.

    Explanation

    Perceptual machine learning identifies things such as faces or cars, whereas intelligent behavior also involves deciding what to do.

  3. 3

    What makes learning to make decisions particularly difficult?

    Model answer

    The agent must learn to make good decisions despite uncertainty and limited data.

    Explanation

    The agent often does not know how the world works and must learn from experience while choosing actions.

  4. 4

    What foundational contribution is associated with Richard Bellman in reinforcement learning?

    Model answer

    Bellman pioneered important ideas about learning to make decisions under uncertainty, including Bellman’s equation.

    Explanation

    Bellman’s work provides a foundation for analyzing sequential decisions and value functions.

  5. 5

    What are two major motivations for studying reinforcement learning?

    Model answer

    Reinforcement learning is important for understanding intelligence and is also practical for solving difficult real-world problems.

    Explanation

    It addresses fundamental questions about decision-making and has produced strong results in many applications.

  6. 6

    Why is the game Go an important reinforcement learning success?

    Model answer

    By combining reinforcement learning with Monte Carlo Tree Search, an AI system learned to play Go better than the best human players.

    Explanation

    Go was considered much harder than chess and a long-standing challenge for artificial intelligence.

  7. 7

    How has reinforcement learning been applied to fusion science?

    Model answer

    Deep reinforcement learning was used to control coil controllers in order to manipulate plasma into different shapes within a vessel.

    Explanation

    The learned controller was more flexible than previously imagined approaches.

  8. 8

    How was reinforcement learning used for COVID testing in Greece?

    Model answer

    It helped determine whom to test at the border when testing resources were limited and epidemic conditions were changing.

    Explanation

    The approach used data to allocate testing strategically and was deployed in Greece.

  9. 9

    What is the high-level training process used for ChatGPT described in the lecture?

    Model answer

    It first uses behavior cloning, then learns a reward or preference model from human comparisons, and finally applies reinforcement learning from human feedback.

    Explanation

    The stages move from imitating examples to optimizing outputs according to learned human preferences.

  10. 10

    What is behavior cloning in the context of language models?

    Model answer

    Behavior cloning treats examples of prompts and responses as a supervised learning problem and trains the model to produce the demonstrated response.

    Explanation

    The model directly maps an input, such as a prompt, to an observed output.

  11. 11

    How is a preference model learned for reinforcement learning from human feedback?

    Model answer

    People compare or rank different outputs, and those preference data are used to learn a model of reward.

    Explanation

    The learned model estimates which outputs humans consider better.

  12. 12

    What does RLHF stand for, and what does it do?

    Model answer

    RLHF stands for reinforcement learning from human feedback; it optimizes a policy using a reward signal learned from human preferences.

    Explanation

    Unlike simple imitation, RLHF does not assume that every available response is good.

  13. 13

    Why can RLHF improve on ordinary imitation learning for ChatGPT-like systems?

    Model answer

    It uses human comparisons to distinguish better responses from poor ones rather than treating all collected responses as equally good demonstrations.

    Explanation

    Internet data may contain responses of varying quality, so preference-based feedback provides a more targeted reward signal.

  14. 14

    What development helped increase interest in reinforcement learning during the 2010s?

    Model answer

    Important successes included learning directly from pixel inputs to play Atari games and later the success of AlphaGo.

    Explanation

    These results showed that agents could learn decision-making behavior from high-dimensional sensory inputs.

  15. 15

    How did Yann LeCun characterize the relative roles of unsupervised, supervised, and reinforcement learning?

    Model answer

    He compared machine learning to a cake: unsupervised learning was the main cake, supervised learning was the icing, and reinforcement learning was the cherry.

    Explanation

    The analogy emphasized his view that reinforcement learning had an important but relatively small role in machine learning.

  16. 16

    What four characteristics commonly define reinforcement learning problems?

    Model answer

    They involve optimization, delayed consequences, exploration, and generalization.

    Explanation

    These features distinguish the types of decision-making challenges that reinforcement learning addresses.

  17. 17

    What does optimization mean in reinforcement learning?

    Model answer

    Optimization means selecting decisions that are best according to an explicit notion of utility or reward.

    Explanation

    A utility measure allows the agent to rank alternative outcomes or decision strategies.

  18. 18

    Why is finding the shortest route between two cities an optimization problem?

    Model answer

    Different routes can be directly compared by their distances, and the route with the smallest distance is preferred.

    Explanation

    The distance provides a clear utility measure for ranking possible solutions.

  19. 19

    What are delayed consequences in reinforcement learning?

    Model answer

    They occur when an action taken now affects rewards or outcomes much later.

    Explanation

    For example, saving for retirement has an immediate cost but may produce a later benefit.

  20. 20

    Why do delayed consequences make planning difficult?

    Model answer

    The agent must reason about how current decisions affect many possible future outcomes, making the search for an optimal action more complicated.

    Explanation

    Even when the rules are known, as in chess, considering long-term ramifications can be computationally difficult.

  21. 21

    What is temporal credit assignment?

    Model answer

    Temporal credit assignment is determining which earlier actions caused a later good or bad outcome.

    Explanation

    When rewards arrive after a sequence of actions, it is difficult to identify which decisions deserve credit or blame.

  22. 22

    Why is temporal credit assignment important for an agent making repeated decisions?

    Model answer

    The agent must identify which past decisions led to good outcomes so that it can repeat or improve those decisions.

    Explanation

    Learning from experience requires connecting later results to the actions that produced them.

  23. 23

    What is exploration in reinforcement learning?

    Model answer

    Exploration is trying actions to gain information about the world and discover which decisions produce good outcomes.

    Explanation

    The agent learns through direct experience and must sometimes try actions whose consequences are initially unknown.

  24. 24

    Why is information described as censored during exploration?

    Model answer

    An agent generally learns only about the outcomes of actions it actually tries, not about the counterfactual outcomes of actions it did not take.

    Explanation

    The agent cannot rewind the world to observe what would have happened under a different action.

  25. 25

    Why is exploration related to causal inference?

    Model answer

    Both involve the challenge of learning the effects of actions when only the outcomes of actions that were actually taken can be observed.

    Explanation

    This creates a counterfactual problem: the alternative outcome is unavailable for the same individual or situation.

  26. 26

    What is a decision policy?

    Model answer

    A decision policy is a mapping from an agent’s experience or state to an action.

    Explanation

    In a large problem, the policy provides a systematic way to choose actions without listing every possible situation manually.

  27. 27

    Why is generalization necessary in realistic reinforcement learning problems?

    Model answer

    Realistic environments contain enormous numbers of possible situations, so the agent cannot store a separate action for every situation in a table.

    Explanation

    Function approximators such as deep neural networks can generalize decisions across large input spaces.

  28. 28

    Why would a video game with images create a massive decision space?

    Model answer

    Even an image of fixed dimensions with many possible colors can have an enormous number of possible pixel configurations, each potentially requiring a decision.

    Explanation

    The number of possible images grows combinatorially, making explicit enumeration impractical.

  29. 29

    How does reinforcement learning differ from AI planning?

    Model answer

    Both can involve optimization and delayed consequences, but reinforcement learning generally also involves learning from experience, exploration, and generalization.

    Explanation

    Planning often assumes that the world model is known, whereas reinforcement learning may need to learn how the world works.

  30. 30

    How does supervised learning differ from reinforcement learning?

    Model answer

    Supervised learning receives correct labels and focuses on learning and generalizing from them, whereas reinforcement learning selects actions to maximize utility over time.

    Explanation

    Reinforcement learning may receive delayed rewards rather than direct correct labels for each decision.

  31. 31

    How does unsupervised learning differ from reinforcement learning?

    Model answer

    Unsupervised learning uses data without labels and seeks useful structure or representations, while reinforcement learning uses experience to make reward-driven decisions.

    Explanation

    Reinforcement learning includes optimization over actions and consequences, not merely learning from unlabeled data.

  32. 32

    What is imitation learning or behavioral cloning?

    Model answer

    It is learning a decision policy from expert demonstrations, often by reducing the problem to supervised learning.

    Explanation

    The learner observes what an expert does in different situations and attempts to reproduce that behavior.

  33. 33

    How can driving demonstrations be used for imitation learning?

    Model answer

    A human drives while the system records the controls, such as steering actions, and the learner maps observed situations to those demonstrated actions.

    Explanation

    The human demonstrations provide examples of behavior that the system treats as good.

  34. 34

    Why can imitation learning be viewed as a reduction to supervised learning?

    Model answer

    Expert trajectories provide input-output examples, allowing the agent to learn the action associated with each observed situation as a supervised prediction task.

    Explanation

    This approach largely avoids learning through its own exploration and does not directly optimize delayed consequences.

  35. 35

    Why might reinforcement learning outperform imitation learning?

    Model answer

    Reinforcement learning can use trial and error to optimize performance and can therefore match or exceed the quality of the demonstrations.

    Explanation

    Imitation learning is limited by the quality and coverage of the expert behavior it observes.

  36. 36

    Why can excessive reliance on imitation learning limit performance beyond humans?

    Model answer

    A system trained only to imitate humans generally cannot discover behavior that is better than the human demonstrations.

    Explanation

    Reinforcement learning can explore strategies that humans have not demonstrated, as seen in systems such as AlphaGo.

  37. 37

    Identify three situations in which reinforcement learning may be especially useful compared with imitation learning.

    Model answer

    It is useful when desired behavior is unavailable, when no existing data exist for the task, and when the goal is to exceed human performance or solve a large delayed-outcome search problem.

    Explanation

    RL can learn from scratch, directly optimize an objective, and search beyond the behavior contained in demonstrations.

  38. 38

    How did AlphaTensor apply reinforcement learning to algorithms?

    Model answer

    It used reinforcement learning to search for a faster matrix multiplication algorithm while still producing the correct matrix product.

    Explanation

    The system learned an algorithm rather than relying on a human scientist to specify one.

  39. 39

    What broader possibility is illustrated by AlphaTensor and related work on sorting algorithms?

    Model answer

    Artificial agents may be able to invent new, more efficient algorithms through large-scale search and optimization.

    Explanation

    Reinforcement learning can be used to explore algorithmic spaces that are too large for conventional manual design.

  40. 40

    What is the main distinction between planning and learning in reinforcement learning?

    Model answer

    Planning assumes that the state and action spaces and the dynamics and reward models are provided, whereas learning must use experience to identify a good policy and possibly the world model.

    Explanation

    Planning reasons with known models; learning gathers information while making decisions.

  41. 41

    What is policy evaluation?

    Model answer

    Policy evaluation determines how good a fixed decision policy is.

    Explanation

    For example, it can estimate the expected revenue or reward produced by a policy that has already been selected.

  42. 42

    What is policy control?

    Model answer

    Policy control is the process of finding or improving a policy, ideally toward the best policy.

    Explanation

    Control generally requires strategically gathering information through trial and error.

  43. 43

    Why is policy evaluation often useful for policy control?

    Model answer

    Knowing how well a policy performs can help identify whether and how to improve it.

    Explanation

    Evaluation supplies information about the quality of candidate policies during optimization.

  44. 44

    What is offline reinforcement learning?

    Model answer

    Offline reinforcement learning learns a good decision policy from a fixed amount of previously collected data.

    Explanation

    The agent does not freely gather new experience while training from the offline dataset.

  45. 45

    What is sequential decision-making under uncertainty?

    Model answer

    It is a setting in which an agent repeatedly chooses actions, interacts with the world, receives observations and rewards, and uses them to choose future actions.

    Explanation

    The process forms a feedback loop between the agent and its environment.

  46. 46

    What is the objective of an agent in sequential decision-making?

    Model answer

    The agent selects actions to maximize the total expected future reward, including both immediate and later rewards.

    Explanation

    This objective requires balancing short-term benefits against long-term consequences.

  47. 47

    Give an example of a reinforcement learning formulation for web advertising.

    Model answer

    The action is choosing an advertisement, observations include views, clicks, or purchases, and the objective may be to maximize clicks, viewing time, or revenue.

    Explanation

    The advertiser uses feedback from users to improve future recommendations.

  48. 48

    Give an example of a reinforcement learning formulation for robotics.

    Model answer

    The action may be moving a joint, the observation may be a camera image, and the reward could indicate whether the robot successfully clears or cleans a counter.

    Explanation

    The reward must be designed carefully so that the robot achieves the intended task rather than merely exploiting a superficial measure.

  49. 49

    Why would rewarding a robot merely for having no dishes on a counter create reward hacking?

    Model answer

    The robot might push the dishes onto the floor, technically clearing the counter without actually cleaning the dishes.

    Explanation

    The reward does not fully represent the intended goal; a better reward would require the dishes to be properly placed and cleaned.

  50. 50

    How could blood pressure control be modeled as a reinforcement learning problem?

    Model answer

    The agent recommends actions such as exercise or medication, observes blood pressure, and receives a positive reward for a healthy range with penalties outside that range.

    Explanation

    The policy must choose interventions based on changing health observations and their consequences.

  51. 51

    What interaction cycle is assumed in finite-time sequential decision-making?

    Model answer

    At each time step, the agent takes an action, the world updates and emits an observation and reward, and the agent uses that feedback to choose its next action.

    Explanation

    Repeating this cycle produces a finite sequence of decisions.

  52. 52

    What is a history in a sequential decision process?

    Model answer

    A history is the sequence of past actions, observations, and rewards up to the current time.

    Explanation

    The history contains all information the agent has received through its interaction with the environment.

  53. 53

    Why do reinforcement learning methods often summarize history rather than store it completely?

    Model answer

    A summary can make decision-making computationally more practical while retaining the information needed to predict the future.

    Explanation

    Histories may grow without bound, so a sufficient statistic is often preferable.

  54. 54

    What does it mean for a state to satisfy the Markov property?

    Model answer

    The probability distribution of the next state given the current state and action is the same as the distribution obtained when conditioning on the entire history.

    Explanation

    Equivalently, given the present state, the future is independent of the past.

  55. 55

    Why can the entire history always serve as a Markov state?

    Model answer

    Because the complete history contains all prior information relevant to predicting future states and outcomes.

    Explanation

    Setting the state equal to the history guarantees a sufficient representation, although it may be impractical.

  56. 56

    What is the trade-off involved in choosing a state representation?

    Model answer

    A smaller representation is easier and faster to learn from but may omit important information, while a richer representation captures more complexity but increases computational and data requirements.

    Explanation

    This is a representation trade-off resembling bias-variance considerations in machine learning.

  57. 57

    How can a student’s knowledge be represented as a state in an educational reinforcement learning problem?

    Model answer

    The state could contain estimated mastery levels for topics, such as the student’s mastery of addition and subtraction.

    Explanation

    For example, the state might represent high mastery of addition and lower mastery of subtraction.

  58. 58

    How can the history of an educational interaction be represented as a state?

    Model answer

    The state can contain the sequence of questions given and the student’s responses, including whether each answer was correct.

    Explanation

    This history can summarize the evidence collected about the student’s knowledge.

  59. 59

    Why might an LSTM or another summarization method be useful for history-based states?

    Model answer

    Histories can grow without bound, so an LSTM or another representation can compress the relevant information into a manageable state.

    Explanation

    This makes it easier for a model to make predictions or decisions from long interaction sequences.

  60. 60

    Why can a state differ from an observation?

    Model answer

    An observation is the immediate information received after an interaction, whereas a state may include information from multiple observations or hidden aspects of the environment.

    Explanation

    For example, the last student answer is an observation, while the student’s estimated mastery may be part of the state.

  61. 61

    Why might an Atari-playing agent use the last four frames instead of only the most recent frame?

    Model answer

    Multiple frames reveal temporal information such as an object’s motion, including its velocity or acceleration.

    Explanation

    A single image may not indicate how objects are moving.

  62. 62

    What does partial observability mean?

    Model answer

    Partial observability occurs when the agent cannot directly or uniquely determine the underlying state from its observations.

    Explanation

    The agent may need to infer a latent state from noisy or incomplete information.

  63. 63

    Why is a student’s knowledge a partially observable state?

    Model answer

    The agent cannot directly observe whether the student has mastered a topic; it only observes noisy evidence such as correct or incorrect answers.

    Explanation

    Students can make mistakes despite knowing material or guess correctly without mastery.

  64. 64

    Why might a laser rangefinder make a robot’s environment partially observable?

    Model answer

    Different physical locations, such as rooms on different floors with similar dimensions, may produce identical distance measurements.

    Explanation

    The observations do not uniquely identify the robot’s actual location.

  65. 65

    What is the difference between deterministic and stochastic dynamics?

    Model answer

    Deterministic dynamics produce a fixed outcome for a state-action pair, whereas stochastic dynamics produce a probability distribution over possible next states.

    Explanation

    A Go piece placed on a board is treated as deterministic, while a coin flip has uncertain outcomes.

  66. 66

    What distinguishes a bandit problem from a general sequential decision problem?

    Model answer

    In a bandit problem, an action affects the immediate reward but does not affect the state or rewards of future decision-makers or rounds.

    Explanation

    For example, showing an advertisement to one customer does not change what happens when the next independent customer arrives.

  67. 67

    How can an educational tutoring problem be formulated as a reinforcement learning problem?

    Model answer

    The state represents the student’s knowledge or interaction history, the actions are choosing addition or subtraction practice, and the reward is positive for a correct answer and negative for an incorrect answer.

    Explanation

    The dynamics describe how the student’s knowledge or history changes after receiving a practice problem.

  68. 68

    What would the dynamics model represent in the educational tutoring example?

    Model answer

    It would describe how the student’s knowledge state or interaction history changes after the tutor provides a problem.

    Explanation

    A reasonable curriculum might increase the student’s probability of mastering the practiced topic.

  69. 69

    What is reward hacking?

    Model answer

    Reward hacking occurs when an agent optimizes the specified reward but produces behavior that fails to achieve the designer’s actual intended goal.

    Explanation

    A tutoring agent rewarded for quick answers might give only trivial questions instead of helping the student learn.

  70. 70

    Why might a tutoring agent rewarded for correct answers give only easy problems?

    Model answer

    Giving easy problems makes correct answers likely and maximizes the immediate reward, even though it may not improve mastery of harder topics.

    Explanation

    The reward specification values correctness but fails to encode the broader educational objective.

  71. 71

    What are the components of a small Mars rover Markov decision process?

    Model answer

    The states are seven rover locations, the actions are trying to move left or right, and rewards are associated with particular field sites, such as +1+1+1 or +10+10+10, with zero elsewhere.

    Explanation

    The rover’s imperfect movement makes the transition dynamics stochastic.

  72. 72

    What does a dynamics model specify in a Markov decision process?

    Model answer

    It specifies the distribution over next states resulting from taking an action in the current state.

    Explanation

    For a rover trying to move right, the model might assign probabilities to moving right, moving left, or staying in place.

  73. 73

    What does a reward model specify?

    Model answer

    It specifies the expected immediate reward associated with a state and action, possibly also depending on the next state.

    Explanation

    Different conventions define rewards as functions of the state, state-action pair, or state-action-next-state tuple.

  74. 74

    What are three common conventions for defining a reward model?

    Model answer

    The reward may be a function of the current state alone, the current state and action, or the current state, action, and next state.

    Explanation

    All three conventions appear in reinforcement learning literature, so the chosen convention should be stated clearly.

  75. 75

    What is a decision policy in a Markov decision process?

    Model answer

    A decision policy maps states to actions or to a probability distribution over actions.

    Explanation

    A deterministic policy selects one action in each state, while a stochastic policy randomizes among actions.

  76. 76

    Contrast deterministic and stochastic policies.

    Model answer

    A deterministic policy always selects the same action in a given state, whereas a stochastic policy assigns probabilities to possible actions.

    Explanation

    For example, a policy might choose one advertisement with probability 0.90.90.9 and another with probability 0.10.10.1.

  77. 77

    What is the difference between a model-based and a model-free approach?

    Model answer

    A model-based approach uses or learns an explicit dynamics and reward model, whereas a model-free approach learns values or policies without explicitly modeling the environment.

    Explanation

    Model-based methods can plan using predicted transitions, while model-free methods learn decision behavior more directly.

  78. 78

    Why can model errors harm final decisions in model-based reinforcement learning?

    Model answer

    Incorrect predictions of dynamics or rewards can propagate through planning and lead the agent to choose poor actions.

    Explanation

    The quality of the final policy depends on how accurately the model represents the environment.

  79. 79

    What is a Markov chain?

    Model answer

    A Markov chain is a memoryless random process with a finite set of states and no rewards or actions.

    Explanation

    Its transition behavior depends on the current state rather than the full history.

  80. 80

    How can the dynamics of a finite Markov chain be represented?

    Model answer

    They can be represented by a transition matrix whose entries give the probability of moving from one state to another.

    Explanation

    Each row of the transition matrix represents the distribution of the next state given a particular current state.

  81. 81

    What constraint must each row of a Markov chain transition matrix satisfy?

    Model answer

    The probabilities in each row must sum to 111.

    Explanation

    The row represents a complete probability distribution over all possible next states.

  82. 82

    What is a Markov reward process?

    Model answer

    A Markov reward process is a Markov chain augmented with a reward function and a discount factor, but it has no actions.

    Explanation

    It is useful for evaluating the rewards generated by a fixed stochastic process.

  83. 83

    What is the horizon of a reinforcement learning episode?

    Model answer

    The horizon is the number of time steps over which the agent makes decisions; it may be finite or infinite.

    Explanation

    A finite horizon ends after a specified number of decisions, while an infinite horizon continues indefinitely.

  84. 84

    What is the return GtG_tGt​?

    Model answer

    The return GtG_tGt​ is the discounted sum of rewards received from the current time step through the end of the horizon.

    Explanation

    It measures the total future reward associated with a trajectory from time ttt onward.

  85. 85

    Why is the value function generally different from the actual return?

    Model answer

    The value function is the expected return, whereas the actual return depends on the particular stochastic trajectory that occurs.

    Explanation

    Different sampled trajectories can produce different sequences of rewards.

  86. 86

    What is the purpose of the discount factor in a return?

    Model answer

    The discount factor weights earlier rewards more heavily than later rewards and can keep the total return finite.

    Explanation

    It models preference for immediate rewards and provides mathematical convenience for infinite-horizon problems.

  87. 87

    When can the discount factor be set to 111?

    Model answer

    When episode lengths are always finite, the discount factor can be set to 111 without causing an infinite sum.

    Explanation

    In infinite-horizon settings, a discount factor less than 111 is generally needed to keep rewards bounded.

  88. 88

    Why is a discount factor less than 111 useful for infinite-horizon problems?

    Model answer

    It prevents the accumulated reward from diverging and keeps returns bounded, making policies with different rewards easier to compare.

    Explanation

    Comparing multiple policies that all produce infinite total reward is difficult, whereas discounting can produce finite values.

1 of 88
Question 1 of 88

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent