Evolution of an Internal Reward Function for Reinforcement Learning

Weiyi Zuo, Joachim Winther Pedersen, Sebastian Risi

Abstract

Artificial neural networks (ANNs) can be trained with reinforcement learning (RL) in simulation to control robots. However, changes in the environment resulting in out-of-distribution situations put learned policies at risk of failure. Since the world can change in unpredictable ways, it might be desirable to be able to continue to update the parameters of the ANNs even after deployment, to prevent failures stemming from a distributional shift. However, in order to optimize with RL, a reward signal is needed. This is usually provided in the simulated environment, but might not necessarily always be available after training. We propose a solution to this problem that involves evolving a function that provides a reward signal to an RL algorithm based only on the inputs and outputs of the policy. We call this approach Evolved Internal Reward Reinforcement Learning (EIR-RL) and test it on various control tasks that have different reward structures and difficulty levels. Our method shows improved training stability and speed of the RL agent under standard circumstances, as well as the ability to train the RL agent under circumstances unseen during the initial optimization phase. We discuss how our results could inform future studies on autonomous, adapting agents.
BibTeX
@inproceedings{zuo2023evolution,
  author = {Weiyi Zuo and Joachim Winther Pedersen and Sebastian Risi},
  title = {{Evolution of an Internal Reward Function for Reinforcement Learning}},
  booktitle = {GECCO Companion},
  year = {2023},
  doi = {10.1145/3583133.3590610},
}

Loading related content...

Figure