mlsanityData to 7 Oct 2026

A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learning

arXiv 1909.06983 ↗First posted 16 Sep 2019cs.SE cs.AIcited by 18

Not on the map. Why?

Abstract (arXiv)

Code completion, one of the most useful features in the Integrated Development Environments (IDEs), can accelerate software development by suggesting the libraries, APIs, and method names in real-time. Recent studies have shown that statistical language models can improve the performance of code completion tools through learning from large-scale software repositories. However, these models suffer from three major drawbacks: a) The hierarchical structural information of the programs is not fully utilized in the program's representation; b) In programs, the semantic relationships can be very long. Existing recurrent neural networks based language models are not sufficient to model the long-term dependency. c) Existing approaches perform a specific task in one model, which leads to the underuse of the information from related tasks. To address these challenges, in this paper, we propose a self-attentional neural architecture for code completion with multi-task learning. To utilize the hierarchical structural information of the programs, we present a novel method that considers the path from the predicting node to the root node. To capture the long-term dependency in the input programs, we adopt a self-attentional architecture based network as the base language model. To enable the knowledge sharing between related tasks, we creatively propose a Multi-Task Learning (MTL) framework to learn two related tasks in code completion jointly. Experiments on three real-world datasets demonstrate the effectiveness of our model when compared with state-of-the-art methods.

Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Sep 2019.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 6; 2022: 6; 2023: 2; 2024: 2; 2025: 2.

18 papers.

Sort:

By area:

  1. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  2. 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
  3. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  4. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
  5. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
  6. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  7. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  8. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  9. 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
  10. 2022Syntax-Aware On-the-Fly Code Completioncited by 10
  11. 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
  12. 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6
6 more
  1. 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
  2. 2021Toward Less Hidden Cost of Code Completion with Acceptance and Ranking Modelscited by 4
  3. 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
  4. 2021DeepAnalyze: Learning to Localize Crashes at Scalecited by 2
  5. 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Modelscited by 2
  6. 2025Proactive Agentic Whiteboards: Enhancing Diagrammatic Learningcited by 0