使用行为树和LLM的组合任务奖励塑造与动作掩码
Reward Shaping and Action Masking for Compositional Tasks using Behavior Trees and LLMs
AI总结:
提出MRBT结构,结合LLM自动生成奖励和动作掩码,通过SMT验证和神经符号RL循环,提升组合任务训练效率和成功率。
摘要:
将复杂任务分解为一系列更简单的子任务可以提高自主代理的学习效率。强化学习(RL)可用于优化代理策略以完成子任务,但需要明确定义的子任务奖励,并受益于动作掩码。最近的工作使用大型语言模型(LLM)来自动化奖励塑造和动作掩码,然而它们都没有完全解决对子任务失败的响应性以及组合任务中不同对象的模块化问题。为了克服这些挑战,我们开发了掩码奖励行为树(MRBT),这是一种用作响应式和模块化奖励及动作掩码函数的符号结构。我们设计了一个MRBT模板,并推导出逻辑规范来构建和验证一系列对象交互子任务的MRBT。此外,我们开发了一个自动化流水线,使用LLM生成对变化任务对象鲁棒的MRBT,使用SMT求解器验证规范的正确性,以及一个神经符号RL循环来训练代理完成组合任务。实验证明成功生成和优化了五个MRBT,与基线以及没有动作掩码的MRBT相比,持续提高了训练效率和任务成功率。我们进一步强调了MRBT的三个优势:可迁移性、模块化和可验证性。
英文摘要:
Decomposing complex tasks into a sequence of simpler subtasks can improve learning efficiency for an autonomous agent. Reinforcement learning (RL) can be used to optimize agent policies to complete subtasks, but requires well-defined subtask rewards and benefits from action masking. Recent work uses large language models (LLMs) to automate reward shaping and action masking, however none of them fully address reactivity to subtask failure and modularity to varying objects for compositional tasks. To overcome these challenges, we develop masking reward behavior tree (MRBT), a symbolic structure used as a reactive and modular reward and action mask function. We design an MRBT template and derive logical specifications to construct and verify MRBTs for a sequence of object-interaction subtasks. Further, we develop an automated pipeline that uses an LLM to generate MRBTs robust to varying task objects, an SMT-solver to verify correctness of specifications, and a neurosymbolic RL loop to train agents on compositional tasks. Experiments demonstrate successful generation and refinement of five MRBTs, consistently improving training efficiency and task success rates over baselines and MRBTs without action masking. We further highlight three advantages of MRBTs: transferability, modularity, and verifiability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。