Detecting Hidden Triggers: Mapping Non-Markov Reward Functions to Markov
Gregory Hyde, Eugene Santos
TL;DR
This work addresses non-Markov rewards by learning a minimal Reward Machine (RM) representation without access to high-level symbols. It introduces Abstract Reward MDPs (ARMDPs), the cross-product of observed states with RM states, and an ILP-based procedure to map non-Markov reward data into a Markov framework, resolving reward conflicts via hidden triggers. A theoretical result shows that ARMDPs preserve reward expectations, and an active learning extension (ARMDPQ-Learning) integrates Q-learning to iteratively refine the RM while expanding the observed data. Empirically, the method recovers interpretable RM structures in Officeworld and Breakfastworld, improves representation efficiency for DQN variants via derived ARMDP state spaces, and demonstrates advantages of modeling rewards over histories for interdependent reward signals. Overall, this approach provides a principled, interpretable, and scalable pathway to handle non-Markov rewards in RL without prespecified symbolic labels.
Abstract
Many Reinforcement Learning algorithms assume a Markov reward function to guarantee optimality. However, not all reward functions are Markov. This paper proposes a framework for mapping non-Markov reward functions into equivalent Markov ones by learning specialized reward automata, Reward Machines. Unlike the general practice of learning Reward Machines, we do not require a set of high-level propositional symbols from which to learn. Rather, we learn hidden triggers, directly from data, that construct them. We demonstrate the importance of learning Reward Machines over their Deterministic Finite-State Automata counterparts given their ability to model reward dependencies. We formalize this distinction in our learning objective. Our mapping process is constructed as an Integer Linear Programming problem. We prove that our mappings form a suitable proxy for maximizing reward expectations. We empirically validate our approach by learning black-box, non-Markov reward functions in the Officeworld domain. Additionally, we demonstrate the effectiveness of learning reward dependencies in a new domain, Breakfastworld.
