mlsanityData to 7 Oct 2026

Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source

arXiv 2201.06589 ↗First posted 17 Jan 2022cs.SEcited by 27

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 4; 2023: 6; 2024: 8; 2025: 3; 2026: 6.

27 papers.

Sort:

By area:

  1. 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 63
  2. 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
  3. 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
  4. 2023KernelGPT: Enhanced Kernel Fuzzing via Large Language Modelscited by 17
  5. 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzingcited by 14
  6. 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 9
  7. 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 6
  8. 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
  9. 2023Validating Multimedia Content Moderation Software via Semantic Fusioncited by 5
  10. 2024On the Challenges of Fuzzing Techniques via Large Language Modelscited by 4
  11. 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
  12. 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
15 more
  1. 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
  2. 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systemscited by 3
  3. 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concernscited by 3
  4. 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debuggingcited by 2
  5. 2024FuzzCoder: Byte-level Fuzzing Test via Large Language Modelcited by 2
  6. 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Trainingcited by 1
  7. 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernelscited by 1
  8. 2022A Retrospective on ICSE 2022cited by 0
  9. 2023ConFL: Constraint-guided Fuzzing for Machine Learning Frameworkcited by 0
  10. 2024Python Fuzzing for Trustworthy Machine Learning Frameworkscited by 0
  11. 2025On the Mistaken Assumption of Interchangeable Deep Reinforcement Learning Implementationscited by 0
  12. 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworkscited by 0
  13. 2026Where Did It Go Wrong? Capability-Oriented Failure Attribution for Vision-and-Language Navigation Agentscited by 0
  14. 2026Test-Input Generation for Tensor Programs: What Actually Finds Kernel Bugscited by 0
  15. 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backendcited by 0