Q-learning with Coupled Reward Machines for Unordered Tasks
Kristina Levina ⋅ Nikolaos Pappas ⋅ Athanasios Karapantelakis ⋅ Aneta Vulgarakis Feljan ⋅ Jendrik Seipp
Abstract
Reward machines (RMs) inform reinforcement learning agents about the reward structure of the environment, enabling support for non-Markovian tasks and improving sample efficiency. However, learning with RMs is ill-suited for long-horizon tasks where subtasks can be completed in any order because learnt information grows exponentially with the number of such subtasks. To address this, we introduce $Q$-learning with coupled RMs (QCoRM), a task-decomposition algorithm that learns one low-level policy per subtask and a high-level policy over their completion order. In QCoRM, learnt subtask-level information increases only linearly with the number of unordered subtasks, and we theoretically show that the global optimality guarantee of tabular $Q$-learning is preserved. To enable QCoRM, we introduce agenda and coupled RMs: agenda RMs identify mergeable task-progression states, and coupled RMs enable subtask-level policy sharing. We also introduce numeric RMs for compact task representation. Our experiments across four domains---featuring both discrete and continuous action and state spaces---demonstrate that QCoRM scales to more unordered subtasks than baseline algorithms.
Successful Page Load