Mission-driven Exploration for Accelerated Deep Reinforcement Learning with Temporal Logic Task Specifications

Jun Wang, Hosein Hasanbeig, Kaiyuan Tan, Zihe Sun, Yiannis Kantaros

TL;DR

This paper introduces a novel Deep Reinforcement Learning (DRL) algorithm that significantly speeds up learning for agents tasked with complex objectives specified by Linear Temporal Logic (LTL). By employing a "mission-driven exploration" strategy, the agent prioritizes exploring states that are more likely to lead to task completion, overcoming the slow learning often seen in traditional DRL methods for LTL tasks.

What Problem Does This Paper Address?

Traditional Reinforcement Learning (RL) relies on reward functions to guide agents. However, designing effective reward functions for complex tasks, like those requiring specific sequences of actions or visiting locations in a particular order, can be incredibly challenging and often leads to suboptimal performance. Linear Temporal Logic (LTL) offers a more natural way to specify these complex, sequential tasks. While Deep RL (DRL) has been applied to LTL-specified tasks, existing methods often suffer from slow learning due to inefficient exploration strategies, especially in environments with unknown dynamics and continuous state spaces. This paper aims to bridge this gap by developing a DRL algorithm that learns LTL-compliant policies much faster.

Methods

The core of the proposed method is a new DRL algorithm that builds upon Deep Q-Networks (DQN) but introduces a novel exploration strategy. Instead of the standard ε-greedy exploration, this algorithm employs a "mission-driven exploration" approach. This strategy leverages an automaton representation of the LTL task and a learned neural network that models the agent-environment interaction. The agent prioritizes exploring directions that are predicted to contribute most to achieving the LTL objective.

Key components of the method include:

  • LTL to Deterministic Rabin Automaton (DRA) Conversion: The LTL task specification is translated into a DRA, which provides a formal representation of the task's states and transitions.
  • Product MDP: The agent's environment (an unknown MDP) is combined with the DRA to form a Product MDP. This allows the RL agent to learn a policy over a combined state space that ensures LTL satisfaction.
  • Mission-Driven Exploration: This is the central innovation. It involves:
  • A biased action selection mechanism.
  • A neural network (NN) g trained to predict this biased action. This NN takes the agent's current state features and a "goal" DRA state as input and outputs an action that is likely to drive the agent towards an accepting state in the DRA.
  • The training of NN g uses a dataset generated through simulations, where "safe" actions are identified based on their proximity to accepting states and their probability of avoiding undesirable states.
  • Accelerated Deep Q-Learning: The standard DQN algorithm is adapted to work with the Product MDP and incorporates the mission-driven exploration strategy to update Q-values and the policy.

Datasets

The paper does not explicitly mention using pre-existing datasets for training or evaluation. Instead, it describes a process for generating a training dataset for the exploration neural network g using simulations of the robot's dynamics. The experiments are conducted in simulated robot navigation environments, with specific details provided for "Case Studies I, II, III, and IV," which involve varying numbers of obstacles and different LTL task complexities. These environments are described as having "varying obstacle sizes and placements."

Key Insights and Ideas

  • Exploration is Key for LTL Tasks: The paper strongly suggests that efficient exploration is the bottleneck in learning LTL-compliant policies with DRL. Random exploration is insufficient for complex, sequential tasks.
  • Leveraging Task Structure for Exploration: By translating LTL into a DRA, the paper effectively embeds the task's logical structure into the exploration process. This allows the agent to "reason" about what actions are most likely to lead to success.
  • Bridging Continuous State Spaces and LTL: The proposed method is designed to handle continuous state spaces, which are common in robotics, and avoids the need to learn a full, explicit model of the MDP, making it more scalable than previous approaches for discrete spaces.
  • NN as a "Goal-Directed" Explorer: The trained neural network g acts as a sophisticated guide, suggesting actions that are not just locally optimal but are strategically chosen to advance the agent towards satisfying the LTL specification.

Key Results

The paper demonstrates significant improvements in sample efficiency across several robot navigation tasks with varying LTL complexity.

  • Superior Sample Efficiency: The proposed "mission-driven exploration" method consistently outperforms baselines like DQN with ε-greedy, PPO, and SAC in terms of learning speed and achieved performance.
  • High Accuracy in Complex Scenarios: In challenging scenarios (e.g., Case Study II with many obstacles, Case Study IV with long-horizon and repeated visits), baselines often fail to achieve any meaningful performance (0% test accuracy), while the proposed method achieves substantial accuracy (e.g., 72.5% training and 63% testing in Case Study II; 88.3% training and 42.5% testing in Case Study IV).
  • Generalization: The method shows promise in generalizing to unseen environments, with a slight but expected drop in performance compared to training environments.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that defining rewards for LTL satisfaction is out of scope, and their exploration strategy is reward-agnostic.
  • The method relies on a discrete representation of the DRA state space for generating the training data for the exploration network g.
  • The performance drop in unseen environments, while present in all methods, indicates room for further improvement in generalization.
  • Future Work:
    • Extend the framework to handle high-dimensional state and action spaces.
  • Evaluate the approach on tasks beyond navigation, such as locomotion.
  • Further explore how to leverage the proposed framework for more complex mission planning scenarios.

Summary updated

BibTeX
@inproceedings{wang2023mission,
  author = {Jun Wang and Hosein Hasanbeig and Kaiyuan Tan and Zihe Sun and Yiannis Kantaros},
  title = {{Mission-driven Exploration for Accelerated Deep Reinforcement Learning with Temporal Logic Task Specifications}},
  booktitle = {L4DC},
  year = {2023},
  doi = {10.48550/arxiv.2311.17059},
}
Figure