TY - GEN
T1 - Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systems
AU - Sun, Zhensu
AU - Du, Xiaoning
AU - Song, Fu
AU - Wang, Shangwen
AU - Ni, Mingze
AU - Li, Li
N1 - Publisher Copyright:
© 2023 IEEE.
PY - 2023/7/27
Y1 - 2023/7/27
N2 - 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.
AB - 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.
UR - https://www.scopus.com/pages/publications/85171839141
U2 - 10.1109/ICSE-Companion58688.2023.00089
DO - 10.1109/ICSE-Companion58688.2023.00089
M3 - 会议稿件
AN - SCOPUS:85171839141
T3 - Proceedings - International Conference on Software Engineering
SP - 324
EP - 325
BT - Proceedings - 2023 IEEE/ACM 45th International Conference on Software Engineering
PB - IEEE Computer Society
T2 - 45th IEEE/ACM International Conference on Software Engineering: Companion Proceedings, ICSE-Companion 2023
Y2 - 15 May 2023 through 16 May 2023
ER -