Deep learning framework testing via hierarchical and heuristic model generation

被引:3
|
作者
Zou, Yinglong
Sun, Haofeng
Fang, Chunrong [1 ]
Liu, Jiawei
Zhang, Zhenping
机构
[1] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing 210093, Peoples R China
基金
中国国家自然科学基金;
关键词
Software testing; Deep learning framework; Hierarchical and heuristic model; generation; Precision bug;
D O I
10.1016/j.jss.2023.111681
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页数:13
相关论文
共 50 条
  • [21] Learning Trajectories for Visual-Inertial System Calibration via Model-based Heuristic Deep Reinforcement Learning
    Chen, Le
    Ao, Yunke
    Tschopp, Florian
    Cramariuc, Andrei
    Breyer, Michel
    Chung, Jen Jen
    Siegwart, Roland
    Cadena, Cesar
    CONFERENCE ON ROBOT LEARNING, VOL 155, 2020, 155 : 1312 - 1325
  • [22] Hierarchical transfer learning for deep learning velocity model building
    Simon, Jerome
    Fabien-Ouellet, Gabriel
    Gloaguen, Erwan
    Khurjekar, Ishan
    GEOPHYSICS, 2023, 88 (01) : R79 - R93
  • [23] SENSOR BASED DANCE COHERENT ACTION GENERATION MODEL USING DEEP LEARNING FRAMEWORK
    Jiang, Hanzhen
    Yan, Yingdong
    SCALABLE COMPUTING-PRACTICE AND EXPERIENCE, 2024, 25 (02): : 1073 - 1090
  • [24] A hierarchical and regional deep learning architecture for image description generation
    Kinghorn, Philip
    Zhang, Li
    Shao, Ling
    PATTERN RECOGNITION LETTERS, 2019, 119 : 77 - 85
  • [25] Deep Learning Assisted Predict of Lung Cancer on Computed Tomography Images Using the Adaptive Hierarchical Heuristic Mathematical Model
    Yu, Heng
    Zhou, Zhiqing
    Wang, Qiming
    IEEE ACCESS, 2020, 8 : 86400 - 86410
  • [26] Model-hierarchical column generation and heuristic for the routing and wavelength assignment problem
    Christophe Duhamel
    Philippe Mahey
    Alexandre X. Martins
    Rodney R. Saldanha
    Mauricio C. de Souza
    4OR, 2016, 14 : 201 - 220
  • [27] Model-hierarchical column generation and heuristic for the routing and wavelength assignment problem
    Duhamel, Christophe
    Mahey, Philippe
    Martins, Alexandre X.
    Saldanha, Rodney R.
    de Souza, Mauricio C.
    4OR-A QUARTERLY JOURNAL OF OPERATIONS RESEARCH, 2016, 14 (02): : 201 - 220
  • [28] A deep learning framework for realistic robot motion generation
    Dong, Ran
    Chang, Qiong
    Ikuno, Soichiro
    NEURAL COMPUTING & APPLICATIONS, 2023, 35 (32): : 23343 - 23356
  • [29] A deep learning framework for realistic robot motion generation
    Ran Dong
    Qiong Chang
    Soichiro Ikuno
    Neural Computing and Applications, 2023, 35 : 23343 - 23356
  • [30] A Heuristic Intrusion Detection Approach Using Deep Learning Model
    Wu, Ching-seh
    Chen, Sam
    2023 INTERNATIONAL CONFERENCE ON INFORMATION NETWORKING, ICOIN, 2023, : 438 - 442