Improving the Effectiveness of Potential-Based Reward Shaping in Reinforcement Learning
Müller, Henrik, Kudenko, Daniel
–arXiv.org Artificial Intelligence
Potential-based reward shaping is commonly used to incorporate prior knowledge of how to solve the task into reinforcement learning because it can formally guarantee policy invariance. As such, the optimal policy and the ordering of policies by their returns are not altered by potential-based reward shaping. In this work, we highlight the dependence of effective potential-based reward shaping on the initial Q-values and external rewards, which determine the agent's ability to exploit the shaping rewards to guide its exploration and achieve increased sample efficiency. We formally derive how a simple linear shift of the potential function can be used to improve the effectiveness of reward shaping without changing the encoded preferences in the potential function, and without having to adjust the initial Q-values, which can be challenging and undesirable in deep reinforcement learning. We show the theoretical limitations of continuous potential functions for correctly assigning positive and negative reward shaping values. We verify our theoretical findings empirically on Gridworld domains with sparse and uninformative reward functions, as well as on the Cart Pole and Mountain Car environments, where we demonstrate the application of our results in deep reinforcement learning.
arXiv.org Artificial Intelligence
Feb-3-2025
- Country:
- Asia
- China > Shaanxi Province
- Xi'an (0.04)
- Singapore > Central Region
- Singapore (0.04)
- China > Shaanxi Province
- Europe
- Germany > Lower Saxony
- Hanover (0.04)
- Spain > Valencian Community
- Valencia Province > Valencia (0.04)
- United Kingdom > England
- Cambridgeshire > Cambridge (0.04)
- Germany > Lower Saxony
- North America > United States
- California > San Francisco County > San Francisco (0.14)
- South America
- Argentina > Pampas
- Buenos Aires F.D. > Buenos Aires (0.04)
- Brazil > São Paulo (0.04)
- Argentina > Pampas
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Technology: