Diagonal Gaussian Policy
Topics: Reinforcement Learning
Introduction
A Diagonal Gaussian Policy is a type of Stochastic Policies that is used for continuous action spaces.
In continuous action spaces, the normal distribution is used in the policy.
1-dimensional Action
If the action is 1-dimensional, then we have a single normal distribution with mean and standard deviation .
The policy consists of a neural network that maps state to mean . Regarding the variance, we can have one of two options:
- a standalone parameter (not function) of log standard deviation
- a neural network that maps state to log standard deviation . It may share layers with the mean network .
k-dimensional Action
If the action is k-dimensional, a Multivariate Gaussian Distribution is used. It is characterized by a mean vector and a covariance matrix . A special case of the Multivariate Gaussian Distribution, called the Diagonal Gaussian Distribution, is usually used. It is distinguished by a diagonal covariance matrix , which can be represented by a vector.
Similarly to the 1-D action case, the Diagonal Gaussian Policy has a neural network for mean and either a standalone parameter or neural network for the log standard deviation .
N.B.: We use instead of because while . So, it is easier to train a neural network on and we do not lose any information since we can convert to via the exponential function.
Sampling
where is a vector of noise from a Spherical Gaussian and is element-wise multiplication.
Log-likelihood
where is the dimension of the action
References
Backlinks
Notes that reference this page.
Connections
Direct relationships to this note.