NeuRI:通过归纳规则推断实现DNN生成的多样化
NeuRI: Diversifying DNN Generation via Inductive Rule Inference
AI总结:
NeuRI通过归纳规则推断和混合生成,自动化创建多样有效的DL模型,显著提升TensorFlow和PyTorch的覆盖率并发现大量新错误。
摘要:
深度学习(DL)广泛应用于各行业以改进决策和自动化流程,这得益于不断演进的DL库和编译器。DL系统的正确性对于DL应用的信任至关重要。因此,最近的研究浪潮聚焦于自动化合成测试用例(即DNN模型及其输入)以对DL系统进行模糊测试。然而,现有的模型生成器仅涵盖有限数量的算子,缺乏全面建模算子约束的能力。为应对这一挑战,我们提出NeuRI,一种全自动方法,用于生成由数百种算子类型组成的有效且多样的DL模型。NeuRI采用三步流程:(i)从多种来源收集有效和无效的API轨迹;(ii)对这些轨迹应用归纳程序合成,以推断构建有效模型的约束;(iii)使用结合符号和具体算子的混合模型生成。我们的评估显示,与最先进的模型级模糊测试器相比,NeuRI将TensorFlow和PyTorch的分支覆盖率分别提高了24%和15%。在四个月内,NeuRI为PyTorch和TensorFlow发现了100个新错误,其中81个已被修复或确认。其中,9个错误被标记为高优先级或安全漏洞,占该时期所有高优先级错误的10%。开源开发者认为我们报告的引发错误的测试用例“高质量”且“在实践中常见”。
英文摘要:
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".
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。