temporal logic specification
Reward Machines for Signal Temporal Logic
Bozkurt, Alper Kamil, Zhang, Shangtong, Motai, Yuichi
Signal temporal logic (STL) provides a formal language for specifying real-time properties of real-valued observations, along with a quantitative robustness score for monitoring satisfaction. Control synthesis from STL specifications is of interest since manual controller design becomes infeasible as real-world systems grow in complexity. Moreover, many modern autonomous and AI-enabled systems lack accurate and complete system models, which makes optimization-based synthesis approaches unsuitable and motivates learning-based control. Prior work uses STL robustness scores as rewards in reinforcement learning (RL) to obtain control policies satisfying given specifications; however, robustness depends on execution history, leading to intractable state space expansion for general long-horizon specifications with arbitrarily nested temporal operators. This work introduces a novel automata-based approach that provides an efficient memory mechanism and associated Markovian rewards suitable for RL frameworks. Our approach constructs a timed alternating automaton from the given STL specifications, augments the state space with automaton locations and clock valuations, and derives rewards from the automaton acceptance condition. We empirically demonstrate that our approach learns policies that achieve higher robustness scores and satisfaction rates than those learned by existing approaches using robustness-based rewards.
Multi-Agent Temporal Logic Planning via Penalty Functions and Block-Coordinate Optimization
Vlahakis, Eleftherios E., Kordabad, Arash Bahari, Lindemann, Lars, Sopasakis, Pantelis, Soudjani, Sadegh, Dimarogonas, Dimos V.
Multi-agent planning under Signal Temporal Logic (STL) is often hindered by collaborative tasks that lead to computational challenges due to the inherent high dimensionality of the problem, preventing scalable synthesis with satisfaction guarantees. To address this, we formulate STL planning as an optimization program under multi-agent STL constraints and introduce a penalty-based unconstrained relaxation that can be efficiently solved via a Block-Coordinate Gradient Descent (BCGD) method, where each block corresponds to a single agent's decision variables, thereby mitigating complexity. By utilizing a quadratic penalty function defined via smooth STL semantics, we show that BCGD iterations converge to a stationary point of the penalized problem under standard regularity assumptions. To enforce feasibility, the BCGD solver is embedded within a two-layer optimization scheme: inner BCGD updates are performed for a fixed penalty parameter, which is then increased in an outer loop to progressively improve multi-agent STL robustness. The proposed framework enables scalable computations and is validated through various complex multi-robot planning scenarios.
Correct-by-synthesis reinforcement learning with temporal logic constraints
Wen, Min, Ehlers, Ruediger, Topcu, Ufuk
We consider a problem on the synthesis of reactive controllers that optimize some a priori unknown performance criterion while interacting with an uncontrolled environment such that the system satisfies a given temporal logic specification. We decouple the problem into two subproblems. First, we extract a (maximally) permissive strategy for the system, which encodes multiple (possibly all) ways in which the system can react to the adversarial environment and satisfy the specifications. Then, we quantify the a priori unknown performance criterion as a (still unknown) reward function and compute an optimal strategy for the system within the operating envelope allowed by the permissive strategy by using the so-called maximin-Q learning algorithm. We establish both correctness (with respect to the temporal logic specifications) and optimality (with respect to the a priori unknown performance criterion) of this two-step technique for a fragment of temporal logic specifications. For specifications beyond this fragment, correctness can still be preserved, but the learned strategy may be sub-optimal. We present an algorithm to the overall problem, and demonstrate its use and computational requirements on a set of robot motion planning examples.
Minimum Violation Control Synthesis on Cyber-Physical Systems under Attacks
Niu, Luyao, Fu, Jie, Clark, Andrew
Cyber-physical systems are conducting increasingly complex tasks, which are often modeled using formal languages such as temporal logic. The system's ability to perform the required tasks can be curtailed by malicious adversaries that mount intelligent attacks. At present, however, synthesis in the presence of such attacks has received limited research attention. In particular, the problem of synthesizing a controller when the required specifications cannot be satisfied completely due to adversarial attacks has not been studied. In this paper, we focus on the minimum violation control synthesis problem under linear temporal logic constraints of a stochastic finite state discrete-time system with the presence of an adversary. A minimum violation control strategy is one that satisfies the most important tasks defined by the user while violating the less important ones. We model the interaction between the controller and adversary using a concurrent Stackelberg game and present a nonlinear programming problem to formulate and solve for the optimal control policy. To reduce the computation effort, we develop a heuristic algorithm that solves the problem efficiently and demonstrate our proposed approach using a numerical case study.
Risk-Aware Rulebooks for Multi-Objective Trajectory Evaluation under Uncertainty
We present a risk-aware formalism for evaluating system trajectories in the presence of uncertain interactions between the system and its environment. The proposed formalism supports reasoning under uncertainty and systematically handles complex relationships among requirements and objectives, including hierarchical priorities and non-comparability. Rather than treating the environment as exogenous noise, we explicitly model how each system trajectory influences the environment and evaluate trajectories under the resulting distribution of environment responses. We prove that the formalism induces a preorder on the set of system trajectories, ensuring consistency and preventing cyclic preferences. Finally, we illustrate the approach with an autonomous driving example that demonstrates how the formalism enhances explainability by clarifying the rationale behind trajectory selection.
Learning from Imperfect Demonstrations via Temporal Behavior Tree-Guided Trajectory Repair
Puranic, Aniruddh G., Schirmer, Sebastian, Baras, John S., Belta, Calin
Learning robot control policies from demonstrations is a powerful paradigm, yet real-world data is often suboptimal, noisy, or otherwise imperfect, posing significant challenges for imitation and reinforcement learning. In this work, we present a formal framework that leverages Temporal Behavior Trees (TBT), an extension of Signal Temporal Logic (STL) with Behavior Tree semantics, to repair suboptimal trajectories prior to their use in downstream policy learning. Given demonstrations that violate a TBT specification, a model-based repair algorithm corrects trajectory segments to satisfy the formal constraints, yielding a dataset that is both logically consistent and interpretable. The repaired trajectories are then used to extract potential functions that shape the reward signal for reinforcement learning, guiding the agent toward task-consistent regions of the state space without requiring knowledge of the agent's kinematic model. We demonstrate the effectiveness of this framework on discrete grid-world navigation and continuous single and multi-agent reach-avoid tasks, highlighting its potential for data-efficient robot learning in settings where high-quality demonstrations cannot be assumed.
other comments in the paper if accepted
We appreciate the valuable comments from the reviewers. We will answer reviewers' questions from three aspects, i.e., In respond to Reviewer 5, this paper's major novelty is developing a new STL-based learning framework to Our method creates a practical way to ensure the logic rules' satisfaction in an end-to-end manner. Our approach achieves promising results on real city datasets, i.e., significantly We have carefully compared our work with all the related papers pointed out by the reviewers. Therefore, we also choose STL to express the model properties. Using STL to specify CPS properties is not our novelty.
Feasibility-aware Learning of Robust Temporal Logic Controllers using BarrierNet
Liu, Wenliang, Liu, Shuo, Xiao, Wei, Belta, Calin A.
Abstract--Control Barrier Functions (CBFs) have been usedformulated as an optimization problem in which the robustness to enforce safety and task specifications expressed in Signalmetric appears either in the objective or in the constraints. However, existing CBF-STL approaches These formulations have been tackled using Mixed Integer typically rely on fixed hyperparameters and per-step optimizaLinear Programming (MILP) [4], [5] as well as gradient-tion, which can lead to overly conservative behavior, infeasibility near tight input limits, and difficulty satisfying long-based optimization methods [6]-[8]. To address these limitations, we propose aapproaches require considerable computation, limiting their feasibility-aware learning framework that constructs trainable, practicality for real-time or online control. We introduce a unified robustness measure that jointly captures STL satisfaction, constraint fea-jectories [9]-[12]. CBFs have been extensively used in the sibility, and control-bound compliance, and propose a neuralcontrols community to guarantee safety by ensuring forward network architecture to generate control inputs that maximizeinvariance of a prescribed safe set [13], [14], and they can this robustness. The resulting controller guarantees STL satis-be combined with Control Lyapunov Functions (CLFs) to faction with strictly feasible HOCBF constraints and requires no manual tuning. Simulation results demonstrate that the proposedadditionally encode stability objectives. In both cases, the framework maintains high STL robustness under tight input CBF and CLF appear as inequality constraints on the control bounds and significantly outperforms fixed-parameter and non-input, and the resulting controllers are typically synthesized adaptive baselines in complex environments. Building on this foundation, the CBF framework has been extended I. INTRODUCTION to address higher relative-degree constraints [15], [16], mixed Autonomous and robotic systems are often required to meetrelative-degree constraints [17] and adaptive control [18], mission objectives that extend well beyond basic stability [19]. However, since the CBFs or hyperparameters involved or invariance requirements. In practical scenarios such asin CBFs are typically selected manually, poor selection can surveillance, for instance, an unmanned aircraft may needlead to excessive conservativeness, and the resulting QPs to periodically collect information from a designated area, may become infeasible due to conflicts between the CBF revisit a charging station for a minimum duration at regularconstraints and the input bounds. Although online adjustment intervals, and consistently steer clear of restricted airspace. Toof these hyperparameters can improve feasibility, it adds formally capture such time-and event-dependent requirements, computational overhead and compromises practicality for realtemporal logics--most notably Linear Temporal Logic (LTL) time applications [17], [20]-[22].
A*-based Temporal Logic Path Planning with User Preferences on Relaxed Task Satisfaction
Kamale, Disha, Yu, Xi, Vasile, Cristian-Ioan
In this work, we consider the problem of planning for temporal logic tasks in large robot environments. When full task compliance is unattainable, we aim to achieve the best possible task satisfaction by integrating user preferences for relaxation into the planning process. Utilizing the automata-based representations for temporal logic goals and user preferences, we propose an A*-based planning framework. This approach effectively tackles large-scale problems while generating near-optimal high-level trajectories. To facilitate this, we propose a simple, efficient heuristic that allows for planning over large robot environments in a fraction of time and search memory as compared to uninformed search algorithms. We present extensive case studies to demonstrate the scalability, runtime analysis as well as empirical bounds on the suboptimality of the proposed heuristic.
Motion Planning Under Temporal Logic Specifications In Semantically Unknown Environments
Taheri, Azizollah, Aksaray, Derya
This paper addresses a motion planning problem to achieve spatio-temporal-logical tasks, expressed by syntactically co-safe linear temporal logic specifications (scLTL\next), in uncertain environments. Here, the uncertainty is modeled as some probabilistic knowledge on the semantic labels of the environment. For example, the task is "first go to region 1, then go to region 2"; however, the exact locations of regions 1 and 2 are not known a priori, instead a probabilistic belief is available. We propose a novel automata-theoretic approach, where a special product automaton is constructed to capture the uncertainty related to semantic labels, and a reward function is designed for each edge of this product automaton. The proposed algorithm utilizes value iteration for online replanning. We show some theoretical results and present some simulations/experiments to demonstrate the efficacy of the proposed approach.