arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.14220cs.CLcs.AI
收藏

CoDesc:一个大型的代码描述并行数据集

CoDesc: A Large Code-Description Parallel Dataset

University of California, Los Angeles(加州大学洛杉矶分校);Bangladesh University of Engineering Technology (BUET)(孟加拉国工程技术大学)

Masum Hasan, Tanveer Muttaqueen, Abdullah Al Ishtiaq, Kazi Sajeed Mehrab, Md. Mahim Anjum Haque, Tahmid Hasan, Wasi Uddin Ahmad, Anindya Iqbal, Rifat Shahriyar

摘要:

自然语言和源代码之间的翻译可以通过使开发人员能够用自然语言理解、构思、搜索和编写计算机程序来帮助软件开发。尽管业界和研究界的兴趣越来越大,但由于缺乏适合训练深度神经模型的大型标准数据集、标准噪声去除方法和评估基准,这项任务往往很困难。这使得研究人员不得不收集新的小规模数据集,从而导致已发表作品之间的不一致。在这项研究中,我们提出了CoDesc -一个由420万个Java方法和自然语言描述组成的大型并行数据集。通过广泛的分析,我们从数据集中识别并去除了主要的噪声模式。我们展示了熟练的CoDesc在两个互补的任务代码描述对:代码总结和代码搜索。我们表明,该数据集有助于提高代码搜索高达22%,并实现了新的国家的最先进的代码摘要。此外,我们展示了CoDesc在预训练中的有效性-微调设置,为Java构建预训练的语言模型提供了可能性。为了方便未来的研究,我们发布的数据集,数据处理工具,并在\url{https://github.com/csebuetnlp/CoDesc}的基准。

英文摘要:

Translation between natural language and source code can help software development by enabling developers to comprehend, ideate, search, and write computer programs in natural language. Despite growing interest from the industry and the research community, this task is often difficult due to the lack of large standard datasets suitable for training deep neural models, standard noise removal methods, and evaluation benchmarks. This leaves researchers to collect new small-scale datasets, resulting in inconsistencies across published works. In this study, we present CoDesc -- a large parallel dataset composed of 4.2 million Java methods and natural language descriptions. With extensive analysis, we identify and remove prevailing noise patterns from the dataset. We demonstrate the proficiency of CoDesc in two complementary tasks for code-description pairs: code summarization and code search. We show that the dataset helps improve code search by up to 22\% and achieves the new state-of-the-art in code summarization. Furthermore, we show CoDesc's effectiveness in pre-training--fine-tuning setup, opening possibilities in building pretrained language models for Java. To facilitate future research, we release the dataset, a data processing tool, and a benchmark at \url{https://github.com/csebuetnlp/CoDesc}.

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

↑