Reinforcement Learning Overview
- 21Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Define the policy in reinforcement learning.
21 questions
- 1
Define the policy in reinforcement learning.
Model answer
The policy, denoted π, is a probability of taking action a given state s, i.e., π(a|s). It can be deterministic or probabilistic and determines the agent's behavior.
Explanation
The policy maps states to actions, guiding the agent's decisions to maximize cumulative reward.
- 2
What is the value function in reinforcement learning?
Model answer
The value function Vπ(s) gives the expected discounted future reward starting from state s and following policy π, with a discount factor γ.
Explanation
It quantifies the long-term value of being in a state under a given policy.
- 3
Why is a discount factor γ used in reinforcement learning?
Model answer
The discount factor γ (0 ≤ γ < 1) reduces the weight of future rewards, reflecting that immediate rewards are more valuable, similar to economic utility functions.
Explanation
It ensures convergence of the value function and models preference for earlier rewards.
- 4
What is the overall goal of reinforcement learning?
Model answer
To learn the optimal policy π* that maximizes the expected cumulative (discounted) future reward through trial and error.
Explanation
The agent improves its policy by interacting with the environment and receiving rewards.
- 5
Give an example of a discrete action space and a continuous action space.
Model answer
Discrete action space: chess moves (e.g., moving a piece to a specific square). Continuous action space: robot joint torques (e.g., real-valued angles).
Explanation
Action spaces can be finite (discrete) or infinite (continuous), affecting algorithm choice.
- 6
What is delayed reward and why is it challenging in reinforcement learning?
Model answer
Delayed reward means the agent receives feedback only at the end of a sequence (e.g., winning or losing in chess), making it hard to credit actions for long-term outcomes.
Explanation
This sparse feedback requires algorithms to handle temporal credit assignment.
- 7
Define a Markov decision process (MDP) in the context of model-based reinforcement learning.
Model answer
An MDP specifies a probability of transitioning from state s to next state s' given action a, denoted P(s'|s,a), and this probability depends only on the current state and action (Markov property).
Explanation
MDPs provide a fully known model of the environment dynamics, enabling dynamic programming methods.
- 8
What are policy iteration and value iteration in model-based reinforcement learning?
Model answer
They are iterative dynamic programming methods that use the Bellman optimality condition to alternately update the policy and value function until convergence.
Explanation
Policy iteration alternates between policy evaluation and improvement; value iteration directly updates the value function.
- 9
What is the Bellman optimality condition for the value function?
Model answer
It states that the optimal value function V*(s) satisfies V*(s) = max_a [R(s,a) + γ Σ_{s'} P(s'|s,a) V*(s')].
Explanation
This recursive equation is the foundation for dynamic programming in both MDPs and optimal control.
- 10
How does optimal control for deterministic systems relate to reinforcement learning?
Model answer
For deterministic systems with nonlinear dynamics ẋ = f(x,u), the optimal control problem is solved using the Hamilton-Jacobi-Bellman (HJB) equation, which also relies on Bellman optimality.
Explanation
The HJB equation is a continuous-time counterpart to the discrete Bellman equation.
- 11
What is a major limitation of dynamic programming for model-based reinforcement learning?
Model answer
It is usually not scalable to high-dimensional systems because it essentially requires brute-force enumeration, often limited to 3–10 dimensions.
Explanation
The curse of dimensionality makes it infeasible for complex systems like fluid dynamics.
- 12
What is the main dichotomy in model-free reinforcement learning?
Model answer
The main dichotomy is between gradient-free methods and gradient-based methods.
Explanation
This distinction depends on whether a gradient of the objective (e.g., reward) can be computed with respect to parameters.
- 13
Explain the difference between on-policy and off-policy learning in gradient-free model-free RL.
Model answer
On-policy learning always uses the current best policy to act (e.g., always playing optimally). Off-policy learning may take suboptimal actions (e.g., random moves) to gather information, even if they are not optimal.
Explanation
Off-policy methods can learn from past or external data, while on-policy methods require ongoing interaction with the current policy.
- 14
What is the SARSA algorithm?
Model answer
SARSA (State-Action-Reward-State-Action) is an on-policy temporal difference learning algorithm that updates the Q-function using the current policy's next action.
Explanation
The name reflects the tuple (s, a, r, s', a') used in the update.
- 15
What is Q-learning and how does it differ from SARSA?
Model answer
Q-learning is an off-policy algorithm that updates the Q-function using the maximum Q-value of the next state, independent of the action actually taken. This makes it off-policy.
Explanation
Q-learning tends to converge faster but is more aggressive, while SARSA is more conservative.
- 16
What does the Q-function Q(s,a) represent?
Model answer
The Q-function is the expected discounted future reward of taking action a in state s and then following the optimal policy thereafter. It contains information about both the optimal policy and value function.
Explanation
From Q, one can derive the optimal policy (π*(s) = argmax_a Q(s,a)) and the value function (V*(s) = max_a Q(s,a)).
- 17
Why is Q-learning useful for imitation learning?
Model answer
Q-learning can learn from watching suboptimal players because it is off-policy—it can use data generated by any policy to update the Q-function without needing to know the demonstrator's policy.
Explanation
This allows the agent to accumulate information from arbitrary experience.
- 18
How do gradient-based methods work in model-free reinforcement learning?
Model answer
If the policy π_θ is parameterized by θ, and the cumulative reward is differentiable with respect to θ, gradient-based methods use optimization (e.g., steepest descent) to update θ to maximize the reward.
Explanation
These methods are typically faster than gradient-free methods when gradients are available.
- 19
What is deep reinforcement learning?
Model answer
Deep RL uses deep neural networks to represent the Q-function, policy, or model, enabling scalable learning in high-dimensional state spaces (e.g., Atari games, Go).
Explanation
It has driven breakthroughs like AlphaGo and human-level game playing.
- 20
Name three deep RL approaches mentioned in the lecture.
Model answer
Deep model predictive control, actor-critic methods, and deep Q-networks (DQN).
Explanation
These combine deep neural networks with existing RL frameworks for representation learning.
- 21
What is temporal difference (TD) learning and what is its significance?
Model answer
TD learning updates value estimates based on the difference between predicted and actual rewards, without waiting for the final outcome. It has strong neuroscientific analogs in animal learning.
Explanation
TD methods are foundational to both on-policy (SARSA) and off-policy (Q-learning) algorithms.

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