arXiv:2410.03202cs.LGcs.SE2024-10被引 2

用AI自动生成多样测试用例,助力系统故障定位

Learning test generators for cyber-physical systems

  • 基于对抗生成网络训练测试生成器,自动产出多种反例
  • 在多个基准测试中效果媲美顶尖算法,且样本多样性接近随机采样
  • 适合需要批量验证与根因分析的复杂系统测试场景

针对具有时序信号输入输出的网络物理系统,黑盒运行时验证方法可用于发现错误。现有方法如需求证伪多聚焦于寻找单一反例。本文提出WOGAN算法,自动构建能生成多个、多样化反例的测试生成器。该算法通过迭代训练一个沃尔瑟斯坦生成对抗网络,建模反例集合上的均匀分布。训练过程在线进行,无需预训练模型或数据集。我们还提出了评估测试生成器的标准。在ARCH-COMP等经典证伪基准上评估表明,经WOGAN训练的生成器在有效性上不逊于当前最优算法,且生成测试的多样性与均匀随机采样相当。结论表明,WOGAN是自动生成测试生成器的有效方法,可为运行时验证提供多样的反例支持。

原文摘要 · Abstract (English)

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.

测试生成对抗生成系统验证

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。