arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.13276cs.SE
收藏

面向深度学习的基于知识的版本不兼容检测

Knowledge-Based Version Incompatibility Detection for Deep Learning

Zhongkai Zhao, Bonan Kou, Mohamed Yilmaz Ibrahim, Muhao Chen, Tianyi Zhang

AI总结:

针对现有深度学习版本不兼容检测技术覆盖范围有限的问题,该研究利用Stack Overflow讨论数据,通过预训练QA模型抽取知识并构建加权知识图,实现了更高准确率和召回率的版本不兼容检测。

摘要:

在复用或复现深度学习模型与应用时,版本不兼容问题十分普遍。现有技术仅局限于PyPI中声明的库依赖规范,因此无法检测由未文档化的版本约束引发的版本问题,也无法发现涉及硬件驱动或操作系统的相关问题。为应对这一挑战,我们提出利用Stack Overflow上关于深度学习版本问题的丰富讨论来辅助版本不兼容检测。我们将知识抽取问题重新定义为问答(QA)问题,并使用预训练QA模型从在线讨论中抽取版本兼容性知识。抽取得到的知识会进一步整合为加权知识图,用于在复用深度学习项目时检测潜在的版本不兼容问题。我们的评估结果显示:(1)我们的方法能以84%的准确率准确抽取版本知识;(2)我们的方法能在10个流行深度学习项目中以92%的高准确率准确识别出65%的已知版本问题,而两种现有最优方法分别只能检测出其中29%和6%的问题,准确率分别为33%和17%。

英文摘要:

Version incompatibility issues are rampant when reusing or reproducing deep learning models and applications. Existing techniques are limited to library dependency specifications declared in PyPI. Therefore, these techniques cannot detect version issues due to undocumented version constraints or issues involving hardware drivers or OS. To address this challenge, we propose to leverage the abundant discussions of DL version issues from Stack Overflow to facilitate version incompatibility detection. We reformulate the problem of knowledge extraction as a Question-Answering (QA) problem and use a pre-trained QA model to extract version compatibility knowledge from online discussions. The extracted knowledge is further consolidated into a weighted knowledge graph to detect potential version incompatibilities when reusing a DL project. Our evaluation results show that (1) our approach can accurately extract version knowledge with 84% accuracy, and (2) our approach can accurately identify 65% of known version issues in 10 popular DL projects with a high precision (92%), while two state-of-the-art approaches can only detect 29% and 6% of these issues with 33% and 17% precision respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑