arXiv:2508.06894cs.AIcs.LG2025-08中稿 · publication at the…被引 4

用栈式奖励机让强化学习更懂长期任务

Pushdown Reward Machines for Reinforcement Learning

  • 基于栈结构的奖励机可识别上下文无关语言的任务
  • 支持完整栈或仅顶部k个符号的两种策略设计
  • 实验验证其在复杂时序任务中的有效性和效率

奖励机器(RMs)是用于编码非马尔可夫奖励函数的自动机结构,能奖励正则语言描述的行为。本文提出下推奖励机器(pdRMs),基于确定性下推自动机,可识别并奖励可表示为确定性上下文无关语言的长期行为,表达能力超越传统奖励机器。我们引入两种基于pdRM的策略:一种可访问完整栈,另一种仅能访问栈顶k个符号(给定常数k)。提出一种判断两种策略是否达到相同最优状态值的判定过程。提供理论结果,证明pdRMs的表达能力及学习问题的空间复杂度。最后,提出一种利用反事实经验的离线强化学习方法。实验表明,基于pdRMs的智能体可成功完成由确定性上下文无关语言描述的任务。

原文摘要 · Abstract (English)

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.

强化学习奖励机器时序任务

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。