Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries
Meiziniu Li, Dongze Li, Jianmeng Liu, Jialun Cao, Yongqiang Tian,, Shing-Chi Cheung

TL;DR
This paper introduces DLLens, an LLM-enhanced differential testing method for deep learning libraries, which improves counterpart synthesis and test input diversity, leading to more bug detection in TensorFlow and PyTorch.
Contribution
DLLens leverages LLMs for synthesizing API counterparts and guiding diverse test input generation, significantly improving differential testing effectiveness for DL libraries.
Findings
Synthesizes 1.84x more API counterparts than state-of-the-art
Covers 7.23% more branches in testing
Detects 1.88x more bugs, including 46 new bugs confirmed by developers
Abstract
Differential testing offers a promising strategy to alleviate the test oracle problem by comparing the test results between alternative implementations. However, existing differential testing techniques for deep learning (DL) libraries are limited by the key challenges of finding alternative implementations (called counterparts) for a given API and subsequently generating diverse test inputs. To address the two challenges, this paper introduces DLLens, an LLM-enhanced differential testing technique for DL libraries. To address the first challenge, DLLens incorporates an LLM-based counterpart synthesis workflow, with the insight that the counterpart of a given DL library API's computation could be successfully synthesized through certain composition and adaptation of the APIs from another DL library. To address the second challenge, DLLens incorporates a static analysis technique that…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsImage Processing and 3D Reconstruction · Mathematics, Computing, and Information Processing · Natural Language Processing Techniques
MethodsSparse Evolutionary Training · Lib
