通过合成代理程序的视角发现AI控制系统的安全违规
Finding Safety Violations of AI-Enabled Control Systems through the Lens of Synthesized Proxy Programs
AI总结:
针对AI控制系统安全测试耗时且难以覆盖合取规范的问题,提出Synthify两阶段伪造框架,通过合成线性代理程序加速并采用ε-贪心与模拟退火算法,在8个系统上成功率提升83.5%,覆盖子规范多137.7%。
摘要:
鉴于现代AI控制系统的日益普及,确保其安全性和可靠性已成为软件测试中的关键任务。测试控制系统的一种普遍方法是伪造(falsification),其目的是利用优化算法找到一个导致控制系统违反正式安全规范的输入信号。然而,将伪造应用于AI控制系统面临两大挑战:(1)它要求系统执行大量候选测试输入,这可能非常耗时,尤其是对于具有许多参数的AI模型的系统;(2)多个安全需求通常被定义为合取规范,这使现有伪造方法难以全面覆盖。本文介绍了Synthify,一个为AI控制系统量身定制的伪造框架。我们的方法采用两阶段过程进行伪造。首先,Synthify合成一个实现一个或几个线性控制器的程序,作为AI控制器的代理。该代理程序模仿AI控制器的功能,但计算效率更高。然后,Synthify采用ε-贪心策略从合取安全规范中采样一个有前景的子规范。接着,它使用基于模拟退火的伪造算法来寻找控制系统对采样子规范的违规。为评估Synthify,我们将其与PSY-TaLiRo(一种最先进且工业强度的伪造工具)在8个公开可用的控制系统上进行比较。平均而言,在相同的伪造试验预算下,Synthify的伪造成功率比PSY-TaLiRo高83.5%。Synthify发现的安全违规也比PSY-TaLiRo发现的更多样化,覆盖的子规范多137.7%。
英文摘要:
Given the increasing adoption of modern AI-enabled control systems, ensuring their safety and reliability has become a critical task in software testing. One prevalent approach to testing control systems is falsification, which aims to find an input signal that causes the control system to violate a formal safety specification using optimization algorithms. However, applying falsification to AI-enabled control systems poses two significant challenges: (1)~it requires the system to execute numerous candidate test inputs, which can be time-consuming, particularly for systems with AI models that have many parameters, and (2)~multiple safety requirements are typically defined as a conjunctive specification, which is difficult for existing falsification approaches to comprehensively cover. This paper introduces Synthify, a falsification framework tailored for AI-enabled control systems. Our approach performs falsification in a two-phase process. At the start, Synthify synthesizes a program that implements one or a few linear controllers to serve as a proxy for the AI controller. This proxy program mimics the AI controller's functionality but is computationally more efficient. Then, Synthify employs the $ε$-greedy strategy to sample a promising sub-specification from the conjunctive safety specification. It then uses a Simulated Annealing-based falsification algorithm to find violations of the sampled sub-specification for the control system. To evaluate Synthify, we compare it to PSY-TaLiRo, a state-of-the-art and industrial-strength falsification tool, on 8 publicly available control systems. On average, Synthify achieves a 83.5% higher success rate in falsification compared to PSY-TaLiRo with the same budget of falsification trials. The safety violations found by Synthify are also more diverse than those found by PSY-TaLiRo, covering 137.7% more sub-specifications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。