Learning Task Automata for Reinforcement Learning using Hidden Markov Models
Not on the map. Why?
Abstract (arXiv)
Training reinforcement learning (RL) agents using scalar reward signals is often infeasible when an environment has sparse and non-Markovian rewards. Moreover, handcrafting these reward functions before training is prone to misspecification, especially when the environment's dynamics are only partially known. This paper proposes a novel pipeline for learning non-Markovian task specifications as succinct finite-state `task automata' from episodes of agent experience within unknown environments. We leverage two key algorithmic insights. First, we learn a product MDP, a model composed of the specification's automaton and the environment's MDP (both initially unknown), by treating the product MDP as a partially observable MDP and using the well-known Baum-Welch algorithm for learning hidden Markov models. Second, we propose a novel method for distilling the task automaton (assumed to be a deterministic finite automaton) from the learnt product MDP. Our learnt task automaton enables the decomposition of a task into its constituent sub-tasks, which improves the rate at which an RL agent can later synthesise an optimal policy. It also provides an interpretable encoding of high-level environmental and task features, so a human can readily verify that the agent has learnt coherent tasks with no misspecifications. In addition, we take steps towards ensuring that the learnt automaton is environment-agnostic, making it well-suited for use in transfer learning. Finally, we provide experimental results compared with two baselines to illustrate our algorithm's performance in different environments and tasks.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 20 of its 60 references that are in the map. First posted on arXiv 25 Aug 2022.
Builds on
20 of 60 references.
References · 20
- 2016Concrete Problems in AI Safetycited by 1,642
- 2020Reward Machines: Exploiting Reward Function Structure in Reinforcement Learningcited by 191
- 2019Benchmarking Model-Based Reinforcement Learningcited by 162
- 2017Environment-Independent Task Specifications via GLTLcited by 67
- 2021Compositional Reinforcement Learning from Logical Specificationscited by 67
- 2019Joint Inference of Reward Machines and Policies for Reinforcement Learningcited by 56
- 2018Logically-Constrained Reinforcement Learningcited by 51
- 2019Reinforcement Learning with Non-Markovian Rewardscited by 45
- 2020Induction and Exploitation of Subgoal Automata for Reinforcement Learningcited by 26
- 2021The Logical Options Frameworkcited by 25
- 2020Active Finite Reward Automaton Inference and Reinforcement Learning Using Queries and Counterexamplescited by 23
- 2019Induction of Subgoal Automata for Reinforcement Learningcited by 17
8 more
- 2021Verifiable and Compositional Reinforcement Learning Systemscited by 13
- 2021Inferring Probabilistic Reward Machines from Non-Markovian Reward Processes for Reinforcement Learningcited by 13
- 2022Joint Learning of Reward Machines and Policies in Environments with Partially Known Semanticscited by 12
- 2015Statistical and Computational Guarantees for the Baum-Welch Algorithmcited by 11
- 2020Learning and Solving Regular Decision Processescited by 11
- 2022Markov Abstractions for PAC Reinforcement Learning in Non-Markov Decision Processescited by 10
- 2020Online Learning of Non-Markovian Reward Modelscited by 9
- 2014Quantitative model-checking of controlled discrete-time Markov processescited by 1
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 1; 2026: 2.
7 papers.
- 2024On the Limitations of Markovian Rewards to Express Multi-Objective, Risk-Sensitive, and Modal Taskscited by 9
- 2023Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Surveycited by 5
- 2025Learning Reward Machines from Partially Observed Policiescited by 3
- 2023Reinforcement Learning with Temporal-Logic-Based Causal Diagramscited by 2
- 2024Provably Efficient Exploration in Reward Machines with Low Regretcited by 1
- 2026Active Reward Machine Inference From Raw State Trajectoriescited by 0
- 2026Exact Distinguishability in Non-Markovian Decision Processescited by 0
- 2026Exact Distinguishability in Non-Markovian Decision Processes1 Oct 2026
- 2026Active Reward Machine Inference From Raw State Trajectories8 Apr 2026
- 2025Learning Reward Machines from Partially Observed Policies6 Feb 2025
- 2024Provably Efficient Exploration in Reward Machines with Low Regret26 Dec 2024
- 2024On the Limitations of Markovian Rewards to Express Multi-Objective, Risk-Sensitive, and Modal Tasks26 Jan 2024
- 2023Reinforcement Learning with Temporal-Logic-Based Causal Diagrams23 Jun 2023
- 2023Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Survey24 Apr 2023