Effective Random Test Generation for Deep Learning Compilers

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ren, Luyao, Wang, ZiHeng, Xiong, Yingfei, Zhang, Li, Jiang, Guoyue, Xie, Tao
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913625746178048
author Ren, Luyao
Wang, ZiHeng
Xiong, Yingfei
Zhang, Li
Jiang, Guoyue
Xie, Tao
author_facet Ren, Luyao
Wang, ZiHeng
Xiong, Yingfei
Zhang, Li
Jiang, Guoyue
Xie, Tao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2302_00842
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Effective Random Test Generation for Deep Learning Compilers
Ren, Luyao
Wang, ZiHeng
Xiong, Yingfei
Zhang, Li
Jiang, Guoyue
Xie, Tao
Software Engineering
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.
title Effective Random Test Generation for Deep Learning Compilers
topic Software Engineering
url https://arxiv.org/abs/2302.00842