paper-with-me

Papers

Sequence Model Design for Code Completion in the Modern IDE

2020-04-10 · Gareth Ari Aye, Gail E. Kaiser

Code completion plays a prominent role in modern integrated development environments (IDEs). Machine learning has become ubiquitous in analogous natural language writing and search software, surfacing more relevant autocompletions and search suggestions in fewer keystrokes. Prior research has reported training high-accuracy, deep neural networks for modeling source code, but little attention has been given to the practical constraints imposed by interactive developer tools. In particular, neural language models for source code modeling like the one described in Maybe Deep Neural Networks are the Best Choice for Modeling Source Code are framed around code completion, but only report accuracy of next-token prediction. However, in order for a language model (LM) to work well within real-world code completion systems, it must also always make suggestions that produce valid code that typechecks to support code completion's role in correctness-checking; return instantaneous results to help programmers code more efficiently in fewer keystrokes; and be small enough to fit comfortably on disk and in memory on developer workstations, since virtually all modern IDEs run locally and support offline usage. To meet these additional requirements, we propose a novel design for predicting top-k next tokens that combines static analysis' ability to enumerate all valid keywords and in-scope identifiers with the ability of a language model to place a probability distribution over them. Our model mixes character-level input representation with token output to represent out-of-vocabulary (OOV) tokens meaningfully and minimize prediction latency. OOV tokens can be predicted through detection of local repetition common in software. This design achieves state-of-art accuracy in source code modeling and fits the constraints imposed by real-world code completion implementations in modern IDEs.

📄 PDF Abstract BibTeX arXiv:2004.05249

Code (0)

등록된 구현이 없습니다.

Tasks

Code CompletionLanguage ModelingLanguage Modellingvalid

Similar Papers 제목 키워드 기반

Fast and Memory-Efficient Neural Code Completion

2020-04-28 · Alexey Svyatkovskiy, Sebastian Lee, Anna Hadjitofi, Maik Riechert 외

Code completion is one of the most widely used features of modern integrated development environments (IDEs). While deep learning has made significant progress in the statistical prediction of source code, state-of-the-a…

Code CompletionLanguage ModellingLearning-To-RankReranking

GenIC: An LLM-Based Framework for Instance Completion in Knowledge Graphs

2025-05-29 · Amel Gader, Alsayed Algergawy

Knowledge graph completion aims to address the gaps of knowledge bases by adding new triples that represent facts. The complexity of this task depends on how many parts of a triple are already known. Instance completion …

Knowledge Graph CompletionKnowledge GraphsLink PredictionMulti-Label Classification+2

Top-k String Auto-Completion with Synonyms

2016-11-22 · Xu Pengfei, Lu Jiaheng

Auto-completion is one of the most prominent features of modern information systems. The existing solutions of auto-completion provide the suggestions based on the beginning of the currently input character sequence (i.e…

ManagementRetrieval

R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models

2024-06-03 · Ken Deng, Jiaheng Liu, He Zhu, Congnan Liu 외

Code completion models have made significant progress in recent years. Recently, repository-level code completion has drawn more attention in modern software development, and several baseline methods and benchmarks have …

BenchmarkingCode CompletionRetrieval

Comparative Analysis of Large Language Models for Context-Aware Code Completion using SAFIM Framework

2025-02-21 · Hang Zhang, Yanxin Shen, Lun Wang, Chuanqi Shi 외

The advent of Large Language Models (LLMs) has revolutionized code completion, transforming it into a more intelligent and context-aware feature in modern integrated development environments. These advancements have sign…

Code CompletionCode Generation