Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : REINFORCEMENT LEARNING
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
INSTRUCTIONS:
This paper contains bonus questions marked with [Bonus] at the beginning of the question. These questions carry 0 marks toward the regular total of 30 and do not contribute to the End Term score. However, correct answers will earn additional bonus marks, which will be added to your final score in accordance with the grading policy. Attempting these questions is optional, and there is no penalty for incorrect or unattempted bonus questions.
This paper contains bonus questions marked with [Bonus] at the beginning of the question. These questions carry 0 marks toward the regular total of 30 and do not contribute to the End Term score. However, correct answers will earn additional bonus marks, which will be added to your final score in accordance with the grading policy. Attempting these questions is optional, and there is no penalty for incorrect or unattempted bonus questions.
Solution
An option
is defined as a triple. Which of the following correctly lists all three components of an option?
Solution
In DDPG, target networks are updated via soft updates
with
. The primary reason for this slow update is:
Solution
DDPG uses an experience replay buffer. What is the direct consequence of using an experience replay buffer
Solution
Compared to the policy gradient, the DPG theorem requires integration over:
Solution
[Bonus] The TRPO surrogate objective is defined as

where

is an importance-sampling ratio.
Why is it justified to optimise
instead of the true objective 
where
is an importance-sampling ratio.
Why is it justified to optimise
Solution
Which are known limitations or failure modes of DDPG?
Solution
Which are not valid estimators of the advantage function
?
Solution
Recall standard control algorithms in RL, like Q-Learning, SARSA, Expected SARSA, etc., involve a maximisation step in constructing their target policies.
For example:
In Q-Learning, the target is:

Which of the following statements are correct? Select all that apply.
For example:
In Q-Learning, the target is:
Which of the following statements are correct? Select all that apply.
Solution
Inscript
An option
is initiated in state
and executes for
steps with rewards
and
. What is the cumulative discounted return of this option?
An option
Solution
Inscript
[Bonus] Consider an agent in state
that executes action
. The transition is stochastic: the environment transitions to one of two possible next states according to the following distribution:

with associated immediate rewards:

The Q-value estimates of two independent estimators
and
at each possible next state are given in the tables below.

Additional parameters:

Using Double Q-learning with
for action selection and
for action evaluation, compute the expected Double Q-learning target
for updating
:

Round your final answer to 2 decimal places.
[Bonus] Consider an agent in state
with associated immediate rewards:
The Q-value estimates of two independent estimators
Additional parameters:
Using Double Q-learning with
Round your final answer to 2 decimal places.
Solution
Comprehension Passage
Ganesh is designing a robot arm controller with a 6-dimensional continuous action space. He
initially uses a stochastic policy
with the standard policy gradient(SPG):

Karthik suggests switching to the Deterministic Policy Gradient (DPG) with policy
:

Karthik argues that DPG is strictly more sample-efficient here. However, Ganesh notices that the current DPG implementation uses only on-policy data sampled under
, and that the robot operates in a noisy, stochastic environment where some states are rarely visited under the greedy policy.
Based on the above data, answer the given subquestions.
initially uses a stochastic policy
Karthik suggests switching to the Deterministic Policy Gradient (DPG) with policy
Karthik argues that DPG is strictly more sample-efficient here. However, Ganesh notices that the current DPG implementation uses only on-policy data sampled under
Based on the above data, answer the given subquestions.
Why is DPG generally more sample-efficient than SPG in high-dimensional continuous action spaces?
Solution
Comprehension Passage
Ganesh is designing a robot arm controller with a 6-dimensional continuous action space. He
initially uses a stochastic policy
with the standard policy gradient(SPG):

Karthik suggests switching to the Deterministic Policy Gradient (DPG) with policy
:

Karthik argues that DPG is strictly more sample-efficient here. However, Ganesh notices that the current DPG implementation uses only on-policy data sampled under
, and that the robot operates in a noisy, stochastic environment where some states are rarely visited under the greedy policy.
Based on the above data, answer the given subquestions.
initially uses a stochastic policy
Karthik suggests switching to the Deterministic Policy Gradient (DPG) with policy
Karthik argues that DPG is strictly more sample-efficient here. However, Ganesh notices that the current DPG implementation uses only on-policy data sampled under
Based on the above data, answer the given subquestions.
Ganesh’s on-policy DPG implementation is likely to suffer from which of the following problems? Select all that apply.
Solution
Comprehension Passage
Ganesh is designing a robot arm controller with a 6-dimensional continuous action space. He
initially uses a stochastic policy
with the standard policy gradient(SPG):

Karthik suggests switching to the Deterministic Policy Gradient (DPG) with policy
:

Karthik argues that DPG is strictly more sample-efficient here. However, Ganesh notices that the current DPG implementation uses only on-policy data sampled under
, and that the robot operates in a noisy, stochastic environment where some states are rarely visited under the greedy policy.
Based on the above data, answer the given subquestions.
initially uses a stochastic policy
Karthik suggests switching to the Deterministic Policy Gradient (DPG) with policy
Karthik argues that DPG is strictly more sample-efficient here. However, Ganesh notices that the current DPG implementation uses only on-policy data sampled under
Based on the above data, answer the given subquestions.
Inscript
[Bonus] Ganesh adds Gaussian exploration noise
,
, with
. The DPG actor update for a single sample is:

Given
, and for a particular state
:

Compute the
-norm of the parameter update vector
. Round to 4 decimal places.
[Bonus] Ganesh adds Gaussian exploration noise
Given
Compute the
Solution
Comprehension Passage
A Bernoulli-logistic unit is a stochastic neuron whose output
follows a Bernoulli distribution:

The unit receives a feature vector
as input. Let
denote the action preference for action
in state
under policy parameter
.
Assume that difference in action preferences is a linear function of the input:

The softmax (exponential soft-max) policy converts preferences to probabilities:

The REINFORCE (Monte Carlo policy gradient) update rule is:

where
is the return from time
, and
is called the eligibility vector.
Based on the above data, answer the given subquestions.
The unit receives a feature vector
Assume that difference in action preferences is a linear function of the input:
The softmax (exponential soft-max) policy converts preferences to probabilities:
The REINFORCE (Monte Carlo policy gradient) update rule is:
where
Based on the above data, answer the given subquestions.
Applying the softmax distribution to the Bernoulli-logistic unit, which of the following correctly expresses
?
Solution
Comprehension Passage
A Bernoulli-logistic unit is a stochastic neuron whose output
follows a Bernoulli distribution:

The unit receives a feature vector
as input. Let
denote the action preference for action
in state
under policy parameter
.
Assume that difference in action preferences is a linear function of the input:

The softmax (exponential soft-max) policy converts preferences to probabilities:

The REINFORCE (Monte Carlo policy gradient) update rule is:

where
is the return from time
, and
is called the eligibility vector.
Based on the above data, answer the given subquestions.
The unit receives a feature vector
Assume that difference in action preferences is a linear function of the input:
The softmax (exponential soft-max) policy converts preferences to probabilities:
The REINFORCE (Monte Carlo policy gradient) update rule is:
where
Based on the above data, answer the given subquestions.
[Bonus] The Monte Carlo REINFORCE update for the Bernoulli-logistic unit upon receipt of return
is:

Which of the following statements about this update are correct? Select all that apply.
Which of the following statements about this update are correct? Select all that apply.
Solution
Comprehension Passage
Vivek implements the REINFORCE (Monte Carlo policy gradient) algorithm for a text-generation task modelled as an episodic MDP. The policy is a neural network
parameterised by
. At each episode's end, he collects the full trajectory
and computes the return:

The REINFORCE gradient estimator is:

After 1000 episodes, he observes that the gradient variance is extremely high and training is unstable. Neel suggests adding a baseline
:

He claims: "Subtracting
reduces variance without biasing the gradient, as long as
does not depend on
.''
Based on the above data, answer the given subquestions.
The REINFORCE gradient estimator is:
After 1000 episodes, he observes that the gradient variance is extremely high and training is unstable. Neel suggests adding a baseline
He claims: "Subtracting
Based on the above data, answer the given subquestions.
Why does REINFORCE exhibit high gradient variance, particularly in long-horizon tasks like text generation?
Solution
Comprehension Passage
Vivek implements the REINFORCE (Monte Carlo policy gradient) algorithm for a text-generation task modelled as an episodic MDP. The policy is a neural network
parameterised by
. At each episode's end, he collects the full trajectory
and computes the return:

The REINFORCE gradient estimator is:

After 1000 episodes, he observes that the gradient variance is extremely high and training is unstable. Neel suggests adding a baseline
:

He claims: "Subtracting
reduces variance without biasing the gradient, as long as
does not depend on
.''
Based on the above data, answer the given subquestions.
The REINFORCE gradient estimator is:
After 1000 episodes, he observes that the gradient variance is extremely high and training is unstable. Neel suggests adding a baseline
He claims: "Subtracting
Based on the above data, answer the given subquestions.
Inscript
For a single timestep
in an episode, the following values are observed:

Compute the parameter update
and report
.
Round to 4 decimal places.
For a single timestep
Compute the parameter update
Round to 4 decimal places.
Solution
Comprehension Passage
Vivek implements the REINFORCE (Monte Carlo policy gradient) algorithm for a text-generation task modelled as an episodic MDP. The policy is a neural network
parameterised by
. At each episode's end, he collects the full trajectory
and computes the return:

The REINFORCE gradient estimator is:

After 1000 episodes, he observes that the gradient variance is extremely high and training is unstable. Neel suggests adding a baseline
:

He claims: "Subtracting
reduces variance without biasing the gradient, as long as
does not depend on
.''
Based on the above data, answer the given subquestions.
The REINFORCE gradient estimator is:
After 1000 episodes, he observes that the gradient variance is extremely high and training is unstable. Neel suggests adding a baseline
He claims: "Subtracting
Based on the above data, answer the given subquestions.
Neel claims that any function
not depending on
is a valid zero-bias baseline. Which of the following statements are correct justifications or counter-examples to this claim?
Solution
Comprehension Passage
Lalit uses two algorithms to learn option values in a given programming assignment:
Algorithm A — SMDP Q-Learning: Updates
only at option termination using the full option return:

Algorithm B — Intra-Option Q-Learning: Updates
at every primitive step using the one-step consistency condition:


where
is the termination probability at the next state.
The agent runs in a corridor with 5 states
. Option
has intra-option policy: move right always.
if
, else
. Currently:
,
,
,
,
,
, agent moves from
to
.
Based on the above data, answer the given subquestions.
Algorithm A — SMDP Q-Learning: Updates
Algorithm B — Intra-Option Q-Learning: Updates
where
The agent runs in a corridor with 5 states
Based on the above data, answer the given subquestions.
What is the key advantage of Intra-Option Q-Learning (Algorithm B) over SMDP Q-Learning (Algorithm A)?
Solution
Comprehension Passage
Lalit uses two algorithms to learn option values in a given programming assignment:
Algorithm A — SMDP Q-Learning: Updates
only at option termination using the full option return:

Algorithm B — Intra-Option Q-Learning: Updates
at every primitive step using the one-step consistency condition:


where
is the termination probability at the next state.
The agent runs in a corridor with 5 states
. Option
has intra-option policy: move right always.
if
, else
. Currently:
,
,
,
,
,
, agent moves from
to
.
Based on the above data, answer the given subquestions.
Algorithm A — SMDP Q-Learning: Updates
Algorithm B — Intra-Option Q-Learning: Updates
where
The agent runs in a corridor with 5 states
Based on the above data, answer the given subquestions.
Inscript
Using Algorithm B (Intra-Option Q-Learning) and the values from the comprehension section, compute the TD error
for the transition
. Round your answer to 4 decimal places.
Note:
(the option does not terminate at
).

Using Algorithm B (Intra-Option Q-Learning) and the values from the comprehension section, compute the TD error
Note:
Solution
Comprehension Passage
Lalit uses two algorithms to learn option values in a given programming assignment:
Algorithm A — SMDP Q-Learning: Updates
only at option termination using the full option return:

Algorithm B — Intra-Option Q-Learning: Updates
at every primitive step using the one-step consistency condition:


where
is the termination probability at the next state.
The agent runs in a corridor with 5 states
. Option
has intra-option policy: move right always.
if
, else
. Currently:
,
,
,
,
,
, agent moves from
to
.
Based on the above data, answer the given subquestions.
Algorithm A — SMDP Q-Learning: Updates
Algorithm B — Intra-Option Q-Learning: Updates
where
The agent runs in a corridor with 5 states
Based on the above data, answer the given subquestions.
Inscript
Using the value of
computed in previous sub-question, calculate the updated value of
. Round your answer to 4 decimal places.

Using the value of
Solution
Shape
Thickness [ / ]
3
All colors