Reward Shaping and Action Masking for Compositional Tasks using Behavior Trees and LLMs
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 30 references that are in the map. First posted on arXiv 7 May 2026.
Builds on
21 of 30 references.
References · 21
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2025OpenAI GPT-5 System Cardcited by 910
- 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 542
- 2017AirSim: High-Fidelity Visual and Physical Simulation for Autonomous Vehiclescited by 517
- 2022MineDojo: Building Open-Ended Embodied Agents with Internet-Scale Knowledgecited by 469
- 2023Minigrid & Miniworld: Modular & Customizable Reinforcement Learning Environments for Goal-Oriented Taskscited by 320
- 2020A Closer Look at Invalid Action Masking in Policy Gradient Algorithmscited by 160
- 2023Vision-Language Models as Success Detectorscited by 138
- 2023RoboCLIP: One Demonstration is Enough to Learn Robot Policiescited by 128
- 2017Behavior Trees in Robotics and AI: An Introductioncited by 105
- 2024Code as Reward: Empowering Reinforcement Learning with VLMscited by 38
9 more
- 2023Neurosymbolic Reinforcement Learning and Planning: A Surveycited by 24
- 2024Latent Reward: LLM-Empowered Credit Assignment in Episodic Reinforcement Learningcited by 22
- 2022Learning to Follow Instructions in Text-Based Gamescited by 12
- 2024Using Large Language Models to Automate and Expedite Reinforcement Learning with Reward Machinecited by 9
- 2022On the programming effort required to generate Behavior Trees and Finite State Machines for robotic applicationscited by 5
- 2022Hierarchies of Reward Machinescited by 4
- 2024Comparison between Behavior Trees and Finite State Machinescited by 4
- 2024Designing Robust Cyber-Defense Agents with Evolving Behavior Treescited by 4
- 2024Integrating Explanations in Learning LTL Specifications from Demonstrationscited by 1
Built on by
Not cited yet.