TL;DR
DocTer is a novel technique that extracts deep learning API input constraints from documentation to generate valid test inputs, leading to improved bug detection and security vulnerability identification.
Contribution
It introduces a new algorithm for automatically extracting DL-specific input constraints from API documentation, enhancing testing and bug detection capabilities.
Findings
Achieves 85.4% precision in constraint extraction.
Detects 94 bugs, including one CVE security vulnerability.
Identifies 43 documentation inconsistencies.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
