arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.16335cs.SEcs.LG
收藏

一种用于自动化软件测试的生成式神经网络框架

A Generative Neural Network Framework for Automated Software Testing

Leonid Joffe, David J. Clark

摘要:

基于搜索的软件测试(SBST)是一种流行的自动化测试技术,它使用反馈机制来搜索软件中的错误。尽管它很受欢迎,但它在设计、构建和解释反馈方面存在根本性的挑战。近年来,神经网络(NN)在广泛的任务中非常受欢迎。我们认为,它们可以解决共同的SBST方法所固有的许多问题。不幸的是,神经网络需要大量具有代表性的训练数据集。在这项工作中,我们提出了一个SBST框架的基础上,去卷积生成神经网络。它不仅保留了使NN适合SBST任务的有益品质,而且还产生了自己的训练数据,从而避免了获取限制NN使用的训练数据集的问题。我们通过一系列的实验证明,这种架构是可能的和实用的。它生成多样化的,合理的程序输入,同时探索程序行为的空间。它还创建了一个有意义的程序行为排序,并能够找到崩溃的执行。这一切都是在没有任何程序知识的情况下完成的。我们相信这个概念证明为SBST和神经网络的交叉点的未来工作开辟了新的方向。

英文摘要:

Search Based Software Testing (SBST) is a popular automated testing technique which uses a feedback mechanism to search for faults in software. Despite its popularity, it has fundamental challenges related to the design, construction and interpretation of the feedback. Neural Networks (NN) have been hugely popular in recent years for a wide range of tasks. We believe that they can address many of the issues inherent to common SBST approaches. Unfortunately, NNs require large and representative training datasets. In this work we present an SBST framework based on a deconvolutional generative neural network. Not only does it retain the beneficial qualities that make NNs appropriate for SBST tasks, it also produces its own training data which circumvents the problem of acquiring a training dataset that limits the use of NNs. We demonstrate through a series of experiments that this architecture is possible and practical. It generates diverse, sensible program inputs, while exploring the space of program behaviours. It also creates a meaningful ordering over program behaviours and is able to find crashing executions. This is all done without any prior knowledge of the program. We believe this proof of concept opens new directions for future work at the intersection of SBST and neural networks.

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

↑