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

PatchNet:基于分层深度学习的Linux内核稳定补丁识别

PatchNet: Hierarchical Deep Learning-Based Stable Patch Identification for the Linux Kernel

Thong Hoang, Julia Lawall, Yuan Tian, Richard J Oentaryo, David Lo

摘要:

Linux内核稳定版本满足了那些重视内核稳定性而不是新功能的用户的需求。这些稳定版本的质量取决于内核开发人员和维护人员将错误修复补丁传播到稳定版本的主动性。因此,需要考虑该过程可以自动化到什么程度。以前的方法依赖于提交消息中的单词和一小组手动构建的代码功能。然而,这种方法只显示出中等的准确性。在本文中,我们研究了深度学习是否可以提供更准确的解决方案。我们提出了PatchNet,一种基于分层深度学习的方法,能够自动从提交消息和提交代码中提取特征,并使用它们来识别稳定的补丁。PatchNet包含一个深层层次结构,它反映了提交代码的层次和顺序结构,使其与源代码上现有的深度学习模型不同。对82,403个最新Linux补丁的实验证实了PatchNet相对于各种最先进基线的优越性,包括Linux内核维护人员最近采用的基线。

英文摘要:

Linux kernel stable versions serve the needs of users who value stability of the kernel over new features. The quality of such stable versions depends on the initiative of kernel developers and maintainers to propagate bug fixing patches to the stable versions. Thus, it is desirable to consider to what extent this process can be automated. A previous approach relies on words from commit messages and a small set of manually constructed code features. This approach, however, shows only moderate accuracy. In this paper, we investigate whether deep learning can provide a more accurate solution. We propose PatchNet, a hierarchical deep learning-based approach capable of automatically extracting features from commit messages and commit code and using them to identify stable patches. PatchNet contains a deep hierarchical structure that mirrors the hierarchical and sequential structure of commit code, making it distinctive from the existing deep learning models on source code. Experiments on 82,403 recent Linux patches confirm the superiority of PatchNet against various state-of-the-art baselines, including the one recently-adopted by Linux kernel maintainers.

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

↑