arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2201.08310cs.LGcs.PLcs.SE
收藏

用于代码摘要的元学习

Meta Learning for Code Summarization

University of Stuttgart(斯图加特大学)

Moiz Rauf, Sebastian Padó, Michael Pradel

摘要:

源代码摘要是为一段程序设计语言代码生成高级自然语言描述的任务。目前用于该任务的神经模型在其架构和所考虑的代码方面有所不同。在本文中,我们表明,三个SOTA模型的代码摘要工作在很大程度上不相交的子集的大型代码库。这种互补性激发了模型组合:我们提出了三个元模型,为给定的代码段选择最佳候选摘要。这两个神经模型比最佳个体模型的性能显著提高,在代码段的数据集上获得2.1个BLEU点的改进,其中至少一个个体模型获得非零BLEU。

英文摘要:

Source code summarization is the task of generating a high-level natural language description for a segment of programming language code. Current neural models for the task differ in their architecture and the aspects of code they consider. In this paper, we show that three SOTA models for code summarization work well on largely disjoint subsets of a large code-base. This complementarity motivates model combination: We propose three meta-models that select the best candidate summary for a given code segment. The two neural models improve significantly over the performance of the best individual model, obtaining an improvement of 2.1 BLEU points on a dataset of code segments where at least one of the individual models obtains a non-zero BLEU.

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

↑