DevMuT: Testing Deep Learning Framework via Developer Expertise-Based Mutation
Yanzhou Mu, Juan Zhai, Chunrong Fang, Xiang Chen, Zhixiang Cao, Peiran Yang, Yinglong Zou, Tao Zheng, Zhenyu Chen
摘要
Deep learning (DL) frameworks are the fundamental infrastructure for various DL applications. Framework defects can profoundly cause disastrous accidents, thus requiring sufficient detection. In previous studies, researchers adopt DL models as test inputs combined with mutation to generate more diverse models. Though these studies demonstrate promising results, most detected defects are considered trivial (i.e., either treated as edge cases or ignored by the developers). To identify important bugs that matter to developers, we propose a novel DL framework testing method DevMuT, which generates models by adopting mutation operators and constraints derived from developer expertise. DevMuT simulates developers' common operations in development and detects more diverse defects within more stages of the DL model lifecycle (e.g., model training and inference). We evaluate the performance of DevMuT on three widely used DL frameworks (i.e., PyTorch, JAX, and Mind-Spore) with 29 DL models from nine types of industry tasks. The experiment results show that DevMuT outperforms state-of-the-art baselines: it can achieve at least 71.68% improvement on average in the diversity of generated models and 28.20% improvement on average in the legal rates of generated models. Moreover, DevMuT detects 117 defects, 63 of which are confirmed, 24 are fixed, and eight are of high value confirmed by developers. Finally, DevMuT has been deployed in the MindSpore community since December 2023. These demonstrate the effectiveness of DevMuT in detecting defects that are close to the real scenes and are of concern to developers.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing 引用了 Deep learning library testing via effective model generation
- Improving Deep Learning Framework Testing with Model-Level Metamorphic Testing 引用了 Deep learning library testing via effective model generation
- Improving Deep Learning Framework Testing with Model-Level Metamorphic Testing 引用了 Audee: Automated Testing for Deep Learning Frameworks
- Improving Deep Learning Framework Testing with Model-Level Metamorphic Testing 引用了 Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing
引用它的顶会 Paper1
它引用的 Paper7
- Deep learning library testing via effective model generationZan Wang, Ming Yan, Junjie Chen, Shuang Liu 等FSE 2020 · 165 次引用
- DeepCrime: mutation testing of deep learning systems based on real faultsNargiz Humbatova, Gunel Jahangirova, Paolo TonellaISSTA 2021 · 114 次引用
- Audee: Automated Testing for Deep Learning FrameworksQianyu Guo, Xiaofei Xie, Yi Li, Xiaoyu Zhang 等ASE 2020 · 83 次引用
- Muffin: Testing Deep Learning Libraries via Neural Architecture FuzzingJiazhen Gu, Xuchuan Luo, Yangfan Zhou, Xin WangICSE 2022 · 63 次引用
- Graph-based Fuzz Testing for Deep Learning Inference EnginesWeisi Luo, Dong Chai, Xiaoyue Run, Jiang Wang 等ICSE 2021 · 37 次引用
相关 Paper
- Mutation-Based Deep Learning Framework Testing Method in JavaScript EnvironmentYinglong Zou, Juan Zhai, Chunrong Fang, Jiawei Liu 等ASE 2024 · 2 次引用
- ACETest: Automated Constraint Extraction for Testing Deep Learning OperatorsJingyi Shi, Yang Xiao, Yuekang Li, Yeting Li 等ISSTA 2023 · 24 次引用
- DECODE: Dynamic Exploration for Constraint-Guided Vulnerability Discovery in Deep Learning OperatorsHaotong Liu, Zhi Wang, Zhuohang Liu, Wanpeng LiFSE 2026
- IvySyn: Automated Vulnerability Discovery in Deep Learning FrameworksNeophytos Christou, Di Jin, Vaggelis Atlidakis, Baishakhi Ray 等USENIX Security 2023
- CrossProbe: LLM-Empowered Cross-Project Bug Detection for Deep Learning FrameworksHao Guan, Guangdong Bai, Yepang LiuISSTA 2025 · 3 次引用
