Learning Temporally Extended Skills in Continuous Domains as Symbolic Actions for Planning

Jan Achterhold, Markus Krimmel, Joerg Stueckler

TL;DR

SEADS (Symbolic Effect-Aware Diverse Skills) is a hierarchical reinforcement learning agent that bridges the gap between low-level continuous control and high-level discrete planning. By jointly learning a library of diverse, predictable skills and a symbolic forward model of their effects, the agent can solve complex, long-horizon tasks—like a robot arm playing a physical board game—by planning in an abstract space and executing in a continuous one.

What Problem Does This Paper Address?

Reinforcement learning (RL) has seen massive success in two distinct areas: continuous control (like robotic manipulation) and discrete planning (like playing Go). However, tasks that require both—known as physically embedded planning problems—remain a significant hurdle.

Imagine a robot arm tasked with solving a "LightsOut" puzzle on a physical tablet. The agent must understand the high-level logic of the game (which buttons to press to toggle lights) while simultaneously mastering the low-level physics of moving a multi-jointed arm to precise coordinates. Standard "flat" RL agents often fail because the time horizon is too long, while traditional hierarchical agents struggle to discover skills that are actually useful for high-level planning.

Methods

The authors introduce SEADS, which assumes the agent has access to a known state abstraction $\Phi(s) = z$ that maps the complex continuous state (robot joint positions) to a discrete symbolic state (the board configuration).

The core of SEADS is an information-theoretic objective that maximizes the mutual information between a skill index $k$ and the resulting symbolic state $z_T$. This encourages two things:

  1. Diversity: The agent tries to discover as many different transitions in the symbolic space as possible (e.g., learning to push every different button on the board).
  2. Predictability: The agent ensures that a specific skill $k$ consistently leads to a specific symbolic outcome, making that skill a reliable "action" for a planner.

Key technical innovations include:

  • Joint Learning: Skill policies and a symbolic forward model are trained simultaneously.
  • Constrained Relabelling: Using the Hungarian method to retroactively match skill executions to the forward model, ensuring no skill is over- or under-represented during training.
  • Second-Best Normalization: A reward mechanism that specifically reinforces skills that produce unique symbolic effects compared to other skills in the library.

Once trained, the agent uses a simple Breadth-First Search (BFS) on the learned symbolic model to find a sequence of moves, then executes them using the continuous skill policies.

The SEADS hierarchy: low-level continuous trajectories (top) are mapped to discrete symbolic transitions (bottom) that a forward model can predict.

Datasets

The researchers evaluated SEADS on several "physically embedded" versions of two classic board games:

  • LightsOut: A 5x5 grid where pushing a field toggles it and its neighbors.
  • TileSwap: A 3x3 sliding-style puzzle where fields are swapped.

These games were embedded in three simulation environments of increasing complexity: Cursor (simple 2D navigation), Reacher (a 2-link arm), and Jaco (a 9-degree-of-freedom robotic arm). Finally, they demonstrated the system on a real-world uArm Swift Pro robot interacting with a physical tablet.

Figure 1: LightsOut (with on (red) and off (gray) fields) and TileSwap (fields in a rhombus are swapped if pushed inside) board games embedded into physical manipulation settings. A move in the board game can only indirectly be executed through controlling a manipulator.

Key Insights and Ideas

  • Predictability as a Bridge: By forcing skills to be predictable in a symbolic space, they naturally function as discrete actions. This effectively turns a reinforcement learning problem into a classical AI planning problem.
  • Unsupervised Discovery: SEADS doesn't need a task-specific reward (like "win the game") to learn the moves. It learns the "physics" of the board game through intrinsic motivation, which can then be applied to any goal state.
  • Relabelling is Crucial: The authors found that hindsight relabelling is essential for stability. Without it, the mismatch between what the forward model expects and what the policy actually does prevents the hierarchy from forming.

Key Results

SEADS consistently outperformed both flat RL (Soft Actor-Critic) and standard hierarchical RL (Hierarchical Actor-Critic) baselines.

  • Success Rates: SEADS achieved near 100% success on Cursor tasks and ~95% on the complex Jaco arm tasks. In contrast, the baselines often failed completely on the Jaco environments because they couldn't bridge the gap between control and planning.
  • Real-World Transfer: The agent successfully learned to solve the physical LightsOut game on a real robot arm after approximately 43.5 hours of training, solving 100% of the test configurations.
Figure 3: Top row: Number of learned unique game moves for ablations of SEADS. Bottom row: Success rate of the proposed SEADS agent and baseline methods on LightsOut, TileSwap games embedded in Cursor, Reacher, Jaco environments. SEADS performs comparably or outperforms the baselines on all tasks. The solid line depicts the mean, shaded area min. and max. of 10 (SEADS, SAC on Cursor) / 5 (HAC, SAC on Reacher, Jaco) independently trained agents.

Limitations and Future Work

  • Known Abstractions: The biggest limitation is the requirement for a pre-defined state abstraction $\Phi$. A major future step is learning this abstraction directly from raw sensory data (like pixels).
  • Planning Scalability: The current BFS planner struggles with very deep solutions (depth > 9). More advanced heuristic or probabilistic planners would be needed for more complex games.
  • Exploration: In environments where certain symbolic states are very hard to reach, the intrinsic motivation might not be enough to discover all possible skills without additional guidance or demonstrations.

Summary updated

Abstract

Problems which require both long-horizon planning and continuous control capabilities pose significant challenges to existing reinforcement learning agents. In this paper we introduce a novel hierarchical reinforcement learning agent which links temporally extended skills for continuous control with a forward model in a symbolic discrete abstraction of the environment's state for planning. We term our agent SEADS for Symbolic Effect-Aware Diverse Skills. We formulate an objective and corresponding algorithm which leads to unsupervised learning of a diverse set of skills through intrinsic motivation given a known state abstraction. The skills are jointly learned with the symbolic forward model which captures the effect of skill execution in the state abstraction. After training, we can leverage the skills as symbolic actions using the forward model for long-horizon planning and subsequently execute the plan using the learned continuous-action control skills. The proposed algorithm learns skills and forward models that can be used to solve complex tasks which require both continuous control and long-horizon planning capabilities with high success rate. It compares favorably with other flat and hierarchical reinforcement learning baseline agents and is successfully demonstrated with a real robot.
BibTeX
@inproceedings{achterhold2022learning,
  author = {Jan Achterhold and Markus Krimmel and Joerg Stueckler},
  title = {{Learning Temporally Extended Skills in Continuous Domains as Symbolic Actions for Planning}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=t-IO7wCaNgH},
}
Figure