Lune

FSE2023Top-tier venue

NeuRI: Diversifying DNN Generation via Inductive Rule Inference

Jiawei Liu, Jinjun Peng, Yuyao Wang, Lingming Zhang

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, for 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".

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

14 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source cites Deep learning library testing via effective model generation
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites Evaluating and Improving Hybrid Fuzzing
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites Deep learning library testing via effective model generation
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites Audee: Automated Testing for Deep Learning Frameworks
  • WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models cites Magicoder: Empowering Code Generation with OSS-Instruct
  • Evaluating and Improving Hybrid Fuzzing cites NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers
  • NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers cites Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source
  • NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers cites Deep learning library testing via effective model generation
  • NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers cites Audee: Automated Testing for Deep Learning Frameworks
  • Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models cites Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source
  • Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models cites NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers
  • Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models cites Deep learning library testing via effective model generation
  • Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models cites Audee: Automated Testing for Deep Learning Frameworks
  • Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilers cites NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers
  • Training with Confidence: Catching Silent Errors in Deep Learning Training with Automated Proactive Checks cites NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers
  • Training with Confidence: Catching Silent Errors in Deep Learning Training with Automated Proactive Checks cites Deep learning library testing via effective model generation
  • Training with Confidence: Catching Silent Errors in Deep Learning Training with Automated Proactive Checks cites Audee: Automated Testing for Deep Learning Frameworks
  • Magicoder: Empowering Code Generation with OSS-Instruct cites Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Magicoder: Empowering Code Generation with OSS-InstructYuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding et al.ICML 2024 · 246 citations
  2. WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language ModelsChenyuan Yang, Yinlin Deng, Runyu Lu, Jiayi Yao et al.OOPSLA 2024 · 74 citations
  3. Evaluating and Improving Hybrid FuzzingLing Jiang, Hengchen Yuan, Mingyuan Wu, Lingming Zhang et al.ICSE 2023 · 29 citations
  4. Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning CompilersSimin Chen, Jinjun Peng, Yixin He, Junfeng Yang et al.S&P 2026 · 11 citations
  5. Training with Confidence: Catching Silent Errors in Deep Learning Training with Automated Proactive ChecksYuxuan Jiang, Ziming Zhou, Boyu Xu, Beijie Liu et al.OSDI 2025 · 8 citations

Builds on15

  1. Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language ModelsYinlin Deng, Chunqiu Steven Xia, Haoran Peng, Chenyuan Yang et al.ISSTA 2023 · 253 citations
  2. Deep learning library testing via effective model generationZan Wang, Ming Yan, Junjie Chen, Shuang Liu et al.FSE 2020 · 165 citations
  3. Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open SourceAnjiang Wei, Yinlin Deng, Chenyuan Yang, Lingming ZhangICSE 2022 · 91 citations
  4. NNSmith: Generating Diverse and Valid Test Cases for Deep Learning CompilersJiawei Liu, Jinkun Lin, Fabian Ruffy, Cheng Tan et al.ASPLOS 2023 · 90 citations
  5. Audee: Automated Testing for Deep Learning FrameworksQianyu Guo, Xiaofei Xie, Yi Li, Xiaoyu Zhang et al.ASE 2020 · 83 citations

Related papers

  1. Fuzzing deep-learning libraries via automated relational API inferenceYinlin Deng, Chenyuan Yang, Anjiang Wei, Lingming ZhangFSE 2022 · 83 citations
  2. Your Fix Is My Exploit: Enabling Comprehensive DL Library API Fuzzing with Large Language ModelsKunpeng Zhang, Shuai Wang, Jitao Han, Xiaogang Zhu et al.ICSE 2025 · 6 citations
  3. Towards More Complete Constraints for Deep Learning Library Testing via Complementary Set Guided RefinementGwihwan Go, Chijin Zhou, Quan Zhang, Xiazijian Zou et al.ISSTA 2024 · 2 citations
  4. Fuzzing Automatic Differentiation in Deep-Learning LibrariesChenyuan Yang, Yinlin Deng, Jiayi Yao, Yuxing Tu et al.ICSE 2023 · 34 citations
  5. ACETest: Automated Constraint Extraction for Testing Deep Learning OperatorsJingyi Shi, Yang Xiao, Yuekang Li, Yeting Li et al.ISSTA 2023 · 24 citations
Dusk over the sea between two cliffs drawn in fine vertical lines