Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Reward Machines: Exploiting Reward Function Structure in Reinforcement Learning

About

Reinforcement learning (RL) methods usually treat reward functions as black boxes. As such, these methods must extensively interact with the environment in order to discover rewards and optimal policies. In most RL applications, however, users have to program the reward function and, hence, there is the opportunity to make the reward function visible -- to show the reward function's code to the RL agent so it can exploit the function's internal structure to learn optimal policies in a more sample efficient manner. In this paper, we show how to accomplish this idea in two steps. First, we propose reward machines, a type of finite state machine that supports the specification of reward functions while exposing reward function structure. We then describe different methodologies to exploit this structure to support learning, including automated reward shaping, task decomposition, and counterfactual reasoning with off-policy learning. Experiments on tabular and continuous domains, across different tasks and RL agents, show the benefits of exploiting reward structure with respect to sample efficiency and the quality of resultant policies. Finally, by virtue of being a form of finite state machine, reward machines have the expressive power of a regular language and as such support loops, sequences and conditionals, as well as the expression of temporally extended properties typical of linear temporal logic and non-Markovian reward specification.

Rodrigo Toro Icarte, Toryn Q. Klassen, Richard Valenzano, Sheila A. McIlraith• 2020

Related benchmarks

TaskDatasetResultRank
Policy OptimizationOffice World MAP0
Avg Training Steps1.62e+5
18
Policy OptimizationOffice World MAP1
Avg Training Steps2.25e+5
7
Policy OptimizationOffice World Map 1, Exp 5
Average Training Steps2.25e+5
7
Policy OptimizationOffice World Map 2 Exp 5
Average Training Steps4.38e+5
7
Policy OptimizationOffice World Map 3, Exp 5
Average Training Steps8.91e+5
7
Policy OptimizationOffice World MAP4
Average Training Steps9.91e+6
7
Policy OptimizationOffice World Map 4 Exp 6
Average Training Steps9.91e+6
7
Reinforcement LearningOffice World Map 2
Training Steps2.83e+5
6
Reinforcement LearningOffice World Map 3
Steps to 100% Success4.80e+5
6
Reinforcement LearningOffice World Map 1
Training Steps1.37e+5
6
Showing 10 of 10 rows

Other info

Follow for update