JaCoText:一种用于Java代码文本生成的预训练模型
JaCoText: A Pretrained Model for Java Code-Text Generation
摘要:
预训练的基于transformer的模型在自然语言生成任务中表现出很高的性能。然而,新的兴趣浪潮已经涌现:自动程序设计语言生成。此任务包括将自然语言指令转换为编程代码。尽管众所周知的语言生成的预训练模型在学习程序设计语言方面取得了良好的性能,但在自动代码生成方面仍然需要努力。在本文中,我们介绍了JaCoText,一个基于Transformers神经网络的模型。它旨在从自然语言文本生成Java源代码。JaCoText利用了自然语言和代码生成模型的优点。更具体地说,我们研究了一些来自最先进技术的发现,并将它们用于(1)从强大的预训练模型初始化我们的模型,(2)在我们的Java数据集上探索额外的预训练,(3)在训练中结合单峰和双峰数据进行实验,以及(4)在模型的微调过程中缩放输入和输出长度。在CONCODE数据集上进行的实验表明,JaCoText实现了新的最先进的结果。
英文摘要:
Pretrained transformer-based models have shown high performance in natural language generation task. However, a new wave of interest has surged: automatic programming language generation. This task consists of translating natural language instructions to a programming code. Despite the fact that well-known pretrained models on language generation have achieved good performance in learning programming languages, effort is still needed in automatic code generation. In this paper, we introduce JaCoText, a model based on Transformers neural network. It aims to generate java source code from natural language text. JaCoText leverages advantages of both natural language and code generation models. More specifically, we study some findings from the state of the art and use them to (1) initialize our model from powerful pretrained models, (2) explore additional pretraining on our java dataset, (3) carry out experiments combining the unimodal and bimodal data in the training, and (4) scale the input and output length during the fine-tuning of the model. Conducted experiments on CONCODE dataset show that JaCoText achieves new state-of-the-art results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。