Reinforcement Learning Introduction
- 28Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is reinforcement learning, and where does it sit at the intersection of fields?
A learning paradigm at the intersection of control theory, machine learning, and biological learning.
Or swipe the card
28 cards
What is reinforcement learning, and where does it sit at the intersection of fields?
A learning paradigm at the intersection of control theory, machine learning, and biological learning.
What does model-free reinforcement learning mean?
Learning without a model of the environment's dynamics (transition probabilities) or reward function.
What is the focus of this lecture on model-free RL?
Gradient-free methods, specifically Monte Carlo learning, temporal difference learning, Q-learning, and SARSA.
What does the quality function Q(s,a) represent?
The joint quality/value of taking action a in state s, considering expected current and future rewards.
How is the Q-function defined in terms of a Markov decision process (MDP)?
Q(s,a)=E[r(s,a)+γmaxa′Q(s′,a′)] where (s') is the next state, (r) is reward, and (\gamma) is discount factor.
What is the relationship between the value function V(s) and the quality function Q(s,a)?
V(s)=maxaQ(s,a) and the optimal policy is ( \pi(s) = \arg\max_a Q(s,a) .)
What is required for dynamic programming (value iteration, policy iteration) to work in RL?
A known model of the environment: transition probabilities (p(s'|s,a)) and reward function (r(s,a)).
What is the core idea of model-free reinforcement learning?
Trial-and-error learning: interact with the environment, observe rewards, and update value/Q estimates without a model.
What is Monte Carlo learning in RL?
An episodic, model-free method that updates value/Q estimates after a complete episode by dividing the total cumulative reward equally among all visited state-action pairs.
Write the Monte Carlo update for the value function V(s_k).
V(sk)←V(sk)+α(NRtotal−V(sk)) where (R_{\text{total}}) is the cumulative reward, (N) number of steps in episode.
What is a key property of Monte Carlo learning?
It is unbiased: given enough episodes, it converges to the true value, but it is sample-inefficient (slow).
What is temporal difference (TD) learning?
A model-free method that updates value/Q estimates after each time step using the Bellman equation, without waiting for episode end.
Write the TD(0) update for the value function V(s_k).
V(sk)←V(sk)+α(rk+γV(sk+1)−V(sk))
What is the TD target and TD error in TD(0)?
TD target = (r_k + \gamma V(s_{k+1})), TD error = (r_k + \gamma V(s_{k+1}) - V(s_k)).
How does TD learning relate to biological learning?
The TD error signal is analogous to dopamine release in the brain, which strengthens connections between neurons that fired before a reward.
What is n-step TD learning?
A generalization of TD that uses a target consisting of rewards from the next n steps plus the estimated value at step n, updating after each n-step window.
What is TD(λ) learning?
A method that combines all n-step TD targets using an exponential weighting with decay factor λ (0≤λ≤1).
What is the Q-learning update rule?
Q(sk,ak)←Q(sk,ak)+α(rk+γmaxaQ(sk+1,a)−Q(sk,ak))
Why is Q-learning considered off-policy?
It learns the optimal Q-function regardless of the actions taken to generate experience, because it maximizes over a in the TD target.
What is an advantage of Q-learning being off-policy?
It can learn from suboptimal experiences, such as watching an expert or replaying old episodes, even if the policy used was not optimal.
What is the SARSA update rule?
Q(sk,ak)←Q(sk,ak)+α(rk+γQ(sk+1,ak+1)−Q(sk,ak)) where (a_{k+1}) is the actual next action taken.
Why is SARSA called on-policy?
Because it updates using the action actually taken in the next state, so it must follow the policy being learned.
How does the TD target differ between Q-learning and SARSA?
Q-learning: (r_k + \gamma \max_a Q(s_{k+1},a)); SARSA: (r_k + \gamma Q(s_{k+1},a_{k+1})).
What is a practical advantage of SARSA over Q-learning?
SARSA is safer during training because it always follows the current policy, avoiding risky exploratory actions (e.g., in driving).
How does the cumulative reward during learning compare between SARSA and Q-learning?
SARSA tends to accumulate more reward during learning because it stays on-policy, while Q-learning explores randomly and may get lower immediate rewards.
What is the epsilon-greedy exploration strategy?
With probability 1-ε choose the greedy action (max Q), with probability ε choose a random action.
How is epsilon typically scheduled in epsilon-greedy?
Start with a high ε (e.g., 1.0) to encourage exploration, then anneal (cool) ε to 0 over time to eventually exploit.
What is the main difference in variance between Q-learning and SARSA according to the lecture?
Q-learning has higher variance due to the max operator and off-policy nature, though the lecturer noted a typo in the slides.

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