mlsanityData to 7 Oct 2026

Multi-task Learning based Pre-trained Language Model for Code Completion

arXiv 2012.14631 ↗First posted 29 Dec 2020cs.SEcited by 58

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 6; 2022: 17; 2023: 14; 2024: 10; 2025: 9; 2026: 2.

58 papers.

Sort:

By area:

  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  3. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  4. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  5. 2023AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Headcited by 264
  6. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  7. 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
  8. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
  9. 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
  10. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
  11. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
  12. 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
38 more
  1. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  2. 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
  3. 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
  4. 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
  5. 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
  6. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  7. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  8. 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
  9. 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
  10. 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
  11. 2022An Exploratory Study on Code Attention in BERTcited by 12
  12. 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
  13. 2024Quantum Mixed-State Self-Attention Networkcited by 11
  14. 2022Syntax-Aware On-the-Fly Code Completioncited by 10
  15. 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
  16. 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
  17. 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
  18. 2025Enabling Autoregressive Models to Fill In Masked Tokenscited by 7
  19. 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6
  20. 2022CommitBART: A Large Pre-trained Model for GitHub Commitscited by 6
  21. 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completioncited by 6
  22. 2024Keeping Deep Learning Models in Check: A History-Based Approach to Mitigate Overfittingcited by 6
  23. 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
  24. 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
  25. 2026Beware What You Autocomplete: Forensic Attribution of Backdoored Code Completionscited by 4
  26. 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
  27. 2021DeepAnalyze: Learning to Localize Crashes at Scalecited by 2
  28. 2022GAP-Gen: Guided Automatic Python Code Generationcited by 2
  29. 2023ARIST: An Effective API Argument Recommendation Approachcited by 2
  30. 2025UniGenCoder: Merging Seq2Seq and Seq2Tree Paradigms for Unified Code Generationcited by 2
  31. 2025CCCI: Code Completion with Contextual Information for Complex Data Transfer Tasks Using Large Language Modelscited by 2
  32. 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMscited by 2
  33. 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
  34. 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
  35. 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
  36. 2022Addressing Leakage in Self-Supervised Contextualized Code Retrievalcited by 1
  37. 2023LaFiCMIL: Rethinking Large File Classification from the Perspective of Correlated Multiple Instance Learningcited by 1
  38. 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Losscited by 1

50 most cited of 58 All 58 (JSON)