Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source
Not on the map. Why?
Abstract (arXiv)
Deep learning (DL) systems can make our life much easier, and thus are gaining more and more attention from both academia and industry. Meanwhile, bugs in DL systems can be disastrous, and can even threaten human lives in safety-critical applications. To date, a huge body of research efforts have been dedicated to testing DL models. However, interestingly, there is still limited work for testing the underlying DL libraries, which are the foundation for building, optimizing, and running DL models. One potential reason is that test generation for the underlying DL libraries can be rather challenging since their public APIs are mainly exposed in Python, making it even hard to automatically determine the API input parameter types due to dynamic typing. In this paper, we propose FreeFuzz, the first approach to fuzzing DL libraries via mining from open source. More specifically, FreeFuzz obtains code/models from three different sources: 1) code snippets from the library documentation, 2) library developer tests, and 3) DL models in the wild. Then, FreeFuzz automatically runs all the collected code/models with instrumentation to trace the dynamic information for each covered API, including the types and values of each parameter during invocation, and shapes of input/output tensors. Lastly, FreeFuzz will leverage the traced dynamic information to perform fuzz testing for each covered API. The extensive study of FreeFuzz on PyTorch and TensorFlow, two of the most popular DL libraries, shows that FreeFuzz is able to automatically trace valid dynamic information for fuzzing 1158 popular APIs, 9X more than state-of-the-art LEMON with 3.5X lower overhead than LEMON. To date, FreeFuzz has detected 49 bugs for PyTorch and TensorFlow (with 38 already confirmed by developers as previously unknown).
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Jan 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 4; 2023: 6; 2024: 8; 2025: 3; 2026: 6.
27 papers.
Sort:
By area:
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 63
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
- 2023KernelGPT: Enhanced Kernel Fuzzing via Large Language Modelscited by 17
- 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzingcited by 14
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 9
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 6
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2023Validating Multimedia Content Moderation Software via Semantic Fusioncited by 5
- 2024On the Challenges of Fuzzing Techniques via Large Language Modelscited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
15 more
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systemscited by 3
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concernscited by 3
- 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debuggingcited by 2
- 2024FuzzCoder: Byte-level Fuzzing Test via Large Language Modelcited by 2
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Trainingcited by 1
- 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernelscited by 1
- 2022A Retrospective on ICSE 2022cited by 0
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Frameworkcited by 0
- 2024Python Fuzzing for Trustworthy Machine Learning Frameworkscited by 0
- 2025On the Mistaken Assumption of Interchangeable Deep Reinforcement Learning Implementationscited by 0
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworkscited by 0
- 2026Where Did It Go Wrong? Capability-Oriented Failure Attribution for Vision-and-Language Navigation Agentscited by 0
- 2026Test-Input Generation for Tensor Programs: What Actually Finds Kernel Bugscited by 0
- 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backendcited by 0
- 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backend19 Sep 2026
- 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernels23 Jun 2026
- 2026Test-Input Generation for Tensor Programs: What Actually Finds Kernel Bugs23 Jun 2026
- 2026The Correctness Illusion in LLM-Generated GPU Kernels18 Jun 2026
- 2026Where Did It Go Wrong? Capability-Oriented Failure Attribution for Vision-and-Language Navigation Agents28 Apr 2026
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concerns25 Feb 2026
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworks19 Sep 2025
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Training10 Jun 2025
- 2025On the Mistaken Assumption of Interchangeable Deep Reinforcement Learning Implementations28 Mar 2025
- 2024FuzzCoder: Byte-level Fuzzing Test via Large Language Model3 Sep 2024
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
- 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzing11 Jun 2024
15 more
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debugging14 Apr 2024
- 2024Python Fuzzing for Trustworthy Machine Learning Frameworks19 Mar 2024
- 2024On the Challenges of Fuzzing Techniques via Large Language Models1 Feb 2024
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systems11 Jan 2024
- 2023KernelGPT: Enhanced Kernel Fuzzing via Large Language Models31 Dec 2023
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models24 Oct 2023
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systems10 Oct 2023
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Framework11 Jul 2023
- 2023Validating Multimedia Content Moderation Software via Semantic Fusion23 May 2023
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inference4 Feb 2023
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testing2 Aug 2022
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers26 Jul 2022
- 2022A Retrospective on ICSE 202226 Jul 2022
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutation21 Feb 2022
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 63
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
- 2023KernelGPT: Enhanced Kernel Fuzzing via Large Language Modelscited by 17
- 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzingcited by 14
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 9
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 6
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2023Validating Multimedia Content Moderation Software via Semantic Fusioncited by 5
- 2024On the Challenges of Fuzzing Techniques via Large Language Modelscited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
12 most cited of 26 All 26 (JSON)
- 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backend19 Sep 2026
- 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernels23 Jun 2026
- 2026Test-Input Generation for Tensor Programs: What Actually Finds Kernel Bugs23 Jun 2026
- 2026The Correctness Illusion in LLM-Generated GPU Kernels18 Jun 2026
- 2026Where Did It Go Wrong? Capability-Oriented Failure Attribution for Vision-and-Language Navigation Agents28 Apr 2026
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworks19 Sep 2025
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Training10 Jun 2025
- 2025On the Mistaken Assumption of Interchangeable Deep Reinforcement Learning Implementations28 Mar 2025
- 2024FuzzCoder: Byte-level Fuzzing Test via Large Language Model3 Sep 2024
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
- 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzing11 Jun 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
12 newest of 26 All 26 (JSON)