Sure! Let's go through each question and provide the correct answers.
1. Which of the following is true about DQN?
- It can be efficiently used for very large state spaces
- It can be efficiently used for continuous action spaces
Answer: It can be efficiently used for very large state spaces
Explanation: DQN uses deep neural networks to approximate the Q-function, which allows it to handle very large or high-dimensional state spaces efficiently. However, DQN is not well-suited for continuous action spaces because it relies on evaluating Q-values for discrete actions.
2. How many outputs will we get from the final layer of a DQN Network (|S| and |A| represent the total number of states and actions in the environment respectively)?
- |S| × |A|
- |S|
- |A|
- None of these
Answer: |A|
Explanation: In a DQN, the neural network takes a state as input and outputs a Q-value for each possible action in that state. Therefore, the final layer outputs a vector of size equal to the number of possible actions, |A|.
3. What are the reasons behind using an experience replay buffer in DQN?
- Random sampling from experience replay buffer breaks correlations among transitions.
- It leads to efficient usage of real-world samples.
- It guarantees convergence to the optimal policy.
- None of the above
Answer:
- Random sampling from experience replay buffer breaks correlations among transitions.
- It leads to efficient usage of real-world samples.
Explanation: The experience replay buffer stores past experiences, which are later sampled randomly. This random sampling breaks the temporal correlations between consecutive transitions, stabilizing learning. It also allows the algorithm to reuse past experiences multiple times, making efficient use of data. However, it does not guarantee convergence to the optimal policy on its own.
4. Statement: DQN is implemented with current and target network.
Reason: Using target network helps in avoiding chasing a non-stationary target.
- Both Assertion and Reason are true, and Reason is correct explanation for Assertion.
- Both Assertion and Reason are true, but Reason is not correct explanation for Assertion.
- Assertion is true, Reason is false
- Both Assertion and Reason are false
Answer: Both Assertion and Reason are true, and Reason is correct explanation for Assertion.
Explanation: The target network in DQN is a copy of the current network but with parameters updated less frequently. This helps stabilize training by providing a consistent target Q-value, thus avoiding the problem of the network chasing moving targets as the current network's parameters are updated.
5. Assertion: Actor-critic updates have lesser variance than REINFORCE updates.
Reason: Actor-critic methods use TD target instead of ( G_t ).
- Both Assertion and Reason are true, and Reason is correct explanation for Assertion.
- Both Assertion and Reason are true, but Reason is not correct explanation for Assertion.
- Assertion is true, Reason is false
- Both Assertion and Reason are false
Answer: Both Assertion and Reason are true, and Reason is correct explanation for Assertion.
Explanation: Actor-critic methods combine policy gradients with value function approximation using Temporal Difference (TD) learning, which provides lower-variance estimates compared to the high-variance Monte Carlo estimates used in REINFORCE. The use of TD targets (rather than full returns ( G_t )) results in reduced variance in the updates.
6. Suppose we are using a policy gradient method to solve a reinforcement learning problem. Assuming that the policy returned by the method is not optimal, which among the following are plausible reasons for such an outcome?
- The search procedure converged to a locally optimal policy.
- The search procedure was terminated before it could reach an optimal policy.
- An optimal policy could not be represented by the parameterisation used to represent the policy.
- None of these
Answer:
- The search procedure converged to a locally optimal policy.
- The search procedure was terminated before it could reach an optimal policy.
- An optimal policy could not be represented by the parameterisation used to represent the policy.
Explanation: Policy gradient methods may converge to local optima due to the non-convex nature of neural networks. Early termination can prevent the algorithm from reaching the global optimum. Additionally, if the policy class (defined by the parameterization) cannot represent the optimal policy, then the optimal policy cannot be achieved.
7. Which of the following is the correct definition of average reward formulation?
- ( \rho(\pi) = \lim_{N \to \infty} E[r_1 + r_2 + \dots + r_N] )
- ( \rho(\pi) = \lim_{N \to \infty} E[r_1 + r_2 + \dots + r_N \mid \pi] )
- ( \rho(\pi) = \lim_{N \to \infty} \frac{1}{N} E[r_1 + r_2 + \dots + r_N] )
- ( \rho(\pi) = \lim_{N \to \infty} \frac{1}{N} E[r_1 + r_2 + \dots + r_N \mid \pi]
Answer: ( \rho(\pi) = \lim_{N \to \infty} \frac{1}{N} E[r_1 + r_2 + \dots + r_N \mid \pi] )
Explanation: The average reward formulation calculates the long-term average reward per time step under policy ( \pi ). It is defined as the expected cumulative reward divided by the number of steps, in the limit as ( N ) approaches infinity.
8. State True or False:
Monte Carlo policy gradient methods typically converge faster than the actor-critic methods, given that we use similar parameterisations and that the approximation to the ( Q^\pi ) used in the actor-critic method satisfies the compatibility criteria.
Answer: False
Explanation: Actor-critic methods generally converge faster than Monte Carlo policy gradient methods because they use TD learning to estimate value functions, which provides lower variance updates compared to the high-variance estimates in Monte Carlo methods.
9. When using policy gradient methods, if we make use of the average reward formulation rather than the discounted reward formulation, then is it necessary to assign a designated start state, ( s_0 )?
Answer: No
Explanation: In the average reward formulation, the focus is on the steady-state behavior of the Markov Decision Process (MDP), and the influence of the starting state diminishes over time. Therefore, it's not necessary to assign a designated start state.
10. State True or False:
Exploration techniques like softmax (or other equivalent techniques) are not needed for DQN as the randomisation provided by experience replay provides sufficient exploration.
Answer: False
Explanation: Experience replay helps break correlations between samples but does not contribute to exploration. DQN still requires an explicit exploration strategy (like ε-greedy or softmax action selection) to ensure that the agent explores the environment sufficiently.
I hope this helps clarify the correct answers to your questions!