arrow
Return

Deep learning framework testing via hierarchical and heuristic model generation

delete2023-07-01
delete6
PRE
AI
Y
Yinglong Zou
H
Haofeng Sun
房春荣 (Chunrong Fang) *
J
Jiawei Liu
Z
Zhenping Zhang
DOI:10.1016/j.jss.2023.111681delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Deep learning frameworks are the foundation of deep learning model construction and inference. Many testing methods using deep learning models as test inputs are proposed to ensure the quality of deep learning frameworks. However, there are still critical challenges in model generation, model instantiation, and result analysis. To bridge the gap, we propose Ramos, a hierarchical heuristic deep learning framework testing method. To generate diversified models, we design a novel hierarchical structure to represent the building block of the model. Based on this structure, new models generated by the mutation method. To trigger more precision bugs in deep learning frameworks, design a heuristic method to increase the error triggered by models and guide the subsequent model generation. To reduce false positives, we propose an API mapping rule between different frameworks to aid model instantiation. Further, we design different test oracles for crashes and precision bugs respectively. We conduct experiments under three widely-used frameworks (TensorFlow, PyTorch, and MindSpore) to evaluate the effectiveness of Ramos. The results show that Ramos can effectively generate diversified models and detect more deep learning framework bugs, including crashes and precision bugs, with fewer false positives. Additionally, 14 of 15 are confirmed by developers.(c) 2023 Elsevier Inc. All rights reserved.
Keywords:
Software testing
Deep learning framework
Hierarchical and heuristic model
generation
Precision bug

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.4K
Citations:
8.4K

Organization

N
nanjing university
Scholars:
7.8W
Papers: 5.6W
Citations: 87