UPDF AI

Calculus on MDPs: Potential Shaping as a Gradient

Erik Jenner,H. V. Hoof,Adam Gleave

2022 · DOI: 10.48550/arXiv.2208.09570
arXiv.org · 4 Citations

TLDR

A formalism for discrete calculus on graphs that abstract a Markov Decision Process is developed, and it is shown how potential shaping can be formally interpreted as a gradient within this framework.

Abstract

In reinforcement learning, different reward functions can be equivalent in terms of the optimal policies they induce. A particularly well-known and important example is potential shaping, a class of functions that can be added to any reward function without changing the optimal policy set under arbitrary transition dynamics. Potential shaping is conceptually similar to potentials, conservative vector fields and gauge transformations in math and physics, but this connection has not previously been formally explored. We develop a formalism for discrete calculus on graphs that abstract a Markov Decision Process, and show how potential shaping can be formally interpreted as a gradient within this framework. This allows us to strengthen results from Ng, Harada, and Russell (1999) describing conditions under which potential shaping is the only additive reward transformation to always preserve optimal policies. As an additional application of our formal- ism, we define a rule for picking a single unique reward function from each potential shaping equivalence class.