arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.00842cs.SE
收藏

面向深度学习编译器的有效随机测试生成

Effective Random Test Generation for Deep Learning Compilers

Luyao Ren, ZiHeng Wang, Yingfei Xiong, Li Zhang, Guoyue Jiang, Tao Xie

AI总结:

本文提出名为Isra的新型随机测试方法,通过特定领域的无回溯约束求解器生成满足语义规范的深度学习模型作为测试输入,在TVM、Glow和SophGo编译器中有效发现24个未知错误。

摘要:

深度学习编译器有助于解决在多种类型的硬件上部署深度学习模型的困难。测试深度学习编译器至关重要,因为它们影响着无数使用它们进行模型优化和部署的AI应用。为了测试深度学习编译器,编译器测试实践中普遍使用的测试方法——随机测试,面临着生成语义有效测试输入的挑战,即满足语义模型规范(简称语义规范)的深度学习模型。为了应对这一挑战,本文提出了一种名为Isra的新方法,包括一个特定领域的约束求解器,该求解器无需回溯即可解决来自语义规范的约束。我们实现并将我们的方法应用于三种流行的现实世界深度学习编译器,包括TVM、Glow和一个名为SophGo的商业编译器。评估结果表明,在构建用于编译器错误检测的有效测试输入方面,Isra比最先进的方法和基线方法更有效,并且Isra成功在三个编译器的已发布版本中发现了24个以前未知的错误。这些结果表明了Isra的有效性和实用价值。

英文摘要:

Deep learning compilers help address the difficulties of deploying deep learning models on diverse types of hardware. Testing deep learning compilers is highly crucial, because they are impacting countless AI applications that use them for model optimization and deployment. To test deep learning compilers, random testing, the testing method popularly used for compiler testing practices, faces the challenge of generating semantically valid test inputs, i.e., deep learning models that satisfy the semantic model specifications (in short as semantic specifications). To tackle this challenge, in this paper, we propose a novel approach named Isra, including a domain-specific constraint solver that resolves the constraints from the semantic specifications without backtracking. We implement and apply our approach to three popular real-world deep learning compilers including TVM, Glow, and a commercial compiler named SophGo. The evaluation results show that Isra is more effective than the state-of-the-art approaches and the baseline approaches on constructing valid test inputs for compiler-bug detection, and Isra successfully finds 24 previously unknown bugs in released versions of the three compilers. These results indicate Isra's effectiveness and practical value.

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

↑