arrow
返回

On the effectiveness of graph data augmentation for source code learning

delete2024-02-01
delete1
PRE
AI
Z
Zeming Dong *
Q
Qiang Hu
Z
Zhenya Zhang
J
Jianjun Zhao
DOI:10.1016/j.knosys.2023.111328delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
The methodology that employs deep learning to handle software engineering tasks, such as bug detection, is commonly referred to as source code learning. Given the inherent graph nature of source code, graph learning, bolstered by graph neural networks (GNNs), has seen an increasing adoption in the domain of source code learning. Similar to other contexts within deep learning, source code learning also relies on extensive high-quality training data, and the scarcity of such data has become a primary impediment that leads to performance bottlenecks. In practice, data augmentation is often used as a countermeasure to mitigate this issue, by synthesizing additional training data based on existing ones. However, most existing practice of data augmentation in source code learning is limited to simple program transformation methods, such as code refactoring, thus not sufficiently effective. In this work, in light of the graph nature of source code, we propose to apply the data augmentation methods used for graph-structured data in graph learning to the tasks of source code learning, and we conduct a comprehensive empirical study to evaluate whether such new data augmentation approaches bring better effectiveness, in terms of producing more accurate and robust models. Specifically, we evaluate four critical software engineering tasks and seven neural network architectures to assess the effectiveness of five data augmentation methods. Experimental results identify that, compared to the data augmentation-free training approach, the Manifold-Mixup method can significantly improve both the accuracy and robustness of the trained models of source code learning, for up to 1.60% and 4.09%, respectively.
Keyword:
Graph neural networks
Date augmentation
Source code analysis

期刊

K
Knowledge-Based Systems
IF:
7.6
论文数:
1.3W
被引数:
4.5W

机构

K
Kyushu University
学者数:
3.2W
论文数: 2.6W
被引数: 2.8W
U
university of luxembourg
学者数:
5.2K
论文数: 4.8K
被引数: 4
引用论文

引用论文

err分享
err收藏
err分享
err收藏
err分享
err收藏
Purification and characterization of a novel zinc-proteinase from cultures of Aeromonas hydrophila.
err1993-04-01
err0
errOAAI
errA.G. Loewy; U.V. Santer; M. Wieczorek; J.K. Blodgett; S.W. Jones; J.C. Cheronis
err分享
err收藏
Do Multiple Venous Anastomoses Reduce Risk of Thrombosis in Free-Flap Transfer?
err2004-01-01
err0
PREAI
errAkihiro Ichinose; Hiroto Terashi; Minoru Nakahara; Isao Sugimoto; Kazunobu Hashikawa; Tadashi Nomura; Nobutaka Ogata; Satoshi Yokoo; Shinya Tahara
err分享
err收藏
学者 查看更多内容