Abstract
Policy gradients methods often achieve better performance when the change in policy is limited to a small Kullback-Leibler divergence. We derive policy gradients where the change in policy is limited to a small Wasserstein distance (or trust region). This is done in the discrete and continuous multi-armed bandit settings with entropy regularisation. We show that in the small steps limit with respect to the Wasserstein distance $W_2$, policy dynamics are governed by the Fokker-Planck (heat) equation, following the Jordan-Kinderlehrer-Otto result. This means that policies undergo diffusion and advection, concentrating near actions with high reward. This helps elucidate the nature of convergence in the probability matching setup, and provides justification for empirical practices such as Gaussian policy priors and additive gradient noise.
Introduction
In Deep Reinforcement Learning, "trust region" methods—such as Trust Region Policy Optimization (TRPO) and Proximal Policy Optimization (PPO)—have become standard for ensuring stable training. These methods prevent the policy from changing too drastically in a single update by constraining the update step. Traditionally, this "closeness" is measured using Kullback-Leibler (KL) divergence.
However, KL divergence is inherently pointwise; it evaluates probability values at specific points without considering the underlying geometry of the action space. For instance, in an action space where actions are ordered (e.g., Left, Center, Right), KL divergence does not recognize that "Center" is geometrically closer to "Left" than "Right" is. This paper investigates the implications of replacing KL divergence with the Wasserstein distance ($W_2$), which explicitly accounts for the metric of the action space, leading to a framework termed "Policy Transport."
Methodology: Policy Transport and Gradient Flows
The authors frame policy iteration as a sequence of proximal mapping problems. Instead of simply maximizing reward, the objective is to minimize a functional that balances reward maximization, entropy regularization (to encourage exploration), and a penalty for moving too far from the previous policy in $W_2$ space.
By taking the limit as the step size approaches zero, the authors transform these discrete policy updates into a continuous-time gradient flow. To analyze this flow, they apply the Jordan-Kinderlehrer-Otto (JKO) result (1998), a seminal finding in optimal transport which proves that gradient flows of certain functionals in Wasserstein space are equivalent to specific Partial Differential Equations (PDEs). For practical implementation, the authors suggest utilizing the Sinkhorn algorithm, which provides a computationally feasible, entropic-regularized method for calculating Wasserstein distances within differentiable neural network layers.
The Fokker-Planck Connection
The central theoretical contribution of this work is the discovery that the evolution of an entropy-regularized policy under Wasserstein constraints is governed by the Fokker-Planck equation:
$$\partial_t \pi = -\nabla \cdot (\pi \nabla r) + \beta \Delta \pi$$
In the context of physics, this equation describes the motion of particles subjected to both a force (advection) and thermal fluctuations (diffusion). In the context of Reinforcement Learning, the terms represent:
- Advection ($-\nabla \cdot (\pi \nabla r)$): The policy "drifts" or flows toward regions of the action space associated with higher rewards.
- Diffusion ($\beta \Delta \pi$): The entropy term causes the policy to spread out, ensuring the agent continues to explore the action space.
This physical interpretation suggests that policies do not merely "jump" in value at random points but rather flow across the action space toward optimality. The "steady state" of this process is shown to be the optimal policy in the form of a Gibbs measure ($\pi^* \propto e^{r/\beta}$), creating a direct link between RL and statistical mechanics.
Theoretical Grounding for Empirical Heuristics
This framework provides a rigorous mathematical justification for several common empirical practices in RL that were previously treated as heuristics:
- Gaussian Noise: The addition of Gaussian noise to gradients can be viewed as a discrete-time approximation of the diffusion process inherent in Wasserstein gradient flows.
- Gaussian Priors: The use of Gaussian policy priors aligns with the natural evolution of the Fokker-Planck equation in continuous spaces.
- Stochastic Differential Equations (SDEs): The authors show that the policy update can be rewritten as an SDE, where a specific action choice follows a path defined by the reward gradient plus Brownian motion.
Limitations and Future Work
While this work establishes a robust theoretical foundation, it currently focuses on the multi-armed bandit setting—essentially one-step reinforcement learning with deterministic rewards. It does not yet account for the complexities of multi-step Markov Decision Processes (MDPs). Furthermore, while the Sinkhorn algorithm facilitates computation, calculating Wasserstein distances remains more computationally intensive than KL divergence. Future research will focus on extending these derivations to n-step returns and developing more efficient numerical methods for solving heat equation flows within function approximation architectures.
Summary updated