Publication Type
Conference Proceeding Article
Version
publishedVersion
Publication Date
7-2019
Abstract
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, DeepHunter is useful to capture defects during the DNN quantization for platform migration.
Discipline
OS and Networks | Software Engineering
Research Areas
Software and Cyber-Physical Systems
Publication
Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, Beijing, China, 2019 July 15-19
First Page
146
Last Page
157
ISBN
9781450362245
Identifier
10.1145/3293882.3330579
Publisher
Association for Computing Machinery
City or Country
Beijing, China
Citation
XIE, Xiaofei; MA, Lei; JUEFEI-XU, Felix; XUE, Minhui; CHEN, Hongxu; LIU, Yang; ZHAO, Jianjun; LI, Bo; YIN, Jianxiong; and SEE, Simon.
DeepHunter: A coverage-guided fuzz testing framework for deep neural networks. (2019). Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, Beijing, China, 2019 July 15-19. 146-157.
Available at: https://ink.library.smu.edu.sg/sis_research/7064
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.