CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequences
Not on the map. Why?
Abstract (arXiv)
Code completion is an essential feature of IDEs, yet current autocompleters are restricted to either grammar-based or NLP-based single token completions. Both approaches have significant drawbacks: grammar-based autocompletion is restricted in dynamically-typed language environments, whereas NLP-based autocompleters struggle to understand the semantics of the programming language and the developer's code context. In this work, we present CodeFill, a language model for autocompletion that combines learned structure and naming information. Using a parallel Transformer architecture and multi-task learning, CodeFill consumes sequences of source code token names and their equivalent AST token types. Uniquely, CodeFill is trained both for single-token and multi-token (statement) prediction, which enables it to learn long-range dependencies among grammatical and naming elements. We train CodeFill on two datasets, consisting of 29M and 425M lines of code, respectively. To make the evaluation more realistic, we develop a method to automatically infer points in the source code at which completion matters. We compare CodeFill against four baselines and two state-of-the-art models, GPT-C and TravTrans+.CodeFill surpasses all baselines in single token prediction (MRR: 70.9% vs. 66.2% and 67.8%) and outperforms the state of the art for multi-token prediction (ROUGE-L: 63.7% vs. 52.4% and 59.2%, for n=4 tokens). We publicly release our source code and datasets.
Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). Builds on 27 of its 58 references that are in the map. First posted on arXiv 14 Feb 2022.
Builds on
27 of 58 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2017A Survey on Multi-Task Learningcited by 838
- 2018Multi-Task Learning as Multi-Objective Optimizationcited by 809
- 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 791
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2015Character-Aware Neural Language Modelscited by 129
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2019Hello, It's GPT-2 -- How Can I Help You? Towards the Use of Pretrained Language Models for Task-Oriented Dialogue Systemscited by 110
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
15 more
- 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
- 2019Pythia: AI-assisted Code Completion Systemcited by 54
- 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 53
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2019Patent Claim Generation by Fine-Tuning OpenAI GPT-2cited by 49
- 2020Fast and Memory-Efficient Neural Code Completioncited by 38
- 2020Topic Recommendation for Software Repositories using Multi-label Classification Algorithmscited by 20
- 2014Mining Idioms from Source Codecited by 19
- 2020Learning Autocompletion from Real-World Datasetscited by 19
- 2019A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learningcited by 18
- 2020Predicting the Objective and Priority of Issue Reports in Software Repositoriescited by 11
- 2020Sequence Model Design for Code Completion in the Modern IDEcited by 8
- 2019Combining Program Analysis and Statistical Language Model for Code Statement Completioncited by 5
- 2018Generating Summaries for Methods of Event-Driven Programs: an Android Case Studycited by 3
- 2021Siri, Write the Next Methodcited by 1
Built on by
Citing papers per year: 2022: 8; 2023: 15; 2024: 13; 2025: 10; 2026: 3.
49 papers.
Sort:
By area:
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 46
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024Language Models for Code Completion: A Practical Evaluationcited by 38
- 2023SALLM: Security Assessment of Generated Codecited by 35
- 2023Traces of Memorisation in Large Language Models for Codecited by 26
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
37 more
- 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
- 2023Enhancing Large Language Models for Secure Code Generation: A Dataset-driven Study on Vulnerability Mitigationcited by 14
- 2024LiCoEval: Evaluating LLMs on License Compliance in Code Generationcited by 13
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Modelscited by 12
- 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Testscited by 11
- 2022Syntax-Aware On-the-Fly Code Completioncited by 10
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completioncited by 10
- 2023The (ab)use of Open Source Code to Train Large Language Modelscited by 9
- 2024The Fault in our Stars: Quality Assessment of Code Generation Benchmarkscited by 9
- 2022All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logscited by 8
- 2023Targeted Attack on GPT-Neo for the SATML Language Model Data Extraction Challengecited by 7
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 7
- 2024Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Studycited by 7
- 2022Evaluating Generative Patent Language Modelscited by 6
- 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completioncited by 6
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Trainingcited by 6
- 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generationcited by 6
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Taskscited by 6
- 2023STACC: Code Comment Classification using SentenceTransformerscited by 5
- 2024A Transformer-Based Approach for Smart Invocation of Automatic Code Completioncited by 5
- 2023On the Impact of Language Selection for Training and Evaluating Programming Language Modelscited by 4
- 2022NeuDep: Neural Binary Memory Dependence Analysiscited by 3
- 2023ARIST: An Effective API Argument Recommendation Approachcited by 2
- 2025Rethinking IDE Customization for Enhanced HAX: A Hyperdimensional Perspectivecited by 2
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versionscited by 2
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metricscited by 2
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
- 2022An Empirical Study on Data Leakage and Generalizability of Link Prediction Models for Issues and Commitscited by 1
- 2024The Rise and Fall(?) of Software Engineeringcited by 1
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMscited by 1
- 2024Automating Code Adaptation for MLOps -- A Benchmarking Study on LLMscited by 0
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEscited by 0
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completioncited by 0
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASMLcited by 0
- 2025Challenge on Optimization of Context Collection for Code Completioncited by 0
- 2025Assessing the Software Security Comprehension of Large Language Modelscited by 0
- 2026Reviewing Model Collapse and Countermeasurescited by 0
- 2026Reviewing Model Collapse and Countermeasures17 Jun 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025Challenge on Optimization of Context Collection for Code Completion5 Oct 2025
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML15 Sep 2025
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion13 Aug 2025
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs4 Aug 2025
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics21 May 2025
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions13 Apr 2025
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Tasks2 Apr 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
37 more
- 2025Rethinking IDE Customization for Enhanced HAX: A Hyperdimensional Perspective5 Jan 2025
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models6 Oct 2024
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completion23 Sep 2024
- 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generation19 Sep 2024
- 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Tests21 Aug 2024
- 2024LiCoEval: Evaluating LLMs on License Compliance in Code Generation5 Aug 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion30 May 2024
- 2024A Transformer-Based Approach for Smart Invocation of Automatic Code Completion23 May 2024
- 2024Automating Code Adaptation for MLOps -- A Benchmarking Study on LLMs10 May 2024
- 2024The Fault in our Stars: Quality Assessment of Code Generation Benchmarks15 Apr 2024
- 2024Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Study22 Mar 2024
- 2024Language Models for Code Completion: A Practical Evaluation25 Feb 2024
- 2024Calibration and Correctness of Language Models for Code3 Feb 2024
- 2023Traces of Memorisation in Large Language Models for Code18 Dec 2023
- 2023SALLM: Security Assessment of Generated Code1 Nov 2023
- 2023Enhancing Large Language Models for Secure Code Generation: A Dataset-driven Study on Vulnerability Mitigation25 Oct 2023
- 2023On the Impact of Language Selection for Training and Evaluating Programming Language Models25 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023FRANC: A Lightweight Framework for High-Quality Code Generation17 Jul 2023
- 2023ARIST: An Effective API Argument Recommendation Approach11 Jun 2023
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Training25 May 2023
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Study30 Apr 2023
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study24 Apr 2023
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrieval6 Mar 2023
- 2023The (ab)use of Open Source Code to Train Large Language Models27 Feb 2023
- 2023STACC: Code Comment Classification using SentenceTransformers25 Feb 2023
- 2023Targeted Attack on GPT-Neo for the SATML Language Model Data Extraction Challenge13 Feb 2023
- 2023SantaCoder: don't reach for the stars!9 Jan 2023
- 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completion19 Dec 2022
- 2022The Stack: 3 TB of permissively licensed source code20 Nov 2022
- 2022Syntax-Aware On-the-Fly Code Completion9 Nov 2022
- 2022An Empirical Study on Data Leakage and Generalizability of Link Prediction Models for Issues and Commits1 Nov 2022
- 2022NeuDep: Neural Binary Memory Dependence Analysis4 Oct 2022
- 2022Evaluating Generative Patent Language Models23 Jun 2022
- 2022All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logs21 May 2022
- 2022InCoder: A Generative Model for Code Infilling and Synthesis12 Apr 2022
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generationcited by 6
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completioncited by 0
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion13 Aug 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generation19 Sep 2024
- 2026Reviewing Model Collapse and Countermeasurescited by 0
- 2026Reviewing Model Collapse and Countermeasures17 Jun 2026
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 46
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024Language Models for Code Completion: A Practical Evaluationcited by 38
- 2023SALLM: Security Assessment of Generated Codecited by 35
- 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
- 2023Enhancing Large Language Models for Secure Code Generation: A Dataset-driven Study on Vulnerability Mitigationcited by 14
12 most cited of 42 All 42 (JSON)
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025Challenge on Optimization of Context Collection for Code Completion5 Oct 2025
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML15 Sep 2025
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs4 Aug 2025
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics21 May 2025
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions13 Apr 2025
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Tasks2 Apr 2025
- 2025Rethinking IDE Customization for Enhanced HAX: A Hyperdimensional Perspective5 Jan 2025
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models6 Oct 2024
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completion23 Sep 2024
12 newest of 42 All 42 (JSON)