arrow
Return

Why Personalizing Deep Learning-Based Code Completion Tools Matters

delete2026-01-01
delete0
PRE
AI
A
Alessandro Giagnorio *
A
Alberto Martin-Lopez
DOI:10.1145/3725732delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Deep learning (DL)-based code completion tools have revolutionized software development by providing unprecedented code generation capabilities. The DL models behind these tools are usually trained on large amounts of code from thousands of software repositories. This makes them good in learning natural coding patterns observed across many training instances. However, little is known about the extent to which additional training effort (fine-tuning) aimed at specializing the models towards the code base of a given organization/developer further benefits their code completion capabilities. In this work, we fill this gap by presenting solid empirical evidence answering this question. More specifically, we consider 136 developers from two organizations (Apache and Spring), two model architectures (T5 and Code Llama), and three model sizes (60M, 750M, and 7B trainable parameters). For T5 models (60M and 750M), we pre-train and fine-tune them on over 2,000 open source projects, making sure that code from the two subject organizations is not part of their training sets. Then, we compare their completion capabilities against the same models further fine-tuned on organization-and developer-specific datasets. For the Code Llama model (7B), we compare the performance of the already pre-trained model publicly available online with the same model fine-tuned via parameter-efficient fine-tuning on organization-and developer-specific datasets. Our results show that there is a boost in prediction capabilities provided by both an organization-specific and a developer-specific additional fine-tuning, with the former being particularly performant. Such a finding generalizes across (i) the two subject organizations (i.e., Apache and Spring) and (ii) models of completely different magnitude (from 60M to 7B trainable parameters). Finally, we show that DL models fine-tuned on an organization-specific dataset achieve the same completion performance of pre-trained code models used out of the box and being similar to 10x larger, with consequent savings in terms of deployment and inference cost (e.g., smaller GPUs needed).
Keywords:
Software Engineering
Artificial Intelligence
Code Recommenders
Training Strategies

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

U
Universita della Svizzera Italiana
Scholars:
3.3K
Papers: 2.8K
Citations: 3
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
Language Models for Code Completion: A Practical Evaluation
err2024-04-12
err0
PREAI
errIzadi,Maliheh; Katzy,Jonathan; Van Dam,Tim; Otten,Marc; Popescu,Razvan Mihai; Van Deursen,Arie
errShare
errSave
errShare
errSave
errShare
errSave
AI-Driven Development Is Here: Should You Worry?
err2022-03-01
err23
errOAAI
errErnst, Neil A.; Bavota, Gabriele
errShare
errSave
researcher View more