TL;DR
Comp-LTL provides a zero-shot framework that allows autonomous agents to safely satisfy complex Linear Temporal Logic (LTL) specifications without retraining or fine-tuning reinforcement learning (RL) policies. By pairing safety-aware primitive policy composition with a systematically pruned, deterministic Transition System (TS) of the environment, Comp-LTL resolves path ambiguities and guarantees that unseen temporal tasks can be planned and executed in fractions of a second.
What Problem Does This Paper Address?
Deploying autonomous robots often requires executing complex, time-varying tasks specified in Linear Temporal Logic (LTL)—such as "visit the commercial waste site while never entering a residential area."
Traditional RL approaches bake the task specification directly into training (e.g., using reward machines), which requires retraining from scratch whenever the goal changes. While recent methods explore zero-shot Boolean composition of skills, existing frameworks rely on reachability-only semantics: negating a condition only guarantees the agent won't terminate in a forbidden area, not that it will avoid passing through it. Furthermore, when multiple regions in an environment share the same labels, executing composed policies can introduce non-determinism and ambiguous transitions that break formal satisfaction guarantees.
Methods
Comp-LTL bridges formal verification and reinforcement learning through an end-to-end pipeline:
- Safety-Aware Primitive Policies: Offline, base policies are trained for each atomic proposition using Minimum-Violation (MV) safety semantics. Rewards are structured hierarchically to strictly penalize entering or ending in unsafe regions.
- Boolean Task Algebra: Multiple primitives are composed on-the-fly via Q-learning task algebra. For example, the conjunction policy for $A \wedge B$ is generated zero-shot by taking the pointwise minimum:
$$Q_{A \wedge B}(s, a) = \min [Q_A(s, a), Q_B(s, a)]$$ - Transition System (TS) Abstraction and Pruning: The environment's topology is abstracted into a discrete TS where edges represent feasible task compositions. To guarantee determinism and soundness, the TS is pruned across three cases:
- Case 1 (Equivalent States): Merges observationally equivalent branches using bisimulation.
- Case 2 (Ambiguous Transitions): When multiple outgoing transitions share a label, only the one with the minimal MV distance to the target region is retained; ties are pruned entirely.
- Case 3 (Ineffectual Transitions): Eliminates self-directed transitions where the current state already satisfies the target label.
- Product Automaton Planning: An off-the-shelf Büchi automaton generated from the LTL formula (via SPOT) is crossed with the pruned TS to find an accepting run, outputting an exact sequence of composed RL policies.
Datasets
The authors evaluate Comp-LTL in simulation across three benchmarks:
- Office World: A discrete grid-world benchmark featuring rooms and items (coffee, mail, breakroom) augmented with directional quadrant propositions ($\uparrow, \downarrow, \leftarrow, \rightarrow$), evaluated with tabular Q-learning.
- Video Game Environment: A high-dimensional grid-world where objects have distinct shapes (square, circle) and colors (blue, purple, white), trained via Deep Q-Networks (DQN).
- Continuous 3D Physics Simulation: A Bullet Safety Gym environment with continuous dynamics where a robot interacts with colored 3D spheres and boxes, trained via Twin Delayed DDPG (TD3).
Key Insights and Ideas
- Avoidance Requires Safety at the Primitive Level: Conventional skill composition treats negation as non-termination. Comp-LTL proves that zero-shot safety transfer is only possible if task primitives inherently encode path-level avoidance rewards.
- Pruning Resolves Compositional Non-Determinism: Combining pre-trained policies in multi-labeled environments often yields unresolvable branching. Filtering edges via geometric MV distance ensures the abstract model accurately and deterministically reflects policy behavior.
- Decoupling Temporal from Spatial Reasoning: By handling Boolean constraints directly inside composed RL policies and temporal ordering through automata products, LTL planning becomes an instantaneous graph search over pre-verified transitions.
Key Results
- Near-Instantaneous Re-planning: Comp-LTL reprocessed unseen LTL specifications in 0.02 to 0.06 seconds, compared to 2,192 to 47,982 seconds for retraining Reward Machines (RM), and up to 300 seconds for fine-tuning Skill Machines (SM).
- Guaranteed Zero-Shot Safety: In quantitative trials, Comp-LTL collected 0 extraneous/unsafe symbols across all specifications, consistently satisfying every task. In contrast, SM collected 6 extra symbols (failing zero-shot transfer on one task), RM variants collected 3–4 extra symbols, and baseline Boolean composition without MV safety collected 8 extra symbols.
Limitations and Future Work
- Metric Sub-optimality: The planner optimizes automaton path length (number of high-level task transitions) rather than continuous metric distance in the physical environment. As a result, agents may take physically longer paths that are equivalent on the automaton level.
- Deterministic Environment Assumption: The abstraction assumes a deterministic labeled Markov Decision Process (MDP).
- Static Topologies: Current experiments assume static regions. The authors highlight extending Comp-LTL to non-stationary environments—such as dynamic obstacles and changing surface friction—as key future work.
Summary updated