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

通过自我改进实现更好的代码语言模型

Better Language Models of Code through Self-Improvement

FPT Software AI Center(FPT软件人工智能中心);Fulbright University(富布赖特大学);McGill University(麦吉尔大学);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);The University of Texas at Dallas(德克萨斯大学达拉斯分校)

Hung Quoc To, Nghi D. Q. Bui, Jin Guo, Tien N. Nguyen

AI总结:

针对代码预训练语言模型微调受限于监督数据规模的问题,提出利用预训练与微调阶段知识生成伪数据的简单数据增强框架,集成至CodeT5等模型,显著提升代码摘要与生成性能。

摘要:

代码预训练语言模型(PLMCs)在近期的研究中受到了广泛关注。这些模型通过多模态目标在大规模数据集上进行预训练。然而,对它们进行微调需要大量的监督,并且受到所提供数据集规模的限制。我们旨在通过提出一个简单的数据增强框架来改善这一问题。该框架利用预训练和微调阶段获得的知识来生成伪数据,并将其用作下一步的训练数据。我们将此框架整合到最先进的语言模型中,如CodeT5、CodeBERT和UnixCoder。结果表明,我们的框架显著提升了PLMCs在代码相关序列生成任务中的性能,例如CodeXGLUE基准中的代码摘要和代码生成任务。

英文摘要:

Pre-trained language models for code (PLMCs) have gained attention in recent research. These models are pre-trained on large-scale datasets using multi-modal objectives. However, fine-tuning them requires extensive supervision and is limited by the size of the dataset provided. We aim to improve this issue by proposing a simple data augmentation framework. Our framework utilizes knowledge gained during the pre-training and fine-tuning stage to generate pseudo data, which is then used as training data for the next step. We incorporate this framework into the state-of-the-art language models, such as CodeT5, CodeBERT, and UnixCoder. The results show that our framework significantly improves PLMCs' performance in code-related sequence generation tasks, such as code summarization and code generation in the CodeXGLUE benchmark.

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

↑