DevMuT: Testing Deep Learning Framework via Developer Expertise-Based Mutation

📅 2025-07-06
📈 Citations: 0
Influential: 0
📄 PDF

career value

203K/year
🤖 AI Summary
Defect detection in deep learning frameworks suffers from low diversity and poor validity of generated models, as well as limited practical utility of identified bugs. To address this, we propose DevMuT—the first framework testing method explicitly incorporating developer expertise. DevMuT designs mutation operators and constraint mechanisms grounded in real-world development practices, covering both training and inference stages to generate highly realistic and syntactically valid model variants. Evaluated on PyTorch, JAX, and MindSpore using 29 industrial-scale models, DevMuT improves model diversity by 71.68% and validity rate by 28.20%. It uncovered 117 defects, of which 63 were confirmed, 24 fixed, and 8 classified as high-impact; the methodology has been integrated into the MindSpore community. Our core contribution lies in leveraging developer knowledge to guide mutation, substantially enhancing the practical relevance and real-world coverage of defect detection.

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Detects important bugs in DL frameworks using developer expertise
Improves diversity and legality of generated test models
Identifies defects across DL model lifecycle stages
Innovation

Methods, ideas, or system contributions that make the work stand out.

Developer expertise-based mutation operators
Simulates common developer operations
Detects diverse defects in DL lifecycle
💼 Related Jobs
Vision Foundation Model Research Intern
Intrinsic
Salary Range$57.69—$57.69 USDAt Intrinsic, we are proud to be an equal opportunity workplace. Employment at Intrinsic is based solely on a person's merit and qualifications directly related to professional competence. Intrinsic does not discriminate against any employee or applicant because of race, creed, color, religion, gender, sexual orientation, gender identity/expression, national origin, disability, age, genetic information, veteran status, marital status, pregnancy or related condition (including breastfeeding), or any other basis protected by law. We also consider qualified applicants regardless of criminal histories, consistent with legal requirements. It is Intrinsic’s policy to comply with all applicable national, state and local laws pertaining to nondiscrimination and equal opportunity.
Mountain View, California / Mountain View (US-MTV), Mountain View, California, United States
Yanzhou Mu
Yanzhou Mu
Nanjing university
deep learning testingSE4AIconcurrency testingsoftware defect prediction
Juan Zhai
Juan Zhai
University of Massachusetts, Amherst
software text analyticssoftware reliabilitydeep learning
Chunrong Fang
Chunrong Fang
Software Institute, Nanjing University
Software TestingSoftware EngineeringComputer Science
X
Xiang Chen
School of Artificial Intelligence and Computer Science, School of Zhang Jian, Nantong University
Zhixiang Cao
Zhixiang Cao
Xi'an Jiaotong University
AI4SE
Peiran Yang
Peiran Yang
Nanjing Univerisity
AI4SE
Y
Yinglong Zou
State Key Laboratory for Novel Software Technology, Nanjing University
T
Tao Zheng
State Key Laboratory for Novel Software Technology, Nanjing University
Z
Zhenyu Chen
State Key Laboratory for Novel Software Technology, Nanjing University