arrow
Return

Effective random test generation for deep learning compilers

delete2025-08-18
delete0
PRE
AI
任
任路瑶 (Luyao Ren)
Z
Ziheng Wang
张莉 cover
张莉 (Li Zhang)
Y
Yingfei Xiong
Tao Xie cover
Tao Xie (Tao Xie) *
DOI:10.1007/s11432-023-4301-6delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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 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.
Keywords:
random testing
test generation
deep learning compilers
compiler testing
constraint solving

Journal

Science China Information Sciences cover
Science China Information Sciences
IF:
7.6
Papers:
4.9K
Citations:
8.9K

Organization

S
School of Computer Science
Scholars:
894
Papers: 427
Citations: 0
Cited Papers

Cited Papers

Principles of Constraint Programming
err
IF0
err2009-12-15
err0
PREAI
errKrzysztof Apt
errShare
errSave
Fuzzing Deep Learning Compilers with HirGen
err2023-07-13
err0
errOAAI
errHaoyang Ma; Qingchao Shen; Yongqiang Tian; Junjie Chen; Shing-Chi Cheung
errShare
errSave
Muffin
err2022-07-05
err0
PREAI
errJiazhen Gu; Xuchuan Luo; Yangfan Zhou; Xin Wang
errShare
errSave
Korat
err2002-07-01
err0
PREAI
errChandrasekhar Boyapati; Sarfraz Khurshid; Darko Marinov
errShare
errSave
researcher View more