Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What type of Reinforcement Learning algorithm is Q-Learning?
Not quite. Try another option.
Answer: Model-free, Off-policy
Q-Learning is a model-free algorithm because it does not learn a model of the environment, and it is off-policy because it learns the value of the optimal policy independently of the agent's actions.
Question 2 of 50
In Q-Learning, what does the 'Q' specifically represent?
Not quite. Try another option.
Answer: Quality
The 'Q' stands for Quality, representing how useful a given action is in gaining some future reward.
Question 3 of 50
What is the primary data structure used in basic tabular Q-Learning?
Not quite. Try another option.
Answer: A Q-Table
Tabular Q-Learning uses a Q-Table (lookup table) to store the Q-values for every state-action pair.
Question 4 of 50
Which equation is used to update the Q-values in Q-Learning?
Not quite. Try another option.
Answer: Bellman Equation
The Bellman Equation provides the recursive relationship used to update Q-values based on the reward and the value of the next state.
Question 5 of 50
In the Q-learning update rule, what is the role of the learning rate (alpha)?
Not quite. Try another option.
Answer: It controls how much the new information overrides the old information.
The learning rate (alpha) determines the extent to which newly acquired information overrides old information. Alpha=0 means nothing is learned; Alpha=1 means only the most recent information counts.
Question 6 of 50
What is the purpose of the discount factor (gamma) in Q-Learning?
Not quite. Try another option.
Answer: To balance immediate and future rewards
Gamma determines the present value of future rewards. A gamma of 0 makes the agent short-sighted (only cares about current reward), while a gamma close to 1 makes it far-sighted.
Question 7 of 50
If the discount factor (gamma) is set to 0, what will the agent optimize for?
Not quite. Try another option.
Answer: Only the immediate reward
With gamma = 0, future rewards are multiplied by 0, so the agent only considers the immediate reward (r) received from the current action.
Question 8 of 50
What is the 'Temporal Difference (TD) Error' in the context of Q-Learning?
Not quite. Try another option.
Answer: The difference between the target Q-value and the current predicted Q-value
TD Error is the difference between the estimated value of the current state (Target: Reward + discounted max future Q) and the current stored Q-value.
Question 9 of 50
What is the Epsilon-Greedy strategy used for?
Not quite. Try another option.
Answer: To balance exploration and exploitation
Epsilon-greedy is a policy that balances exploration (choosing random actions) and exploitation (choosing the best known action) based on probability epsilon.
Question 10 of 50
In an Epsilon-Greedy strategy, what happens if epsilon is 1?
Not quite. Try another option.
Answer: The agent always chooses a random action.
If epsilon is 1, the probability of exploring (choosing a random action) is 100%.
Question 11 of 50
What is the typical behavior of epsilon during the training process in Deep Q-Learning?
Not quite. Try another option.
Answer: It starts high and decays over time.
Epsilon usually starts high to encourage exploration of the environment early on and decays (decreases) over time to exploit the learned policy as it improves.
Question 12 of 50
Why does tabular Q-Learning fail in environments like Atari games or Robotics?
Not quite. Try another option.
Answer: The state space is too large (Curse of Dimensionality).
Tabular Q-learning requires a row for every possible state. In environments with high-dimensional inputs (like image pixels), the number of states is astronomically large, making a table impossible to store or fill.
Question 13 of 50
What replaces the Q-Table in a Deep Q-Network (DQN)?
Not quite. Try another option.
Answer: A Deep Neural Network
In DQN, a neural network is used as a function approximator to estimate Q-values for states, rather than storing them in a table.
Question 14 of 50
What is the input to the neural network in a standard DQN for playing video games?
Not quite. Try another option.
Answer: The raw pixels of the game screen (state)
The network takes the state (usually preprocessed screen pixels) as input and outputs Q-values for all possible actions.
Question 15 of 50
What is the output layer size of a DQN used for an environment with 'N' discrete actions?
Not quite. Try another option.
Answer: N (One Q-value for each action)
A DQN takes a state as input and outputs a vector of size N, representing the predicted Q-value for each of the N possible actions.
Question 16 of 50
What is 'Experience Replay' in DQN?
Not quite. Try another option.
Answer: Storing past transitions (s, a, r, s') in a buffer and sampling minibatches for training.
Experience Replay involves storing agent experiences in a buffer and randomly sampling them during training to break temporal correlations between consecutive samples.
Question 17 of 50
What is the primary benefit of using Experience Replay?
Not quite. Try another option.
Answer: It breaks the correlation between consecutive samples and stabilizes training.
Sequential samples in RL are highly correlated. Random sampling from a replay buffer creates an i.i.d. (independent and identically distributed) data setting, which is better for neural network training.
Question 18 of 50
In the context of DQN, what is the 'Target Network'?
Not quite. Try another option.
Answer: A copy of the main network with frozen weights used to calculate target Q-values.
The Target Network is a clone of the online (policy) network. Its weights are frozen and updated less frequently to provide a stable target for the loss function calculation.
Question 19 of 50
Why is a Target Network necessary in DQN?
Not quite. Try another option.
Answer: To prevent the 'chasing your own tail' instability where target values shift constantly.
Without a target network, the update modifies the same network used to calculate the target value, causing the target to shift immediately, which leads to oscillation and divergence.
Question 20 of 50
How are weights usually updated in the Target Network?
Not quite. Try another option.
Answer: Copied from the main network every fixed number of steps.
The weights of the main network are copied to the target network periodically (e.g., every 1000 steps) or via a soft update (Polyak averaging).
Question 21 of 50
What is the loss function typically used in DQN?
Not quite. Try another option.
Answer: Mean Squared Error (MSE) between predicted Q and target Q
DQN treats the Bellman update as a regression problem, minimizing the squared difference between the current Q-value and the target Q-value (Reward + gamma * max Q_next).
Question 22 of 50
What main issue does 'Double DQN' address?
Not quite. Try another option.
Answer: Overestimation of Q-values
Standard DQN tends to overestimate Q-values because the max operator is used for both action selection and evaluation. Double DQN addresses this maximization bias.
Question 23 of 50
In standard DQN, how is the target value calculated (ignoring reward and gamma)?
Not quite. Try another option.
Answer: max_a Q(s', a; target_weights)
Standard DQN uses the max Q-value of the next state directly from the target network, effectively selecting and evaluating the action using the same set of weights.
Question 24 of 50
How does Double DQN calculate the target Q-value?
Not quite. Try another option.
Answer: It uses the Main network to select the best action and the Target network to evaluate its value.
Double DQN decouples selection and evaluation: Action = argmax Q(Online Network), Value = Q(Target Network, Action).
Question 25 of 50
What is the architectural change in Dueling DQN compared to standard DQN?
Not quite. Try another option.
Answer: It splits the network into two streams: Value stream and Advantage stream.
Dueling DQN separates the estimator into two streams after the convolutional layers: one for the state Value function V(s) and one for the Advantage function A(s,a).
Question 26 of 50
In Dueling DQN, what does the Value function V(s) estimate?
Not quite. Try another option.
Answer: How good it is to be in a particular state, regardless of the action taken.
V(s) represents the scalar value of the state itself, independent of the specific action chosen.
Question 27 of 50
In Dueling DQN, what does the Advantage function A(s, a) estimate?
Not quite. Try another option.
Answer: How much better taking action 'a' is compared to the average action in state 's'.
The Advantage function captures the relative importance of each action. Q(s,a) = V(s) + A(s,a).
Question 28 of 50
How are the Value and Advantage streams combined in Dueling DQN to get Q-values?
Not quite. Try another option.
Answer: Aggregation (Summation with normalization)
They are aggregated via addition, usually subtracting the mean (or max) of the advantage to ensure identifiability: Q = V + (A - mean(A)).
Question 29 of 50
What is the main benefit of Dueling DQN?
Not quite. Try another option.
Answer: It allows the agent to learn which states are valuable without having to learn the effect of every action.
By decoupling V and A, the network can learn general state values more efficiently, which is useful in states where the choice of action doesn't affect the outcome much.
Question 30 of 50
Which of the following is true about 'Off-policy' learning in Q-learning?
Not quite. Try another option.
Answer: The agent learns the value of the optimal policy regardless of the current actions taken.
Off-policy means the target policy (optimal, greedy) is different from the behavior policy (epsilon-greedy). Q-learning approximates optimal Q-values even while exploring.
Question 31 of 50
What represents the 'State' in a Reinforcement Learning framework?
Not quite. Try another option.
Answer: The current situation or configuration of the environment.
The State (S) is the observation or configuration of the environment at a specific time step.
Question 32 of 50
In the Bellman optimality equation, what does 'max_a Q(s', a)' represent?
Not quite. Try another option.
Answer: The value of the best action available in the next state.
This term represents the estimated maximum cumulative future reward achievable from the next state s'.
Question 33 of 50
If an agent reaches a terminal state, what is the Target Q-value?
Not quite. Try another option.
Answer: The immediate reward (r) only.
In a terminal state, there is no next state, so the discounted future value is 0. The target is just the immediate reward.
Question 34 of 50
Which of the following creates a 'Moving Target' problem in naive Deep Q-Learning?
Not quite. Try another option.
Answer: Using the same network to calculate both predicted value and target value.
If the same network weights are used for prediction and target calculation, every update shifts the target, making convergence difficult (like a dog chasing its tail).
Question 35 of 50
What is 'Catastrophic Forgetting' in the context of RL?
Not quite. Try another option.
Answer: The agent forgets previously learned knowledge when training on new dissimilar experiences.
This happens when a neural network overwrites weights optimized for past experiences to fit new, correlated experiences. Experience replay helps mitigate this.
Question 36 of 50
In Q-Learning, convergence to the optimal Q-values is guaranteed if:
Not quite. Try another option.
Answer: All state-action pairs are visited infinitely often and learning rate decays appropriately.
For tabular Q-learning, convergence is proven if every state-action pair is visited infinitely often and the step sizes satisfy specific decay conditions (Robbins-Monro).
Question 37 of 50
Which component of the tuple (S, A, R, S') is NOT known before the agent takes an action?
Not quite. Try another option.
Answer: R and S' (Reward and Next State)
The agent knows the current state and chooses an action. The Reward and Next State are returned by the environment after the action is executed.
Question 38 of 50
In Double DQN, the update equation replaces the target 'Y' with:
Not quite. Try another option.
Answer: R + gamma * Q_target(s', argmax Q_main(s', a))
This is the mathematical representation of Double DQN: select action using Main (argmax Q_main), evaluate using Target (Q_target).
Question 39 of 50
What is the primary motivation for 'Prioritized Experience Replay'?
Not quite. Try another option.
Answer: To replay experiences where the agent had a high TD error (learned the most).
Prioritized Experience Replay samples transitions with high TD error more frequently because these are the transitions where the agent's current predictions are most wrong (surprising).
Question 40 of 50
When preprocessing images for DQN (e.g., Atari), what is a common technique?
Not quite. Try another option.
Answer: Converting to grayscale and resizing.
To reduce computational complexity, images are typically converted to grayscale and downsampled (e.g., to 84x84) before being fed into the CNN.
Question 41 of 50
In Dueling DQN, the aggregation layer usually subtracts the mean of the Advantage values. Why?
Not quite. Try another option.
Answer: For numerical stability and identifiability.
Subtracting the mean (or max) ensures the Q-value is unique (Identifiability). Without this, V(s) and A(s,a) could shift by arbitrary constants without changing Q.
Question 42 of 50
What is an 'Episode' in Reinforcement Learning?
Not quite. Try another option.
Answer: A sequence of states, actions, and rewards from start to a terminal state.
An episode is a complete run of the task, starting from an initial state and ending at a terminal state (e.g., game over or goal reached).
Question 43 of 50
Which activation function is commonly used in the hidden layers of a Deep Q-Network?
Not quite. Try another option.
Answer: ReLU (Rectified Linear Unit)
ReLU is standard for hidden layers in CNNs and DQNs due to efficient computation and mitigation of the vanishing gradient problem.
Question 44 of 50
Why is the Softmax function generally NOT used in the output layer of a DQN?
Not quite. Try another option.
Answer: DQN outputs Q-values (regression), not probabilities (classification).
DQN predicts expected future rewards (Q-values), which can be any real number. Softmax forces outputs to sum to 1, which applies to probabilities, not value estimation.
Question 45 of 50
In the context of RL, what is 'Exploitation'?
Not quite. Try another option.
Answer: Selecting the action currently believed to be optimal.
Exploitation means using the current knowledge (Q-values) to maximize reward, typically by choosing the action with the highest Q-value.
Question 46 of 50
What is 'Frame Stacking' in DQN for Atari games?
Not quite. Try another option.
Answer: Stacking consecutive frames to capture motion/velocity.
A single static frame doesn't show direction or speed. Stacking usually 4 consecutive frames creates a state representation that includes temporal information.
Question 47 of 50
What optimization algorithm is typically used to train the DQN weights?
Not quite. Try another option.
Answer: Gradient Descent (e.g., RMSProp or Adam)
Since DQN is a neural network minimizing a loss function (MSE), gradient descent optimizers like RMSProp or Adam are used.
Question 48 of 50
If the Q-values for all actions in a state are equal, what will an epsilon-greedy policy (with epsilon=0) do?
Not quite. Try another option.
Answer: Choose an action randomly among them (or the first one).
If values are tied, the argmax function typically breaks ties arbitrarily (e.g., first index) or randomly among the tied best actions.
Question 49 of 50
Which of the following implies that an RL problem is 'episodic'?
Not quite. Try another option.
Answer: The task breaks down into independent sequences ending in a terminal state.
Episodic tasks have a clear start and end point (e.g., a game of Chess), as opposed to continuous tasks.
Question 50 of 50
What is the primary reason DQN was considered a breakthrough (published by DeepMind)?
Not quite. Try another option.
Answer: It was the first algorithm to master a wide range of Atari 2600 games using only raw pixels and scores.
DQN (2013/2015) was a breakthrough because it demonstrated human-level performance across many different games using the same architecture and hyperparameters, learning directly from pixels.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of INT423 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of INT423 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.