Deep Reinforcement Learning
- 8Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a deep policy network and how is it used in reinforcement learning?
8 questions
- 1
What is a deep policy network and how is it used in reinforcement learning?
Model answer
A deep policy network is a neural network that parameterizes the policy function π(a|s) with weights θ. It takes the state as input and outputs the probability distribution over actions, and the weights are optimized to maximize cumulative future reward.
Explanation
The policy network directly represents the decision-making policy. By optimizing the weights via gradient methods (e.g., backpropagation), the network learns to select actions that lead to higher rewards.
- 2
Derive the policy gradient expression for the cumulative reward R(θ) in terms of the Q-function and the policy.
Model answer
The gradient of the cumulative reward with respect to policy parameters θ is ∇_θ R(θ) = E[ Q(s,a) ∇_θ log π_θ(a|s) ], where the expectation is over states and actions under the policy.
Explanation
The derivation starts from R(θ) = ∫ μ_θ(s) ∑_a π_θ(a|s) Q(s,a) ds. Taking the gradient and using the log-derivative trick yields the expression. This gradient provides the update direction for the policy parameters.
- 3
What is deep Q learning and how does it address the curse of dimensionality?
Model answer
Deep Q learning uses a neural network with parameters θ to approximate the Q-function Q(s,a;θ). Instead of storing Q-values for every state-action pair, it learns a low-dimensional parameterization, making it feasible for large state spaces like those in Atari games.
Explanation
The curse of dimensionality makes tabular Q-learning infeasible for high-dimensional states. Deep Q learning generalizes across states by learning features from pixels, enabling effective control.
- 4
Write down the loss function used in deep Q learning.
Model answer
The loss function is L(θ) = E[ ( r + γ max_{a'} Q(s',a';θ') - Q(s,a;θ) )^2 ], where the expectation is over experiences (s,a,r,s') and θ' are target network parameters.
Explanation
This is the mean squared temporal difference error. Minimizing it drives the Q-network to satisfy the Bellman equation, improving the quality of value estimates.
- 5
What is the key idea behind dueling deep Q networks (DDQN)?
Model answer
Dueling DQN splits the Q-function into two separate streams: a value function V(s) that estimates the value of being in a state, and an advantage function A(s,a) that measures the advantage of taking a particular action over others. The Q-function is then reconstructed as Q(s,a) = V(s) + A(s,a).
Explanation
This architecture helps learn which states are valuable without having to learn the effect of each action separately. It is especially useful when actions have only a small impact on the Q-value.
- 6
Explain the actor-critic architecture in reinforcement learning.
Model answer
Actor-critic methods combine two learners: an actor that learns a policy π(a|s), and a critic that learns a value function V(s) or Q(s,a). The critic evaluates the actor's actions and provides feedback (e.g., TD error) that the actor uses to improve its policy.
Explanation
This hybrid approach leverages the strengths of both policy-based and value-based methods. The actor enables continuous or large action spaces, while the critic reduces variance by providing a baseline.
- 7
How does an advantage actor-critic (A2C) network operate in deep reinforcement learning?
Model answer
In A2C, the actor is a deep policy network with parameters θ, and the critic is a deep dueling Q-network that provides the advantage A(s,a) = Q(s,a) - V(s). The actor is updated using the policy gradient ∇_θ J = E[ A(s,a) ∇_θ log π_θ(a|s) ], while the critic is updated via TD learning.
Explanation
Using the advantage instead of the raw Q-value reduces variance. The critic's value estimate serves as a baseline, and the actor learns to maximize advantage. This combination often leads to faster convergence.
- 8
What is the role of deep model predictive control (MPC) in reinforcement learning?
Model answer
Deep MPC uses a neural network to learn a policy that mimics an expensive online model predictive controller. The MPC computes optimal actions via forecasting and optimization, and the network is trained to approximate that control law for fast, efficient execution.
Explanation
MPC is computationally intensive for real-time control. By training a policy network to replicate its behavior, the system can react quickly while benefiting from the optimality of MPC.

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