A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learning
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
Citing papers per year: 2021: 6; 2022: 6; 2023: 2; 2024: 2; 2025: 2.
18 papers.
Sort:
By area:
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
- 2022Syntax-Aware On-the-Fly Code Completioncited by 10
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
- 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6
6 more
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
- 2021Toward Less Hidden Cost of Code Completion with Acceptance and Ranking Modelscited by 4
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2021DeepAnalyze: Learning to Localize Crashes at Scalecited by 2
- 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Modelscited by 2
- 2025Proactive Agentic Whiteboards: Enhancing Diagrammatic Learningcited by 0
- 2025Proactive Agentic Whiteboards: Enhancing Diagrammatic Learning1 Dec 2025
- 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Models29 Mar 2025
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++24 Jul 2024
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approach22 Apr 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?24 Apr 2023
- 2022Syntax-Aware On-the-Fly Code Completion9 Nov 2022
- 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learning13 Jun 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022Compilable Neural Code Generation with Compiler Feedback10 Mar 2022
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequences14 Feb 2022
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representations19 Jan 2022
6 more
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translation13 Oct 2021
- 2021DeepAnalyze: Learning to Localize Crashes at Scale29 Sep 2021
- 2021Toward Less Hidden Cost of Code Completion with Acceptance and Ranking Models26 Jun 2021
- 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs17 Mar 2021
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languages15 Feb 2021
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
- 2022Syntax-Aware On-the-Fly Code Completioncited by 10
- 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
12 most cited of 16 All 16 (JSON)
- 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Models29 Mar 2025
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++24 Jul 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?24 Apr 2023
- 2022Syntax-Aware On-the-Fly Code Completion9 Nov 2022
- 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learning13 Jun 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022Compilable Neural Code Generation with Compiler Feedback10 Mar 2022
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequences14 Feb 2022
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representations19 Jan 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translation13 Oct 2021
12 newest of 16 All 16 (JSON)