TY - JOUR
T1 - Citadel
T2 - Context Similarity Based Deep Learning Framework Bug Finding
AU - Zhang, Xiaoyu
AU - Zhai, Juan
AU - Ma, Shiqing
AU - Wang, Shiwei
AU - Shen, Chao
N1 - Publisher Copyright:
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
PY - 2026/6/17
Y1 - 2026/6/17
N2 - With the application of Deep Learning (DL) technology, tools of DL framework testing are in high demand.Existing DL framework testing tools have limited coverage of bug types. For example, they lack the capabilityof effectively finding performance bugs, which are critical for DL models regarding performance, economics,and the environment. Moreover, existing tools are inefficient, generating hundreds of test cases with fewtrigger bugs. In this article, we propose Citadel, a method that accelerates bug finding in terms of efficiencyand effectiveness. We observe that many DL framework bugs are similar due to the similarity of operatorsand algorithms belonging to the same family. Orthogonal to existing bug-finding tools, Citadel aims to findnew bugs that are similar to reported ones that have known test oracles. Citadel defines context similarity tomeasure the similarity of DL framework API pairs and automatically generates test cases with oracles forAPIs that are similar to the problematic APIs in existing bug reports. Citadel effectively detects 58 and 66API bugs on PyTorch and TensorFlow (excluding those rejected by developers or duplicates of prior reports),many of which, e.g., 13 performance bugs, cannot be detected by existing tools. Moreover, 35.40% of test casesgenerated by Citadel can trigger bugs significantly transcending the state-of-the-art method (3.90%).
AB - With the application of Deep Learning (DL) technology, tools of DL framework testing are in high demand.Existing DL framework testing tools have limited coverage of bug types. For example, they lack the capabilityof effectively finding performance bugs, which are critical for DL models regarding performance, economics,and the environment. Moreover, existing tools are inefficient, generating hundreds of test cases with fewtrigger bugs. In this article, we propose Citadel, a method that accelerates bug finding in terms of efficiencyand effectiveness. We observe that many DL framework bugs are similar due to the similarity of operatorsand algorithms belonging to the same family. Orthogonal to existing bug-finding tools, Citadel aims to findnew bugs that are similar to reported ones that have known test oracles. Citadel defines context similarity tomeasure the similarity of DL framework API pairs and automatically generates test cases with oracles forAPIs that are similar to the problematic APIs in existing bug reports. Citadel effectively detects 58 and 66API bugs on PyTorch and TensorFlow (excluding those rejected by developers or duplicates of prior reports),many of which, e.g., 13 performance bugs, cannot be detected by existing tools. Moreover, 35.40% of test casesgenerated by Citadel can trigger bugs significantly transcending the state-of-the-art method (3.90%).
KW - Deep Learning Library
KW - Deep Learning Testing
KW - Software Testing
UR - https://www.scopus.com/pages/publications/105045980655
U2 - 10.1145/3773993
DO - 10.1145/3773993
M3 - 文章
AN - SCOPUS:105045980655
SN - 1049-331X
VL - 35
JO - ACM Transactions on Software Engineering and Methodology
JF - ACM Transactions on Software Engineering and Methodology
IS - 7
M1 - 179
ER -