A general framework for verification and control of dynamical models via certificate synthesis

Alec Edwards, Andrea Peruffo, Alessandro Abate

TL;DR

This paper introduces a unified framework for formally verifying and controlling complex dynamical systems. By leveraging neural networks for candidate controllers and certificates, and using SMT solvers for formal guarantees, they enable robust synthesis of safe and stable system behaviors. This work significantly advances the field of safe learning for control by providing a general, automated approach to complex specifications.

What Problem Does This Paper Address?

Designing controllers for complex, nonlinear dynamical systems that guarantee specific behaviors (like safety or stability) is a notoriously difficult problem. Traditional methods often rely on manual design or are limited to simpler system models. While recent advances use machine learning (especially neural networks) to propose candidate control and safety functions (certificates), ensuring these are provably correct has been a major challenge. This paper tackles the need for an automated, general, and formally guaranteed method to synthesize both controllers and their corresponding safety certificates for a wide range of dynamical models and specifications.

Methods

The core of this work is a Counterexample-Guided Inductive Synthesis (CEGIS) framework, building upon the existing Fossil tool. Here's how it works:

  • Learner: This component uses neural networks as flexible templates for both the controller (mapping states to control inputs) and the certificate (a function that proves a property holds). The learner is trained using tailored loss functions that penalize violations of the desired properties. A novel "controller loss" is introduced to encourage convergence towards an equilibrium point, improving robustness.
  • Verifier: This component uses Satisfiability Modulo Theories (SMT) solvers (specifically Z3 and dReal) to formally check if the synthesized controller and certificate satisfy the required conditions. If a violation is found (a "counterexample"), it's fed back to the learner to refine the controller and certificate.
  • Translator & Consolidator: These components enhance the CEGIS loop by converting neural network representations into symbolic forms for the verifier and by generating more informative counterexamples to guide the learner more effectively.

The framework unifies various properties like stability, safety, reachability, and combinations thereof (e.g., "Stable While Avoid") under a single, modular approach.

Datasets

The paper does not explicitly mention training datasets. Instead, it focuses on generating and using sampled data points from the state space of the dynamical models for training the neural networks and for the CEGIS loop. The benchmarks used for evaluation are drawn from existing literature and are described in detail in Appendix C.

Key Insights and Ideas

  • Unified Framework for Diverse Properties: The paper demonstrates that a wide range of control properties (stability, safety, reachability, and their combinations) can be unified under a single framework using "arrive," "avoid," and "remain" labels. This modularity simplifies synthesis.
  • Neural Networks as Flexible Templates: Using neural networks for both controllers and certificates allows for handling complex, nonlinear dynamics and specifications that are intractable for traditional polynomial methods.
  • SMT Solvers for Formal Guarantees: The integration of SMT solvers is crucial for providing provable correctness, moving beyond heuristic or approximate methods.
  • Novel Controller Loss for Convergence: The introduction of a specific loss term for controllers significantly improves the robustness and efficiency of synthesizing controllers that drive systems towards desired equilibrium points.
  • CEGIS as a Powerful Synthesis Engine: The CEGIS loop, enhanced with better communication between components, proves highly effective for synthesizing complex controllers and certificates.

Key Results

  • The proposed framework, implemented as Fossil 2.0, was tested on 26 benchmarks, demonstrating its ability to verify a wide range of properties.
  • High Success Rates: The system achieved success rates consistently close to 100% across most benchmarks, with the lowest being 50% for a particularly challenging case involving a non-polynomial Lyapunov function and a non-convex initial set.
  • Improved Performance over Baseline: Compared to the previous version of Fossil (Fossil 1.0), Fossil 2.0 showed significant improvements in both success rate and synthesis time, attributed to the fine-tuned loss function and enhanced CEGIS architecture.
  • The framework successfully handled both polynomial and non-polynomial dynamics, showcasing its flexibility.

Limitations and Future Work

  • SMT Solver Scalability: The authors acknowledge that SMT solvers, while sound, do not generally scale well to high-dimensional problems. This is a shared limitation with other SMT-based approaches.
  • Certificate Sufficiency, Not Necessity: The certificates provided are sufficient proofs, meaning if a certificate is found, the property holds. However, the framework does not guarantee that a certificate will be found if the property is satisfied (i.e., they are not necessarily complete).
  • Asymptotic Reachability: The current framework does not directly handle properties related to asymptotic convergence to limit cycles, which are common in dynamical systems.
  • Stochastic Models: The framework is currently designed for deterministic systems; extending it to stochastic models is a future direction.
  • Modular Synthesis of Nested Properties: The authors suggest exploring further the modular synthesis of more complex, nested properties.

Summary updated

BibTeX
@article{edwards2025general,
  author = {Alec Edwards and Andrea Peruffo and Alessandro Abate},
  title = {{A general framework for verification and control of dynamical models via certificate synthesis}},
  journal = {Annu. Rev. Control.},
  year = {2025},
  doi = {10.1016/j.arcontrol.2025.101028},
}
Figure