Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Natural Policy Gradient

Policy gradient measured in the geometry of the policy distribution rather than raw parameters.

The idea

The ordinary gradient depends on how the policy is parameterised. The natural gradient multiplies by the inverse Fisher information matrix, so a step of fixed size changes the policy distribution by a fixed amount (in KL terms). This gives steadier progress and is the idea behind TRPO.

θ ← θ + α F⁻¹ ∇θ J

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Compute the ordinary policy gradient g.
  2. 2Estimate the Fisher information matrix F.
  3. 3Compute the natural gradient F⁻¹g (usually with conjugate gradient).
  4. 4Step along it.

θ ← θ + α F⁻¹ ∇θ J

1/4

Step by step

  1. 1Compute the ordinary policy gradient g.
  2. 2Estimate the Fisher information matrix F.
  3. 3Compute the natural gradient F⁻¹g (usually with conjugate gradient).
  4. 4Step along it.

Where it is used

Principled step sizes in policy search.

Watch out for

Computing F⁻¹ is expensive for big networks.

Related