Reinforcement Learning Overview
- 20Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the goal of reinforcement learning?
What is the goal of reinforcement learning?
20 questions
- 1
What is the goal of reinforcement learning?
- A
To perfectly model the environment dynamics
- B
To learn the optimal policy that maximizes cumulative future rewards
- C
To minimize the number of states visited
- D
To maximize immediate rewards at each step
Correct answer
BTo learn the optimal policy that maximizes cumulative future rewards
Explanation
The goal is to learn a policy (π) that maximizes the expected sum of future discounted rewards, not just immediate rewards.
- A
- 2
In reinforcement learning, what does the policy (π) represent?
- A
The probability of taking an action given a state
- B
The model of the environment's dynamics
- C
The expected future reward from a state
- D
The discount factor applied to future rewards
Correct answer
AThe probability of taking an action given a state
Explanation
The policy π(a|s) defines the probability of selecting action a when in state s. It can be deterministic or stochastic.
- A
- 3
What is the value function V(s) in reinforcement learning?
- A
The expected cumulative discounted future reward starting from state s under a given policy
- B
The probability of transitioning from state s to another state
- C
The immediate reward received when entering state s
- D
The optimal action to take in state s
Correct answer
AThe expected cumulative discounted future reward starting from state s under a given policy
Explanation
The value function V(s) gives the expected total discounted reward starting from state s and following policy π thereafter.
- A
- 4
Why is a discount factor (γ) used in reinforcement learning?
- A
To ensure the agent explores all states equally
- B
To make future rewards less valuable, reflecting economic utility
- C
To reduce the variance of reward estimates
- D
To guarantee convergence of Q-learning
Correct answer
BTo make future rewards less valuable, reflecting economic utility
Explanation
The discount factor (0 ≤ γ < 1) weights future rewards less than immediate rewards, similar to economic utility theory.
- A
- 5
What makes reinforcement learning challenging for games like chess and Go?
- A
The state space is astronomically large, making enumeration infeasible
- B
The reward structure is too dense
- C
The environments are deterministic
- D
The actions are continuous
Correct answer
AThe state space is astronomically large, making enumeration infeasible
Explanation
Chess has about 10^80 possible states, and Go even more. This makes it impossible to directly compute value functions by enumeration.
- A
- 6
What is the key distinction between model-based and model-free reinforcement learning?
- A
Model-based is always more scalable than model-free
- B
Model-based assumes a known model of the environment, while model-free learns without one
- C
Model-free requires a Markov decision process formulation
- D
Model-based uses dynamic programming, while model-free uses Monte Carlo methods
Correct answer
BModel-based assumes a known model of the environment, while model-free learns without one
Explanation
Model-based RL leverages an explicit model of environment dynamics (e.g., MDP, differential equations). Model-free RL learns directly from interaction without a model.
- A
- 7
Which algorithms are typical examples of model-based reinforcement learning?
- A
SARSA and Q-learning
- B
Policy gradient and actor-critic
- C
Policy iteration and value iteration
- D
Monte Carlo tree search and deep Q-networks
Correct answer
CPolicy iteration and value iteration
Explanation
Policy iteration and value iteration are dynamic programming methods used when the environment model (e.g., MDP) is known. They rely on Bellman optimality.
- A
- 8
Which equation underlies dynamic programming in model-based reinforcement learning for Markov decision processes?
- A
Hamilton-Jacobi-Bellman (HJB) equation
- B
State-action-reward-state-action (SARSA) update
- C
Bellman expectation equation
- D
Bellman optimality equation
Correct answer
DBellman optimality equation
Explanation
The Bellman optimality equation for the value function is central to dynamic programming methods like policy iteration and value iteration.
- A
- 9
What is a major practical limitation of dynamic programming in model-based reinforcement learning?
- A
It cannot handle stochastic environments
- B
It often amounts to a brute-force search and does not scale to high-dimensional systems
- C
It can only be applied to discrete action spaces
- D
It requires gradient information that is rarely available
Correct answer
BIt often amounts to a brute-force search and does not scale to high-dimensional systems
Explanation
Dynamic programming solves the Bellman equation by iterating over all states, which becomes computationally intractable for large state spaces.
- A
- 10
For continuous control problems (e.g., robotics), which equation generalizes Bellman optimality in model-based reinforcement learning?
- A
Hamilton-Jacobi-Bellman (HJB) equation
- B
Lyapunov equation
- C
Riccati equation
- D
Newton-Euler equation
Correct answer
AHamilton-Jacobi-Bellman (HJB) equation
Explanation
The HJB equation is the continuous-time analog of the Bellman equation and is used for optimal nonlinear control.
- A
- 11
In model-free reinforcement learning, what are the two main subcategories?
- A
Tabular and function approximation methods
- B
Gradient-free and gradient-based methods
- C
On-policy and off-policy methods
- D
Value-based and policy-based methods
Correct answer
BGradient-free and gradient-based methods
Explanation
Model-free methods are first divided into gradient-free (e.g., SARSA, Q-learning) and gradient-based (e.g., policy gradient) approaches.
- A
- 12
What distinguishes on-policy learning from off-policy learning in model-free reinforcement learning?
- A
On-policy learns from actions taken under the current policy, while off-policy can learn from actions taken under a different policy
- B
On-policy uses a fixed policy, while off-policy updates the policy continuously
- C
On-policy is only used for continuous action spaces
- D
Off-policy requires a model of the environment
Correct answer
AOn-policy learns from actions taken under the current policy, while off-policy can learn from actions taken under a different policy
Explanation
On-policy methods evaluate and improve the same policy that generates behavior. Off-policy methods can learn from data generated by any policy (e.g., exploratory or demonstrator policies).
- A
- 13
Which algorithm is a classic example of on-policy gradient-free reinforcement learning?
- A
SARSA (State-Action-Reward-State-Action)
- B
Policy gradient
- C
Deep Q-Network (DQN)
- D
Q-learning
Correct answer
ASARSA (State-Action-Reward-State-Action)
Explanation
SARSA is an on-policy algorithm that updates its action-value function using the current policy's actions. It stands for State-Action-Reward-State-Action.
- A
- 14
Which algorithm is a classic example of off-policy gradient-free reinforcement learning?
- A
Actor-critic
- B
Q-learning
- C
SARSA
- D
Monte Carlo tree search
Correct answer
BQ-learning
Explanation
Q-learning is off-policy because it learns the optimal action-value function using the maximum over next actions, independent of the behavior policy.
- A
- 15
What is the Q-function (quality function) in reinforcement learning?
- A
The gradient of the value function with respect to policy parameters
- B
The expected discounted reward for taking action a in state s and then following the optimal policy
- C
The probability of transitioning from state s to s' given action a
- D
The value of a state under the optimal policy
Correct answer
BThe expected discounted reward for taking action a in state s and then following the optimal policy
Explanation
The Q-function Q(s,a) gives the expected cumulative future reward when taking action a in state s and then acting optimally thereafter.
- A
- 16
How do on-policy and off-policy methods compare in terms of behavior?
- A
On-policy methods require a model of the environment
- B
On-policy methods are more conservative, while off-policy methods converge faster
- C
Off-policy methods cannot handle stochastic environments
- D
On-policy methods always outperform off-policy methods
Correct answer
BOn-policy methods are more conservative, while off-policy methods converge faster
Explanation
On-policy methods (like SARSA) tend to be more cautious because they learn from the current policy. Off-policy methods (like Q-learning) often converge faster because they can use more exploratory data.
- A
- 17
Why are gradient-based methods in reinforcement learning often faster than gradient-free methods?
- A
They directly optimize the policy or value function using gradient information, enabling more efficient updates
- B
They do not need a reward signal
- C
They avoid exploration entirely
- D
They require fewer data samples
Correct answer
AThey directly optimize the policy or value function using gradient information, enabling more efficient updates
Explanation
Gradient-based methods (e.g., policy gradient) compute gradients of the objective with respect to parameters, allowing for efficient optimization using steepest descent or Newton steps.
- A
- 18
Which technique has been crucial for recent breakthroughs in deep reinforcement learning, such as AlphaGo?
- A
Ensemble of decision trees
- B
Depth-first search
- C
Deep neural networks to represent value functions, policies, or Q-functions
- D
Linear quadratic regulators
Correct answer
CDeep neural networks to represent value functions, policies, or Q-functions
Explanation
Deep neural networks allow representation of complex functions (e.g., Q-function, policy) in high-dimensional spaces, enabling RL to tackle problems like Go and Atari games.
- A
- 19
What is the key idea behind actor-critic methods in reinforcement learning?
- A
They combine on-policy and off-policy learning into a single algorithm
- B
They only rely on Monte Carlo rollouts
- C
They use two separate neural networks: one for value and one for policy
- D
They require a known model of the environment
Correct answer
CThey use two separate neural networks: one for value and one for policy
Explanation
Actor-critic methods have two components: an actor (policy) that selects actions and a critic (value function) that evaluates them. Both can be represented by neural networks.
- A
- 20
What is a common application of off-policy learning mentioned in the lecture?
- A
Playing chess without any opponent model
- B
Solving linear quadratic regulator problems
- C
Imitation learning, where the agent learns by observing others' behavior
- D
Training a robot with a known dynamics model
Correct answer
CImitation learning, where the agent learns by observing others' behavior
Explanation
Off-policy methods like Q-learning can learn from data generated by any policy, making them suitable for imitation learning where the agent observes expert demonstrations.
- A

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