Reward Machines: Exploiting Reward Function Structure in Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Reinforcement learning (RL) methods usually treat reward functions as black boxes. As such, these methods must extensively interact with the environment in order to discover rewards and optimal policies. In most RL applications, however, users have to program the reward function and, hence, there is the opportunity to make the reward function visible -- to show the reward function's code to the RL agent so it can exploit the function's internal structure to learn optimal policies in a more sample efficient manner. In this paper, we show how to accomplish this idea in two steps. First, we propose reward machines, a type of finite state machine that supports the specification of reward functions while exposing reward function structure. We then describe different methodologies to exploit this structure to support learning, including automated reward shaping, task decomposition, and counterfactual reasoning with off-policy learning. Experiments on tabular and continuous domains, across different tasks and RL agents, show the benefits of exploiting reward structure with respect to sample efficiency and the quality of resultant policies. Finally, by virtue of being a form of finite state machine, reward machines have the expressive power of a regular language and as such support loops, sequences and conditionals, as well as the expression of temporally extended properties typical of linear temporal logic and non-Markovian reward specification.
Key facts. Cited by 183 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 27; 2023: 27; 2024: 44; 2025: 32; 2026: 44.
183 papers.
Sort:
By area:
- 2021LTL2Action: Generalizing LTL Instructions for Multi-Task RLcited by 72
- 2021Compositional Reinforcement Learning from Logical Specificationscited by 65
- 2023Grounding Complex Natural Language Commands for Temporal Tasks in Unseen Environmentscited by 52
- 2024Beyond Preferences in AI Alignmentcited by 46
- 2022Guarantees for Epsilon-Greedy Reinforcement Learning with Function Approximationcited by 29
- 2024DeepLTL: Learning to Efficiently Satisfy Complex LTL Specifications for Multi-Task RLcited by 20
- 2022Policy Optimization with Linear Temporal Logic Constraintscited by 19
- 2023Eventual Discounting Temporal Logic Counterfactual Experience Replaycited by 18
- 2024Compositional Automata Embeddings for Goal-Conditioned Reinforcement Learningcited by 18
- 2023Sample Efficient Model-free Reinforcement Learning from LTL Specifications with Optimality Guaranteescited by 17
- 2024A Review of Reward Functions for Reinforcement Learning in the context of Autonomous Drivingcited by 17
- 2021Learning Reward Machines: A Study in Partially Observable Reinforcement Learningcited by 16
38 more
- 2023Behavior Alignment via Reward Function Optimizationcited by 16
- 2024Goals as Reward-Producing Programscited by 14
- 2024Three Dogmas of Reinforcement Learningcited by 14
- 2021Inferring Probabilistic Reward Machines from Non-Markovian Reward Processes for Reinforcement Learningcited by 13
- 2021Verifiable and Compositional Reinforcement Learning Systemscited by 12
- 2022Joint Learning of Reward Machines and Policies in Environments with Partially Known Semanticscited by 12
- 2022Overcoming Exploration: Deep Reinforcement Learning for Continuous Control in Cluttered Environments from Temporal Logic Specificationscited by 11
- 2023LgTS: Dynamic Task Sampling using LLM-generated sub-goals for Reinforcement Learning Agentscited by 11
- 2024Reward Machines for Deep RL in Noisy and Uncertain Environmentscited by 11
- 2022Exploiting Transformer in Sparse Reward Reinforcement Learning for Interpretable Temporal Logic Motion Planningcited by 10
- 2022Noisy Symbolic Abstractions for Deep RL: A case study with Reward Machinescited by 10
- 2024LTL-Constrained Policy Optimization with Cycle Experience Replaycited by 10
- 2021Programmatic Reward Design by Examplecited by 9
- 2022A Hierarchical Bayesian Approach to Inverse Reinforcement Learning with Symbolic Reward Machinescited by 9
- 2022Accelerated Reinforcement Learning for Temporal Logic Control Objectivescited by 9
- 2024On the Limitations of Markovian Rewards to Express Multi-Objective, Risk-Sensitive, and Modal Taskscited by 9
- 2022Specification-Guided Learning of Nash Equilibria with High Social Welfarecited by 8
- 2024Robot Policy Learning with Temporal Optimal Transport Rewardcited by 8
- 2022Skill Machines: Temporal Logic Skill Composition in Reinforcement Learningcited by 7
- 2022Learning Task Automata for Reinforcement Learning using Hidden Markov Modelscited by 7
- 2022Relative Behavioral Attributes: Filling the Gap between Symbolic Goal Specification and Reward Learning from Human Preferencescited by 7
- 2023On the Convergence of Bounded Agentscited by 7
- 2023Remembering to Be Fair: Non-Markovian Fairness in Sequential Decision Makingcited by 7
- 2024Directed Exploration in Reinforcement Learning from Linear Temporal Logiccited by 7
- 2024Learning Robust Reward Machines from Noisy Labelscited by 7
- 2025Reinforcement Learning with Stochastic Reward Machinescited by 7
- 2021Learning Quadruped Locomotion Policies using Logical Rulescited by 6
- 2021Decentralized Graph-Based Multi-Agent Reinforcement Learning Using Reward Machinescited by 6
- 2022Model-Free Reinforcement Learning for Symbolic Automata-encoded Objectivescited by 6
- 2023Exploiting Contextual Structure to Generate Useful Auxiliary Taskscited by 6
- 2023General Policies, Subgoal Structure, and Planning Widthcited by 6
- 2023Counting Reward Automata: Sample Efficient Reinforcement Learning Through the Exploitation of Reward Function Structurecited by 6
- 2024Neural Reward Machinescited by 6
- 2024Neural Model Checkingcited by 6
- 2024MAPLE: A Framework for Active Preference Learning Guided by Large Language Modelscited by 6
- 2025Modeling Others' Minds as Codecited by 6
- 2021Lifelong Reinforcement Learning with Temporal Logic Formulas and Reward Machinescited by 5
- 2022Learning Minimally-Violating Continuous Control for Infeasible Linear Temporal Logic Specificationscited by 5
50 most cited of 183 All 183 (JSON)
- 2026Exact Distinguishability in Non-Markovian Decision Processes1 Oct 2026
- 2026Jaxolotl: A Unified High-Performance Benchmark Suite for LTL-Based Multi-Task RL29 Sep 2026
- 2026Beyond Scripted Search: Sample-Efficient Reward Discovery via Agentic Black-box Optimization26 Sep 2026
- 2026Efficient Bayes-Adaptive Reinforcement Learning with Temporal Logic Specifications17 Sep 2026
- 2026The syntax and semantics of goals16 Sep 2026
- 2026Temporal-Causal Inference for Reinforcement Learning via Automata Learning7 Sep 2026
- 2026From LLM-Generated Specifications to Learned Quadruped Locomotion7 Sep 2026
- 2026Generalizable Multi-Agent Planning from Signal Temporal Logic Specifications via Diffusion30 Aug 2026
- 2026LLM-Guided Contextual Action Evaluation for Operational Decisions in Industrial Processes25 Aug 2026
- 2026Reward Machines for Signal Temporal Logic13 Aug 2026
- 2026Reward Structure Shapes the Interaction Between Episodic Exploration and Neural Memory in Reinforcement Learning5 Aug 2026
- 2026Theoretical Foundations of max@k Reinforcement Learning20 Jul 2026
38 more
- 2026Foresight Residual RL for Long-Horizon Robot Manipulation with Vision-Language-Action Models17 Jul 2026
- 2026Learning Gait-Aware Quadruped Locomotion with Temporal Logic Specifications1 Jul 2026
- 2026Compositional Behavioral Semantics for State Abstraction in Reinforcement Learning24 Jun 2026
- 2026REBA: A Revealed Belief Automaton Framework for Online Planning in Continuous POMDPs20 Jun 2026
- 2026A Reward-Petri-Net Interpretation of Temporal Behavior Trees19 Jun 2026
- 2026Safe Reinforcement Learning of Autonomous Highway Driving: A Unified Framework for Safety and Efficiency12 Jun 2026
- 2026A Goal-Set Characterization of Task Composition in the Boolean Task Algebra2 Jun 2026
- 2026Generating Robust Portfolios of Optimization Models using Large Language Models26 May 2026
- 2026Goal-Conditioned Agents that Learn Everything All at Once22 May 2026
- 2026Learning Bilevel Policies over Symbolic World Models for Long-Horizon Planning15 May 2026
- 2026Counterfactual Reasoning for Causal Responsibility Attribution in Probabilistic Multi-Agent Systems13 May 2026
- 2026LANTERN: LLM-Augmented Neurosymbolic Transfer with Experience-Gated Reasoning Networks6 May 2026
- 2026RHyVE: Competence-Aware Verification and Phase-Aware Deployment for LLM-Generated Reward Hypotheses30 Apr 2026
- 2026Sample-efficient Neuro-symbolic Proximal Policy Optimization28 Apr 2026
- 2026SpecRLBench: A Benchmark for Generalization in Specification-Guided Reinforcement Learning27 Apr 2026
- 2026Live LTL Progress Tracking: Towards Task-Based Exploration18 Apr 2026
- 2026On Tackling Complex Tasks with Reward Machines and Signal Temporal Logics9 Apr 2026
- 2026Active Reward Machine Inference From Raw State Trajectories8 Apr 2026
- 2026Reinforcement Learning with Reward Machines for Sleep Control in Mobile Networks8 Apr 2026
- 2026Build on Priors: Vision--Language--Guided Neuro-Symbolic Imitation Learning for Data-Efficient Real-World Robot Manipulation4 Apr 2026
- 2026RewardFlow: Topology-Aware Reward Propagation on State Graphs for Agentic RL with Large Language Models19 Mar 2026
- 2026Novelty Adaptation Through Hybrid Large Language Model (LLM)-Symbolic Planning and LLM-guided Reinforcement Learning11 Mar 2026
- 2026Reinforcement Learning with Symbolic Reward Machines3 Mar 2026
- 2026Hierarchical Reward Design from Language: Enhancing Alignment of Agent Behavior with Human Specifications20 Feb 2026
- 2026Neuro-symbolic Action Masking for Deep Reinforcement Learning11 Feb 2026
- 2026Grounding LTL Tasks in Sub-Symbolic RL Environments for Zero-Shot Generalization10 Feb 2026
- 2026Cochain Perspectives on Temporal-Difference Signals for Learning Beyond Markov Dynamics6 Feb 2026
- 2026Do It for HER: First-Order Temporal Logic Reward Specification in Reinforcement Learning (Extended Version)5 Feb 2026
- 2026DeepDFA: Injecting Temporal Logic in Deep Learning for Sequential Subsymbolic Applications3 Feb 2026
- 2026PlatoLTL: Scaling LTL-Guided Multi-Task RL30 Jan 2026
- 2026CADENT: Gated Hybrid Distillation for Sample-Efficient Transfer in Reinforcement Learning28 Jan 2026
- 2026Breaking Task Impasses Quickly: Adaptive Neuro-Symbolic Learning for Open-World Robotics1 Jan 2026
- 2025Context-Sensitive Abstractions for Reinforcement Learning with Parameterized Actions23 Dec 2025
- 2025Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environments22 Dec 2025
- 2025About Time: Model-free Reinforcement Learning with Timed Reward Machines19 Dec 2025
- 2025Model-Based Reinforcement Learning in Discrete-Action Non-Markovian Reward Decision Processes16 Dec 2025
- 2025Enhancing Deep Deterministic Policy Gradients on Continuous Control Tasks with Decoupled Prioritized Experience Replay4 Dec 2025
- 2025Expressive Temporal Specifications for Reward Monitoring16 Nov 2025
50 newest of 183 All 183 (JSON)
- 2024Beyond Preferences in AI Alignmentcited by 46
- 2022Relative Behavioral Attributes: Filling the Gap between Symbolic Goal Specification and Reward Learning from Human Preferencescited by 7
- 2023Can Differentiable Decision Trees Enable Interpretable Reward Learning from Human Feedback?cited by 0
- 2025RLAF: Reinforcement Learning from Automaton Feedbackcited by 0
- 2026Hierarchical Reward Design from Language: Enhancing Alignment of Agent Behavior with Human Specificationscited by 0
- 2026Hierarchical Reward Design from Language: Enhancing Alignment of Agent Behavior with Human Specifications20 Feb 2026
- 2025RLAF: Reinforcement Learning from Automaton Feedback17 Oct 2025
- 2024Beyond Preferences in AI Alignment30 Aug 2024
- 2023Can Differentiable Decision Trees Enable Interpretable Reward Learning from Human Feedback?22 Jun 2023
- 2022Relative Behavioral Attributes: Filling the Gap between Symbolic Goal Specification and Reward Learning from Human Preferences28 Oct 2022
- 2023LgTS: Dynamic Task Sampling using LLM-generated sub-goals for Reinforcement Learning Agentscited by 11
- 2025Veri-R1: Toward Precise and Faithful Claim Verification via Online Reinforcement Learningcited by 5
- 2026RewardFlow: Topology-Aware Reward Propagation on State Graphs for Agentic RL with Large Language Modelscited by 3
- 2026LANTERN: LLM-Augmented Neurosymbolic Transfer with Experience-Gated Reasoning Networkscited by 0
- 2026Theoretical Foundations of max@k Reinforcement Learningcited by 0
- 2026Theoretical Foundations of max@k Reinforcement Learning20 Jul 2026
- 2026LANTERN: LLM-Augmented Neurosymbolic Transfer with Experience-Gated Reasoning Networks6 May 2026
- 2026RewardFlow: Topology-Aware Reward Propagation on State Graphs for Agentic RL with Large Language Models19 Mar 2026
- 2025Veri-R1: Toward Precise and Faithful Claim Verification via Online Reinforcement Learning2 Oct 2025
- 2023LgTS: Dynamic Task Sampling using LLM-generated sub-goals for Reinforcement Learning Agents14 Oct 2023
- 2022A Hierarchical Bayesian Approach to Inverse Reinforcement Learning with Symbolic Reward Machinescited by 9
- 2025Few-Shot Neuro-Symbolic Imitation Learning for Long-Horizon Planning and Actingcited by 2
- 2024Bayesian Inverse Reinforcement Learning for Non-Markovian Rewardscited by 1
- 2022Reward Learning using Structural Motifs in Inverse Reinforcement Learningcited by 0
- 2026Build on Priors: Vision--Language--Guided Neuro-Symbolic Imitation Learning for Data-Efficient Real-World Robot Manipulationcited by 0
- 2026Build on Priors: Vision--Language--Guided Neuro-Symbolic Imitation Learning for Data-Efficient Real-World Robot Manipulation4 Apr 2026
- 2025Few-Shot Neuro-Symbolic Imitation Learning for Long-Horizon Planning and Acting29 Aug 2025
- 2024Bayesian Inverse Reinforcement Learning for Non-Markovian Rewards20 Jun 2024
- 2022Reward Learning using Structural Motifs in Inverse Reinforcement Learning25 Sep 2022
- 2022A Hierarchical Bayesian Approach to Inverse Reinforcement Learning with Symbolic Reward Machines20 Apr 2022
- 2024A Review of Reward Functions for Reinforcement Learning in the context of Autonomous Drivingcited by 17
- 2025A Survey of Reinforcement Learning-Based Motion Planning for Autonomous Driving: Lessons Learned from a Driving Task Perspectivecited by 2
- 2024Model Checking for Reinforcement Learning in Autonomous Driving: One Can Do More Than You Think!cited by 0
- 2026Safe Reinforcement Learning of Autonomous Highway Driving: A Unified Framework for Safety and Efficiencycited by 0
- 2026Safe Reinforcement Learning of Autonomous Highway Driving: A Unified Framework for Safety and Efficiency12 Jun 2026
- 2025A Survey of Reinforcement Learning-Based Motion Planning for Autonomous Driving: Lessons Learned from a Driving Task Perspective31 Mar 2025
- 2024Model Checking for Reinforcement Learning in Autonomous Driving: One Can Do More Than You Think!21 Nov 2024
- 2024A Review of Reward Functions for Reinforcement Learning in the context of Autonomous Driving12 Apr 2024
- 2021LTL2Action: Generalizing LTL Instructions for Multi-Task RLcited by 72
- 2021Compositional Reinforcement Learning from Logical Specificationscited by 65
- 2023Grounding Complex Natural Language Commands for Temporal Tasks in Unseen Environmentscited by 52
- 2022Guarantees for Epsilon-Greedy Reinforcement Learning with Function Approximationcited by 29
- 2024DeepLTL: Learning to Efficiently Satisfy Complex LTL Specifications for Multi-Task RLcited by 20
- 2022Policy Optimization with Linear Temporal Logic Constraintscited by 19
- 2023Eventual Discounting Temporal Logic Counterfactual Experience Replaycited by 18
- 2024Compositional Automata Embeddings for Goal-Conditioned Reinforcement Learningcited by 18
- 2023Sample Efficient Model-free Reinforcement Learning from LTL Specifications with Optimality Guaranteescited by 17
- 2021Learning Reward Machines: A Study in Partially Observable Reinforcement Learningcited by 16
- 2023Behavior Alignment via Reward Function Optimizationcited by 16
- 2024Goals as Reward-Producing Programscited by 14
12 most cited of 160 All 160 (JSON)
- 2026Exact Distinguishability in Non-Markovian Decision Processes1 Oct 2026
- 2026Jaxolotl: A Unified High-Performance Benchmark Suite for LTL-Based Multi-Task RL29 Sep 2026
- 2026Efficient Bayes-Adaptive Reinforcement Learning with Temporal Logic Specifications17 Sep 2026
- 2026The syntax and semantics of goals16 Sep 2026
- 2026Temporal-Causal Inference for Reinforcement Learning via Automata Learning7 Sep 2026
- 2026From LLM-Generated Specifications to Learned Quadruped Locomotion7 Sep 2026
- 2026Generalizable Multi-Agent Planning from Signal Temporal Logic Specifications via Diffusion30 Aug 2026
- 2026LLM-Guided Contextual Action Evaluation for Operational Decisions in Industrial Processes25 Aug 2026
- 2026Reward Machines for Signal Temporal Logic13 Aug 2026
- 2026Reward Structure Shapes the Interaction Between Episodic Exploration and Neural Memory in Reinforcement Learning5 Aug 2026
- 2026Learning Gait-Aware Quadruped Locomotion with Temporal Logic Specifications1 Jul 2026
- 2026Compositional Behavioral Semantics for State Abstraction in Reinforcement Learning24 Jun 2026
12 newest of 160 All 160 (JSON)