Large Language Models as Falsifiers for Cyber-Physical Systems
Ali ArjomandBigdeli, Jiawei Zhou, Stanley Bak
Abstract
Falsification searches for counterexamples to formal specifications in cyber-physical systems (CPS). With specifications written in Signal Temporal Logic (STL), falsification can be formulated as a robustness optimization problem, traditionally tackled with black-box search algorithms. In parallel, large language models (LLMs) have recently emerged as surprisingly effective optimizers when coupled with iterative prompting. In this work, we connect these ideas and introduce LLM-Falsifier, an LLM-based approach that falsifies specifications by minimizing the STL robustness degree. Beyond generic prompt-based optimization, our key idea is to expose the LLM to semantic information that is natural for language models but absent from standard numerical optimizers, including natural-language input and output names, output trajectories, and critical-time witnesses for the minimum robustness value. These additions enable smarter and more sample-efficient robustness search. On the ARCH-COMP falsification benchmarks, LLM-Falsifier is shown to outperform existing falsification tools based on a range of optimization paradigms, from surrogate-based and Bayesian optimization to search-based testing, on 14 of 21 specifications when measured by the average number of simulations required to find a counterexample.
Create a lesson
Related papers
Advances in Modeling Techniques for Ventricular Assist Devices: A Comprehensive Review and Future Directions
Muhammad Adel Yusuf, Nezar M. Alyazidi, Hamna Saleem et al.
Sparse One-Step-Ahead Optimal Control of Time-Varying Affine Opinion Networks: Tracking and Competitive Games
Gabriel Gentil, Amit Bhaya
The Small-Talk Effect in Practical Synchronization of Heterogeneous Oscillating Dynamics
Finn Voland, Vincent Schmidtke, Zonglin Liu et al.
Foldable Antenna Array in Space-Air-Ground Integrated Networks: Architectures and Applications
Jikang Deng, Ki-Hong Park, Mohamed-Slim Alouini
On unified asymmetric barrier Lyapunov functions
Susmitha T Rayabagi, Shashi Ranjan Kumar, Debasattam Pal et al.
Design of Economic Dispatch Schemes of An Isolated BESS Network Based on Distributed Discrete-time PI+Rest Consensus
Yalin Zhang, Zhongxin Liu, Zengqiang Chen