Lune

FSE2024Top-tier venue

AI-Assisted Code Authoring at Scale: Fine-Tuning, Deploying, and Mixed Methods Evaluation

Vijayaraghavan Murali, Chandra Shekhar Maddila, Imad Ahmad, Michael Bolin, Daniel Cheng, Negar Ghorbani, Renuka Fernandez, Nachiappan Nagappan, Peter C. Rigby

Abstract

Generative LLMs have been shown to effectively power AI-based code authoring tools that can suggest entire statements or blocks of code during code authoring. In this paper we present CodeCompose, an AI-assisted code authoring tool developed and deployed at Meta internally. CodeCompose is based on the InCoder LLM that merges generative capabilities with bi-directionality. We have scaled up CodeCompose to serve tens of thousands of developers at Meta, across 9 programming languages and several coding surfaces. We present our experience in making design decisions about the model and system architecture for CodeCompose that addresses these challenges. To release a LLM model at this scale, we needed to first ensure that it is sufficiently accurate. In a random sample of 20K source code files, depending on the language, we are able to reproduce hidden lines between 40% and 58% of the time, an improvement of 1.4× and 4.1× over a model trained only on public data. We gradually rolled CodeCompose out to developers. At the time of this writing, 16K developers have used it with 8% of their code coming directly from CodeCompose. To triangulate our numerical findings, we conduct a thematic analysis on the feedback from 70 developers. We find that 91.5% of the feedback is positive, with the most common themes being discovering APIs, dealing with boilerplate code, and accelerating coding. Meta continues to integrate this feedback into CodeCompose.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Droid: A Resource Suite for AI-Generated Code Detection cites ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding
  • CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis cites InCoder: A Generative Model for Code Infilling and Synthesis
  • CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis cites Language Models are Few-Shot Learners
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites InCoder: A Generative Model for Code Infilling and Synthesis
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Language Models are Few-Shot Learners
  • ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding cites InCoder: A Generative Model for Code Infilling and Synthesis
  • ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding cites Code Prediction by Feeding Trees to Transformers
  • Direct Manipulation and Natural Language Programming, Together at Last? cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Direct Manipulation and Natural Language Programming, Together at Last? cites How Beginning Programmers and Code LLMs (Mis)read Each Other
  • InCoder: A Generative Model for Code Infilling and Synthesis cites Language Models are Few-Shot Learners
  • How Beginning Programmers and Code LLMs (Mis)read Each Other cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
  • How Beginning Programmers and Code LLMs (Mis)read Each Other cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • How Beginning Programmers and Code LLMs (Mis)read Each Other cites InCoder: A Generative Model for Code Infilling and Synthesis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. How Beginning Programmers and Code LLMs (Mis)read Each OtherSydney Nguyen, Hannah McLean Babe, Yangtian Zi, Arjun Guha et al.CHI 2024 · 66 citations
  2. Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMsFederico Cassano, John Gouwar, Francesca Lucchetti, Claire Schlesinger et al.OOPSLA 2024 · 33 citations
  3. Droid: A Resource Suite for AI-Generated Code DetectionDaniil Orel, Indraneil Paul, Iryna Gurevych, Preslav NakovEMNLP 2025
  4. ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation GroundingIndraneil Paul, Haoyi Yang, Goran Glavas, Kristian Kersting et al.ICLR 2025
  5. Direct Manipulation and Natural Language Programming, Together at Last?Parker Ziegler, David Minh-Duy Cao, Justin Lubin, Sarah E. ChasinsOOPSLA 2026

Builds on5

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Grounded Copilot: How Programmers Interact with Code-Generating ModelsShraddha Barke, Michael B. James, Nadia PolikarpovaOOPSLA 2023 · 408 citations
  3. CodeGen: An Open Large Language Model for Code with Multi-Turn Program SynthesisErik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu et al.ICLR 2023 · 234 citations
  4. Code Prediction by Feeding Trees to TransformersSeohyun Kim, Jinman Zhao, Yuchi Tian, Satish ChandraICSE 2021 · 179 citations
  5. InCoder: A Generative Model for Code Infilling and SynthesisDaniel Fried, Armen Aghajanyan, Jessy Lin, Sida Wang et al.ICLR 2023 · 140 citations

Related papers

  1. OpenCoder: The Open Cookbook for Top-Tier Code Large Language ModelsSiming Huang, Tianhao Cheng, Jason Klein Liu, Weidi Xu et al.ACL 2025
  2. Fine-tuning Language Models for Joint Rewriting and Completion of Code with Potential BugsDingmin Wang, Jinman Zhao, Hengzhi Pei, Samson Tan et al.ACL Findings 2024 · 1 citation
  3. Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler FeedbackZhangqian Bi, Yao Wan, Zheng Wang, Hongyu Zhang et al.ACL Findings 2024 · 18 citations
  4. Language Models for Code Completion: A Practical EvaluationMaliheh Izadi, Jonathan Katzy, Tim van Dam, Marc Otten et al.ICSE 2024 · 51 citations
  5. Using an LLM to Help With Code UnderstandingDaye Nam, Andrew Macvean, Vincent J. Hellendoorn, Bogdan Vasilescu et al.ICSE 2024 · 264 citations
Dusk over the sea between two cliffs drawn in fine vertical lines