Multi-line AI-Assisted Code Authoring

被引:0
|
作者
Dunay, Omer [1 ]
Cheng, Daniel [2 ]
Tait, Adam [1 ]
Thakkar, Parth [3 ]
Rigby, Peter C. [1 ,4 ]
Chiu, Andy [1 ]
Ahmad, Imad [3 ]
Ganesan, Arun [1 ]
Maddila, Chandra [2 ]
Murali, Vijayaraghavan [3 ]
Tayyebi, Ali [1 ]
Nagappan, Nachiappan [1 ]
机构
[1] Meta Platforms Inc, New York, NY 10003 USA
[2] Meta Platforms Inc, Bellevue, WA USA
[3] Meta Platforms Inc, Menlo Pk, CA USA
[4] Concordia Univ, Montreal, PQ, Canada
关键词
AI; Developer productivity; Neural code completion; Program synthesis; LLM code authoring; User experience; Responsiveness;
D O I
10.1145/3663529.3663836
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
CodeCompose is an AI-assisted code authoring tool powered by large language models (LLMs) that provides inline suggestions all developers at Meta. In this paper, we present how we scaled the product from displaying single-line suggestions to multi-line suggestions. This evolution required us to overcome several unique challenges in improving the usability of these suggestions for developers. First, we discuss how multi-line suggestions can have a "jarring" effect, as the LLM's suggestions constantly move around the developer's existing code, which would otherwise result in decreased productivity and satisfaction. Second, multi-line suggestions take significantly longer to generate; hence we present several innovative investments we made to reduce the perceived latency for users. These model-hosting optimizations sped up multi-line suggestion latency by 2.5x. Finally, we conduct experiments on 10's of thousands of engineers to understand how multi-line suggestions impact the user experience and contrast this with single-line suggestions. Our experiments reveal that (i) multi-line suggestions account for 42% of total characters accepted (despite only accounting for 16% for displayed suggestions) (ii) multi-line suggestions almost doubled the percentage of keystrokes saved for users from 9% to 17%. Multi-line CODECOMPOSE has been rolled out to all engineers at Meta, and less than 1% of engineers have opted out of multi-line suggestions.
引用
收藏
页码:150 / 160
页数:11
相关论文
共 50 条
  • [1] Multi-line AI-assisted Code Authoring
    Dunay, Omer
    Cheng, Daniel
    Tait, Adam
    Thakkar, Parth
    Rigby, Peter C.
    Chiu, Andy
    Ahmad, Imad
    Ganesan, Arun
    Maddila, Chandra
    Murali, Vijayaraghavan
    Tayyebi, Ali
    Nagappan, Nachi
    arXiv,
  • [2] Pythia: AI-assisted Code Completion System
    Svyatkovskiy, Alexey
    Zhao, Ying
    Fu, Shengyu
    Sundaresan, Neel
    KDD'19: PROCEEDINGS OF THE 25TH ACM SIGKDD INTERNATIONAL CONFERENCCE ON KNOWLEDGE DISCOVERY AND DATA MINING, 2019, : 2727 - 2735
  • [3] AI-Assisted Assessment of Coding Practices in Modern Code Review
    Vijayvergiya, Manushree
    Salawa, Malgorzata
    Budiselic, Ivan
    Zheng, Dan
    Lamblin, Pascal
    Ivankovic, Marko
    Carin, Juanjo
    Lewko, Mateusz
    Andonov, Jovan
    Petrovic, Goran
    Tarlow, Daniel
    Maniatis, Petros
    Just, Rene
    PROCEEDINGS OF THE 1ST ACM INTERNATIONAL CONFERENCE ON AI-POWERED SOFTWARE, AIWARE 2024, 2024, : 85 - 93
  • [4] AI-Assisted Programming Tasks Using Code Embeddings and Transformers
    Kotsiantis, Sotiris
    Verykios, Vassilios
    Tzagarakis, Manolis
    ELECTRONICS, 2024, 13 (04)
  • [5] PATHWiSE: An AI-Assisted Teacher Authoring Tool for Creating Custom Robot-Assisted Learning Activities
    Rahman, Md Anisur
    Felix, Isaac
    Shahid, Usman
    Michaelis, Joseph E.
    COMPANION OF THE 2024 ACM/IEEE INTERNATIONAL CONFERENCE ON HUMAN-ROBOT INTERACTION, HRI 2024 COMPANION, 2024, : 88 - 90
  • [6] AI-assisted endoscopy
    不详
    DEUTSCHE MEDIZINISCHE WOCHENSCHRIFT, 2024, 149 (05) : 203 - 203
  • [7] AI-ASSISTED WARFARE
    Michel, Arthur Holland
    MIT TECHNOLOGY REVIEW, 2023, 126 (05): : 46 - 53
  • [8] AI-assisted Boolean search
    Kurian, N.
    Cherian, J. M.
    Cherian, K. K.
    Varghese, K. G.
    BRITISH DENTAL JOURNAL, 2023, 235 (06) : 363 - 363
  • [9] AI-assisted dental care
    S. Patil
    S. Bhandi
    K. H. Awan
    F. Licari
    British Dental Journal, 2023, 234 : 555 - 556
  • [10] Towards transparency and knowledge exchange in AI-assisted data analysis code generation
    Haase, Robert
    NATURE COMPUTATIONAL SCIENCE, 2025, : 271 - 272