[Paper Review] Verification in the Loop: Correct-by-Construction Control Learning with Reach-avoid Guarantees
This paper proposes a closed-loop control learning framework that integrates formal verification into the design process to guarantee reach-avoid properties in safety-critical systems. By using reachable set computations to construct feedback metrics (geometric and Wasserstein distances), the method formulates a differentiable optimization problem and applies approximated gradient descent to learn controllers that are formally verified as safe and goal-reaching, outperforming baseline methods in convergence and safety rates.
In the current control design of safety-critical autonomous systems, formal verification techniques are typically applied after the controller is designed to evaluate whether the required properties (e.g., safety) are satisfied. However, due to the increasing system complexity and the fundamental hardness of designing a controller with formal guarantees, such an open-loop process of design-then-verify often results in many iterations and fails to provide the necessary guarantees. In this paper, we propose a correct-by-construction control learning framework that integrates the verification into the control design process in a closed-loop manner, i.e., design-while-verify. Specifically, we leverage the verification results (computed reachable set of the system state) to construct feedback metrics for control learning, which measure how likely the current design of control parameters can meet the required reach-avoid property for safety and goal-reaching. We formulate an optimization problem based on such metrics for tuning the controller parameters, and develop an approximated gradient descent algorithm with a difference method to solve the optimization problem and learn the controller. The learned controller is formally guaranteed to meet the required reach-avoid property. By treating verifiability as a first-class objective and effectively leveraging the verification results during the control learning process, our approach can significantly improve the chance of finding a control design with formal property guarantees. This is demonstrated via a set of experiments on both linear and non-linear systems that use model-based or neural network based controllers.
Motivation & Objective
- To address the limitations of the traditional open-loop design-then-verify approach in safety-critical control systems.
- To reduce iterative design cycles by embedding formal verification directly into the control learning process.
- To enable formal guarantees of reach-avoid properties (safety and goal-reaching) for both model-based and neural network-based controllers.
- To develop a feedback mechanism that leverages verification results (reachable sets) to guide controller parameter tuning.
- To improve convergence and safety performance compared to standard reinforcement learning and model-based control methods.
Proposed method
- The framework uses a verifier to compute over-approximated reachable sets of system states under controller parameters.
- Two feedback metrics are constructed: one based on geometric distance to unsafe and goal regions, and another using Wasserstein distance between state distributions.
- An optimization problem is formulated to minimize the feedback metrics, representing the likelihood of violating safety or missing the goal.
- An approximated gradient descent algorithm with a finite difference method is used to tune controller parameters iteratively.
- The process is applied to both linear controllers (e.g., LQR) and neural network-based controllers (e.g., DDPG), with verification performed at each step.
- A hybrid controller learning strategy is introduced to mitigate over-approximation issues in high-Lipschitz neural network controllers.
Experimental results
Research questions
- RQ1Can formal verification results be effectively used as feedback signals during control learning to improve safety guarantees?
- RQ2How can reachable set computations be leveraged to construct differentiable metrics for controller parameter optimization?
- RQ3Can a closed-loop design-while-verify framework achieve formal reach-avoid guarantees more reliably than open-loop design-then-verify?
- RQ4How does the choice of feedback metric (geometric vs. Wasserstein) affect convergence and safety performance?
- RQ5What are the trade-offs between verification tightness and computational cost in the learning loop?
Key findings
- The proposed method achieved 100% safe control and goal-reaching rates on both the linear ACC and non-linear Van der Pol oscillator systems, outperforming DDPG and LQR baselines.
- For the oscillator system, the method converged in 55–65 iterations (±13, ±4) with full safety and goal-reaching, while DDPG required 13.7K iterations and achieved only 79.2% goal-reaching with no formal verification.
- Controllers learned via the proposed method were formally verified as reach-avoid for both geometric and Wasserstein metrics, whereas DDPG controllers were not verified due to over-approximation issues.
- Tighter verification (e.g., 40 steps per step) increased computation time (115s per step) but improved accuracy, while looser verification (55 steps) reduced time (86s per step) but with less precision.
- The hybrid controller learning approach successfully mitigated over-approximation errors in high-Lipschitz neural network controllers by decomposing the reach-avoid task into avoidance and goal-approach phases.
- The framework demonstrated robustness across both linear and non-linear systems, with consistent performance across 5 independent runs, as shown by low standard deviation in convergence and performance metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.