NeuRI: Diversifying DNN Generation via Inductive Rule Inference
Open Access
- 30 November 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 657-669
Abstract
Deep Learning (DL) is prevalently used in various industries to improve decision-making and automate processes, driven by the ever-evolving DL libraries and compilers. The correctness of DL systems is crucial for trust in DL applications. As such, the recent wave of research has been studying the automated synthesis of test-cases (i.e., DNN models and their inputs) for fuzzing DL systems. However, existing model generators only subsume a limited number of operators, lacking the ability to pervasively model operator constraints. To address this challenge, we propose NeuRI, a fully automated approach for generating valid and diverse DL models composed of hundreds of types of operators. NeuRI adopts a three-step process: (i) collecting valid and invalid API traces from various sources; (ii) applying inductive program synthesis over the traces to infer the constraints for constructing valid models; and (iii) using hybrid model generation which incorporates both symbolic and concrete operators. Our evaluation shows that NeuRI improves branch coverage of TensorFlow and PyTorch by 24% and 15% over the state-of-the-art model-level fuzzers. NeuRI finds 100 new bugs for PyTorch and TensorFlow in four months, with 81 already fixed or confirmed. Of these, 9 bugs are labelled as high priority or security vulnerability, constituting 10% of all high-priority bugs of the period. Open-source developers regard error-inducing tests reported by us as "high-quality" and "common in practice".Keywords
All Related Versions
Funding Information
- NSF (National Science Foundation) (CCF-2131943,CCF-2141474)
This publication has 28 references indexed in Scilit:
- CRADLE: Cross-Backend Validation to Detect and Localize Bugs in Deep Learning Libraries2019
- A theory of formal synthesis via inductive learningActa Informatica, 2017
- Growing solver-aided languages with rosette2013
- TRANSITACM SIGPLAN Notices, 2013
- Finding and understanding bugs in C compilers2011
- CUTE2005
- DART2005
- Programming by demonstration1998
- Software unit test coverage and adequacyACM Computing Surveys, 1997
- An empirical study of the reliability of UNIX utilitiesCommunications of the ACM, 1990