paper-with-me

Papers

Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries

2024-06-12 · Meiziniu Li, Dongze Li, Jianmeng Liu, Jialun Cao, Yongqiang Tian, Shing-Chi Cheung

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 extracts the path constraints from the implementations of a given API and its counterpart to guide diverse test input generation. The extraction is facilitated by LLM's knowledge of the concerned DL library and its upstream libraries. We evaluate DLLens on two popular DL libraries, TensorFlow and PyTorch. Our evaluation shows that DLLens synthesizes counterparts for 1.84 times as many APIs as those found by state-of-the-art techniques on these libraries. Moreover, under the same time budget, DLLens covers 7.23% more branches and detects 1.88 times as many bugs as state-of-the-art techniques on 200 randomly sampled APIs. DLLens has successfully detected 71 bugs in recent TensorFlow and PyTorch libraries. Among them, 59 are confirmed by developers, including 46 confirmed as previously unknown bugs, and 10 of these previously unknown bugs have been fixed in the latest version of TensorFlow and PyTorch.

📄 PDF Abstract BibTeX arXiv:2406.07944

Code (0)

등록된 구현이 없습니다.

Tasks

Deep LearningLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Library 설명 없음

Similar Papers 제목 키워드 기반

Deep Learning Library Testing: Definition, Methods and Challenges

2024-04-27 · XiaoYu Zhang, Weipeng Jiang, Chao Shen, Qi Li 외

In recent years, software systems powered by deep learning (DL) techniques have significantly facilitated people's lives in many aspects. As the backbone of these DL systems, various DL libraries undertake the underlying…

Deep LearningSurvey

Differential testing for machine learning: an analysis for classification algorithms beyond deep learning

2022-07-25 · Steffen Herbold, Steffen Tunkel

Context: Differential testing is a useful approach that uses different implementations of the same algorithms and compares the results for software testing. In recent years, this approach was successfully used for test c…

Deep Learningsoftware testing

The Foundation Cracks: A Comprehensive Study on Bugs and Testing Practices in LLM Libraries

2025-06-14 · Weipeng Jiang, XiaoYu Zhang, Xiaofei Xie, Jiongchi Yu 외

Large Language Model (LLM) libraries have emerged as the foundational infrastructure powering today's AI revolution, serving as the backbone for LLM deployment, inference optimization, fine-tuning, and production serving…

Bug fixingInference OptimizationLarge Language Model

Finding Missed Code Size Optimizations in Compilers using LLMs

2024-12-31 · Davide Italiano, Chris Cummins

Compilers are complex, and significant effort has been expended on testing them. Techniques such as random program generation and differential testing have proved highly effective and have uncovered thousands of bugs in …

Generative AI to Generate Test Data Generators

2024-01-31 · Benoit Baudry, Khashayar Etemadi, Sen Fang, Yogya Gamage 외

Generating fake data is an essential dimension of modern software testing, as demonstrated by the number and significance of data faking libraries. Yet, developers of faking libraries cannot keep up with the wide range o…

software testing