Toward Less Hidden Cost of Code Completion with Acceptance and Ranking Models
Jingxuan Li, Rui Huang, Wei Li, Kai Yao, Weiguo Tan

TL;DR
This paper proposes an ensemble framework with an acceptance model and a fusion ranking scheme to improve code completion accuracy and reduce invalid results, enhancing developer experience.
Contribution
It introduces a dynamic acceptance model and a flexible fusion ranking scheme for combining multiple code completion models, improving precision and ranking effectiveness.
Findings
Acceptance model reduces false positives from 55.09% to 17.44%.
Fusion ranking improves TOP1 accuracy by 27.80%.
Proposes BCR metric for realistic evaluation.
Abstract
Code completion is widely used by software developers to provide coding suggestions given a partially written code snippet. Apart from the traditional code completion methods, which only support single token completion at minimal positions, recent studies show the ability to provide longer code completion at more flexible positions. However, such frequently triggered and longer completion results reduce the overall precision as they generate more invalid results. Moreover, different studies are mostly incompatible with each other. Thus, it is vital to develop an ensemble framework that can combine results from multiple models to draw merits and offset defects of each model. This paper conducts a coding simulation to collect data from code context and different code completion models and then apply the data in two tasks. First, we introduce an acceptance model which can dynamically…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software System Performance and Reliability · Software Reliability and Analysis Research
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Cosine Annealing · Refunds@Expedia|||How do I get a full refund from Expedia? · Residual Connection · Linear Warmup With Cosine Annealing · Attention Dropout · Softmax · Dense Connections
