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 条
  • [21] AI-assisted Coding with Cody: Lessons from Context Retrieval and Evaluation for Code Recommendations
    Hartman, Jan
    Sagtani, Hitesh
    Tibshirani, Julie
    Mehrotra, Rishabh
    PROCEEDINGS OF THE EIGHTEENTH ACM CONFERENCE ON RECOMMENDER SYSTEMS, RECSYS 2024, 2024, : 748 - 750
  • [22] AI-ASSISTED DIGITALISATION OF HISTORICAL DOCUMENTS
    Ferro, S.
    Pelillo, M.
    Traviglia, A.
    29TH CIPA SYMPOSIUM DOCUMENTING, UNDERSTANDING, PRESERVING CULTURAL HERITAGE. HUMANITIES AND DIGITAL TECHNOLOGIES FOR SHAPING THE FUTURE, VOL. 48-M-2, 2023, : 557 - 562
  • [23] Benefits of AI-assisted obstetric surveillance
    Graupner, O.
    Enzensberger, C.
    GYNAKOLOGIE, 2022, 55 (10): : 740 - 745
  • [24] Accessibility in AI-Assisted Web Development
    Mowar, Peya
    21ST INTERNATIONAL WEB FOR ALL CONFERENCE, W4A2024, 2024, : 123 - 125
  • [25] Chart What I Say: Exploring Cross-Modality Prompt Alignment in AI-Assisted Chart Authoring
    Ponochevnyi, Nazar
    Kuzminykh, Anastasia
    EXTENDED ABSTRACTS OF THE 2024 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS, CHI 2024, 2024,
  • [26] Writing the rules in AI-assisted writing
    Nature Machine Intelligence, 2023, 5 : 469 - 469
  • [27] AI-assisted prognostic scoring of tumours
    不详
    VETERINARY RECORD, 2024, 195 (12) : 486 - 486
  • [28] AI-Assisted Intelligent Humanoid Robot
    Dilip Kumar Pratihar
    Transactions of the Indian National Academy of Engineering, 2024, 9 (2) : 313 - 321
  • [29] AI-assisted game debugging with Cicero
    Machado, Tiago
    Gopstein, Daniel
    Nealen, Andy
    Nov, Oded
    Togelius, Julian
    2018 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2018, : 9 - 16
  • [30] Informative Artifacts in AI-Assisted Care
    Azizi, Zahra
    Vedelli, Jordan K. H.
    Anand, Kanwaljeet J. S.
    NEW ENGLAND JOURNAL OF MEDICINE, 2023, 389 (22): : 2113 - 2113