SpectraDL: A Historical Issue-Driven, Test Specification-Assisted Transfer Testing Approach for Deep Learning Frameworks via LLMs
Shifan Liu, Chang-ai Sun, Fulei Wu, Wing Kwong Chan
Abstract
Deep learning (DL) frameworks provide diverse fundamental algorithmic units as operators, which are critical infrastructure for constructing various intelligent software. Since mainstream frameworks widely adopt the open-source development paradigm, bugs may recur across operators and even across frameworks. Recent studies leverage large language models (LLMs) and historical issues to generate cross-framework test cases. However, existing approaches still suffer from two limitations. First, their test cases have low fault detection capability because they mainly reuse inputs or contexts from historical issues without considering the underlying root causes. Second, an effective mechanism for determining the appropriate transfer scope within a target framework is lacking. To overcome these limitations, we propose SpectraDL, a historical issue-driven, test specification-assisted transfer testing approach for DL frameworks. SpectraDL first extracts rigorous test specifications for each operator from official documentation, and then extracts and transforms historical issues and associated pull requests into structured fault representations (i.e., bug patterns). SpectraDL uses a dual retrieval mechanism based on semantic intent and structural input-space features to transfer these bug patterns to related operators across frameworks. Experiments on four mainstream DL frameworks show that SpectraDL detected 125 previously unknown bugs, 107 of which developers confirmed. The results confirm that SpectraDL delivers a promising transfer testing approach for DL frameworks.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 4d087594-cdeb-4346-b236-f68e4db5b106Related papers
- CrossProbe: LLM-Empowered Cross-Project Bug Detection for Deep Learning FrameworksHao Guan, Guangdong Bai, Yepang LiuISSTA 2025 · 3 citations
- LLM-Powered Silent Bug Fuzzing in Deep Learning Libraries via Versatile and Controlled Bug TransferKunpeng Zhang, Dongwei Xiao, Daoyuan Wu, Shuai Wang et al.OOPSLA 2026 · 1 citation
- Differential Testing of Cross Deep Learning Framework APIs: Revealing Inconsistencies and VulnerabilitiesZizhuang Deng, Guozhu Meng, Kai Chen, Tong Liu et al.USENIX Security 2023
- A Miss Is as Good as A Mile: Metamorphic Testing for Deep Learning OperatorsJinyin Chen, Chengyu Jia, Yunjie Yan, Jie Ge et al.FSE 2024 · 8 citations
- Audee: Automated Testing for Deep Learning FrameworksQianyu Guo, Xiaofei Xie, Yi Li, Xiaoyu Zhang et al.ASE 2020 · 83 citations
