TL;DR
This paper introduces an algorithmic framework to automatically diagnose and repair Signal Temporal Logic (STL) specifications when they lead to "unrealizable" controller synthesis problems. By leveraging optimization solvers to identify conflicting constraints and applying minimal "slack" adjustments, the authors provide a way to pinpoint exactly why a system can't meet its requirements and how to fix the rules to make them feasible.
Introduction
In the design of complex cyber-physical systems—such as autonomous vehicles or smart grids—engineers utilize Signal Temporal Logic (STL) to define rigorous safety and performance requirements. STL allows for the expression of time-sensitive rules, such as "the vehicle must maintain a 2-meter safety buffer and come to a complete stop within 3 seconds of a hazard detection."
While automated synthesis tools can generate controllers (e.g., via Model Predictive Control) from these rules, they frequently encounter "unrealizable" specifications. These occur when rules are inherently contradictory or when environmental assumptions are too restrictive. Traditionally, when synthesis fails, tools provide little feedback beyond a binary failure notification. This research addresses this gap by transforming a "No" into a diagnostic report and a suggested repair.
Methodology: Diagnosis and Repair
The core of the proposed framework treats the controller synthesis problem as a Mixed Integer Linear Program (MILP). When the solver determines the problem is infeasible, the framework initiates a two-stage process:
- Diagnosis: The system identifies an Irreducibly Inconsistent System (IIS)—the smallest set of mathematical constraints that cause the conflict. These low-level constraints are then mapped back to high-level STL predicates and specific time intervals, allowing the designer to see exactly which rules are clashing.
- Repair: To resolve the conflict, the algorithm formulates a "slack feasibility problem." By introducing slack variables to the conflicting predicates and minimizing their $l_1$-norm, the algorithm identifies the minimal parameter adjustments (e.g., slightly increasing a speed limit or relaxing a timing constraint) required to achieve realizability.
For scenarios involving adversarial environments, such as navigating traffic, the authors employ a Counterexample-Guided Inductive Synthesis (CEGIS) loop. This iterative process identifies worst-case environmental behaviors and adjusts system assumptions or guarantees until a robust solution is reached.
Experimental Evaluation
The framework was evaluated on three high-fidelity models representing diverse cyber-physical challenges:
- Autonomous Driving (Lane Change & Unprotected Left Turn): In an unprotected left turn scenario, the tool identified that original velocity bounds prevented safe navigation. It suggested increasing acceleration bounds from 1 to 3.5 $m/s^2$, enabling a safe trajectory.
- Aircraft Electric Power System: The algorithm localized a timing conflict where a bus remained unpowered for 160ms, exceeding a 100ms safety limit due to hardware delays. The tool suggested either upgrading hardware (reducing delay assumptions) or relaxing the safety requirement.
Key Insights
- Sparse Repairs: The use of the $l_1$-norm ensures that repairs are "sparse," meaning the algorithm changes as few parameters as possible to preserve the original design intent.
- The Contract Perspective: Unrealizability is often a result of weak environment assumptions rather than system flaws. The framework can suggest "tightening" assumptions as a valid repair strategy.
- Efficiency: Despite the NP-hard nature of MILP, the diagnosis and repair process for these complex systems typically completed within 2 seconds to 5 minutes, demonstrating practical viability for design-time debugging.
Conclusion
This framework provides a systematic way to bridge the gap between high-level logic and low-level optimization. By providing actionable feedback on infeasible specifications, it significantly reduces the manual effort required to debug complex system requirements. Future work aims to extend these techniques to suggest structural logic changes and improve scalability for even larger-scale systems.
Summary updated