arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.03202cs.LGcs.SE
收藏

面向信息物理系统的测试生成器学习

Learning test generators for cyber-physical systems

Faculty of Science and Engineering(科学与工程学院);Åbo Akademi University(奥布学术大学)

Jarkko Peltomäki, Ivan Porres

AI总结:

针对信息物理系统运行时验证现有方法仅能生成单个反例的问题,提出WOGAN算法,通过迭代训练Wasserstein生成对抗网络自动构建测试生成器,可生成效果媲美SOTA、多样性堪比均匀随机采样的多反例测试用例。

摘要:

信息物理系统的黑盒运行时验证方法可用于发现输入输出为时变信号、正确性需求由时序逻辑规约的系统中的错误。现有方法(如需求证伪)通常聚焦于找到单个作为系统正确性反例的输入。本文研究如何构建能为单个需求生成多个多样化反例的测试生成器,多个反例可揭示不同输入条件下的系统故障,支撑故障的根因分析。\n 我们提出WOGAN算法以自动构建此类测试生成器。该算法通过迭代训练Wasserstein生成对抗网络(Wasserstein generative adversarial network),对反例集合上均匀分布的目标分布进行建模。WOGAN是一种训练生成模型的算法,训练得到的生成模型可作为运行时验证的测试生成器,训练过程在线执行,无需预存模型或数据集。我们还提出了评估此类测试生成器的准则。\n 我们在多个知名问题(包括ARCH-COMP证伪基准)上评估了训练得到的生成器。实验结果表明,由WOGAN算法训练的生成器与最先进的需求证伪算法效果相当,同时生成的测试的多样性与均匀随机采样的样本相当。我们得出结论:WOGAN是一种可行的自动生成测试生成器的方法,这些测试生成器能够为信息物理系统的运行时验证生成多个多样化的反例。

英文摘要:

Black-box runtime verification methods for cyber-physical systems can be used to discover errors in systems whose inputs and outputs are expressed as signals over time and their correctness requirements are specified in a temporal logic. Existing methods, such as requirement falsification, often focus on finding a single input that is a counterexample to system correctness. In this paper, we study how to create test generators that can produce multiple and diverse counterexamples for a single requirement. Several counterexamples expose system failures in varying input conditions and support the root cause analysis of the faults. We present the WOGAN algorithm to create such test generators automatically. The algorithm works by training iteratively a Wasserstein generative adversarial network that models the target distribution of the uniform distribution on the set of counterexamples. WOGAN is an algorithm that trains generative models that act as test generators for runtime verification. The training is performed online without the need for a previous model or dataset. We also propose criteria to evaluate such test generators. We evaluate the trained generators on several well-known problems including the ARCH-COMP falsification benchmarks. Our experimental results indicate that generators trained by the WOGAN algorithm are as effective as state-of-the-art requirement falsification algorithms while producing tests that are as diverse as a sample from uniform random sampling. We conclude that WOGAN is a viable method to produce test generators automatically and that these test generators can generate multiple and diverse counterexamples for the runtime verification of cyber-physical systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑