机器学习的冒烟测试:发现严重缺陷的简单测试
Smoke Testing for Machine Learning: Simple Tests to Discover Severe Defects
摘要:
机器学习如今是软件应用程序中数据分析的标准技术。软件工程师需要适用于这些新型系统的质量保证技术。在这篇文章中,我们讨论了几十年来一直是教科书一部分的标准软件测试技术是否也适用于测试机器学习软件的问题。具体地说,我们试图确定通用的和简单的烟雾测试,这些测试可以用来断言基本函数可以在不崩溃的情况下执行。我们发现,我们可以得到这样的测试使用类似的技术等价类和边界值分析。此外,我们发现这些概念也可以应用于超参数,以进一步提高烟雾测试的质量。尽管我们的方法几乎是微不足道的,但我们能够在我们测试的所有三个机器学习库中找到错误,并在三个库中的两个库中找到严重错误。这表明,常见的软件测试技术在机器学习时代仍然有效,并且考虑如何使它们适应这种新的环境可以帮助发现和防止严重的错误,即使在成熟的机器学习库中。
英文摘要:
Machine learning is nowadays a standard technique for data analysis within software applications. Software engineers need quality assurance techniques that are suitable for these new kinds of systems. Within this article, we discuss the question whether standard software testing techniques that have been part of textbooks since decades are also useful for the testing of machine learning software. Concretely, we try to determine generic and simple smoke tests that can be used to assert that basic functions can be executed without crashing. We found that we can derive such tests using techniques similar to equivalence classes and boundary value analysis. Moreover, we found that these concepts can also be applied to hyperparameters, to further improve the quality of the smoke tests. Even though our approach is almost trivial, we were able to find bugs in all three machine learning libraries that we tested and severe bugs in two of the three libraries. This demonstrates that common software testing techniques are still valid in the age of machine learning and that considerations how they can be adapted to this new context can help to find and prevent severe bugs, even in mature machine learning libraries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。