ISoLA & AISoLA 2026

International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece

Talk

Reason-based Normative Reinforcement Learning: Embedding Defaults into the Reward Structure via Reward Machines

Time: Friday, 30.10

Room: Room 1

Authors: Yannic Muskalla, Lisa Dargasz, Felix Jahn

Abstract: We propose a framework for normative reinforcement learning in which normative reasons, partially ordered default rules represented as formulas in Linear Temporal Logic (LTL), are compiled into a reward machine, ensuring that compliant behavior is incentivized by construction. Existing approaches (including shielding methods [Alshiekh et al . 2017], constrained optimization [Achiam et al . 2017; Kushwaha et al . 2026], and penalty-based schemes [Tessler et al . 2019]) either restrict the action space rigidly or require manual tuning of safety budgets or penalties, and generally provide no principled account of how multiple conflicting constraints should be handled. Furthermore, unlike existing LTL-constrained RL approaches, where the entire reward signal is derived from the temporal logic specification [Cai et al . 2023], our framework treats the instrumental task reward as given and layers normative constraints on top, leaving the underlying RL infrastructure intact and making the agent’s normative commitments transparent and auditable by construction. For a given set of default rules, we first heuristically check whether simultaneous compliance is achievable. If so, the LTL representations of all rules are conjoined into a joint formula. If rules conflict, priority ordering determines the resolution: rather than discarding the lower-priority rule entirely, its antecedent is restricted to exclude the conditions under which the higher-priority rule applies, preserving compliance with the lower-priority rule in all situations where it is not actively overridden. The joint formula is compiled into a DFA, which is then composed with the instrumental reward machine into a product reward machine [Corazza et al. 2024]. Compliance is incentivized by penalizing the agent for each step spent in a non-accepting DFA state; crucially, accumulated penalties are reimbursed upon entering an accepting state, so a fully compliant trajectory incurs no net penalty. This reimbursement mechanism is implemented via a pushdown penalty machine — to our knowledge a novel extension of the reward machine formalism — which explicitly tracks accumulated penalties on a stack. A state is accepting in the product only if it is accepting in both the DFA and the instrumental reward machine, ensuring that task completion and constraint satisfaction are jointly required. Finally, the penalty magnitude is set automatically. It need only exceed a bound on the maximum instrumental reward advantage of non-compliance relative to the horizon, a quantity derivable from the reward machine itself, which guarantees that the optimal policy is compliant whenever compliance is achievable at all. The framework is compatible with common algorithms for reinforcement learning with reward machines like QRM [Icarte et al. 2020]; constraints can be added or removed by recompiling the LTL specification without modifying the underlying RL algorithm. We evaluate the architecture with the help of a first proof of concept implementation on a custom grid world environment, where we detect conflicts between defaults by distance-based conflict detection heuristic, demonstrating the feasibility of reason-based normative control in RL.