Expressive Temporal Specifications for Reward Monitoring
Omar Adalat, Francesco Belardinelli
TL;DR
This work tackles sparse, non-informative rewards in reinforcement learning by leveraging quantitative Linear Temporal Logic on finite traces to synthesize reward monitors that emit dense, real-valued feedback during runtime. By constructing a synchronous product of the environment MDP with these monitors, the approach enables non-Markovian, temporally extended goals while preserving the sufficiency of Markovian policies. The authors provide a memoized, linear-time monitor synthesis procedure, demonstrate safety-aware reward clamping, and empirically show that quantitative monitors often outperform Boolean monitors and can match or exceed handcrafted rewards across a range of environments. The method promises improved sample efficiency and reliable convergence for long-horizon tasks, with broad applicability due to its algorithm-agnostic design and domain-agnostic formulation of monitors. Future work points toward richer temporal operators, discounted rewards, robustness, and multi-agent extensions.
Abstract
Specifying informative and dense reward functions remains a pivotal challenge in Reinforcement Learning, as it directly affects the efficiency of agent training. In this work, we harness the expressive power of quantitative Linear Temporal Logic on finite traces (($\text{LTL}_f[\mathcal{F}]$)) to synthesize reward monitors that generate a dense stream of rewards for runtime-observable state trajectories. By providing nuanced feedback during training, these monitors guide agents toward optimal behaviour and help mitigate the well-known issue of sparse rewards under long-horizon decision making, which arises under the Boolean semantics dominating the current literature. Our framework is algorithm-agnostic and only relies on a state labelling function, and naturally accommodates specifying non-Markovian properties. Empirical results show that our quantitative monitors consistently subsume and, depending on the environment, outperform Boolean monitors in maximizing a quantitative measure of task completion and in reducing convergence time.
