Fuzzing Deep-Learning Libraries via Automated Relational API Inference
Not on the map. Why?
Abstract (arXiv)
A growing body of research has been dedicated to DL model testing. However, there is still limited work on testing DL libraries, which serve as the foundations for building, training, and running DL models. Prior work on fuzzing DL libraries can only generate tests for APIs which have been invoked by documentation examples, developer tests, or DL models, leaving a large number of APIs untested. In this paper, we propose DeepREL, the first approach to automatically inferring relational APIs for more effective DL library fuzzing. Our basic hypothesis is that for a DL library under test, there may exist a number of APIs sharing similar input parameters and outputs; in this way, we can easily "borrow" test inputs from invoked APIs to test other relational APIs. Furthermore, we formalize the notion of value equivalence and status equivalence for relational APIs to serve as the oracle for effective bug finding. We have implemented DeepREL as a fully automated end-to-end relational API inference and fuzzing technique for DL libraries, which 1) automatically infers potential API relations based on API syntactic or semantic information, 2) synthesizes concrete test programs for invoking relational APIs, 3) validates the inferred relational APIs via representative test inputs, and finally 4) performs fuzzing on the verified relational APIs to find potential inconsistencies. Our evaluation on two of the most popular DL libraries, PyTorch and TensorFlow, demonstrates that DeepREL can cover 157% more APIs than state-of-the-art FreeFuzz. To date, DeepREL has detected 162 bugs in total, with 106 already confirmed by the developers as previously unknown bugs. Surprisingly, DeepREL has detected 13.5% of the high-priority bugs for the entire PyTorch issue-tracking system in a three-month period. Also, besides the 162 code bugs, we have also detected 14 documentation bugs (all confirmed).
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). First posted on arXiv 12 Jul 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 4; 2025: 3; 2026: 5.
16 papers.
Sort:
By area:
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 7
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 5
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 5
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systemscited by 4
- 2024On the Challenges of Fuzzing Techniques via Large Language Modelscited by 4
- 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
- 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernelscited by 1
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Frameworkcited by 0
- 2025Towards Reliable LLM-Driven Fuzz Testing: Vision and Road Aheadcited by 0
4 more
- 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
- 2026Test-Input Generation for Tensor Programs: What Actually Finds Kernel Bugscited by 0
- 2026Directed Neuro-Symbolic Stochastic Execution for Verification of Distributed Parallel AI Programscited by 0
- 2026Directed Neuro-Symbolic Stochastic Execution for Verification of Distributed Parallel AI Programs8 Aug 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 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
- 2025On the Mistaken Assumption of Interchangeable Deep Reinforcement Learning Implementations28 Mar 2025
- 2025Towards Reliable LLM-Driven Fuzz Testing: Vision and Road Ahead2 Mar 2025
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
- 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
- 2024On the Challenges of Fuzzing Techniques via Large Language Models1 Feb 2024
4 more
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systems10 Oct 2023
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Framework11 Jul 2023
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inference4 Feb 2023
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers26 Jul 2022
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 7
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 5
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 5
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systemscited by 4
- 2024On the Challenges of Fuzzing Techniques via Large Language Modelscited by 4
- 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debuggingcited by 2
- 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernelscited by 1
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Frameworkcited by 0
- 2025Towards Reliable LLM-Driven Fuzz Testing: Vision and Road Aheadcited by 0
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworkscited by 0
12 most cited of 14 All 14 (JSON)
- 2026Directed Neuro-Symbolic Stochastic Execution for Verification of Distributed Parallel AI Programs8 Aug 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
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworks19 Sep 2025
- 2025Towards Reliable LLM-Driven Fuzz Testing: Vision and Road Ahead2 Mar 2025
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
- 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
- 2024On the Challenges of Fuzzing Techniques via Large Language Models1 Feb 2024
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systems10 Oct 2023
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Framework11 Jul 2023
12 newest of 14 All 14 (JSON)