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 条
  • [41] A Deep Learning Model Generation Framework for Virtualized Multi-Access Edge Cache Management
    Thar, Kyi
    Oo, Thant Zin
    Tun, Yan Kyaw
    Kim, Do Hyeon
    Kim, Ki Tae
    Hong, Choong Seon
    IEEE ACCESS, 2019, 7 : 62734 - 62749
  • [42] A Novel Forecasting Model for Solar Power Generation by a Deep Learning Framework With Data Preprocessing and Postprocessing
    Phan, Quoc-Thang
    Wu, Yuan-Kang
    Phan, Quoc-Dung
    Lo, Hsin-Yen
    IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, 2023, 59 (01) : 220 - 231
  • [43] A Hierarchical Robot Learning Framework for Manipulator Reactive Motion Generation via Multi-Agent Reinforcement Learning and Riemannian Motion Policies
    Wang, Yuliu
    Sagawa, Ryusuke
    Yoshiyasu, Yusuke
    IEEE ACCESS, 2023, 11 : 126979 - 126994
  • [44] DEEPJUDGE: A Testing Framework for Copyright Protection of Deep Learning Models
    Chen, Jialuo
    Sun, Youcheng
    Wang, Jingyi
    Cheng, Peng
    Ma, Xingjun
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS, ICSE-COMPANION, 2023, : 64 - 67
  • [45] Hierarchical Gait Generation for Modular Robots Using Deep Reinforcement Learning
    Wang, Jiayu
    Hu, Chuxiong
    Zhu, Yu
    2021 IEEE INTERNATIONAL CONFERENCE ON MECHATRONICS (ICM), 2021,
  • [46] A Deep Learning Model for Source Code Generation
    Tiwang, Raymond
    Oladunni, Timothy
    Xu, Weifeng
    2019 IEEE SOUTHEASTCON, 2019,
  • [47] Federated learning aided breast cancer detection with intelligent Heuristic-based deep learning framework
    Kumbhare, Savita
    Kathole, Atul B.
    Shinde, Swati
    BIOMEDICAL SIGNAL PROCESSING AND CONTROL, 2023, 86
  • [48] A Deep Learning Framework for Generation and Analysis of Driving Scenario Trajectories
    Demetriou A.
    Alfsvåg H.
    Rahrovani S.
    Haghir Chehreghani M.
    SN Computer Science, 4 (3)
  • [49] A Hindi Image Caption Generation Framework Using Deep Learning
    Mishra, Santosh Kumar
    Dhir, Rijul
    Saha, Sriparna
    Bhattacharyya, Pushpak
    ACM TRANSACTIONS ON ASIAN AND LOW-RESOURCE LANGUAGE INFORMATION PROCESSING, 2021, 20 (02)
  • [50] StyleTrendGAN: A Deep Learning Generative Framework for Fashion Bag Generation
    Della Sciucca, Laura
    Balloni, Emanuele
    Mameli, Marco
    Frontoni, Emanuele
    Zingaretti, Primo
    Paolanti, Marina
    IMAGE ANALYSIS AND PROCESSING, ICIAP 2022 WORKSHOPS, PT II, 2022, 13374 : 191 - 202