结合提示微调与先验知识的提交分类
Incorprating Prompt tuning for Commit classification with prior Knowledge
AI总结:
针对提交分类任务中判别式模型架构复杂且依赖大量标注数据的问题,提出基于T5的生成式框架IPCK,通过提示微调与外部知识图谱融合先验知识,在少样本和零样本场景下达到SOTA性能。
摘要:
提交分类(CC)是软件维护中的一项重要任务,它帮助软件开发者根据代码变更的性质和目的将其分类为不同类型。这使他们能更好地了解开发进展,识别需要改进的领域。然而,现有方法均为判别式模型,通常架构复杂,需额外输出层生成类别标签概率。此外,它们需大量标注数据进行微调,在标注数据有限时难以学习有效分类边界。为解决上述问题,我们提出一个生成式框架,即结合先验知识的提示微调提交分类(IPCK)https://github.com/AppleMax1992/IPCK,该框架简化了模型结构并跨不同任务学习特征。它在样本有限时仍能达到SOTA性能。首先,我们提出基于T5的生成式框架。该编码器-解码器构建方法将不同CC任务统一为text2text问题,无需额外输出层,简化了模型结构。其次,我们设计提示微调方案替代微调,适用于仅有少量样本的少样本场景。此外,我们通过外部知识图谱融入先验知识,在语音机步骤中将词概率映射为最终标签,以提升少样本场景下的性能。在两个公开数据集上的大量实验表明,该框架能在少样本和零样本场景中简单有效地解决CC问题,同时提升模型适应性,无需大量训练样本进行微调。
英文摘要:
Commit Classification(CC) is an important task in software maintenance since it helps software developers classify code changes into different types according to their nature and purpose. This allows them to better understand how their development efforts are progressing, identify areas where they need improvement. However, existing methods are all discriminative models, usually with complex architectures that require additional output layers to produce class label probabilities. Moreover, they require a large amount of labeled data for fine-tuning, and it is difficult to learn effective classification boundaries in the case of limited labeled data. To solve above problems, we propose a generative framework that Incorporating prompt-tuning for commit classification with prior knowledge (IPCK) https://github.com/AppleMax1992/IPCK, which simplifies the model structure and learns features across different tasks. It can still reach the SOTA performance with only limited samples. Firstly, we proposed a generative framework based on T5. This encoder-decoder construction method unifies different CC task into a text2text problem, which simplifies the structure of the model by not requiring an extra output layer. Second, instead of fine-tuning, we design an prompt-tuning solution which can be adopted in few-shot scenarios with only limit samples. Furthermore, we incorporate prior knowledge via an external knowledge graph to map the probabilities of words into the final labels in the speech machine step to improve performance in few-shot scenarios. Extensive experiments on two open available datasets show that our framework can solve the CC problem simply but effectively in few-shot and zeroshot scenarios, while improving the adaptability of the model without requiring a large amount of training samples for fine-tuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。