Skip to main navigation Skip to search Skip to main content

Pushdown Reward Machines for Reinforcement Learning

  • University of Toronto
  • Vector Institute
  • Utrecht University
  • Open University of the Netherlands

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

Abstract

Reward machines (RMs) are automata structures that encode (non-Markovian) reward functions for reinforcement learning (RL). RMs can reward any behaviour representable in regular languages and, when paired with RL algorithms that exploit RM structure, have been shown to significantly improve sample efficiency in many domains. In this work, we present pushdown reward machines (pdRMs), an extension of reward machines based on deterministic pushdown automata. pdRMs can recognise and reward temporally extended behaviours representable in deterministic context-free languages, making them more expressive than reward machines. We introduce two variants of pdRM-based policies, one which has access to the entire stack of the pdRM, and one which can only access the top k symbols (for a given constant k) of the stack. We propose a procedure to check when the two kinds of policies (for a given environment, pdRM, and constant k) achieve the same optimal state values. We then provide theoretical results establishing the expressive power of pdRMs, and space complexity results for the proposed learning problems. Lastly, we propose an approach for off-policy RL algorithms that exploits counterfactual experiences with pdRMs. We conclude by providing experimental results showing how agents can be trained to perform tasks representable in deterministic context-free languages using pdRMs.

Original languageEnglish
Title of host publicationKR 2025 - Proceedings of the 22nd International Conference on Principles of Knowledge Representation and Reasoning
EditorsMagdalena Ortiz, Renata Wassermann, Torsten Schaub
PublisherAssociation for the Advancement of Artificial Intelligence
Pages566-576
Number of pages11
ISBN (Electronic)9781956792089
DOIs
Publication statusPublished - Nov 2025
Event22nd International Conference on Principles of Knowledge Representation and Reasoning, KR 2025 - Melbourne, Australia
Duration: 11 Nov 202517 Nov 2025

Publication series

NameProceedings of the International Conference on Knowledge Representation and Reasoning
Volume2025-November
ISSN (Print)2334-1025
ISSN (Electronic)2334-1033

Conference

Conference22nd International Conference on Principles of Knowledge Representation and Reasoning, KR 2025
Country/TerritoryAustralia
CityMelbourne
Period11/11/2517/11/25

Bibliographical note

Publisher Copyright:
© KR 2025.All rights reserved.

Fingerprint

Dive into the research topics of 'Pushdown Reward Machines for Reinforcement Learning'. Together they form a unique fingerprint.

Cite this