[논문 리뷰] AI-assisted Code Authoring at Scale: Fine-tuning, deploying, and mixed methods evaluation
본 논문은 메타(Meta)에서 배포된 AI 보조 코드 작성 도구 CodeCompose를 제시하며, 모델(InCoder 기반), 내부 코드에 대한 파인튜닝, 시스템 설계, 9개 언어에 걸친 배포, 사용 및 사용자 피드백에 대한 다면적 평가를 자세히 다룬다.
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.4x and 4.1x 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.
연구 동기 및 목표
- 기업용 코드 보조 도구를 내부 코드로 파인튜닝하고 대규모로 배포할 수 있는 방법을 시연한다.
- 대규모 산업용 배포를 위한 시스템 설계 선택, 지연(latency) 최적화, UX 고려사항을 탐구한다.
- 정량적 및 정성적 지표를 통해 CodeCompose가 개발자 생산성과 만족도에 미치는 영향을 평가한다.
- 대규모 조직에서의 신뢰성, 정확성 및 기존 IDE와의 통합에 관한 도전 과제를 식별한다.]
- method:[
- Fine-tune an InCoder-based LLM on Meta's internal code (CM/LCM objectives).
- Use a bidirectional, fill-in-the-middle style training objective (LCM) with metadata like language, file path, and kernel.
- Deploy via a client-server architecture with an LSP-based language server and Thrift-backed GPU inference tier.
- Measure performance with offline exact-match and BLEU metrics across languages; collect real-world usage metrics (acceptance rate, percentage of code typed from suggestions) and qualitative user feedback.
- Implement latency-focused optimizations (caching, debouncing, minimal batching) and a randomized rollout strategy to reduce bias.
- Provide telemetry and support for multiple editors through a reusable LSP component and in-house editor surfaces.
제안 방법
- Fine-tune an InCoder-based LLM on Meta's internal code (CM/LCM objectives).
- Use a bidirectional, fill-in-the-middle style training objective (LCM) with metadata like language, file path, and kernel.
- Deploy via a client-server architecture with an LSP-based language server and Thrift-backed GPU inference tier.
- Measure performance with offline exact-match and BLEU metrics across languages; collect real-world usage metrics (acceptance rate, percentage of code typed from suggestions) and qualitative user feedback.
- Implement latency-focused optimizations (caching, debouncing, minimal batching) and a randomized rollout strategy to reduce bias.
- Provide telemetry and support for multiple editors through a reusable LSP component and in-house editor surfaces.

실험 결과
연구 질문
- RQ1How does fine-tuning on Meta's internal code improve code suggestion accuracy across multiple languages?
- RQ2What architectural and UX decisions enable scalable, low-latency AI-assisted code completion at a large company?
- RQ3What is the real-world impact of CodeCompose in terms of acceptance rates, usage, and user satisfaction?
- RQ4What challenges (trust, hallucinations, integration with existing tools) arise in industrial deployments of AI code assistants?
- RQ5How does contextual information (code before/after cursor, file, kernel) influence model performance?
주요 결과
- CodeCompose achieved a 22% acceptance rate across languages for displayed suggestions.
- 8% of the code typed by developers came from accepted CodeCompose suggestions.
- Qualitative feedback showed 91.5% favorable reception among surveyed users.
- Fine-tuning on Meta's internal data significantly improved exact-match and BLEU scores across Hack, Python, Flow, and C++; LCM training further boosted performance.
- The system supports at least 9 languages and shows substantial real-world usage with 4.5 million suggestions over 15 days.
- UX decisions (single-line suggestions, 300-500ms latency) and a wave-based rollout were effective in maintaining trust and usability.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.