DeepHunter: A Coverage-Guided Fuzz Testing Framework for Deep Neural Networks

被引:273
|
作者
Xie, Xiaofei [1 ]
Ma, Lei [2 ]
Juefei-Xu, Felix [3 ]
Xue, Minhui [4 ]
Chen, Hongxu [1 ]
Liu, Yang [1 ,5 ]
Zhao, Jianjun [2 ]
Li, Bo [6 ]
Yin, Jianxiong [7 ]
See, Simon [7 ]
机构
[1] Nanyang Technol Univ, Singapore, Singapore
[2] Kyushu Univ, Fukuoka, Fukuoka, Japan
[3] Carnegie Mellon Univ, Pittsburgh, PA 15213 USA
[4] Univ Adelaide, Adelaide, SA, Australia
[5] Zhejiang Sci Tech Univ, Hangzhou, Zhejiang, Peoples R China
[6] Univ Illinois, Urbana, IL USA
[7] NVIDIA AI Tech Ctr, Singapore, Singapore
基金
新加坡国家研究基金会;
关键词
Deep learning testing; metamorphic testing; coverage-guided fuzzing;
D O I
10.1145/3293882.3330579
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The past decade has seen the great potential of applying deep neural network (DNN) based software to safety-critical scenarios, such as autonomous driving. Similar to traditional software, DNNs could exhibit incorrect behaviors, caused by hidden defects, leading to severe accidents and losses. In this paper, we propose DeepHunter, a coverage-guided fuzz testing framework for detecting potential defects of general-purpose DNNs. To this end, we first propose a metamorphic mutation strategy to generate new semantically preserved tests, and leverage multiple extensible coverage criteria as feedback to guide the test generation. We further propose a seed selection strategy that combines both diversity-based and recency-based seed selection. We implement and incorporate 5 existing testing criteria and 4 seed selection strategies in DeepHunter. Large-scale experiments demonstrate that (1) our metamorphic mutation strategy is useful to generate new valid tests with the same semantics as the original seed, by up to a 98% validity ratio; (2) the diversity-based seed selection generally weighs more than recency-based seed selection in boosting the coverage and in detecting defects; (3) DeepHunter outperforms the state of the arts by coverage as well as the quantity and diversity of defects identified; (4) guided by corner-region based criteria, DeepHunteris useful to capture defects during the DNN quantization for platform migration.
引用
收藏
页码:146 / 157
页数:12
相关论文
共 50 条
  • [31] Validity Matters: Uncertainty-Guided Testing of Deep Neural Networks
    Jiang, Zhouxian
    Li, Honghui
    Wang, Rui
    Tian, Xuetao
    Liang, Ci
    Yan, Fei
    Zhang, Junwen
    Liu, Zhen
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2024, 34 (08):
  • [32] ARM-AFL: Coverage-Guided Fuzzing Framework for ARM-Based IoT Devices
    Fan, Rong
    Pan, Jianfeng
    Huang, Shaomang
    APPLIED CRYPTOGRAPHY AND NETWORK SECURITY WORKSHOPS, ACNS 2020, 2020, 12418 : 239 - 254
  • [33] A White-Box Testing for Deep Neural Networks Based on Neuron Coverage
    Yu, Jing
    Duan, Shukai
    Ye, Xiaojun
    IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, 2023, 34 (11) : 9185 - 9197
  • [34] CGFuzzer: A Fuzzing Approach Based on Coverage-Guided Generative Adversarial Networks for Industrial IoT Protocols
    Yu, Zhenhua
    Wang, Haolu
    Wang, Dan
    Li, Zhiwu
    Song, Houbing
    IEEE INTERNET OF THINGS JOURNAL, 2022, 9 (21) : 21607 - 21619
  • [35] Coverage-guided Intelligent Test Loop A Concept for Applying Instrumented Testing to Self-organising Systems
    Kantert, Jan
    Tomforde, Sven
    Weber, Susanne
    Mueller-Schloer, Christian
    ICINCO: PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON INFORMATICS IN CONTROL, AUTOMATION AND ROBOTICS, VOL 1, 2016, : 221 - 226
  • [36] RETRACTED: Software Security Testing through Coverage in Deep Neural Networks (Retracted Article)
    Fu, Weiyu
    Wang, Lixia
    SECURITY AND COMMUNICATION NETWORKS, 2022, 2022
  • [37] DEFT: A Novel Deep Framework for Fuzz Testing Performance Evaluation in NextG Vulnerability Detection
    Peng, Yifeng
    Li, Xinyi
    Arya, Sudhanshu
    Wang, Ying
    IEEE ACCESS, 2023, 11 : 116046 - 116064
  • [38] Feature-Guided Black-Box Safety Testing of Deep Neural Networks
    Wicker, Matthew
    Huang, Xiaowei
    Kwiatkowska, Marta
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, TACAS 2018, PT I, 2018, 10805 : 408 - 426
  • [39] A Study on Deep Neural Networks Framework
    Huang Yi
    Duan Xiusheng
    Sun Shiyu
    Chen Zhigang
    PROCEEDINGS OF 2016 IEEE ADVANCED INFORMATION MANAGEMENT, COMMUNICATES, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (IMCEC 2016), 2016, : 1519 - 1522
  • [40] Python']Python Coverage Guided Fuzzing for Deep Learning Framework
    Nie, Yuanping
    Xiao, Xiong
    Yang, Bing
    Li, Hanqing
    Luo, Long
    Yu, Hongfang
    Sun, Gang
    2024 INTERNATIONAL CONFERENCE ON ELECTRONIC ENGINEERING AND INFORMATION SYSTEMS, EEISS 2024, 2024, : 1 - 6