arrow
Return

Active Code Learning: Benchmarking Sample-Efficient Training of Code Models

delete2024-05-01
delete1
delete
OA
AI
Q
Qiang Hu
Y
Yuejun Guo
X
Xiaofei Xie
M
Maxime Cordy
L
Lei Ma *
M
Mike Papadakis
Y
Yves Le Traon
DOI:10.1109/TSE.2024.3376964delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The costly human effort required to prepare the training data of machine learning (ML) models hinders their practical development and usage in software engineering (ML4Code), especially for those with limited budgets. Therefore, efficiently training models of code with less human effort has become an emergent problem. Active learning is such a technique to address this issue that allows developers to train a model with reduced data while producing models with desired performance, which has been well studied in computer vision and natural language processing domains. Unfortunately, there is no such work that explores the effectiveness of active learning for code models. In this paper, we bridge this gap by building the first benchmark to study this critical problem - active code learning. Specifically, we collect 11 acquisition functions (which are used for data selection in active learning) from existing works and adapt them for code-related tasks. Then, we conduct an empirical study to check whether these acquisition functions maintain performance for code data. The results demonstrate that feature selection highly affects active learning and using output vectors to select data is the best choice. For the code summarization task, active code learning is ineffective which produces models with over a 29.64% gap compared to the expected performance. Furthermore, we explore future directions of active code learning with an exploratory study. We propose to replace distance calculation methods with evaluation metrics and find a correlation between these evaluation-based distance methods and the performance of code models.
Keywords:
Codes
Data models
Task analysis
Training
Feature extraction
Training data
Labeling
Active learning
machine learning for code
benchmark
empirical analysis

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.8K
Citations:
1.1W

Organization

U
University of Tokyo
Scholars:
7.1W
Papers: 6.5W
Citations: 2.2K
L
luxembourg institute of science & technology
Scholars:
1.9K
Papers: 1.8K
Citations: 1
U
university of luxembourg
Scholars:
5.1K
Papers: 4.7K
Citations: 4
researcher View more organizations