DocTer: Documentation Guided Fuzzing for Testing Deep Learning API Functions
Not on the map. Why?
Abstract (arXiv)
Input constraints are useful for many software development tasks. For example, input constraints of a function enable the generation of valid inputs, i.e., inputs that follow these constraints, to test the function deeper. API functions of deep learning (DL) libraries have DL specific input constraints, which are described informally in the free form API documentation. Existing constraint extraction techniques are ineffective for extracting DL specific input constraints. To fill this gap, we design and implement a new technique, DocTer, to analyze API documentation to extract DL specific input constraints for DL API functions. DocTer features a novel algorithm that automatically constructs rules to extract API parameter constraints from syntactic patterns in the form of dependency parse trees of API descriptions. These rules are then applied to a large volume of API documents in popular DL libraries to extract their input parameter constraints. To demonstrate the effectiveness of the extracted constraints, DocTer uses the constraints to enable the automatic generation of valid and invalid inputs to test DL API functions. Our evaluation on three popular DL libraries (TensorFlow, PyTorch, and MXNet) shows that the precision of DocTer in extracting input constraints is 85.4%. DocTer detects 94 bugs from 174 API functions, including one previously unknown security vulnerability that is now documented in the CVE database, while a baseline technique without input constraints detects only 59 bugs. Most (63) of the 94 bugs are previously unknown, 54 of which have been fixed or confirmed by developers after we report them. In addition, DocTer detects 43 inconsistencies in documents, 39 of which are fixed or confirmed.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). First posted on arXiv 2 Sep 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 2; 2023: 6; 2024: 6; 2025: 1; 2026: 6.
21 papers.
Sort:
By area:
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 6
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2026No Attack Required: Semantic Fuzzing for Specification Violations in Agent Skillscited by 5
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
- 2023Semantic-Based Neural Network Repaircited 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
- 2023What Kinds of Contracts Do ML APIs Need?cited by 2
9 more
- 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
- 2022ExAIS: Executable AI Semanticscited by 1
- 2025An Empirical Study of Bugs in Data Visualization Librariescited by 1
- 2026Operator-Aware Mixed-Precision Tolerance Calibration for Tensor Kernelscited by 1
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Frameworkcited by 0
- 2024Improving Performance of Commercially Available AI Products in a Multi-Agent Configurationcited by 0
- 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modulescited by 0
- 2026Test-Input Generation for Tensor Programs: What Actually Finds Kernel Bugscited by 0
- 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
- 2026No Attack Required: Semantic Fuzzing for Specification Violations in Agent Skills13 May 2026
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concerns25 Feb 2026
- 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modules15 Feb 2026
- 2025An Empirical Study of Bugs in Data Visualization Libraries18 Jun 2025
- 2024Improving Performance of Commercially Available AI Products in a Multi-Agent Configuration29 Oct 2024
- 2024FuzzCoder: Byte-level Fuzzing Test via Large Language Model3 Sep 2024
- 2024Are LLMs Correctly Integrated into Software Systems?6 Jul 2024
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
9 more
- 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debugging14 Apr 2024
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models24 Oct 2023
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systems10 Oct 2023
- 2023What Kinds of Contracts Do ML APIs Need?26 Jul 2023
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Framework11 Jul 2023
- 2023Semantic-Based Neural Network Repair12 Jun 2023
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inference4 Feb 2023
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testing2 Aug 2022
- 2022ExAIS: Executable AI Semantics20 Feb 2022
- 2026No Attack Required: Semantic Fuzzing for Specification Violations in Agent Skillscited by 5
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concernscited by 3
- 2024Improving Performance of Commercially Available AI Products in a Multi-Agent Configurationcited by 0
- 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modulescited by 0
- 2026No Attack Required: Semantic Fuzzing for Specification Violations in Agent Skills13 May 2026
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concerns25 Feb 2026
- 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modules15 Feb 2026
- 2024Improving Performance of Commercially Available AI Products in a Multi-Agent Configuration29 Oct 2024
- 2022ExAIS: Executable AI Semanticscited by 1
- 2022ExAIS: Executable AI Semantics20 Feb 2022
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2024Are LLMs Correctly Integrated into Software Systems?6 Jul 2024
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 6
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
- 2023Semantic-Based Neural Network Repaircited by 3
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systemscited by 3
- 2023What Kinds of Contracts Do ML APIs Need?cited by 2
- 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
- 2025An Empirical Study of Bugs in Data Visualization Librariescited by 1
12 most cited of 15 All 15 (JSON)
- 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
- 2025An Empirical Study of Bugs in Data Visualization Libraries18 Jun 2025
- 2024FuzzCoder: Byte-level Fuzzing Test via Large Language Model3 Sep 2024
- 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
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models24 Oct 2023
- 2023Test & Evaluation Best Practices for Machine Learning-Enabled Systems10 Oct 2023
- 2023What Kinds of Contracts Do ML APIs Need?26 Jul 2023
- 2023ConFL: Constraint-guided Fuzzing for Machine Learning Framework11 Jul 2023
12 newest of 15 All 15 (JSON)