Velocer › Карточки › University of Wisconsin–Madison › CS 839: Reinforcement Learning · UW-Madison
CS 839: Reinforcement Learning · UW-Madison
Studying for CS 839 (reinforcement learning), sharing in case anyone else needs them. · автор: eigen_owl · 410 карточек
- What is a multi-armed bandit problem?A reinforcement learning setting with multiple actions (arms) each having an unknown reward distribution, where the agent must balance exploration and exploitation to maximize cumulative reward.
- What is a Markov Decision Process (MDP)?A mathematical framework for sequential decision making defined by states, actions, transition probabilities, rewards, and a discount factor, satisfying the Markov property.
- What are the Bellman equations?Recursive equations expressing the value of a state or state-action pair in terms of expected immediate reward plus the discounted value of successor states.
- What is Generalized Policy Iteration?An iterative framework that alternates between policy evaluation (estimating value functions) and policy improvement (acting greedily w.r.t. those values) until convergence.
- What is the difference between Monte Carlo and Temporal Difference learning?Monte Carlo estimates values from complete episode returns, while TD learning bootstraps from current value estimates after each step without waiting for episode end.
- What is the key difference between SARSA and Q-learning?SARSA is on-policy, updating using the action actually taken, while Q-learning is off-policy, updating using the maximum Q-value over next actions regardless of behavior.
- What is Double Q-Learning designed to fix?It reduces the maximization bias of standard Q-learning by maintaining two Q-value estimates and using one to select and the other to evaluate actions.
- How do dopamine prediction errors relate to TD learning?Dopamine neuron activity in the brain resembles the temporal difference reward prediction error signal, increasing for unexpected rewards and dipping when expected rewards are omitted.
- What is Dyna-Q?A model-based RL architecture that combines direct RL updates with a learned model to generate simulated experience for planning, improving sample efficiency.
- What is Monte Carlo Tree Search (MCTS)?A planning algorithm that builds a search tree via repeated simulation, using selection, expansion, simulation, and backpropagation to balance exploration and exploitation.
- What is the deadly triad?The combination of function approximation, bootstrapping, and off-policy learning, which can cause instability or divergence in reinforcement learning.
- What key innovations does DQN introduce for deep value-based RL?Experience replay to decorrelate samples and target networks to stabilize training targets, enabling stable deep Q-learning.
- What is the difference between Dueling DQN and standard DQN?Dueling DQN splits the network into separate value and advantage streams, allowing better estimation of state values independent of action choice.
- What is the role of the actor and critic in actor-critic methods?The actor updates the policy in the direction suggested by the critic, while the critic estimates value functions to evaluate the actor's actions.
- What is the key idea behind Soft Actor-Critic (SAC)?An off-policy actor-critic algorithm that maximizes expected reward plus entropy, encouraging exploration and robustness through a stochastic policy.
- What does TRPO/PPO aim to achieve in policy optimization?They constrain policy updates to a trust region (TRPO via KL constraint, PPO via clipped objective) to ensure stable, monotonic improvement.
- What are options in hierarchical reinforcement learning?Temporally extended actions defined by an initiation set, a policy, and a termination condition, enabling abstraction over time in semi-MDPs.
- What distinguishes multi-agent RL from single-agent RL?Multiple agents interact in a shared environment, often modeled as stochastic games, where each agent's reward and transitions depend on joint actions.
- What is imitation learning?A paradigm where an agent learns a policy by observing expert demonstrations, often via behavioral cloning or inverse reinforcement learning.
- What is RLHF and how is it used for large language models?Reinforcement Learning from Human Feedback trains a reward model from human preferences and optimizes a language model policy against it, often with PPO.
- What is Conservative Q-Learning (CQL)?An offline RL method that penalizes Q-values for out-of-distribution actions, producing conservative value estimates to avoid overestimation on unseen data.
- What is reinforcement learning (RL)?RL formalizes sequential decision-making under uncertainty through interaction between a learning agent and an external environment.
- How does RL differ from supervised learning in terms of feedback?Supervised learning receives instructive feedback (the true target label), while RL relies on evaluative feedback—a scalar reward that only says how good the taken action was.
- What is evaluative feedback in RL?A scalar reward signal R_t that tells the agent how good the taken action was, but never reveals whether another action would have yielded a higher payoff.
- What is instructive feedback?Feedback that tells the learner the true target label, as in supervised learning.
- What is the temporal credit assignment problem?Determining which earlier decisions were responsible for an eventual outcome, since actions influence not only immediate rewards but also future states and cumulative returns.
- What is the exploration vs. exploitation dilemma?The trade-off between exploiting current knowledge to maximize immediate expected reward and exploring uncertain actions to gather information that may unlock higher long-term return.
- How does the Gradient Bandit select actions?It uses a softmax over action preferences: \(\pi_t(a) = \frac{e^{H_t(a)}}{\sum_{b=1}^k e^{H_t(b)}}\).
- What does the Gradient Bandit learn instead of value estimates?It learns relative numerical preferences \(H_t(a)\) over actions rather than estimated action values.
- What role does a baseline \(\bar{R}_t\) play in the Gradient Bandit?Using a baseline makes the preference updates invariant to constant reward shifts, improving learning stability.
- In UCB, what happens to the exploration bonus as an arm is pulled more often?The bonus \(c\sqrt{\ln t / N_t(a)}\) shrinks as \(N_t(a)\) grows, so frequently chosen arms are explored less over time.
- How does ε-Greedy differ from Greedy in terms of exploration?Greedy never explores (pure exploitation), while ε-Greedy explores with probability \(\epsilon\) by choosing a random arm.
- What optimization method does the Gradient Bandit algorithm use on expected reward?Stochastic gradient ascent on the expected reward E[R_t] = Σ_b π_t(b) q_*(b).
- Write the Gradient Bandit preference update for the selected action A_t.H_{t+1}(A_t) = H_t(A_t) + α (R_t - R̄_t)(1 - π_t(A_t)).
- Write the Gradient Bandit preference update for actions a ≠ A_t.H_{t+1}(a) = H_t(a) - α (R_t - R̄_t) π_t(a).
- In Gradient Bandits, what happens to preferences when the reward R_t exceeds the baseline R̄_t?The preference for the selected action A_t increases, and all other preferences decrease.
- What does the term (R_t - R̄_t) represent in the Gradient Bandit update?It is the difference between the observed reward and the baseline, indicating whether the reward was better or worse than average.
- How are action probabilities π_t(a) derived from preferences H_t(a) in Gradient Bandits?Using the softmax distribution: π_t(a) = e^{H_t(a)} / Σ_b e^{H_t(b)}.
- In Gradient Bandits, if R_t < R̄_t, how do preferences change?The preference for the selected action decreases, and preferences for all other actions increase.
- What are the components of a finite Markov Decision Process (MDP)?A finite MDP is a tuple ⟨S, A, p, r, γ, d₀⟩: S is the finite state space, A is the finite action space, p is the joint transition-reward dynamics model, r is the reward function, γ is the discount factor, and d₀ is the initial state distribution.
- What does the joint transition-reward dynamics model p(s', r | s, a) represent?It is the probability of transitioning to state s' and receiving reward r given that the current state is s and action a is taken: p(s', r | s, a) = Pr(S_{t+1}=s', R_{t+1}=r | S_t=s, A_t=a).
- What condition must the joint transition-reward probabilities satisfy?They must sum to 1 over all next states and rewards: ∑_{s'∈S} ∑_{r∈R} p(s', r | s, a) = 1 for each state-action pair (s, a).
- State the Markov property in the context of MDPs.The future depends on the past only through the current state and action: Pr(S_{t+1}=s', R_{t+1}=r | S_t, A_t, S_{t-1}, A_{t-1}, …, S₀, A₀) = Pr(S_{t+1}=s', R_{t+1}=r | S_t, A_t).
- How is the state-transition probability p(s' | s, a) defined from the joint model?It is obtained by marginalizing over rewards: p(s' | s, a) = ∑_{r∈R} p(s', r | s, a).
- How is the expected two-argument reward r(s, a) defined?r(s, a) = E[R_{t+1} | S_t=s, A_t=a] = ∑_{r∈R} r ∑_{s'∈S} p(s', r | s, a).
- How is the expected three-argument reward r(s, a, s') defined?r(s, a, s') = ∑_{r∈R} r * p(s', r | s, a) / p(s' | s, a), which is the expected reward given the transition from s to s' under action a.
- What is the difference between r(s, a) and r(s, a, s')?r(s, a) is the expected immediate reward after taking action a in state s, while r(s, a, s') is the expected reward conditioned on also transitioning to state s'.
- What does the discount factor γ represent in an MDP?γ ∈ [0,1] determines the present value of future rewards; it trades off immediate versus delayed rewards.
- What is d₀ in the MDP tuple?d₀ is the initial state distribution, specifying the probability distribution over starting states.
- What is the return \(G_t\) in reinforcement learning?The return \(G_t\) is the total discounted sum of rewards received from time step \(t\) onward. It represents the agent's objective to maximize expected return.
- How is the return defined for episodic tasks?For episodic tasks, the return is the sum of rewards from time step \(t+1\) until the terminal step \(T\): \(G_t = R_{t+1} + R_{t+2} + \dots + R_T\).
- Why is a discount factor \(\gamma\) introduced for continuing tasks?In continuing tasks, the sum of rewards may diverge (infinite). A discount factor \(\gamma \in [0,1)\) ensures the return is finite and gives more weight to immediate rewards.
- What is the unified discounted return formula?\(G_t \triangleq \sum_{k=0}^\infty \gamma^k R_{t+k+1}\), where \(\gamma\) is the discount factor. This formula works for both episodic and continuing tasks.
- What is the recursive return identity?\(G_t = R_{t+1} + \gamma G_{t+1}\). This identity expresses the return at time \(t\) in terms of the immediate reward and the discounted return at the next time step.
- Why is the recursive return identity important?It is the foundation for bootstrapping and Bellman equations, which are central to many reinforcement learning algorithms.
- If the reward is a constant \(c\) at every step, what is the return \(G_t\)?\(G_t = \frac{c}{1 - \gamma}\), provided \(\gamma < 1\). This follows from summing the infinite geometric series.
- When can we set \(\gamma = 1\)?We can set \(\gamma = 1\) only when episodes are guaranteed to terminate at an absorbing terminal state, ensuring the return is finite.
- What is the difference between episodic and continuing tasks?Episodic tasks have a natural termination point (terminal state), while continuing tasks go on indefinitely without a terminal state.
- What does the discount factor \(\gamma\) control?The discount factor \(\gamma \in [0,1)\) determines the present value of future rewards. A \(\gamma\) close to 0 makes the agent myopic, while a \(\gamma\) close to 1 makes it far-sighted.
- What is the agent's objective in reinforcement learning?The agent's objective is to maximize the expected return \(G_t\) from each time step \(t\).
- What is a stochastic policy π(a|s)?A probability distribution over actions given a state: π(a|s) = Pr(A_t = a | S_t = s).
- What does the state-value function v_π(s) represent?The expected return starting in state s and following policy π thereafter: v_π(s) = E_π[G_t | S_t = s].
- What does the action-value function q_π(s, a) represent?The expected return starting in state s, taking action a, then following policy π: q_π(s, a) = E_π[G_t | S_t = s, A_t = a].
- What is the key difference between v_π(s) and q_π(s, a)?v_π(s) conditions only on the current state, while q_π(s, a) additionally conditions on taking a specific action a first.
- Why is a policy called 'stochastic'?Because it maps each state to a probability distribution over actions rather than a single deterministic action.
- How does q_π(s, a) relate to the return G_t?q_π(s, a) is the expected value of G_t conditioned on starting in state s and taking action a, then following π.
- How does the state-value function relate to the action-value function under a policy π?v_π(s) = Σ_a π(a|s) q_π(s,a). The state value is the policy-weighted average of action values.
- How does the optimal state-value function relate to the optimal action-value function?v_*(s) = max_{a∈A(s)} q_*(s,a). The optimal state value is the maximum action value at that state.
- What condition must an optimal policy π_* satisfy in terms of q_*?If π_*(a|s) > 0, then a ∈ argmax_{a'} q_*(s,a'). Optimal policies only assign positive probability to optimal actions.
- Why is the Bellman Expectation Equation for v_π considered linear?It forms a system of |S| linear equations in |S| unknowns: v_π = r_π + γ P_π v_π, solvable exactly as v_π = (I − γ P_π)^{-1} r_π.
- Why are the Bellman Optimality Equations nonlinear, and what solution method do they require?They contain the max operator, making them nonlinear. They require iterative fixed-point methods rather than direct linear inversion.
- What is the computational cost of exactly solving the linear Bellman Expectation system by matrix inversion?O(|S|^3), due to inverting the |S|×|S| matrix (I − γ P_π).
- How is a partial ordering on policies defined?π ≥ π' iff v_π(s) ≥ v_{π'}(s) for all states s ∈ S. A policy is better if its value is at least as high in every state.
- Does every finite MDP have an optimal policy, and what form can it take?Yes. Every finite MDP admits at least one deterministic optimal policy π_* that is ≥ every other policy.
- Do all optimal policies share the same value functions?Yes. All optimal policies share the unique optimal value functions v_* and q_*.
- What role does the discount factor γ play in the Bellman equations?It weights future rewards relative to immediate rewards, scaling the value of successor states in the recursive return.
- What key assumption does Dynamic Programming require about the environment?DP requires a complete, known model of the environment's dynamics, p(s', r | s, a), for a finite MDP.
- What kind of MDP does Dynamic Programming operate on?A finite MDP—one with a finite set of states, actions, and rewards.
- How does DP convert Bellman equations into algorithms?It turns them into iterative assignment updates called full backups that bootstrap from successor value estimates.
- What is a full backup in Dynamic Programming?An update that uses the value estimates of all possible successor states (and their probabilities) to revise a state's value.
- What does 'bootstrapping' mean in the context of DP?Updating a value estimate using other value estimates of successor states rather than waiting for complete returns.
- What does Dynamic Programming compute?Exact optimal policies (and optimal value functions) for a known finite MDP.
- Why is DP considered a model-based method?Because it requires the full transition and reward model p(s', r | s, a) rather than learning from experience.
- What is Generalized Policy Iteration (GPI)?A framework that alternates between policy evaluation (estimating the value of the current policy) and policy improvement (making the policy greedy with respect to those values).
- In GPI, what does policy evaluation do?It computes or approximates the value function for the current policy.
- In GPI, what does policy improvement do?It updates the policy to act greedily with respect to the current value estimates.
- What is iterative policy evaluation used for?It computes (predicts) the state-value function v_pi for a fixed policy pi by repeatedly applying the Bellman expectation operator.
- Write the iterative policy evaluation update in words.For each state, average over actions weighted by pi(a|s), then over next states and rewards weighted by p(s',r|s,a), of [r + gamma * v_k(s')].
- Why does iterative policy evaluation converge to v_pi?Because the Bellman expectation operator T^pi is a gamma-contraction in the sup-norm, so by the Banach Fixed-Point Theorem v_k converges to v_pi from any initialization v_0.
- What property of the Bellman expectation operator guarantees convergence?It is a gamma-contraction under the sup-norm (infinity norm).
- What is the Banach Fixed-Point Theorem's role in policy evaluation?It guarantees that repeated application of the gamma-contraction T^pi converges to the unique fixed point v_pi.
- What convergence criterion is used in practice to stop sweeps?Stop when Delta = max over s of |v_{k+1}(s) - v_k(s)| < theta.
- What does the threshold theta control in iterative policy evaluation?It sets the stopping tolerance: sweeps end once the maximum change across states falls below theta.
- What are in-place (asynchronous) updates in policy evaluation?Immediately overwriting V(s) during a sweep so later states in the same sweep use the freshest updated values.
- How do in-place updates differ from synchronous updates?In-place updates use newly updated values within the same sweep, while synchronous updates use only the previous sweep's values for all states.
- Does iterative policy evaluation require a known model of the environment?Yes, it uses the transition and reward probabilities p(s',r|s,a) and the policy pi(a|s).
- What is the discount factor gamma's effect on convergence speed?A smaller gamma makes the contraction stronger, so convergence is faster; gamma closer to 1 slows convergence.
- What is v_pi?The state-value function of policy pi: the expected discounted return starting from state s and following pi thereafter.
- From what initial values can iterative policy evaluation start?From any initialization v_0; convergence to v_pi is guaranteed regardless of the starting values.
- What does the Policy Improvement Theorem state about two deterministic policies π and π' if q_π(s, π'(s)) ≥ v_π(s) for all states s?Then π' is universally at least as good as π: v_{π'}(s) ≥ v_π(s) for all s. Moreover, if strict inequality holds at any state, then v_{π'}(s) > v_π(s) at that state.
- Why does the greedy policy π' satisfy q_π(s, π'(s)) ≥ v_π(s) for all states s?Because q_π(s, π'(s)) = max_a q_π(s, a), and the maximum over actions is at least the value of any action, including the action chosen by π. Thus q_π(s, π'(s)) ≥ q_π(s, π(s)) = v_π(s).
- If v_{π'} = v_π after policy improvement, what can be concluded about π and π'?Then v_π satisfies the Bellman optimality equation, so both π and π' are optimal policies.
- What are the two main steps of Policy Iteration?Policy Evaluation (compute v_{π_k}) and Policy Improvement (update π_{k+1} to be greedy with respect to v_{π_k}).
- Why does Policy Iteration terminate in a finite number of iterations?Because a finite MDP has at most |A|^{|S|} deterministic policies, and each iteration strictly improves the policy unless it is already optimal. Thus, the sequence of policies must eventually reach an optimal policy.
- In Policy Iteration, what does the Policy Evaluation step compute?It computes the state-value function v_{π_k} for the current policy π_k, typically by solving the Bellman expectation equations.
- In Policy Iteration, what does the Policy Improvement step do?It updates the policy to be greedy with respect to the current value function: π_{k+1}(s) = argmax_a q_{π_k}(s, a).
- Under what condition does policy improvement yield a strictly better policy?If there exists at least one state s where q_π(s, π'(s)) > v_π(s), then v_{π'}(s) > v_π(s) at that state, so π' is strictly better than π.
- What is the significance of the Policy Improvement Theorem in Policy Iteration?It guarantees that each policy improvement step produces a policy that is at least as good as the previous one, ensuring monotonic improvement and convergence to an optimal policy.
- What update rule does value iteration use?The Bellman optimality backup: v_{k+1}(s) ← max over a of Σ p(s',r|s,a)[r + γ v_k(s')].
- When does value iteration stop iterating?When the maximum change in the value function falls below a threshold: max_s |v_{k+1}(s) − v_k(s)| < θ.
- After value iteration converges, how is the policy extracted?π(s) = argmax over a of Σ p(s',r|s,a)[r + γ v(s')] — a greedy policy with respect to the final value function.
- What does policy evaluation do in GPI?It makes the value function consistent with the current policy.
- What does policy improvement do in GPI?It makes the policy greedy with respect to the current value function.
- What is the key requirement for Monte Carlo methods to estimate value functions?They require complete sampled episodes of experience, since estimates are formed by averaging empirical returns.
- Do Monte Carlo methods need a model of the environment's dynamics?No. MC methods learn value functions and policies directly from sampled experience without requiring the transition model p(s', r | s, a).
- How do Monte Carlo methods estimate expected returns?By averaging the empirical sample returns G_t observed across episodes.
- What is the difference between Monte Carlo prediction and Monte Carlo control?MC prediction estimates the value function of a given policy; MC control uses MC estimates to find or improve toward an optimal policy.
- Why are Monte Carlo methods called 'Monte Carlo'?They rely on repeated random sampling of episodes to estimate expectations, analogous to random sampling in Monte Carlo simulations.
- What does the return G_t represent in Monte Carlo methods?The cumulative (discounted) reward collected from time step t until the end of the episode.
- What is importance sampling used for in Monte Carlo methods?To estimate expected returns under a target policy using episodes generated by a different behavior policy.
- In off-policy Monte Carlo, what is the target policy and what is the behavior policy?The target policy is the policy being evaluated or improved; the behavior policy is the policy that actually generates the sampled episodes.
- What is the weighted importance-sampling estimator?An importance-sampling estimator that normalizes the weighted returns by the sum of the importance weights, reducing variance compared to ordinary importance sampling.
- What is the importance-sampling ratio used in off-policy MC?The product over the trajectory of the target policy's action probabilities divided by the behavior policy's action probabilities.
- What is a key advantage of Monte Carlo over temporal-difference methods?MC is unbiased and does not rely on bootstrapping, so it can estimate values without introducing bias from estimated successor values.
- What is a key disadvantage of Monte Carlo methods?They require complete episodes and can have high variance, and they cannot be applied easily to continuing (non-episodic) tasks.
- How does Monte Carlo control improve a policy?It evaluates action values via sampled returns and then makes the policy greedy with respect to those estimated action values (policy iteration).
- Why is exploring starts sometimes used in Monte Carlo control?To ensure all state-action pairs are visited and evaluated, since a purely greedy policy might never try some actions.
- What role does epsilon-soft exploration play in Monte Carlo control?It ensures all actions have nonzero probability, providing the exploration needed to estimate action values for all state-action pairs.
- What is the difference between on-policy and off-policy Monte Carlo control?On-policy MC evaluates and improves the same policy used to generate data; off-policy MC learns about a target policy from data generated by a different behavior policy.
- Why does weighted importance sampling often have lower variance than ordinary importance sampling?Because normalizing by the sum of importance weights bounds the influence of large weights, reducing variance (at the cost of some bias).
- What happens to importance-sampling weights as episode length grows?The product of probability ratios can become very small or very large, causing high variance in off-policy MC estimates.
- In MC prediction, what is the difference between first-visit and every-visit estimation?First-visit MC averages returns only from the first visit to each state in an episode; every-visit MC averages returns from all visits to the state.
- What does First-Visit Monte Carlo prediction average to estimate the value of a state?It averages the returns G_t that follow only the first visit to state s in each episode.
- How does First-Visit MC treat multiple visits to the same state within one episode?It uses only the return from the first visit and ignores returns from subsequent visits in that episode.
- What does Every-Visit Monte Carlo prediction average?It averages the returns G_t following all visits to state s across all episodes.
- Does Every-Visit MC converge to the true state value despite correlated returns?Yes, although within-episode returns are correlated, Every-Visit MC converges asymptotically to v_pi(s).
- Why is v_pi(s) alone insufficient for model-free control?Without a model, state values cannot determine which action leads to the best next states, so action values must be estimated.
- With a known model, how can policy improvement be done using v_pi?By choosing pi'(s) = argmax_a sum over s',r of p(s',r|s,a)[r + gamma v_pi(s')].
- Without a model, how is policy improvement expressed using action values?Simply pi'(s) = argmax_a Q(s,a).
- Why estimate q_pi(s,a) instead of v_pi(s) for model-free control?Because action values directly tell which action is best at each state, enabling policy improvement without a model.
- What is the key difference between First-Visit and Every-Visit MC?First-Visit uses only the first visit to a state per episode, while Every-Visit uses all visits to the state.
- In First-Visit MC, are returns from different episodes treated as independent samples?Yes, each episode's first-visit return is an independent, unbiased sample of v_pi(s).
- Why can a deterministic policy fail to improve its Q(s,a) estimates in Monte Carlo control?Many (s,a) pairs are never visited, so their Q(s,a) estimates never get updated or improved.
- What assumption does Monte Carlo with Exploring Starts (MCES) make?Every episode starts at a randomly sampled state-action pair (S0, A0), giving every (s,a) a non-zero probability of being the start.
- What is a practical drawback of Exploring Starts?It is often unrealistic in physical environments, since you cannot arbitrarily choose any state-action pair as the episode's start.
- In an ε-greedy policy, what probability is assigned to the greedy action a* = argmax_a Q(s,a)?1 − ε + ε/|A(s)|
- In an ε-greedy policy, what probability is assigned to each non-greedy action?ε/|A(s)|
- Why is exploration necessary in model-free control with a deterministic policy?Without exploration, unvisited (s,a) pairs keep poor Q estimates, so the policy may never discover better actions.
- What is off-policy learning?Learning that evaluates or optimizes a target policy while gathering data using a different, more exploratory behavior policy.
- What is the coverage assumption in off-policy learning?Every action possible under the target policy must have non-zero probability under the behavior policy: π(a|s) > 0 implies b(a|s) > 0 for all states and actions.
- What is the trajectory importance sampling ratio ρ_{t:T-1}?The relative probability of observing a trajectory under the target policy versus the behavior policy, equal to the product over time steps of π(A_k|S_k) / b(A_k|S_k).
- Why do environment transition probabilities cancel out in the importance sampling ratio?Because the same transition probability p(S_{k+1}|S_k,A_k) appears in both the numerator (target) and denominator (behavior) products, so they cancel completely.
- What is the formula for Ordinary Importance Sampling (OIS)?V(s) = (sum over t in T(s) of ρ_{t:T(t)-1} G_t) / |T(s)|, a simple average of importance-weighted returns.
- What are the bias and variance properties of Ordinary Importance Sampling?OIS is unbiased (E[V(s)] = v_π(s)) but has unbounded/infinite variance because the product of ratios can explode.
- What is the formula for Weighted Importance Sampling (WIS)?V(s) = (sum over t in T(s) of ρ_{t:T(t)-1} G_t) / (sum over t in T(s) of ρ_{t:T(t)-1}), a weighted average of returns.
- What are the bias and variance properties of Weighted Importance Sampling?WIS is biased for finite n (bias vanishes asymptotically as O(1/n)) but has bounded variance since the largest weight on any single return is at most 1.
- Which estimator is preferred in tabular off-policy Monte Carlo, OIS or WIS?Weighted Importance Sampling (WIS) is strongly preferred because of its bounded variance, and it can be implemented incrementally via a cumulative weight C_n.
- What does the cumulative weight C_n enable in Weighted Importance Sampling?It allows WIS to be implemented incrementally, updating the value estimate without recomputing the full weighted average from scratch.
- What two core ideas does Temporal Difference (TD) learning combine?The sampling of Monte Carlo (learning model-free from raw experience) and the bootstrapping of Dynamic Programming (updating estimates using other learned estimates without waiting for episode termination).
- What is bootstrapping in TD learning?Updating value estimates using other learned estimates, rather than waiting for the full return at episode termination.
- What is a target policy in off-policy learning?The policy π(a|s) being evaluated or optimized, often a deterministic greedy policy.
- What is a behavior policy in off-policy learning?The more exploratory policy b(a|s) used to gather data, which must cover all actions the target policy might take.
- What is the update rule for TD(0) policy evaluation?V(S_t) ← V(S_t) + α [R_{t+1} + γ V(S_{t+1}) − V(S_t)] = V(S_t) + α δ_t, where δ_t is the TD prediction error.
- What is the TD prediction error δ_t in TD(0)?δ_t ≜ R_{t+1} + γ V(S_{t+1}) − V(S_t), the difference between the TD target and the current value estimate.
- What is the TD target in TD(0)?R_{t+1} + γ V(S_{t+1}), which uses the observed reward and the estimated value of the next state.
- What is the Monte Carlo (MC) target for policy evaluation?G_t = Σ_{k=0}^∞ γ^k R_{t+k+1}, the full return from time t, which is an unbiased sample of v_π(S_t) but has high variance and requires episodic termination.
- Why does TD(0) have lower variance than Monte Carlo?Because the TD(0) target depends on only a single random step (R_{t+1}, S_{t+1}), whereas MC depends on many random transitions and actions.
- What advantage does TD(0) have over MC in continuing tasks?TD(0) works online and does not require episodic termination, so it can be applied in continuing tasks.
- In batch TD(0) vs. batch MC with a finite dataset replayed repeatedly, what does batch MC converge to?Batch MC converges to the sample averages that minimize Mean Squared Error (MSE) on the observed returns in the training set.
- In batch TD(0) vs. batch MC, what does batch TD(0) converge to?Batch TD(0) converges to the certainty-equivalence estimate: the exact value function v_π of the maximum-likelihood empirical MDP estimated from the data.
- What is the certainty-equivalence estimate in batch TD(0)?The exact value function v_π of the maximum-likelihood empirical MDP p̂(s', r | s, a) estimated from the data.
- What is the n-step return G_{t:t+n}?G_{t:t+n} ≜ R_{t+1} + γ R_{t+2} + … + γ^{n−1} R_{t+n} + γ^n V_{t+n−1}(S_{t+n}), which bootstraps after n steps.
- How does n-step TD unify TD(0) and Monte Carlo?n-step TD unifies TD(0) (n=1) and MC (n=∞) via the n-step return.
- What is the update rule for n-step TD?V_{t+n}(S_t) ← V_{t+n−1}(S_t) + α [G_{t:t+n} − V_{t+n−1}(S_t)], using the n-step return G_{t:t+n}.
- What does the n-step return bootstrap on?It bootstraps on V_{t+n−1}(S_{t+n}), the value estimate of the state n steps later.
- What is the key difference between SARSA and Q-Learning in terms of policy type?SARSA is an on-policy algorithm, while Q-Learning is an off-policy algorithm.
- What is the SARSA action-value update rule?Q(S_t, A_t) ← Q(S_t, A_t) + α[R_{t+1} + γQ(S_{t+1}, A_{t+1}) − Q(S_t, A_t)], using the actual next action A_{t+1} sampled from the policy.
- What is the Q-Learning action-value update rule?Q(S_t, A_t) ← Q(S_t, A_t) + α[R_{t+1} + γ max_{a'} Q(S_{t+1}, a') − Q(S_t, A_t)].
- Why does SARSA take the safe path in the Cliff Walking task?Because it is on-policy and accounts for exploration hazards: its update uses the actual next action, which may be exploratory and lead off the cliff.
- Why does Q-Learning learn the optimal cliff-edge path in Cliff Walking despite lower online reward during training?Q-Learning directly approximates q_* regardless of the behavior policy, so it learns the optimal path even though ε-greedy exploration causes occasional falls during training.
- What is the Expected SARSA action-value update rule?Q(S_t, A_t) ← Q(S_t, A_t) + α[R_{t+1} + γ Σ_{a'} π(a'|S_{t+1}) Q(S_{t+1}, a') − Q(S_t, A_t)].
- Can Expected SARSA be used both on-policy and off-policy?Yes, Expected SARSA can be either on-policy or off-policy.
- Under what condition is Q-Learning a special case of Expected SARSA?Q-Learning is a special case of off-policy Expected SARSA when the target policy π is greedy.
- What is the Off-Policy 1-Step SARSA update rule?Q(S_t, A_t) ← Q(S_t, A_t) + α ρ_{t+1}[R_{t+1} + γQ(S_{t+1}, A_{t+1}) − Q(S_t, A_t)], where ρ_{t+1} is the single-step importance ratio.
- What is the single-step importance ratio ρ_{t+1} used in Off-Policy 1-Step SARSA?ρ_{t+1} = π(A_{t+1}|S_{t+1}) / b(A_{t+1}|S_{t+1}), the ratio of the target policy to the behavior policy probability of the taken action.
- What does the tuple (S_t, A_t, R_{t+1}, S_{t+1}, A_{t+1}) represent in SARSA?It is the transition tuple whose actual next action A_{t+1} ~ π(·|S_{t+1}) is used in the SARSA update.
- What role does the behavior policy b play in Off-Policy 1-Step SARSA?It is the policy that generates actions; the update is scaled by the importance ratio π(A_{t+1}|S_{t+1})/b(A_{t+1}|S_{t+1}) to correct for the mismatch with the target policy.
- What is maximization bias in Q-learning?Maximization bias is the systematic overestimation of action values caused by using the same noisy estimates both to select the maximizing action and to evaluate its value, so that the expected maximum of noisy estimates exceeds the maximum of the true values.
- Why does the max operator cause overestimation in Q-learning?Because the target uses max over noisy Q estimates, and by Jensen's inequality the expected maximum of noisy estimates is greater than or equal to the maximum of their means, leading to positive bias.
- State Jensen's inequality as applied to noisy Q-value estimates.For noisy unbiased estimators Q(s,a) of q(s,a), E[max_a Q(s,a)] ≥ max_a E[Q(s,a)] = max_a q(s,a).
- Give an intuitive example of maximization bias.If several actions all have true mean 0 but noisy value estimates with variance σ² > 0, the sample maximum across actions is strictly positive on average, even though every true value is 0.
- How does Double Q-Learning reduce maximization bias?It maintains two independent action-value tables Q1 and Q2 and uses one table to select the greedy action while the other evaluates it, decoupling selection from evaluation.
- In Double Q-Learning, what is the update rule for Q1?With probability 0.5, Q1(S_t,A_t) ← Q1(S_t,A_t) + α[R_{t+1} + γ Q2(S_{t+1}, argmax_a Q1(S_{t+1},a)) − Q1(S_t,A_t)].
- How does Double Q-Learning decide which table to update at each step?With probability 0.5 it updates Q1 (using Q1 to select and Q2 to evaluate), and with probability 0.5 it updates Q2 (using Q2 to select and Q1 to evaluate).
- How does Double Q-Learning choose behavior actions?Behavior selection uses the combined estimates, e.g., ε-greedy over Q1(s,a) + Q2(s,a).
- What is the key difference between standard Q-learning and Double Q-learning targets?Standard Q-learning uses the same Q table to both select and evaluate the maximizing action, while Double Q-learning uses one table to select the action and the other to evaluate it.
- Why does using the same noisy estimates for selection and evaluation cause bias?The selected action tends to be one whose noise is positive, so evaluating it with the same noisy estimate inflates the target value, producing systematic overestimation.
- What role does independence of Q1 and Q2 play in Double Q-Learning?Independence ensures the evaluation table's estimate is not biased by the selection noise in the other table, so the expected target is closer to the true value.
- What is classical (Pavlovian) conditioning?Learning predictive associations between an initially neutral conditioned stimulus (CS, e.g., a bell) and a biologically salient unconditioned stimulus (US, e.g., food) that elicits an innate response.
- In classical conditioning, does the animal's behavior control whether the reward is delivered?No. The animal's behavior does not control reward delivery; it is pure state-value prediction, V(s).
- What is instrumental (operant) conditioning?Learning in which the animal's actions directly determine outcomes, so behavior is governed by its consequences.
- What is Thorndike's Law of Effect?Responses followed by satisfying consequences are strengthened (stamped in), while responses followed by discomfort are weakened. It underlies instrumental conditioning and action-value control, Q(s,a).
- What did Tolman's latent learning experiments show?Animals exploring a maze without reward still acquire an internal world model (a cognitive map) that lets them adapt routes rapidly once reward is introduced.
- What do Tolman's latent learning findings suggest about biological learning systems?They demonstrate the existence of dual model-based and model-free systems in biological agents.
- What are Marr's three levels of analysis?The computational level (what and why), the algorithmic/representational level (how represented and computed), and the implementational/physical level (how physically realized).
- What question does Marr's computational level ask?What is the goal of the computation and why is it appropriate? For example, maximizing cumulative discounted reward G_t.
- What question does Marr's algorithmic/representational level ask?How are inputs and outputs represented, and what algorithm transforms them? Examples include TD learning, the prediction error delta_t, and state-action value representations.
- What question does Marr's implementational/physical level ask?How is the algorithm physically realized in hardware or wetware?
- Which conditioning type is associated with state-value prediction V(s)?Classical (Pavlovian) conditioning, because the animal's behavior does not control reward delivery.
- Which conditioning type is associated with action-value control Q(s,a)?Instrumental (operant) conditioning, because the animal's actions directly determine outcomes.
- What is a conditioned stimulus (CS)?An initially neutral stimulus that, through pairing with an unconditioned stimulus, comes to elicit a learned response.
- What is an unconditioned stimulus (US)?A biologically salient stimulus (e.g., food or reward) that elicits an innate response without prior learning.
- What is a cognitive map in Tolman's sense?An internal world model acquired through exploration that allows an animal to adapt routes rapidly when reward is introduced.
- What is the Rescorla–Wagner learning rule?A trial-level associative learning rule where associative strength V updates proportionally to surprise: ΔV = αβ(λ − V_total).
- How does the Rescorla–Wagner model explain blocking?If stimulus A already fully predicts reward, pairing AB with reward produces zero prediction error, so no learning occurs about B.
- What key limitation does the Rescorla–Wagner model have compared to TD models?It lacks within-trial real-time temporal dynamics; it operates at the trial level rather than moment-to-moment.
- What does dopamine firing do before learning, when reward is unpredicted?A phasic burst of dopamine firing occurs at the time of reward delivery (δ_t > 0 at the US).
- After learning, when a CS predicts reward, where does the dopamine burst occur?The phasic burst propagates backward in time to the onset of the earliest reward-predicting cue (δ_t > 0 at CS onset).
- After learning, what happens to dopamine firing at the time of expected reward delivery?Firing returns to baseline (δ_t = 0) because the reward is fully predicted (r_t = V(s_{t−1})).
- What happens to dopamine firing when an expected reward is omitted?A sharp phasic pause/dip below baseline occurs at the exact time the expected reward fails to arrive (δ_t < 0).
- What does the dopamine RPE hypothesis claim midbrain dopamine neurons broadcast?The real-time TD reward prediction error.
- In the Rescorla–Wagner rule, what does the term (λ − V_total) represent?The prediction error or surprise—the gap between the maximum achievable reward and the current total associative strength.
- What does a negative δ_t signify in the TD RPE framework?The outcome was worse than predicted, as when an expected reward is omitted.
- What does a positive δ_t signify in the TD RPE framework?The outcome was better than predicted, as with an unpredicted reward or a newly learned predictive cue.
- What is a model in reinforcement learning?Anything an agent can use to predict how the environment will respond to its actions.
- What does a distribution model produce?All possible next states and rewards along with their exact probabilities p(s', r | s, a).
- Why is a distribution model required for dynamic programming?DP full backups need the exact probabilities of all possible transitions, which only a distribution model provides.
- What does a sample (generative) model produce?A single sampled transition (S_{t+1}, R_{t+1}) drawn from the estimated distribution p̂(· | s, a).
- Why are sample models often preferred over distribution models?They are much easier to learn or code, and they are sufficient for sample backups and simulation rollouts.
- What is planning in reinforcement learning?Any computational process that takes a model as input and produces or improves a policy.
- What is the input and output of planning?Input: a model. Output: a policy (produced or improved).
- How are model-free and model-based RL unified?Both direct RL (from real experience) and planning (from simulated experience) use the same value updates, such as Q-learning backups, at the heart of GPI.
- What kind of experience does direct RL use versus planning?Direct RL uses real experience from the environment; planning uses simulated experience generated by a model.
- What is the key difference between a distribution model and a sample model?A distribution model gives exact probabilities of all outcomes; a sample model gives just one sampled outcome per query.
- What are sample backups and simulation rollouts sufficient with?A sample (generative) model, which produces single sampled transitions.
- What update rule sits at the heart of both direct RL and planning in GPI?The same value updates, such as Q-learning backups, are used in both cases.
- What are the three components of the Tabular Dyna-Q loop?Direct RL (Q-learning update from real experience), Model Learning (store observed transitions in the model), and Planning (n simulated Q-learning backups sampled from the model).
- In Dyna-Q, how is the model updated for a deterministic environment?Store Model(S_t, A_t) ← (R_{t+1}, S_{t+1}) after each real transition.
- Why might pure Dyna-Q fail to find a newly opened shortcut in a maze?Its model believes the actions leading to the shortcut are dead ends, so simulated planning never explores them; the shortcut is only found if real exploration happens to try it.
- Why does Dyna-Q readily adapt when the environment becomes worse (e.g., a path is blocked)?The current policy immediately experiences negative TD errors on the changed transitions, so the value estimates are corrected through normal learning.
- What does Dyna-Q+ track to encourage exploration, and what bonus does it add?It tracks τ(s, a), the time steps since action a was last tried in state s, and adds an exploration bonus R̃ = R + κ√τ(s, a) during simulated backups.
- In Dyna-Q+, how are untried actions in visited states handled in the model?They are initialized as self-loops with zero reward so they become eligible for simulated planning backups.
- What is the main inefficiency of uniform Dyna planning that Prioritized Sweeping addresses?Uniform sampling wastes computation on transitions whose Q-values have already converged; Prioritized Sweeping focuses backups where the Bellman error is large.
- What priority is used in Prioritized Sweeping's queue?The absolute Bellman error P = |R + γ max_a Q(S', a) − Q(S, A)|.
- What is the difference between background planning and decision-time planning?Background planning (DP, Dyna) continually improves a global value function for all states; decision-time planning focuses computation on choosing a single action for the current state by looking ahead, then discards or caches the search tree.
- Why do tabular representations fail when the state space is huge or continuous?They exceed memory limits and cannot generalize across similar states, since each state is stored separately.
- What is the goal of function approximation in reinforcement learning?To approximate value functions with a parameterized function v̂(s, w) ≈ v_π(s) using a weight vector w.
- Why is the condition d ≪ |S| important in function approximation?It means the number of parameters is far smaller than the number of states, enabling generalization and saving memory.
- What does generalization mean in the context of function approximation?The ability to estimate values for unseen or similar states by sharing parameters across states, rather than storing each state separately.
- What is the mean squared value error objective, \(\overline{\text{VE}}(\mathbf{w})\)?It is the weighted sum of squared errors between the true value \(v_\pi(s)\) and the approximate value \(\hat{v}(s,\mathbf{w})\), weighted by the on-policy state distribution \(\mu(s)\): \(\overline{\text{VE}}(\mathbf{w}) = \sum_s \mu(s)[v_\pi(s)-\hat{v}(s,\mathbf{w})]^2\).
- What does the on-policy state distribution \(\mu(s)\) represent?The fraction of time spent in state \(s\) under policy \(\pi\). It satisfies \(\sum_s \mu(s)=1\) and is used to weight state errors in the mean squared value error.
- Why does improving the approximation at one state alter values at other states?Because the number of parameters \(d\) is much smaller than the number of states \(|\mathcal{S}|\), so the function approximator generalizes and changing weights affects many states.
- What is the ideal SGD update for minimizing the mean squared value error, assuming an unbiased target \(U_t\)?\(\mathbf{w}_{t+1} = \mathbf{w}_t + \alpha [U_t - \hat{v}(S_t,\mathbf{w}_t)] \nabla_{\mathbf{w}} \hat{v}(S_t,\mathbf{w}_t)\), where \(\mathbb{E}[U_t \mid S_t=s] = v_\pi(s)\).
- What condition must the target \(U_t\) satisfy for the ideal SGD update to be unbiased?\(\mathbb{E}[U_t \mid S_t=s] = v_\pi(s)\), i.e., the target is an unbiased estimate of the true state value.
- In Gradient Monte Carlo, what target \(U_t\) is used?The return \(G_t\), since \(\mathbb{E}_\pi[G_t \mid S_t] = v_\pi(S_t)\).
- Why is Gradient Monte Carlo considered a true stochastic gradient descent method?Because the return \(G_t\) is an unbiased estimate of \(v_\pi(S_t)\) and does not depend on the weights \(\mathbf{w}_t\), so the update is an unbiased stochastic gradient of \(\overline{\text{VE}}(\mathbf{w})\).
- To what does Gradient Monte Carlo converge?It converges to a local optimum of the mean squared value error \(\overline{\text{VE}}(\mathbf{w})\), and to the global optimum when using linear function approximation.
- What is the Gradient Monte Carlo update rule?\(\mathbf{w}_{t+1} = \mathbf{w}_t + \alpha [G_t - \hat{v}(S_t,\mathbf{w}_t)] \nabla_{\mathbf{w}} \hat{v}(S_t,\mathbf{w}_t)\).
- Why is the mean squared value error weighted by \(\mu(s)\) rather than uniformly over states?Because states are visited with different frequencies under the policy; weighting by \(\mu(s)\) emphasizes states that are actually encountered, aligning the objective with on-policy performance.
- What role does the gradient \(\nabla_{\mathbf{w}} \hat{v}(S_t,\mathbf{w}_t)\) play in the SGD update?It scales the update in the direction that most reduces the squared error for the current state, adjusting the weights proportionally to the feature gradient.
- For linear function approximation, what is the nature of the optimum reached by Gradient Monte Carlo?It is the global optimum of the mean squared value error, because the objective is quadratic in the weights for linear approximation.
- Why is TD(0) with function approximation called "semi-gradient"?Because the bootstrapped target U_t = R_{t+1} + γv̂(S_{t+1}, w_t) depends on the weights w_t, but semi-gradient TD(0) ignores that dependence, treating the target as a constant (stop-gradient).
- What does semi-gradient TD(0) do with the dependence of the target U_t on the weights w_t?It intentionally ignores it, treating U_t as a constant rather than differentiating through it.
- Write the semi-gradient TD(0) update rule.w_{t+1} ← w_t + α [R_{t+1} + γv̂(S_{t+1}, w_t) − v̂(S_t, w_t)] ∇_w v̂(S_t, w_t)
- In the semi-gradient TD(0) update, what is δ_t?The TD error: δ_t = R_{t+1} + γv̂(S_{t+1}, w_t) − v̂(S_t, w_t).
- In the semi-gradient TD(0) update, which term is the gradient taken with respect to?Only the prediction v̂(S_t, w_t); the gradient ∇_w v̂(S_t, w_t) does not include the target U_t.
- What would a true gradient of the squared TD error require that semi-gradient TD(0) avoids?It would require differentiating through the target U_t with respect to w_t, since U_t depends on the current weights.
- What is the target U_t in semi-gradient TD(0)?U_t = R_{t+1} + γv̂(S_{t+1}, w_t), the bootstrapped estimate of the return using the current weights.
- Why does bootstrapping make the TD target depend on the current weights?Because the target uses the current value estimate v̂(S_{t+1}, w_t), which is a function of w_t.
- What does "stop-gradient" mean in the context of semi-gradient TD(0)?The target U_t is treated as a constant during the update, so no gradient flows through it to the weights.
- What role does the step size α play in the semi-gradient TD(0) update?It scales the update applied to the weights in the direction of the TD error times the value gradient.
- In semi-gradient TD(0), the update direction is the TD error multiplied by what?The gradient of the value estimate at the current state, ∇_w v̂(S_t, w_t).
- What is the key difference between the true gradient of the squared TD error and the semi-gradient TD(0) update?The true gradient differentiates through the target U_t (which depends on w_t); semi-gradient TD(0) treats U_t as constant and only differentiates v̂(S_t, w_t).
- In linear function approximation, what is the gradient of the estimated value function with respect to the weights?The gradient is simply the feature vector: ∇_w v̂(s, w) = x(s).
- What are the expected linear semi-gradient TD(0) update equations?E[w_{t+1} | w_t] = w_t + α(b - A w_t), where b = E_μ[R_{t+1} x_t] and A = E_μ[x_t (x_t - γ x_{t+1})^T].
- What is the TD fixed point w_TD in linear function approximation?At convergence, b - A w_TD = 0, so w_TD = A^{-1} b.
- Under on-policy sampling, what property guarantees that the TD fixed point exists and semi-gradient TD(0) converges?The matrix A is positive definite under on-policy sampling μ, ensuring w_TD exists and convergence.
- What is Least-Squares TD (LSTD)?LSTD directly estimates A and b from data and solves w = A^{-1} b without step-size tuning, using the Sherman–Morrison formula to maintain A^{-1} incrementally.
- How does LSTD estimate the matrix A and vector b?It accumulates Â_t = Σ_{k=0}^{t-1} x_k (x_k - γ x_{k+1})^T + εI and b̂_t = Σ_{k=0}^{t-1} R_{k+1} x_k.
- What is the Sherman–Morrison rank-1 update formula used for in LSTD?It efficiently updates the inverse of Â_t in O(d^2) per step, allowing direct computation of w_t = Â_t^{-1} b̂_t.
- What is the computational complexity per step of LSTD?O(d^2) per step due to the Sherman–Morrison update of the inverse matrix.
- Does LSTD require step-size tuning?No, LSTD solves for the weights directly without step-size tuning.
- What does the matrix A represent in the expected TD update?A = E_μ[x_t (x_t - γ x_{t+1})^T], a d×d matrix capturing the expected outer product of feature vectors.
- What does the vector b represent in the expected TD update?b = E_μ[R_{t+1} x_t], the expected product of reward and feature vector.
- What is the role of the εI term in LSTD's Â_t?It ensures numerical stability by making the matrix invertible, especially when it is singular.
- What is state aggregation in feature construction?A scheme that partitions the state space into disjoint groups, with the feature vector being a one-hot encoding of the group containing the state (a piecewise-constant step function).
- How does coarse coding represent states?Using overlapping binary receptive fields (e.g., circles in R^2), where generalization contour size depends on feature diameter and asymptotic resolution depends on the number of overlapping features.
- What is tile coding (CMAC)?A scheme using n overlapping grid tilings, each offset by a fraction of a tile width, where exactly one tile is active per tiling at any state.
- How are off-policy semi-gradient TD(0) updates scaled?Each transition update is scaled by the importance ratio rho_t = pi(A_t|S_t) / b(A_t|S_t).
- What does Baird's Counterexample demonstrate?That off-policy semi-gradient TD(0) can diverge to +infinity even on a simple 7-state MDP with linear features, known dynamics, and zero reward.
- Why does Baird's Counterexample diverge?The behavior policy's state distribution differs from the target policy's on-policy distribution, making the matrix A = X^T D_b (I - gamma P_pi) X no longer positive definite, so updates destabilize and diverge exponentially.
- What are the three elements of the Deadly Triad?Function approximation, bootstrapping, and off-policy training — instability and divergence arise when all three are combined simultaneously.
- How can the Deadly Triad be avoided?By dropping any single element: tabular off-policy Q-learning drops function approximation, off-policy gradient Monte Carlo drops bootstrapping, and on-policy linear TD(0) drops off-policy training.
- What is Emphatic TD and what problem does it solve?A method (Sutton, Mahmood & White, 2016) that restores convergence under linear function approximation by reweighting off-policy updates with an emphasis scalar M_t that simulates on-policy follow-on visitation.
- What benchmark did DQN use to demonstrate scaling Q-learning to raw pixel inputs?The Atari-57 benchmark, using a single CNN architecture and hyperparameter set.
- Why is a single frame of Pong non-Markovian?A single frame lacks velocity information—the ball's direction is invisible—so the state does not fully determine the future.
- How does DQN preprocess raw Atari frames?Convert to luminance grayscale, downsample to 84×84, apply 4-frame action repeat/max-pooling over adjacent frames to remove sprite flickering, and stack the 4 most recent frames into an 84×84×4 state tensor.
- What is the shape of the Markovian state tensor DQN constructs from Atari frames?84×84×4 (four stacked grayscale frames).
- How are rewards clipped in DQN's Atari setup?Rewards are clipped to {-1, 0, +1}.
- Why does DQN take only the state s as input rather than (s, a)?Outputting all action values in a single forward pass avoids needing |A| forward passes to compute max_a Q(s, a).
Ещё 110 карточек в приложении.
Velocer бесплатен: интервальное повторение и ваши собственные карточки из любого документа.
PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import
Другие колоды University of Wisconsin–Madison
- comp sci 240 midterm 1
- comp sci 240 midterm 2
- COMP SCI 240 Midterm 3
- COMP SCI 240 Final
- comp sci 300 full course review
- CS 639: Introduction to Reinforcement Learning · UW-Madison
- CS 544: Intro to Big Data Systems · UW-Madison
- CS 580: Intelligent Robotics · UW-Madison
- CS 784: Foundations of Data Management · UW-Madison
- CS 880: Quantum Algorithms · UW-Madison
- CS 765: Data Visualization · UW-Madison
- CS 639: AI Coding · UW-Madison