arrow
返回

Boosting source code learning with text-oriented data augmentation: an empirical study

delete2025-02-18
delete0
PRE
AI
Z
Zeming Dong
Q
Qiang Hu *
Y
Yuejun Guo
Z
Zhenya Zhang
M
Maxime Cordy
M
Mike Papadakis
Y
Yves Le Traon
J
Jianjun Zhao
DOI:10.1007/s10664-025-10624-2delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Recent studies have demonstrated remarkable advancements in source code learning, which applies deep neural networks (DNNs) to tackle various software engineering tasks. Similar to other DNN-based domains, source code learning also requires massive high-quality training data to achieve the success of these applications. Data augmentation, a technique used to produce additional training data, is widely adopted in other domains (e.g. computer vision). However, the existing practice of data augmentation in source code learning is limited to simple syntax-preserved methods, such as code refactoring. In this paper, considering that source code can also be represented as text data, we take an early step to investigate the effectiveness of data augmentation methods originally designed for natural language texts in the context of source code learning. To this end, we focus on code classification tasks and conduct a comprehensive empirical study across four critical code problems and four DNN architectures to assess the effectiveness of 25 data augmentation methods. Our results reveal specific data augmentation methods that yield more accurate and robust models for source code learning. Additionally, we discover that the data augmentation methods remain beneficial even when they slightly break source code syntax.
Keyword:
Source code analysis
Data augmentation
Program transformation

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

T
tianjin university
学者数:
8.0W
论文数: 5.8W
被引数: 88
L
luxembourg institute of science & technology
学者数:
1.9K
论文数: 1.8K
被引数: 1
K
Kyushu University
学者数:
3.2W
论文数: 2.6W
被引数: 2.8W
U
university of luxembourg
学者数:
5.2K
论文数: 4.8K
被引数: 4
学者 查看更多机构
引用论文

引用论文

err
IF0
err
err0
errOAAI
err
err分享
err收藏
Nonsurgical management of benign prostatic hyperplasia in men with bladder calculi
err2002-08-01
err0
PREAI
errR.Corey O’Connor; Brett A Laven; Gregory T Bales; Glenn S Gerber
err分享
err收藏
Stability of adaptive behaviors in middle-school children with autism spectrum disorders
err2007-10-01
err0
PREAI
errRobin L. Gabriels; Bonnie Jean Ivers; Dina E. Hill; John A. Agnew; John McNeill
err分享
err收藏
Automated Program Repair
err2019-11-21
err231
PREAI
errLe Goues, Claire; Pradel, Michael; Roychoudhury, Abhik
err分享
err收藏
学者 查看更多内容