Vanilla Policy Gradient — Spinning Up documentation
The key idea underlying policy gradients is to push up the probabilities of actions that lead to higher return, and push down the probabilities of actions that lead to lower return, until you arrive at the optimal policy. Let denote a policy with parameters , and denote the expected finite-horizon undiscounted return of the policy. The gradient of is where is a trajectory and is the advantage function for the current policy. The policy gradient algorithm works by updating policy parameters via stochastic gradient ascent on policy performance: Policy gradient implementations typically compute advantage function estimates based on the infinite-horizon discounted return, despite otherwise using the finite-horizon undiscounted policy gradient formula. VPG trains a stochastic policy in an on-policy way. This means that it explores by sampling actions according to the latest version of its stochastic policy. The amount of randomness in action selection depends on both initial conditions
Vanilla Policy Gradient - Spinning Up documentation --> Docs >> Vanilla Policy Gradient Edit on GitHub Vanilla Policy Gradient ¶ Table of Contents Vanilla Policy Gradient Background Quick Facts Key Equations Exploration vs. Exploitation Pseudocode Documentation Documentation: PyTorch Version Saved Model Contents: PyTorch Version Documentation: Tensorflow Version Saved Model Contents: Tensorflow Version References Relevant Papers Why These Papers? Other Public Implementations Background ¶ (Previously: Introduction to RL, Part 3 ) The key idea underlying policy gradients is to push up the probab
saved by
related reading
- Part 3: Intro to Policy Optimization - Spinning Up documentationspinningup.openai.com
- Policy Gradient Algorithms | Lil'Loglilianweng.github.io
- From REINFORCE to Dr. GRPOlancelqf.github.io
- Understanding Policy Gradients | John Lambertjohnwlambert.github.io
- A vision researcher’s guide to some RL stuff: PPO & GRPO - Yuge (Jimmy) Shiyugeten.github.io
- Deep Reinforcement Learning: Pong from Pixelskarpathy.github.io
- A (Long) Peek into Reinforcement Learning | Lil'Loglilianweng.github.io
- The 37 Implementation Details of Proximal Policy Optimization · The ICLR Blog Trackiclr-blog-track.github.io
- Policy gradient methoden.wikipedia.org
- Part 1: Key Concepts in RL - Spinning Up documentationspinningup.openai.com
- Key Papers in Deep RL - Spinning Up documentationspinningup.openai.com
- Policy Gradient with PyTorchhuggingface.co