mlsanityData to 7 Oct 2026

Code Completion with Neural Attention and Pointer Networks

arXiv 1711.09573 ↗First posted 27 Nov 2017cs.CL cs.SEcited by 49

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Nov 2017.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 14; 2022: 10; 2023: 13; 2024: 9; 2025: 3.

49 papers.

Sort:

By area:

  1. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  2. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  3. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  4. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  5. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
  6. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  7. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  8. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  9. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
  10. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
  11. 2023RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repaircited by 43
  12. 2021SpreadsheetCoder: Formula Prediction from Semi-structured Contextcited by 41
37 more
  1. 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
  2. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 33
  3. 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 32
  4. 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
  5. 2023Learning Deep Semantics for Test Completioncited by 31
  6. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  7. 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
  8. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  9. 2023InstructABSA: Instruction Learning for Aspect Based Sentiment Analysiscited by 22
  10. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  11. 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 16
  12. 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
  13. 2022Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systemscited by 12
  14. 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completioncited by 12
  15. 2021Context-NER : Contextual Phrase Generation at Scalecited by 11
  16. 2022Syntax-Aware On-the-Fly Code Completioncited by 10
  17. 2024FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completioncited by 9
  18. 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
  19. 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammarscited by 8
  20. 2021Improving Code Autocompletion with Transfer Learningcited by 6
  21. 2021On the Capabilities of Pointer Networks for Deep Deductive Reasoningcited by 4
  22. 2021Toward Less Hidden Cost of Code Completion with Acceptance and Ranking Modelscited by 4
  23. 2021Autoencoders as Tools for Program Synthesiscited by 4
  24. 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
  25. 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
  26. 2021Senatus -- A Fast and Accurate Code-to-Code Recommendation Enginecited by 3
  27. 2022A Survey on Natural Language Processing for Programmingcited by 3
  28. 2023Neural Machine Translation for Code Generationcited by 3
  29. 2023EDM3: Event Detection as Multi-task Text Generationcited by 3
  30. 2025SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executorscited by 3
  31. 2021Discrete Auto-regressive Variational Attention Models for Text Modelingcited by 2
  32. 2023ARIST: An Effective API Argument Recommendation Approachcited by 2
  33. 2022Data-Driven Approach for Log Instruction Quality Assessmentcited by 1
  34. 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
  35. 2024The Rise and Fall(?) of Software Engineeringcited by 1
  36. 2022Code Sophistication: From Code Recommendation to Logic Recommendationcited by 0
  37. 2023Serenity: Library Based Python Code Analysis for Code Completion and Automated Machine Learningcited by 0