Software Engineering
New approach learns to adapt formal specifications when real-world behavior deviates
Researchers propose a method to automatically modify GR(1) system specifications to handle unexpected environment behavior while preserving as many guarantees as possible.
Formal verification tools like reactive synthesis generate controllers guaranteed to work correctly under specified conditions. However, systems built this way face a vulnerability: when the real world behaves differently than assumed in the specification, those guarantees evaporate. A new paper offers a solution to this fundamental gap.
The core problem#
Reactive synthesis—the automated generation of correct-by-construction controllers—relies on formal specifications like GR(1), an assume-guarantee framework that enables efficient synthesis. Controllers built from GR(1) specs work well when the environment behaves as predicted. But the moment an assumption is violated, the system's guarantees no longer hold, potentially causing failures in deployed applications.
A learning-based adaptation strategy#
Researchers propose using oracle-guided inductive synthesis to automatically adapt specifications when assumption violations occur. Rather than leaving the controller broken, the method modifies the specification to align with the observed behavior while minimizing damage to the original system guarantees. The approach generates multiple candidate solutions, then uses a preference criterion focused on robustness to select the best adaptation.
What makes it practical#
The methodology is designed to degrade guarantees as little as possible while maintaining realisability—ensuring a valid controller can still be synthesized. Notably, in their case studies, the researchers discovered adaptations that preserved the entire original set of guarantees, suggesting the technique may often find solutions that don't sacrifice functionality.
This work bridges the gap between the idealized world of formal verification and the messiness of real-world deployment, offering controllers that can learn and adapt when reality doesn't match the specification.