arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.05991cs.SEcs.LG
收藏

利用迁移学习改进代码自动补全

Improving Code Autocompletion with Transfer Learning

Facebook Inc.(脸书公司)

Wen Zhou, Seohyun Kim, Vijayaraghavan Murali, Gareth Ari Aye

摘要:

软件语言模型在预测代码补全使用方面取得了令人鼓舞的成果,一些行业研究也描述了成功的IDE集成。最近,通过对从程序员IDE活动中收集的真实数据集进行训练,自动完成预测的准确性提高了12.8%。但是,如果目标程序设计语言中的IDE自动完成示例有限,可用于模型训练,该怎么办?在本文中,我们研究了预训练自动完成模型对非IDE、非自动完成和不同语言示例代码序列的有效性。我们发现,这些无监督的预训练在非常小的微调数据集上将模型准确性提高了50%以上,在50 k标记的示例上提高了10%以上。我们通过对数千名IDE自动完成用户进行A/B测试,证实了这些预训练在在线环境中的真实影响,发现预训练可使自动完成使用率增加6.63%。

英文摘要:

Software language models have achieved promising results predicting code completion usages, and several industry studies have described successful IDE integrations. Recently, accuracy in autocompletion prediction improved 12.8% from training on a real-world dataset collected from programmers' IDE activity. But what if limited examples of IDE autocompletion in the target programming language are available for model training? In this paper, we investigate the efficacy of pretraining autocompletion models on non-IDE, non-autocompletion, and different-language example code sequences. We find that these unsupervised pretrainings improve model accuracy by over 50% on very small fine-tuning datasets and over 10% on 50k labeled examples. We confirm the real-world impact of these pretrainings in an online setting through A/B testing on thousands of IDE autocompletion users, finding that pretraining is responsible for increases of up to 6.63% autocompletion usage.

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

↑