Policy Gradients In Reinforcement Learning Explained
When I first studied policy gradient algorithms, I did not find them particularly easy to fathom. Intuitively they seemed straightforward enough -- sample actions, observe rewards, tweak the policy -- but after the initial idea followed many lengthy derivations, calculus tricks I had long forgotten, and an overwhelming amount of notation. At a certain point, it just became a blur of probability distributions and gradients. In this article, I try to explain the concept step by step, including key thought processes and mathematical operations. Admittedly, it's a bit of a long read and requires a certain preliminary knowledge on Reinforcement Learning (RL), but hopefully it sheds some light on the idea behind policy gradients. The focus is on likelihood ratio policy gradients, which is the foundation of classical algorithms such as REINFORCE/vanilla policy gradient.
Apr-11-2022, 00:30:11 GMT
- Technology: