Temporal Logic Planning via Zero-Shot Policy Composition

Taylor Bergeron, Zachary Serlin, Kevin Leahy · DOI

Introduction

In dynamic environments such as search-and-rescue or healthcare, robotic missions are rarely static. A robot might be tasked with a complex sequence: "check Room A, then Room B, but never enter the kitchen if the floor is wet." Traditionally, training a Reinforcement Learning (RL) agent to satisfy such Linear Temporal Logic (LTL) specifications requires embedding the logic into a reward function and training from scratch. This process is computationally expensive and impractical for time-critical scenarios where missions change frequently.

Comp-LTL addresses this by providing a framework that allows autonomous agents to satisfy complex, time-varying instructions by composing simple, pre-trained skills. This "zero-shot" approach enables robots to adapt to new missions in milliseconds while maintaining strict safety guarantees.

Methodology: The Comp-LTL Pipeline

The Comp-LTL framework treats high-level planning as a composition problem rather than a learning problem. The pipeline consists of several key stages:

Overview of the Comp-LTL framework pipeline, from LTL specification to execution.

1. Task Primitives and MV Semantics

Instead of a monolithic policy, the system utilizes a library of "primitive" policies for simple tasks (e.g., "go to blue"). These are trained using Minimum-Violation (MV) semantics. Unlike standard RL, MV semantics ensure the agent achieves its goal while minimizing contact with other labeled regions, which is critical for safety and logical consistency.

2. Transition System (TS) Abstraction and Pruning

The environment is mapped into a discrete Transition System where nodes represent regions and edges represent the feasibility of moving between them using pre-trained primitives. However, raw transition systems are often non-deterministic. Comp-LTL employs a rigorous three-step pruning process to resolve ambiguities.

Algorithmic steps for parsing maps into transition systems and pruning for determinism.

The pruning process involves:

  • Case 1: Combining equivalent states with identical labels and transitions.
  • Case 2: Resolving symbol sharing in outgoing transitions by keeping only the closest transition to a labeled state.
  • Case 3: Removing symbols from state labels if an outgoing transition already contains that symbol.

3. Automaton Composition and Execution

When a new LTL mission is received, it is converted into a Büchi Automaton. This automaton is then mathematically multiplied with the pruned TS to create a Product Automaton. The robot then finds a path through this Product Automaton, resulting in a sequence of pre-trained skills that are guaranteed to satisfy the complex LTL mission.

Evaluation and Results

The framework was evaluated in the high-dimensional Boxman environment, a grid-world featuring items with various color and shape combinations. Observations were provided as 84x84 RGB images.

Performance and Speed

Comp-LTL demonstrates significant advantages in computational efficiency. For complex specifications, Comp-LTL calculated solutions in approximately 0.0305 seconds. In contrast, Reward Machine (RM) approaches, which require retraining, took over 3,959 seconds (more than an hour).

Safety and Soundness

In safety tests measuring the collection of "unsafe" symbols (actions violating the task's spirit), Comp-LTL achieved a perfect score of 0. Competing methods like RM and standard Boolean composition (BC) collected between 1 and 3 unsafe symbols. Furthermore, the authors provided theoretical proofs that the pruned transition system is deterministic and that any solution found is mathematically sound.

Discussion and Future Work

The core innovation of Comp-LTL lies in its ability to separate the how (RL primitives) from the what (LTL logic). By using logic as a zero-shot bridge, the system gains immense flexibility.

A current limitation is the "Shortest Path" trade-off: the system optimizes for the shortest path in the logical automaton, which may not always correspond to the shortest physical path in the environment. Future research will focus on extending Comp-LTL to dynamic environments and incorporating region proximity into the transition system to improve physical movement efficiency.

Summary updated

BibTeX
@misc{bergeron2024temporal,
  author = {Taylor Bergeron and Zachary Serlin and Kevin Leahy},
  title = {{Temporal Logic Planning via Zero-Shot Policy Composition}},
  year = {2024},
  eprint = {2408.04215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.04215},
}
Figure