跳到主要导航 跳到搜索 跳到主要内容

A novel self-attention based automatic code completion neural network

  • East China Normal University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Code completion is one branch of source code modeling tasks. Using a deep learning method to implement it has explored the possibilities of modeling source code with a statistic language model. Recurrent Neural Network (RNN) is a universal feature extractor of Natural Language Processing (NLP), which is used in the code completion field commonly. However, RNN based models are lack of long-range context dependency and have a poor performance in training speed. Besides, some previous models have not handled the issue of out of vocabulary (OOV) well, which hinders further improvements in prediction accuracy. This paper presents a novel automatic code completion neural network, which is based on a self-attention mechanism with open vocabulary to address issues of OOV, slow training speed, and lacking long context-dependency. Experiments in this paper show that our model has a better performance of predicting tokens compared with the traditional N-gram model and RNN based model. In the meantime, we reduced training time significantly. More broadly, the combination of self-attention and open vocabulary has a potential application in the source code modeling field.

源语言英语
主期刊名SEKE 2020 - Proceedings of the 32nd International Conference on Software Engineering and Knowledge Engineering
出版商Knowledge Systems Institute Graduate School
386-391
页数6
ISBN(电子版)1891706500
DOI
出版状态已出版 - 2020
活动32nd International Conference on Software Engineering and Knowledge Engineering, SEKE 2020 - Pittsburgh, Virtual, 美国
期限: 9 7月 202019 7月 2020

出版系列

姓名Proceedings of the International Conference on Software Engineering and Knowledge Engineering, SEKE
PartF162440
ISSN(印刷版)2325-9000
ISSN(电子版)2325-9086

会议

会议32nd International Conference on Software Engineering and Knowledge Engineering, SEKE 2020
国家/地区美国
Pittsburgh, Virtual
时期9/07/2019/07/20

指纹

探究 'A novel self-attention based automatic code completion neural network' 的科研主题。它们共同构成独一无二的指纹。

引用此