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
来源
COMPANION PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, FSE COMPANION 2024 | 2024年
关键词
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
相关论文
共 23 条
  • [1] Amazon Accessed, 2023, Amazon CodeWhisperer
  • [2] [Anonymous], 2023, Codeium vs Amazon CodeWhisperer
  • [3] Grounded Copilot: How Programmers Interact with Code-Generating Models
    Barke, Shraddha
    James, Michael B.
    Polikarpova, Nadia
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (OOPSLA):
  • [4] Bird Christian, 2022, ACM Queue, P35, DOI 10.1145/3582083
  • [5] Learning from Examples to Improve Code Completion Systems
    Bruch, Marcel
    Monperrus, Martin
    Mezini, Mira
    [J]. 7TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2009, : 213 - 222
  • [6] Dao T, 2022, Arxiv, DOI [arXiv:2205.14135, DOI 10.48550/ARXIV.2205.14135, 10.48550/arXiv.2205.14135]
  • [7] Fried D, 2023, Arxiv, DOI arXiv:2204.05999
  • [8] github, Smarter, more efficient coding: GitHub Copilot goes beyond Codex with improved AI model
  • [9] GitHub Accessed, 2021, Copilot
  • [10] GitHub Accessed, 2023, xformers