• Cite Icon82
  • https://doi.org/10.1145/3510003.3510172Copy DOI Icon

CodeFill

  • May 21, 2022
  • Maliheh Izadi +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

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.

Similar Papers
  • Research Article
  • Citations77

Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs

  • May 18, 2021
  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Yanlin Wang +1
  • Conference Article
  • Citations84

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

  • Jul 13, 2020
  • Fang Liu +5
  • Research Article
  • Citations9

A Learning-Based Approach to Static Program Slicing

  • Apr 29, 2024
  • Proceedings of the ACM on Programming Languages
  • Aashish Yadavally +3
  • Conference Article
  • Citations169

Multi-task learning based pre-trained language model for code completion

  • Dec 21, 2020
  • Fang Liu +3
  • Research Article
  • Citations22

Multitask Deep Neural Networks for Ames Mutagenicity Prediction.

  • Sep 06, 2022
  • Journal of Chemical Information and Modeling
  • María Jimena Martínez +7
  • Research Article

Uniform Loss Versus Specialized Optimization: A Comparative Analysis in Multi-Task Learning

  • Jan 01, 2026
  • IEEE Access
  • Gabriel S Gama +1
  • Book Chapter
  • Citations4

Improving Low-Resource Chinese Event Detection with Multi-task Learning

  • Jan 01, 2020
  • Meihan Tong +4
  • Research Article
  • Citations19

Stepwise API usage assistance using n -gram language models

  • Jun 24, 2016
  • Journal of Systems and Software
  • André L Santos +3
  • Book Chapter
  • Citations1

A Catalog of Source Code Metrics – A Tertiary Study

  • Jan 01, 2023
  • Umar Iftikhar +3
  • PDF
  • Research Article
  • Citations7

Assessing the Use of German Claims Data Vocabularies for Research in the Observational Medical Outcomes Partnership Common Data Model: Development and Evaluation Study.

  • Nov 07, 2023
  • JMIR Medical Informatics
  • Elisa Henke +8
  • Conference Article
  • Citations78

Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning

  • Apr 20, 2020
  • Wei Ye +5
  • Conference Article

MSI-SDL: A semantic description language for multi-source binary translation systems

  • Apr 01, 2013
  • Xiaonan Liu +4
  • Research Article
  • Citations165

A simple and compact Python code for complex 3D topology optimization

  • Mar 04, 2015
  • Advances in Engineering Software
  • Zhi Hao Zuo +1
  • PDF
  • Research Article
  • Citations5

PragFormer: Data-Driven Parallel Source Code Classification with Transformers

  • Oct 28, 2024
  • International Journal of Parallel Programming
  • Re’Em Harel +5
  • Research Article

Exploring the Impact of Balanced and Imbalanced Learning in Source Code Suggestion

  • Oct 01, 2022
  • International Journal of Software Engineering and Knowledge Engineering
  • Yasir Hussain +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.