DeepLTL: Learning to Efficiently Satisfy Complex LTL Specifications

Mathias Jackermeier, Alessandro Abate · DOI

Introduction

Reinforcement learning (RL) agents often struggle with complex, long-term instructions, particularly those involving temporal constraints. While Linear Temporal Logic (LTL) provides a rigorous framework for expressing such tasks—including requirements like "eventually," "always," and "until"—existing LTL-conditioned RL methods face significant challenges. Most are limited to finite-horizon tasks, exhibit myopic behavior by ignoring long-term consequences, and often fail to integrate safety constraints into high-level planning.

DeepLTL is a novel framework designed to overcome these hurdles. By leveraging the structural properties of automata, DeepLTL enables agents to satisfy complex LTL specifications with high efficiency, robust safety, and the ability to handle infinite-horizon tasks through zero-shot execution.

Methodology

The core innovation of DeepLTL lies in its treatment of LTL formulas as structured maps for planning rather than simple strings.

Automata-Based Reasoning

DeepLTL converts LTL formulas into Limit-Deterministic Büchi Automata (LDBAs). These state machines track the agent's progress toward satisfying a formula. Unlike progression-based methods that "consume" parts of a formula, the LDBA allows the agent to reason about recurring tasks and infinite horizons.

An example of a Limit-Deterministic Büchi Automaton (LDBA) used for tracking LTL specification progress.

Reach-Avoid Sequences

The framework extracts "reach-avoid sequences" from the LDBA. These sequences explicitly define the sets of propositions the agent must satisfy next (reach) and those it must avoid to remain compliant with the LTL specification.

Non-Myopic Planning

At execution time, the agent utilizes a learned value function to evaluate potential sequences through the automaton. This allows the agent to select the most efficient and safe path, avoiding the short-sightedness typical of previous approaches. The neural architecture employs DeepSets for permutation-invariant encoding of proposition sets and a Gated Recurrent Unit (GRU) to process these sequences. The model is trained using Proximal Policy Optimization (PPO) with a curriculum that gradually increases task complexity.

Experimental Setup

DeepLTL was evaluated in three distinct environments:

  1. LetterWorld: A discrete $7 \times 7$ grid.
  2. ZoneEnv: A continuous 2D environment with circular colored regions.
  3. FlatWorld: A continuous environment featuring overlapping regions, testing the agent's ability to handle multiple simultaneous propositions.

Tasks ranged from simple reachability to complex infinite-horizon objectives, such as recurrence and persistence.

Results and Discussion

DeepLTL demonstrates superior performance across several key metrics compared to baselines like GCRL-LTL.

DeepLTL capabilities: (a) handling infinite-horizon ω-regular tasks, (b) achieving path optimality, and (c) maintaining safety.
  • Efficiency and Success: In ZoneEnv, DeepLTL achieved success rates of approximately 90% while significantly reducing the number of steps required (e.g., ~300 steps vs. ~450 for baselines).
  • Infinite-Horizon Mastery: The agent successfully handled ω-regular tasks, such as visiting multiple locations infinitely often, a feat that stymied most existing methods.
  • Safety and Optimality: DeepLTL effectively navigates "trap" scenarios where a myopic planner might choose a shorter but ultimately unsafe path. By incorporating safety into the reach-avoid sequences, the agent naturally avoids forbidden states.
  • Zero-Shot Generalization: The model generalizes to sequences significantly longer (depth 12) than those encountered during training (depth 3), demonstrating a robust understanding of the underlying logic.

Conclusion

DeepLTL represents a significant advancement in LTL-conditioned reinforcement learning. By using automata as a scaffold for non-myopic planning, it enables robots to follow complex, never-ending instructions with unprecedented efficiency and safety. Future work will explore scaling this approach to high-dimensional sensor data and integrating "Discounted LTL" for more fluid reward structures.

Summary updated

BibTeX
@inproceedings{jackermeier2025deepltl,
  author = {Mathias Jackermeier and Alessandro Abate},
  title = {{DeepLTL: Learning to Efficiently Satisfy Complex LTL Specifications}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=9pW2J49flQ},
}
Figure