Deep Reinforcement Learning Intro
- 87Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What type of problems does reinforcement learning address?
87 questions
- 1
What type of problems does reinforcement learning address?
Model answer
Reinforcement learning addresses decision-making problems in which a system makes multiple decisions based on a stream of information.
Explanation
The system repeatedly observes its situation, takes an action, and then observes again before making another decision.
- 2
Describe the basic interaction loop in reinforcement learning.
Model answer
An agent observes the world, takes an action based on the observation, receives a new observation or state, and then takes another action.
Explanation
This repeated interaction distinguishes reinforcement learning from problems involving only a single prediction.
- 3
What is the main goal of deep reinforcement learning?
Model answer
The goal is to represent and learn behavior that can be optimized for high reward, using methods that scale to deep neural networks.
Explanation
Deep reinforcement learning focuses on applying reinforcement learning ideas with neural-network-based representations.
- 4
What kinds of reinforcement learning methods are included within the scope of deep reinforcement learning?
Model answer
They include imitation learning, model-free and model-based reinforcement learning, offline and online reinforcement learning, multitask and meta-reinforcement learning, and reinforcement learning for language models and robots.
Explanation
These methods address different sources of data, objectives, and applications while sharing the focus on sequential decision-making.
- 5
Why does deep reinforcement learning emphasize methods that scale to deep neural networks?
Model answer
Deep neural networks can represent complex behaviors and high-dimensional inputs, such as images, language, and robot sensor data.
Explanation
Methods that do not work effectively with deep neural networks are given less emphasis because modern applications often require these representations.
- 6
What is the central implementation goal of studying deep reinforcement learning?
Model answer
A central goal is to understand and implement existing and emerging deep reinforcement learning methods.
Explanation
The emphasis is not only on conceptual understanding but also on becoming comfortable implementing algorithms.
- 7
How does supervised learning typically represent its training data?
Model answer
Supervised learning typically uses labeled input-output pairs, written as x and y, sampled independently and identically from a data distribution.
Explanation
The learner is directly told the desired output for each input.
- 8
What function is learned in supervised learning, and what function is learned in reinforcement learning?
Model answer
Supervised learning learns a mapping from inputs x to outputs y, whereas reinforcement learning learns a policy that maps states or observations to actions.
Explanation
In reinforcement learning, the mapping is usually written as �pi(a∣s) or simply as a policy �pi.
- 9
Why is reinforcement learning data different from supervised learning data?
Model answer
Reinforcement learning data is generated through interaction and often depends on the policy currently being learned, rather than being independently sampled from one fixed distribution.
Explanation
The agent's behavior affects which states and observations it encounters.
- 10
What kind of feedback does reinforcement learning use instead of direct labels?
Model answer
Reinforcement learning uses indirect feedback, such as rewards or other objective signals, to evaluate behavior rather than directly specifying the correct action.
Explanation
The agent must discover which actions lead to better outcomes from experience.
- 11
Give three examples of behaviors that can be modeled as reinforcement learning problems.
Model answer
Examples include controlling a robot, interacting with a person through a chatbot, playing a game, driving a car, and interacting with the web.
Explanation
Each example involves repeated decisions whose consequences affect later situations.
- 12
Why can reinforcement learning be viewed as going beyond supervised learning?
Model answer
It can optimize long-term consequences of actions, learn from indirect feedback, and operate when direct labels or differentiable accuracy objectives are unavailable.
Explanation
These properties make reinforcement learning applicable to sequential behaviors rather than only isolated predictions.
- 13
Why are feedback loops important in applications such as chatbots and recommenders?
Model answer
An action changes future outcomes and observations, so the system must account for how its current decision affects later interactions.
Explanation
For example, a recommender should consider how recommending one song affects what it recommends next.
- 14
How can reinforcement learning account for consequences in a music recommender?
Model answer
It can optimize recommendations over a sequence, avoiding undesirable repetition while considering longer-term preferences such as genre continuity.
Explanation
The value of a recommendation depends not only on the immediate choice but also on its effects on future recommendations and user responses.
- 15
Why is reinforcement learning useful when direct supervision is unavailable?
Model answer
It can learn from indirect evaluations, such as feedback that a coding assistant did well or poorly, even when no correct output is provided.
Explanation
The feedback can be represented as an objective or reward instead of a target label.
- 16
Why is learning from experience considered important for machine intelligence?
Model answer
Learning from experience enables an agent to improve through practice and discover new solutions rather than merely mimicking existing data.
Explanation
This ability is viewed as a fundamental component of intelligent behavior.
- 17
How can reinforcement learning support discovery?
Model answer
An agent can experiment with different behaviors and discover strategies that were not present in its training examples.
Explanation
This discovery capability was illustrated by a game-playing system finding a surprising Go strategy known as Move 37.
- 18
What did deep reinforcement learning demonstrate in the game of Go?
Model answer
DeepMind trained a system that defeated Lee Sedol and discovered a previously unexpected strategy called Move 37.
Explanation
The result showed that reinforcement learning can produce novel high-performing strategies.
- 19
How can reinforcement learning be useful for scientific or engineering discovery?
Model answer
It can guide experimentation to discover solutions or structures, such as potential disease-related discoveries or improved chip designs.
Explanation
The agent searches through possible decisions and evaluates their consequences.
- 20
How has reinforcement learning been used with robots?
Model answer
It has been used for legged locomotion, dancing humanoids, and robotic manipulation tasks such as unloading laundry, folding laundry, and folding origami.
Explanation
Some robotic policies are trained in simulation and transferred to real-world robots, while other tasks use imitation learning.
- 21
What is simulation-to-real transfer in robotic reinforcement learning?
Model answer
It is the process of training a policy in simulation and transferring the learned behavior to a physical robot.
Explanation
This approach can provide large amounts of practice without requiring all training interactions to occur on the real robot.
- 22
How is reinforcement learning used in modern language models?
Model answer
Many modern language models use reinforcement learning for post-training, including efforts to improve advanced reasoning.
Explanation
The model's outputs can be evaluated with objectives that guide later behavior.
- 23
How can reinforcement learning improve generative-model outputs?
Model answer
It can optimize generations to adhere more closely to a specified prompt, such as producing a better image of a dolphin riding a bicycle.
Explanation
The generated result is evaluated according to how well it satisfies the desired objective.
- 24
What are two additional applications of reinforcement learning mentioned in the content?
Model answer
Applications include traffic control, such as inserting cars to increase road throughput, and chip design, including chips used in Google's production TPU.
Explanation
These examples show that reinforcement learning applies beyond games, language, and robotics.
- 25
What does it mean for a robot to improve with practice?
Model answer
It means that repeated interaction and experience allow the robot to increase its task performance over time.
Explanation
In the examples, robots initially performed poorly but eventually learned tasks such as inserting parts or placing a block in a shape-sorting cube.
- 26
Why was the camera-equipped block-placement robot an important example?
Model answer
It showed that a robot could use visual information and real-world experience to improve repeatedly, eventually reaching approximately 95% to 100% success.
Explanation
The example demonstrated learning in the real world rather than merely executing a preprogrammed behavior.
- 27
Why is reward learning necessary for many real-world reinforcement learning tasks?
Model answer
It is necessary because manually specifying a task-specific reward, such as object distance or motion-capture position, does not generalize easily to many situations.
Explanation
Simple rewards can be engineered for particular demonstrations, but more general tasks require methods for learning what should count as good behavior.
- 28
How was reward represented in the example of inserting an object into a goal?
Model answer
The reward was represented using the negative distance between the object's position and its goal position.
Explanation
The robot's arm measurements made it possible to estimate the object's position in that particular setup.
- 29
What difficulty does a sparse reward create for reinforcement learning?
Model answer
If the agent almost never reaches the goal, it receives little useful learning signal and may obtain the same low reward on nearly every attempt.
Explanation
Demonstrations or other initialization methods can help exploration when rewards are sparse.
- 30
What is reset-free reinforcement learning intended to address?
Model answer
It addresses settings in which an agent cannot easily undo or reset a failed attempt and must practice more autonomously.
Explanation
In the hockey example, a person repeatedly reset the robot, which made collecting large amounts of data impractical.
- 31
Name four open research challenges in deep reinforcement learning.
Model answer
Challenges include learning useful reward representations, generalizing across scenarios, scaling to diverse data, solving long-horizon tasks, and enabling fully autonomous practice.
Explanation
Examples of long-horizon tasks include cooking a meal and solving a difficult mathematics problem.
- 32
What is a state in reinforcement learning?
Model answer
A state, denoted by S, is a representation of the current condition of the world that contains the information needed for decision-making.
Explanation
For a robot, a state might include the positions of its arm, a towel, and a hook.
- 33
What is an observation, and how does it differ from a state?
Model answer
An observation, denoted by O, is the information available to the agent about the world and may omit information needed to make a decision, whereas a state is intended to contain the relevant information.
Explanation
An image or the latest chatbot message may be only a partial description of the underlying state.
- 34
Why might a robot use an image and joint positions as observations instead of the complete state?
Model answer
The robot may not have direct access to variables such as an object's position, so it uses camera images and measurable joint positions as available observations.
Explanation
Observations are practical sensor measurements, but they may not fully reveal the world.
- 35
Why does a chatbot often need a history of observations?
Model answer
The user's most recent message alone may not contain enough context to determine the appropriate response, so the chatbot needs earlier messages as well.
Explanation
Conversation history helps infer the underlying state of the interaction.
- 36
What is an action in reinforcement learning?
Model answer
An action, denoted by a, is a decision or command chosen by the agent and executed in the environment.
Explanation
Examples include moving a robot joint or sending the next message in a chatbot conversation.
- 37
What is a trajectory?
Model answer
A trajectory is a sequence of states and actions or a sequence of observations and actions collected during an interaction with the environment.
Explanation
Reinforcement learning commonly uses data sets of trajectories rather than independent input-output pairs.
- 38
What does a reward function represent?
Model answer
A reward function measures how good a state and action are for the task.
Explanation
It may measure task progress, task completion, user feedback, or the cost of using excessive control effort.
- 39
Give two examples of state-based rewards.
Model answer
A reward might measure how close a towel is to being hung or whether a towel is successfully on a hook.
Explanation
In many tasks, reward depends only on the resulting state rather than directly on the action.
- 40
Why might a reward depend on the action as well as the state?
Model answer
An action-dependent reward can penalize undesirable control effort, such as applying excessive torque or using too much motor energy.
Explanation
A walking robot may receive reward for forward progress while also being penalized for energy-intensive actions.
- 41
How can chatbot feedback be represented as a reward?
Model answer
A reward could be 1 for a user upvote, −10 for a downvote, and 0 when there is no user feedback.
Explanation
This converts indirect user evaluations into a signal that can guide policy learning.
- 42
What is the dynamics function in reinforcement learning?
Model answer
The dynamics function describes the probability of the next state given the current state and action, such as P(St+1∣St,at).
Explanation
It models how the environment changes after the agent acts.
- 43
What does the Markov property state about future states?
Model answer
Given the current state and action, the next state is independent of earlier states; for example, S3 depends on S2 and a2, not directly on S1.
Explanation
This property allows the problem to be analyzed using the current state rather than the entire preceding history.
- 44
Why is the Markov property useful in reinforcement learning?
Model answer
It simplifies decision-making by allowing the agent to condition predictions and actions on the current state instead of all previous states.
Explanation
Without this property, the full history might be required to predict future outcomes.
- 45
Why can future observations depend on past observations even when the underlying state is Markov?
Model answer
Observations may reveal only part of the state, so earlier observations can provide information about hidden state variables that affect future observations.
Explanation
For example, tactile observations may not reveal whether contact occurred earlier, while a longer history can help infer the current situation.
- 46
How can a history of observations help approximate a state?
Model answer
A sequence of recent observations can provide missing information about hidden variables, such as the velocity of nearby cars, and can therefore serve as an approximate state representation.
Explanation
The amount of history required depends heavily on the domain and the available sensors.
- 47
Why might current vision observations provide more information than tactile observations?
Model answer
Tactile sensors may provide little information when there is no contact, while an image can reveal a broader portion of the environment at each time step.
Explanation
Combining tactile and visual information can produce a more complete representation.
- 48
What is a common state representation for a robot?
Model answer
It can include RGB camera images, the positions of all robot joints, and the velocities of those joints.
Explanation
These components describe both the visual environment and the robot's physical configuration.
- 49
What could be the action in a robot joint-control problem?
Model answer
The action could be the commanded next joint position, such as moving a joint from 90 degrees to 92 degrees.
Explanation
The action specifies the next control command issued to the robot.
- 50
How is time commonly discretized in a robot trajectory?
Model answer
The trajectory may be sampled at a fixed frequency such as 20 Hertz, producing images, joint observations, and commanded actions 20 times per second.
Explanation
Discretizing time makes continuous physical behavior easier to represent as a sequence of data points.
- 51
How does time representation differ between a robot trajectory and a chatbot trajectory?
Model answer
A robot trajectory may use fixed time intervals such as twentieths of a second, whereas a chatbot trajectory may advance whenever the user sends the next message.
Explanation
Conversation events do not necessarily occur at a fixed frequency.
- 52
What are the state or observation, action, trajectory, and reward in a chatbot reinforcement learning formulation?
Model answer
The observation can be the latest user message, the action can be the chatbot's next message, the trajectory can be the conversation trace, and the reward can represent user feedback.
Explanation
This formulation treats language interaction as sequential decision-making with potentially variable-length actions.
- 53
How could a web-interacting agent be formulated as a reinforcement learning problem?
Model answer
Its observation could include the current web page and URL, its action could be an interaction with the page, and its reward could indicate whether the task was completed.
Explanation
The agent repeatedly observes web content and chooses actions that influence later pages and outcomes.
- 54
What is a policy in reinforcement learning?
Model answer
A policy, usually denoted by π, maps states or observations, possibly including their history, to actions.
Explanation
The policy represents the agent's behavior.
- 55
What forms can a policy representation take?
Model answer
A policy can be a convolutional neural network, transformer, fully connected neural network, or even a linear function.
Explanation
The appropriate representation depends on the complexity and structure of the inputs and actions.
- 56
What do the parameters θ represent in a policy?
Model answer
The parameters θ are the learned parameters of the neural network or other function representing the policy.
Explanation
Reinforcement learning adjusts these parameters to improve expected reward.
- 57
What happens when a policy is used to interact with the environment?
Model answer
The policy receives a state or observation, performs a forward pass, samples or selects an action, executes it, and receives the next state or observation.
Explanation
Repeating this process generates experience for learning.
- 58
What are a rollout and an episode?
Model answer
A rollout or episode is a trajectory generated by repeatedly applying a policy and observing the resulting environment transitions.
Explanation
Each episode can be viewed as one attempt at performing a task.
- 59
Why does a policy need memory when only observations are available?
Model answer
Because a single observation may omit relevant information, the policy can use a sequence of observations to infer the underlying state.
Explanation
Sequence models are commonly used to provide this memory, especially in language applications.
- 60
Why is memory unnecessary when the input is a complete state?
Model answer
If the state contains all information needed for decision-making, the policy can choose an action from the current state alone.
Explanation
Adding history does not provide useful information when the current state is truly Markov and complete.
- 61
What is the main objective of reinforcement learning?
Model answer
The main objective is to maximize the total reward accumulated over a trajectory.
Explanation
The agent seeks behavior that produces high reward across the entire sequence rather than at only one time step.
- 62
Why is the total reward from a policy generally not deterministic?
Model answer
It can vary because the environment dynamics may be stochastic and the policy may choose actions stochastically.
Explanation
Different initial conditions, other agents, environmental events, or sampled actions can produce different trajectories and rewards.
- 63
What are two primary sources of variability in reinforcement learning trajectories?
Model answer
The environment can transition stochastically, and the policy can be stochastic when selecting actions.
Explanation
For example, other cars may behave differently and the agent's vehicle may choose different actions on different runs.
- 64
How can initial conditions contribute to trajectory variability?
Model answer
The initial state may vary across trials, such as when a game begins with different card deals.
Explanation
Different starting states lead to different possible future trajectories even under the same policy.
- 65
How is the probability of a trajectory constructed?
Model answer
It is the product of the initial-state probability and the policy and dynamics probabilities for each successive action and state transition.
Explanation
The trajectory probability accounts for both the actions selected by the policy and the states produced by the environment.
- 66
How is the reinforcement learning objective written in terms of expected reward?
Model answer
The objective is to maximize the expected sum of rewards over trajectories generated by the policy and environment.
Explanation
The policy affects the objective indirectly by changing the distribution of trajectories from which rewards are obtained.
- 67
Why does the policy affect the reinforcement learning objective even if it does not appear directly inside the reward function?
Model answer
The policy determines the actions taken and therefore changes the distribution of states, actions, and trajectories over which the rewards are averaged.
Explanation
Optimizing the policy means finding behavior that induces trajectories with higher expected reward.
- 68
Does the trajectory length T have to be fixed in reinforcement learning?
Model answer
No. The trajectory length can be variable, although using a fixed T can make the mathematical notation simpler.
Explanation
For example, a trajectory may end when a task is completed or when a message reaches a particular length.
- 69
What is a discount factor, and why is it used?
Model answer
A discount factor weights future rewards, typically using a value greater than 0 and less than or equal to 1, so that near-term rewards can matter more than distant rewards.
Explanation
Discounting is useful when immediate outcomes are more important than outcomes far in the future.
- 70
What happens when the discount factor equals 1?
Model answer
The discounted objective becomes the ordinary undiscounted sum of rewards.
Explanation
All rewards receive equal weighting under this setting.
- 71
What is the effect of decreasing the discount factor?
Model answer
Decreasing it makes the policy more focused on near-term rewards and less concerned with distant rewards.
Explanation
This is sometimes described as making the agent more short-sighted or greedy with respect to immediate outcomes.
- 72
Why might a stochastic policy be useful for learning?
Model answer
It encourages exploration by allowing the agent to try different actions or strategies instead of repeating exactly the same behavior.
Explanation
For example, a tennis-learning agent needs to experiment with different techniques to discover which works best.
- 73
Why might a stochastic policy be useful for modeling demonstrations?
Model answer
If people or other systems use multiple strategies, a stochastic policy can represent the distribution of actions they take rather than forcing one deterministic action.
Explanation
Generative-model tools can represent actions conditioned on states or observations.
- 74
What is the value function Vπ(s)?
Model answer
The value function is the expected future reward obtained by starting in state s and following policy π thereafter.
Explanation
It evaluates how favorable a state is under the current policy.
- 75
How does a Q-value function differ from a value function?
Model answer
A Q-value evaluates the expected future reward after starting in state s, taking a specified action a, and then following policy π, whereas Vπ(s) begins by following the policy's action choice.
Explanation
The Q-value can evaluate an action that differs from the action the current policy would normally take.
- 76
What is the central idea of imitation learning?
Model answer
Imitation learning seeks to mimic a policy that achieves high reward.
Explanation
Instead of discovering behavior entirely through its own trial and error, the learner uses demonstrations of successful behavior.
- 77
What is the central idea of policy-gradient methods?
Model answer
Policy-gradient methods directly differentiate the reinforcement learning objective and use experience to improve the policy.
Explanation
They adjust the policy parameters in a direction expected to increase reward.
- 78
What is the central idea of actor-critic algorithms?
Model answer
Actor-critic algorithms estimate the value of the current policy and use that estimate to improve the policy.
Explanation
The actor represents behavior, while value estimates provide information for updating it.
- 79
What is the central idea of value-based methods?
Model answer
Value-based methods estimate the value of an optimal policy and use those estimates to derive a good policy.
Explanation
The policy is obtained indirectly from the learned values of states or state-action pairs.
- 80
What is the central idea of model-based reinforcement learning?
Model answer
Model-based methods learn a model of environment dynamics, use it to predict the future, and then improve the policy or plan actions.
Explanation
The learned dynamics model supports reasoning about consequences before executing actions.
- 81
Why are there many different reinforcement learning algorithms instead of one universal method?
Model answer
Different algorithms make different trade-offs and work best under different assumptions about data cost, supervision, stability, action spaces, and the learnability of dynamics.
Explanation
For example, data collection is cheap in simulation but expensive when interacting with people or physical robots.
- 82
How does the cost of data collection influence the choice of a reinforcement learning algorithm?
Model answer
When data is expensive, an algorithm with strong data efficiency may be preferred; when data is cheap, methods that require many interactions may be practical.
Explanation
Simulation can provide abundant inexpensive data, unlike real-world interaction or human-generated responses.
- 83
How do available forms of supervision affect reinforcement learning method selection?
Model answer
The presence of demonstrations, detailed rewards, or only weak feedback can favor different algorithms.
Explanation
Methods such as imitation learning benefit from demonstrations, while other methods learn directly from reward signals.
- 84
What properties of the action space matter when choosing a reinforcement learning algorithm?
Model answer
Important properties include whether actions are continuous or discrete and how high-dimensional the action space is.
Explanation
These properties affect how easily a policy or value function can represent and optimize actions.
- 85
What is a Markov decision process?
Model answer
A Markov decision process, or MDP, is a reinforcement learning formulation defined by states, actions, rewards, initial-state distribution, and environment dynamics.
Explanation
The Markov property means that the current state contains the information needed to characterize future transitions.
- 86
What is a partially observable Markov decision process?
Model answer
A partially observable Markov decision process, or POMDP, is a reinforcement learning formulation in which the agent receives observations that may not reveal the complete underlying state.
Explanation
Because information is hidden, the agent may need observation history or memory to make good decisions.
- 87
Compare an MDP and a POMDP in terms of information available to the agent.
Model answer
In an MDP, the agent has access to a state representation that is sufficient for decision-making; in a POMDP, it receives only partial observations and may need to infer the state.
Explanation
This distinction determines whether a memoryless policy is sufficient or whether a policy should use history.

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