Abstract
Learning to solve long horizon temporally extended tasks with reinforcement learning has been a challenge for several years now. We believe that it is important to leverage both the hierarchical structure of complex tasks and to use expert supervision whenever possible to solve such tasks. This work introduces an interpretable hierarchical agent framework by combining planning and semantic goal directed reinforcement learning. We assume access to certain spatial and haptic predicates and construct a simple and powerful semantic goal space. These semantic goal representations are more interpretable, making expert supervision and intervention easier. They also eliminate the need to write complex, dense reward functions thereby reducing human engineering effort. We evaluate our framework on a robotic block manipulation task and show that it performs better than other methods, including both sparse and dense reward functions. We also suggest some next steps and discuss how this framework makes interaction and collaboration with humans easier.
Introduction
Reinforcement Learning (RL) has achieved significant success in gaming and basic control tasks. However, "long-horizon" tasks—those requiring a sequence of precise actions over an extended period, such as cleaning a desk—remain a major hurdle. Two primary issues impede progress: the Reward Gap, where sparse rewards in complex tasks lead to inefficient exploration, and the Black Box Problem, where the lack of interpretability in RL agents makes it difficult for humans to understand or correct failures. This paper proposes a hybrid approach that combines the logic of symbolic planning with the flexibility of deep RL.
Methodology: A Two-Tier Hierarchical Framework
To address these challenges, we propose a hierarchical framework that separates high-level strategic planning from low-level motor execution.
The framework consists of three core components:
- High-Level Planner (The Strategist): Utilizing a STRIPS planner, the system generates a sequence of logical sub-goals based on the initial state and final objective. This symbolic approach ensures the plan is human-readable and editable.
- Low-Level Policy (The Executor): A goal-conditioned RL agent, trained via Soft Actor-Critic (SAC) and Hindsight Experience Replay (HER), translates these sub-goals into specific motor commands.
- Semantic Predicates: The world is represented through binary predicates such as close, above, in-bin, and holding. These predicates transform complex spatial coordinates into a simple bit-vector (e.g.,
[1, 0, 1]), serving as an interpretable "semantic goal" for the agent.
The framework was evaluated in the Fetch Manipulation environment using tasks of varying complexity, including block stacking (MC-2/3), unstacking (MA-2/3), and desk cleanup (DC-2/4).
Key Insights and Results
By utilizing semantic predicates, the reward function becomes binary: the agent receives a reward only when the current semantic state matches the target sub-goal. This eliminates the need for manual "reward shaping," which is often time-consuming and prone to error.
Our results demonstrate that the Hierarchical Semantic agent significantly outperforms baseline methods:
- Success Rates: The agent achieved 90% to 100% success across nearly all tasks, including the complex 4-block desk cleanup.
- Comparison to Flat RL: Standard RL agents using semantic goals ("Flat Semantic") or raw coordinates ("Flat Continuous") largely failed, often scoring below 10% success on multi-block tasks.
- Behavioral Quality: In tasks like moving blocks apart, "flat" agents often resorted to aggressive strategies like knocking blocks off the table. In contrast, the hierarchical agent learned precise, safe manipulation behaviors, picking up and placing blocks as intended.
Conclusion and Future Work
The use of semantic goals provides a bridge between symbolic logic and deep reinforcement learning, making agents more efficient and interpretable. This structure allows for "human-in-the-loop" intervention, where an expert can modify the high-level plan if the agent encounters an unforeseen obstacle. Future work will focus on learning predicates directly from visual data, developing natural language interfaces for human-robot interaction, and transitioning the framework from simulation to real-world robotic systems.
Summary updated