arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.03499cs.CLcs.AIcs.PL
收藏

探索代码生成任务的数据增强

Exploring Data Augmentation for Code Generation Tasks

University of Edinburgh(爱丁堡大学)

Pinzhen Chen, Gerasimos Lampouras

摘要:

自然语言处理的进步,例如从预先训练的语言模型进行迁移学习,也影响了如何为程序设计语言任务训练模型。以前的研究主要探索代码预训练,并通过多模态和多任务来扩展它,但下游任务的数据仍然很小。专注于下游任务的数据利用率,我们提出并调整了增强方法,这些方法在代码翻译和摘要方面分别提高了6.9%和7.5%。进一步的分析表明,我们的方法正交工作,并显示输出代码风格和数值一致性的好处。我们还讨论了测试数据的缺陷。

英文摘要:

Advances in natural language processing, such as transfer learning from pre-trained language models, have impacted how models are trained for programming language tasks too. Previous research primarily explored code pre-training and expanded it through multi-modality and multi-tasking, yet the data for downstream tasks remain modest in size. Focusing on data utilization for downstream tasks, we propose and adapt augmentation methods that yield consistent improvements in code translation and summarization by up to 6.9% and 7.5% respectively. Further analysis suggests that our methods work orthogonally and show benefits in output code style and numeric consistency. We also discuss test data imperfections.

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

↑