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 条
  • [1] CriticalFuzz: A critical neuron coverage-guided fuzz testing framework for neural networks
    Bai, Tongtong
    Huang, Song
    Huang, Yifan
    Wang, Xingya
    Xia, Chunyan
    Qu, Yubin
    Yang, Zhen
    INFORMATION AND SOFTWARE TECHNOLOGY, 2024, 172
  • [2] DLRegion: Coverage-guided fuzz testing of deep neural networks with region-based neuron selection strategies
    Tao, Chuanqi
    Tao, Yali
    Guo, Hongjing
    Huang, Zhiqiu
    Sun, Xiaobing
    INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 162
  • [3] Coverage-Guided Testing for Recurrent Neural Networks
    Huang, Wei
    Sun, Youcheng
    Zhao, Xingyu
    Sharp, James
    Ruan, Wenjie
    Meng, Jie
    Huang, Xiaowei
    IEEE TRANSACTIONS ON RELIABILITY, 2022, 71 (03) : 1191 - 1206
  • [4] Coverage-Guided Fuzz Testing for Cyber-Physical Systems
    Sheikhi, Sanaz
    Kim, Edward
    Duggirala, Parasara Sridhar
    Bak, Stanley
    2022 13TH ACM/IEEE INTERNATIONAL CONFERENCE ON CYBER-PHYSICAL SYSTEMS (ICCPS 2022), 2022, : 24 - 33
  • [5] INSTRCR: Lightweight instrumentation optimization based on coverage-guided fuzz testing
    Zhang, Cao
    Dong, Wei Yu
    Ren, Yu Zhu
    2019 IEEE 2ND INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATION ENGINEERING TECHNOLOGY (CCET), 2019, : 74 - 78
  • [6] Coverage-guided Fuzzing for Feedforward Neural Networks
    Xie, Xiaofei
    Chen, Hongxu
    Li, Yi
    Ma, Lei
    Liu, Yang
    Zhao, Jianjun
    34TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2019), 2019, : 1162 - 1165
  • [7] DeepRanger: Coverage-guided Deep Forest Testing Approach
    Cui Z.-Q.
    Xie R.-L.
    Chen X.
    Liu X.-L.
    Zheng L.-W.
    Ruan Jian Xue Bao/Journal of Software, 2023, 34 (05): : 2251 - 2267
  • [8] Fw-fuzz: A code coverage-guided fuzzing framework for network protocols on firmware
    Gao, Zicong
    Dong, Weiyu
    Chang, Rui
    Wang, Yisen
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2022, 34 (16):
  • [9] TensorFuzz: Debugging Neural Networks with Coverage-Guided Fuzzing
    Odena, Augustus
    Olsson, Catherine
    Andersen, David G.
    Goodfellow, Ian
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 97, 2019, 97
  • [10] CoCoFuzzing: Testing Neural Code Models With Coverage-Guided Fuzzing
    Wei, Moshi
    Huang, Yuchao
    Yang, Jinqiu
    Wang, Junjie
    Wang, Song
    IEEE TRANSACTIONS ON RELIABILITY, 2023, 72 (03) : 1276 - 1289