Cited by 10Software Engineering ResearchSoftware Engineering Techniques and PracticesTopic Modeling

Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systems

Sun, Zhensu, Du, Xiaoning, Song, Fu, Wang, Shangwen, Ni, Mingze, Li, Li·2023·2023 IEEE/ACM 45th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion)

Abstract

Currently, large pre-trained language models are widely applied in neural code completion systems. Though large code models significantly outperform their smaller counterparts, around 70% of displayed code completions from Copilot are not accepted by developers. Being reviewed but not accepted, their help to developer productivity is considerably limited. Even worse, considering the high cost of the large code models, it is a huge waste of computing resources and energy. To fill this significant gap, we propose an early-rejection mechanism to turn down low-return prompts by foretelling the code completion qualities without sending them to the code completion system. Furthermore, we propose a lightweight Transformer-based es-timator to demonstrate the feasibility of the mechanism. The experimental results show that the proposed estimator helps save 23.3% of computational cost measured in floating-point operations for the code completion systems, and 80.2% of rejected prompts lead to unhelpful completion.

Integrity signals

Registry

Crossref · 10.1109/icse-companion58688.2023.00089

Cites

2 of 2 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

This paper’s full text isn’t openly available, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Sun et al. assume completions are rejected based on the context before the cursor alone, ignoring the interplay with developers' mode of thought.

    “However, Sun et al. [39] assume completions are rejected based on the context before the cursor alone, ignoring the interplay with developers' mode of thought.”
  • Both Sun et al. and Mozannar et al. aim to maximise the acceptance rate of the shown completions.

    “Moreover, both of these tools aim to maximise the acceptance rate of the shown completions”
  • Sun et al.'s transformer-based classifier can hide 5% of suggestions that would have been rejected with 94.5% accuracy.

    “They train a transformer-based classifier on the code prefix before it is submitted to the completion model, and find it can hide 5% of suggestions that would have been rejected with 94.5% accuracy.”

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Sun, Z., Du, X., Song, F., Wang, S., Ni, M., & Li, L.
Affiliations
  • ShanghaiTech University (CN)
  • Monash University (AU)
  • National University of Defense Technology (CN)
  • University of Technology Sydney (AU)
Venue
2023 IEEE/ACM 45th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion)
Publisher
IEEE
Published
2023-05
Pages
324-325
ISSN
0270-5257 (ISSN-L)
OpenAlex
W4384026646
Cited by
8
References
1
Citations by year
2025: 2 · 2024: 5 · 2023: 1
FWCI
2.05
Type
conference paper
Language
en
Open access
closed
Locations
ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) (publishedVersion)
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
early rejection, large language models, Copilot, prompt filtering, computational complexity reduction, energy efficiency, developer productivity

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review