GENCoG: A DSL-Based Approach to Generating Computation Graphs for TVM Testing

PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023(2023)

引用 0|浏览27
暂无评分
摘要
TVM is a popular deep learning (DL) compiler. It is designed for compiling DL models, which are naturally computation graphs, and as well promoting the efficiency of DL computation. State-of-the-art methods, such as Muffin and NNSmith, allow developers to generate computation graphs for testing DL compilers. However, these techniques are inefficient - their generated computation graphs are either type-invalid or inexpressive, and hence not able to test the core functionalities of a DL compiler. To tackle this problem, we propose GENCoG, a DSL-based approach to generating computation graphs for TVMtesting. GENCoG is composed of (1) GENCoGL, a domain-specific language for specifying type constraints of operators, and (2) an approach that concolically solves type constraints and incrementally generates computation graphs of high expressivity. We implement and evaluate GENCoG on TVM releases. Our results show that GENCoG is effective in generating valid and expressive computation graphs - all of the GENCoG-generated graphs pass type checking, a critical graph validation stage; letting the graphs' expressivity be measured by their vertex and edge diversities, GENCoG outperforms state-of-the-arts by achieving 1.65 similar to 6.93x in vertex diversity and 1.06 similar to 7.08x in edge diversity, respectively. Furthermore, GENCoG has detected 16 bugs in TVM v0.8 and v0.9, with 14 confirmed and 12 fixed.
更多
查看译文
关键词
Deep Learning Compiler,Computation Graph Generation,Constraint Solving
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要