Code Completion with Neural Attention and Pointer Networks
원문 초록
Intelligent code completion has become an essential research task to accelerate modern software development. To facilitate effective code completion for dynamically-typed programming languages, we apply neural language models by learning from large codebases, and develop a tailored attention mechanism for code completion. However, standard neural language models even with attention mechanism cannot correctly predict the out-of-vocabulary (OoV) words that restrict the code completion performance. In this paper, inspired by the prevalence of locally repeated terms in program source code, and the recently proposed pointer copy mechanism, we propose a pointer mixture network for better predicting OoV words in code completion. Based on the context, the pointer mixture network learns to either generate a within-vocabulary word through an RNN component, or regenerate an OoV word from local context through a pointer component. Experiments on two benchmarked datasets demonstrate the effectiveness of our attention mechanism and pointer mixture network on the code completion task.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Seed-Coder: Let the Code Model Curate Data for Itself
SWE-Dev: Evaluating and Training Autonomous Feature-Driven Software Development
Can You Really Trust Code Copilots? Evaluating Large Language Models from a Code Security Perspective
ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding
LogQuant: Log-Distributed 2-Bit Quantization of KV Cache with Superior Accuracy Preservation
Enhancing High-Quality Code Generation in Large Language Models with Comparative Prefix-Tuning
토론
이 논문과 연결된 포럼 글이 아직 없습니다.