Expediting Reinforcement Learning by Incorporating Knowledge About Temporal Causality in the Environment
Jan Corazza, Hadi Partovi Aria, Daniel Neider, Zhe Xu
TL;DR
The paper tackles the difficulty of injecting temporal causal knowledge into reinforcement learning when rewards are sparse and depend on sequences of events. It proposes merging Probabilistic Reward Machines (PRMs) with Temporal Logic-based Causal Diagrams (TL-CDs) to encode temporal causality as a causal DFA, and then forming a product PRM to enable look-ahead during learning. A robust method constructs intermediate products $\mathsf{B_1} = \mathcal{C} \times \mathsf{A}$ and $\mathsf{B_2} = \mathcal{C} \times (-\mathsf{A})$, introduces a minimal reward $m$ for sink transitions, and computes state values via $v^{\star}(u)$ to derive a final PRM $\mathsf{B}$ that preserves the original optimal policy while accelerating convergence. Theoretical convergence to the optimal policy is established (Theorem), and empirical results on coffee-vs-soda and other gridworld tasks demonstrate substantial gains in sample efficiency and robustness to noisy causal inputs. This approach enables more efficient transfer of task specifications across environments by leveraging temporal causality in the reward structure.
Abstract
Reinforcement learning (RL) algorithms struggle with learning optimal policies for tasks where reward feedback is sparse and depends on a complex sequence of events in the environment. Probabilistic reward machines (PRMs) are finite-state formalisms that can capture temporal dependencies in the reward signal, along with nondeterministic task outcomes. While special RL algorithms can exploit this finite-state structure to expedite learning, PRMs remain difficult to modify and design by hand. This hinders the already difficult tasks of utilizing high-level causal knowledge about the environment, and transferring the reward formalism into a new domain with a different causal structure. This paper proposes a novel method to incorporate causal information in the form of Temporal Logic-based Causal Diagrams into the reward formalism, thereby expediting policy learning and aiding the transfer of task specifications to new environments. Furthermore, we provide a theoretical result about convergence to optimal policy for our method, and demonstrate its strengths empirically.
