训练过程如何影响基于深度学习的漏洞修复性能
How the Training Procedure Impacts the Performance of Deep Learning-based Vulnerability Patching
AI总结:
本文系统研究了不同训练过程对基于深度学习的漏洞修复性能的影响,发现专注于错误修复的监督预训练能显著提升修复效果,而 prompt-tuning 则对自监督预训练模型的性能提升更为有效且低成本。
摘要:
生成式深度学习(DL)模型已被成功应用于漏洞修复。然而,此类模型需要大量补丁数据集才能进行学习。为克服此问题,研究人员提出从预训练模型入手,这些模型具备编程语言通用知识或在错误修复等类似任务上的知识。尽管在自动化漏洞修复领域已有诸多努力,但缺乏关于这些不同训练过程如何影响DL模型在此任务上性能的系统性研究。本文通过以下方面做出多重贡献以填补这一空白:比较自监督与监督预训练在漏洞修复中的现有解决方案;并首次针对该任务实验了不同类型的 prompt-tuning。本研究需训练/测试23个DL模型。我们发现,专注于错误修复的监督预训练虽在数据收集方面成本高昂,但能显著提升基于DL的漏洞修复效果。在此监督预训练模型基础上应用 prompt-tuning,性能无显著提升。相反,对于不依赖错误修复预训练的自监督预训练模型,prompt-tuning 是一种有效且低成本的解决方案,能大幅提升其性能。
英文摘要:
Generative deep learning (DL) models have been successfully adopted for vulnerability patching. However, such models require the availability of a large dataset of patches to learn from. To overcome this issue, researchers have proposed to start from models pre-trained with general knowledge, either on the programming language or on similar tasks such as bug fixing. Despite the efforts in the area of automated vulnerability patching, there is a lack of systematic studies on how these different training procedures impact the performance of DL models for such a task. This paper provides a manyfold contribution to bridge this gap, by (i) comparing existing solutions of self-supervised and supervised pre-training for vulnerability patching; and (ii) for the first time, experimenting with different kinds of prompt-tuning for this task. The study required to train/test 23 DL models. We found that a supervised pre-training focused on bug-fixing, while expensive in terms of data collection, substantially improves DL-based vulnerability patching. When applying prompt-tuning on top of this supervised pre-trained model, there is no significant gain in performance. Instead, prompt-tuning is an effective and cheap solution to substantially boost the performance of self-supervised pre-trained models, i.e., those not relying on the bug-fixing pre-training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。