Multi-task Learning based Pre-trained Language Model for Code Completion
Not on the map. Why?
Abstract (arXiv)
Code completion is one of the most useful features in the Integrated Development Environments (IDEs), which can accelerate software development by suggesting the next probable token based on the contextual code in real-time. Recent studies have shown that statistical language modeling techniques can improve the performance of code completion tools through learning from large-scale software repositories. However, these models suffer from two major drawbacks: a) Existing research uses static embeddings, which map a word to the same vector regardless of its context. The differences in the meaning of a token in varying contexts are lost when each token is associated with a single representation; b) Existing language model based code completion models perform poor on completing identifiers, and the type information of the identifiers is ignored in most of these models. To address these challenges, in this paper, we develop a multi-task learning based pre-trained language model for code understanding and code generation with a Transformer-based neural architecture. We pre-train it with hybrid objective functions that incorporate both code understanding and code generation tasks. Then we fine-tune the pre-trained model on code completion. During the completion, our model does not directly predict the next token. Instead, we adopt multi-task learning to predict the token and its type jointly and utilize the predicted type to assist the token prediction. Experiments results on two real-world datasets demonstrate the effectiveness of our model when compared with state-of-the-art methods.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 17; 2023: 14; 2024: 10; 2025: 9; 2026: 2.
58 papers.
Sort:
By area:
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Headcited by 264
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
38 more
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
- 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
- 2022An Exploratory Study on Code Attention in BERTcited by 12
- 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
- 2024Quantum Mixed-State Self-Attention Networkcited by 11
- 2022Syntax-Aware On-the-Fly Code Completioncited by 10
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
- 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
- 2025Enabling Autoregressive Models to Fill In Masked Tokenscited by 7
- 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6
- 2022CommitBART: A Large Pre-trained Model for GitHub Commitscited by 6
- 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completioncited by 6
- 2024Keeping Deep Learning Models in Check: A History-Based Approach to Mitigate Overfittingcited by 6
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
- 2026Beware What You Autocomplete: Forensic Attribution of Backdoored Code Completionscited by 4
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
- 2021DeepAnalyze: Learning to Localize Crashes at Scalecited by 2
- 2022GAP-Gen: Guided Automatic Python Code Generationcited by 2
- 2023ARIST: An Effective API Argument Recommendation Approachcited by 2
- 2025UniGenCoder: Merging Seq2Seq and Seq2Tree Paradigms for Unified Code Generationcited by 2
- 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Modelscited by 2
- 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMscited by 2
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
- 2022Addressing Leakage in Self-Supervised Contextualized Code Retrievalcited by 1
- 2023LaFiCMIL: Rethinking Large File Classification from the Perspective of Correlated Multiple Instance Learningcited by 1
- 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Losscited by 1
50 most cited of 58 All 58 (JSON)
- 2026Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task18 Aug 2026
- 2026Beware What You Autocomplete: Forensic Attribution of Backdoored Code Completions9 Jul 2026
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectories4 Aug 2025
- 2025Applying Large Language Models to Issue Classification: Revisiting with Extended Data and New Models30 May 2025
- 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMs21 Apr 2025
- 2025Pay More Attention to the Robustness of Prompt for Instruction Data Mining31 Mar 2025
- 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Models29 Mar 2025
- 2025Evaluating Human Trust in LLM-Based Planners: A Preliminary Study27 Feb 2025
- 2025UniGenCoder: Merging Seq2Seq and Seq2Tree Paradigms for Unified Code Generation18 Feb 2025
- 2025MTLM: Incorporating Bidirectional Text Information to Enhance Language Model Training in Speech Recognition Systems14 Feb 2025
- 2025Enabling Autoregressive Models to Fill In Masked Tokens9 Feb 2025
- 2024In-Context Code-Text Learning for Bimodal Software Engineering8 Oct 2024
38 more
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code23 Sep 2024
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++24 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detection10 Jun 2024
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approach22 Apr 2024
- 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Loss9 Mar 2024
- 2024Quantum Mixed-State Self-Attention Network5 Mar 2024
- 2024Keeping Deep Learning Models in Check: A History-Based Approach to Mitigate Overfitting18 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023LaFiCMIL: Rethinking Large File Classification from the Perspective of Correlated Multiple Instance Learning30 Jul 2023
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Review4 Jul 2023
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completion26 Jun 2023
- 2023ARIST: An Effective API Argument Recommendation Approach11 Jun 2023
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugs6 Jun 2023
- 2023Skill over Scale: The Case for Medium, Domain-Specific Models for SE5 Jun 2023
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems5 Jun 2023
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completion1 Jun 2023
- 2023AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Head25 Apr 2023
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-training8 Feb 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2023Syntax and Domain Aware Model for Unsupervised Program Translation8 Feb 2023
- 2022A Survey on Pretrained Language Models for Neural Code Intelligence20 Dec 2022
- 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completion19 Dec 2022
- 2022Syntax-Aware On-the-Fly Code Completion9 Nov 2022
- 2022CodeEditor: Learning to Edit Source Code with Pre-trained Models31 Oct 2022
- 2022CommitBART: A Large Pre-trained Model for GitHub Commits17 Aug 2022
- 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learning13 Jun 2022
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Code2 Jun 2022
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Code24 May 2022
- 2022Addressing Leakage in Self-Supervised Contextualized Code Retrieval17 Apr 2022
- 2022An Exploratory Study on Code Attention in BERT5 Apr 2022
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition5 Apr 2022
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languages5 Apr 2022
- 2022ReACC: A Retrieval-Augmented Code Completion Framework15 Mar 2022
- 2022Compilable Neural Code Generation with Compiler Feedback10 Mar 2022
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representation8 Mar 2022
50 newest of 58 All 58 (JSON)
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
- 2026Beware What You Autocomplete: Forensic Attribution of Backdoored Code Completionscited by 4
- 2026Beware What You Autocomplete: Forensic Attribution of Backdoored Code Completions9 Jul 2026
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code23 Sep 2024
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detection10 Jun 2024
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approach22 Apr 2024
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2022ReACC: A Retrieval-Augmented Code Completion Framework15 Mar 2022
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Headcited by 264
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
12 most cited of 52 All 52 (JSON)
- 2026Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task18 Aug 2026
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectories4 Aug 2025
- 2025Applying Large Language Models to Issue Classification: Revisiting with Extended Data and New Models30 May 2025
- 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMs21 Apr 2025
- 2025Pay More Attention to the Robustness of Prompt for Instruction Data Mining31 Mar 2025
- 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Models29 Mar 2025
- 2025Evaluating Human Trust in LLM-Based Planners: A Preliminary Study27 Feb 2025
- 2025UniGenCoder: Merging Seq2Seq and Seq2Tree Paradigms for Unified Code Generation18 Feb 2025
- 2025MTLM: Incorporating Bidirectional Text Information to Enhance Language Model Training in Speech Recognition Systems14 Feb 2025
- 2025Enabling Autoregressive Models to Fill In Masked Tokens9 Feb 2025
- 2024In-Context Code-Text Learning for Bimodal Software Engineering8 Oct 2024
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++24 Jul 2024
12 newest of 52 All 52 (JSON)