Skip to main content
QUICK REVIEW

[Paper Review] Q-Learning for Robust Satisfaction of Signal Temporal Logic Specifications

Derya Aksaray, Austin Jones|arXiv (Cornell University)|Sep 23, 2016
Formal Methods in VerificationComputer Science4 citations
TL;DR

This paper proposes a Q-learning-based approach to synthesize control policies for stochastic systems with unknown dynamics to satisfy Signal Temporal Logic (STL) specifications. By modeling the system as a τ-MDP and approximating STL satisfaction probability and robustness degree as cumulative rewards, the method enables Q-learning to optimize for both likelihood and quality of specification satisfaction, with simulations showing superior performance when maximizing expected robustness over probability alone.

ABSTRACT

This paper addresses the problem of learning optimal policies for satisfying signal temporal logic (STL) specifications by agents with unknown stochastic dynamics. The system is modeled as a Markov decision process, in which the states represent partitions of a continuous space and the transition probabilities are unknown. We formulate two synthesis problems where the desired STL specification is enforced by maximizing the probability of satisfaction, and the expected robustness degree, that is, a measure quantifying the quality of satisfaction. We discuss that Q-learning is not directly applicable to these problems because, based on the quantitative semantics of STL, the probability of satisfaction and expected robustness degree are not in the standard objective form of Q-learning. To resolve this issue, we propose an approximation of STL synthesis problems that can be solved via Q-learning, and we derive some performance bounds for the policies obtained by the approximate approach. The performance of the proposed method is demonstrated via simulations.

Motivation & Objective

  • To address the challenge of controlling systems with unknown stochastic dynamics to satisfy complex, time-sensitive tasks specified via Signal Temporal Logic (STL).
  • To formulate two control synthesis problems: maximizing the probability of STL satisfaction and maximizing the expected robustness degree as a measure of satisfaction quality.
  • To overcome the incompatibility of STL's quantitative semantics with standard Q-learning objectives by proposing a novel approximation framework.
  • To provide performance bounds for the approximate policy solutions, ensuring they remain close to optimal under proper parameter selection.
  • To demonstrate the effectiveness of the approach through simulation case studies involving spatial and temporal task specifications.

Proposed method

  • Model the system as a Markov Decision Process (MDP) where states represent τ-length histories of system trajectories, forming a τ-MDP to capture history dependence in STL specifications.
  • Define a fragment of STL with time-bounded operators (F[a,b], G[a,b]) to enable finite-state abstraction and τ-MDP construction.
  • Approximate the probability of satisfaction and expected robustness degree as cumulative rewards by leveraging temporal logic semantics and state history tracking.
  • Apply Q-learning to the approximated objective functions, where the agent learns policies by maximizing the sum of approximated rewards over episodes.
  • Use a decay schedule for the learning rate (αk = 0.95k) and tune hyperparameters (β, γ) to balance exploration and convergence.
  • Derive theoretical performance bounds showing that the approximate policy’s performance can be made arbitrarily close to the true optimal policy by selecting an appropriate τ and approximation parameter.

Experimental results

Research questions

  • RQ1Can Q-learning be effectively applied to STL specification synthesis when the system dynamics are unknown and the objective functions (satisfaction probability and robustness) are not in standard Q-learning form?
  • RQ2How can history-dependent STL specifications—such as those requiring temporal ordering of events—be modeled in a way compatible with reinforcement learning?
  • RQ3What approximation strategy enables the transformation of STL satisfaction probability and robustness into a cumulative reward structure suitable for Q-learning?
  • RQ4How close can the policy learned via the approximate method be to the true optimal policy in terms of satisfaction probability and robustness?
  • RQ5Does maximizing expected robustness degree lead to better convergence and performance than maximizing satisfaction probability in Q-learning-based STL synthesis?

Key findings

  • After 2000 training episodes, the policy maximizing expected robustness degree (π∗₂ₐ) achieved a 93.6% satisfaction probability for the specification Φ₂, significantly outperforming the probability-maximizing policy (π∗₁ₐ), which achieved only 73.2% satisfaction probability.
  • The expected robustness degree under π∗₂ₐ was 0.422, compared to 0.084 under π∗₁ₐ, indicating substantially better quality of satisfaction.
  • The robustness-based policy exhibited faster convergence and more directed search behavior, as it received partial credit for trajectories close to satisfying the specification.
  • In contrast, the probability-maximizing policy relied on random search until it encountered a fully satisfying trajectory, leading to slower convergence when satisfying policies were rare.
  • Theoretical performance bounds confirm that the approximate policy can be made arbitrarily close to the true optimal policy by selecting an appropriate τ and approximation parameter.
  • Simulation results validate the method’s effectiveness on complex STL tasks involving repeated region visits and temporal constraints, with stable convergence within 6 minutes on average.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.