CodeNet:用于学习编码任务多样性的大规模AI
CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Tasks
摘要:
在过去的几十年里,软件已经融入了我们社会的各个方面。随着软件开发的激增和企业应用程序的代码基础设施的老化,现在比以往任何时候都更重要的是提高软件开发生产力和现代化遗留应用程序。深度学习和机器学习算法的进步实现了许多突破,激励研究人员利用人工智能技术来提高软件开发效率。因此,快速崛起的AI for Code研究领域已经引起了新的兴趣并获得了动力。在本文中,我们提出了一个大规模数据集CodeNet,由超过1400万个代码样本和55种不同程序设计语言的约5亿行代码组成,旨在教AI编码。除了规模庞大之外,CodeNet还拥有丰富的高质量注释集,可以对各种关键编码任务进行基准测试,并帮助加速AI技术的研究,包括代码相似性和分类,各种程序设计语言之间的代码翻译,以及代码性能(运行时和内存)改进技术。此外,CodeNet为98.5%的代码样本提供了样本输入和输出测试集,这些测试集可以用作确定代码正确性的预言,并可能指导强化学习提高代码质量。作为一个可用性功能,我们在CodeNet中提供了几个预处理工具,将源代码转换为可以随时用作机器学习模型输入的表示。使用CodeNet数据集的代码分类和代码相似性实验的结果作为参考。我们希望CodeNet的规模,多样性和丰富,高质量的注释将在人工智能和软件工程的交叉点提供前所未有的研究机会。
英文摘要:
Over the last several decades, software has been woven into the fabric of every aspect of our society. As software development surges and code infrastructure of enterprise applications ages, it is now more critical than ever to increase software development productivity and modernize legacy applications. Advances in deep learning and machine learning algorithms have enabled numerous breakthroughs, motivating researchers to leverage AI techniques to improve software development efficiency. Thus, the fast-emerging research area of AI for Code has garnered new interest and gathered momentum. In this paper, we present a large-scale dataset CodeNet, consisting of over 14 million code samples and about 500 million lines of code in 55 different programming languages, which is aimed at teaching AI to code. In addition to its large scale, CodeNet has a rich set of high-quality annotations to benchmark and help accelerate research in AI techniques for a variety of critical coding tasks, including code similarity and classification, code translation between a large variety of programming languages, and code performance (runtime and memory) improvement techniques. Additionally, CodeNet provides sample input and output test sets for 98.5% of the code samples, which can be used as an oracle for determining code correctness and potentially guide reinforcement learning for code quality improvements. As a usability feature, we provide several pre-processing tools in CodeNet to transform source code into representations that can be readily used as inputs into machine learning models. Results of code classification and code similarity experiments using the CodeNet dataset are provided as a reference. We hope that the scale, diversity and rich, high-quality annotations of CodeNet will offer unprecedented research opportunities at the intersection of AI and Software Engineering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。