亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models

计算机科学 模糊测试 程序设计语言 Python(编程语言) 人工智能 语法 语义学(计算机科学) 编码(集合论) 自然语言处理 软件 集合(抽象数据类型)
作者
Yinlin Deng,Chunqiu Steven Xia,Haoran Peng,Chenyuan Yang,Lingming Zhang
标识
DOI:10.1145/3597926.3598067
摘要

Deep Learning (DL) systems have received exponential growth in popularity and have become ubiquitous in our everyday life. Such systems are built on top of popular DL libraries, e.g., TensorFlow and PyTorch which provide APIs as building blocks for DL systems. Detecting bugs in these DL libraries is critical for almost all downstream DL systems in ensuring effectiveness/safety for end users. Meanwhile, traditional fuzzing techniques can be hardly effective for such a challenging domain since the input DL programs need to satisfy both the input language (e.g., Python) syntax/semantics and the DL API input/shape constraints for tensor computations. To address these limitations, we propose TitanFuzz – the first approach to directly leveraging Large Language Models (LLMs) to generate input programs for fuzzing DL libraries. LLMs are titanic models trained on billions of code snippets and can autoregressively generate human-like code snippets. Our key insight is that modern LLMs can also include numerous code snippets invoking DL library APIs in their training corpora, and thus can implicitly learn both language syntax/semantics and intricate DL API constraints for valid DL program generation. More specifically, we use both generative and infilling LLMs (e.g., Codex/InCoder) to generate and mutate valid/diverse input DL programs for fuzzing. Our experimental results demonstrate that TitanFuzz can achieve 30.38%/50.84% higher code coverage than state-of-the-art fuzzers on TensorFlow/PyTorch. Furthermore, TitanFuzz is able to detect 65 bugs, with 44 already confirmed as previously unknown bugs. This paper demonstrates that modern titanic LLMs can be leveraged to directly perform both generation-based and mutation-based fuzzing studied for decades, while being fully automated, generalizable, and applicable to domains challenging for traditional approaches (such as DL systems). We hope TitanFuzz can stimulate more work in this promising direction of LLMs for fuzzing.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI6.1应助oldcat采纳,获得10
27秒前
42秒前
啾啾发布了新的文献求助10
48秒前
54秒前
一二完成签到,获得积分10
54秒前
一二发布了新的文献求助10
59秒前
思源应助啾啾采纳,获得10
1分钟前
1分钟前
oldcat完成签到,获得积分10
1分钟前
oldcat发布了新的文献求助10
1分钟前
隐形曼青应助科研通管家采纳,获得10
1分钟前
2分钟前
啾啾发布了新的文献求助10
2分钟前
科研通AI6.4应助啾啾采纳,获得10
2分钟前
2分钟前
寒泉发布了新的文献求助10
2分钟前
寒泉完成签到,获得积分10
2分钟前
万能图书馆应助Peng采纳,获得10
2分钟前
2分钟前
啾啾完成签到,获得积分10
3分钟前
3分钟前
Peng发布了新的文献求助10
3分钟前
啾啾发布了新的文献求助10
3分钟前
千里毅完成签到,获得积分10
3分钟前
Hello应助啾啾采纳,获得10
3分钟前
3分钟前
yazhang完成签到 ,获得积分10
4分钟前
tlh完成签到 ,获得积分10
4分钟前
4分钟前
4分钟前
柳贯一发布了新的文献求助10
4分钟前
mason发布了新的文献求助10
4分钟前
烨枫晨曦完成签到,获得积分10
4分钟前
4分钟前
希望天下0贩的0应助mason采纳,获得10
4分钟前
啾啾发布了新的文献求助10
4分钟前
丘比特应助柳贯一采纳,获得10
5分钟前
丘比特应助柳贯一采纳,获得10
5分钟前
乐乐应助柳贯一采纳,获得10
5分钟前
领导范儿应助柳贯一采纳,获得10
5分钟前
高分求助中
Cronologia da história de Macau 1600
Treatment response-adapted risk index model for survival prediction and adjuvant chemotherapy selection in nonmetastatic nasopharyngeal carcinoma 1000
Lloyd's Register of Shipping's Approach to the Control of Incidents of Brittle Fracture in Ship Structures 1000
BRITTLE FRACTURE IN WELDED SHIPS 1000
Intentional optical interference with precision weapons (in Russian) Преднамеренные оптические помехи высокоточному оружию 1000
Atlas of Anatomy 5th original digital 2025的PDF高清电子版(非压缩版,大小约400-600兆,能更大就更好了) 1000
Current concept for improving treatment of prostate cancer based on combination of LH-RH agonists with other agents 1000
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 纳米技术 计算机科学 化学工程 生物化学 物理 复合材料 内科学 催化作用 物理化学 光电子学 细胞生物学 基因 电极 遗传学
热门帖子
关注 科研通微信公众号,转发送积分 6187746
求助须知:如何正确求助?哪些是违规求助? 8015144
关于积分的说明 16672695
捐赠科研通 5285617
什么是DOI,文献DOI怎么找? 2817504
邀请新用户注册赠送积分活动 1797074
关于科研通互助平台的介绍 1661273