arrow
返回

Data Augmentation by Program Transformation

delete2022-08-01
delete31
PRE
AI
S
Shiwen Yu
T
Ting Wang
J
Ji Wang *
DOI:10.1016/j.jss.2022.111304delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Data Augmentation has been recognized as one of the main techniques to improve deep learning models' generalization ability. However, it has not been widely leveraged in big code tasks due to the essential difficulties of manipulating source code to generate new labeled data of high quality. In this paper, we propose a general data augmentation method based on program transformation. The idea is to extend big code datasets by a set of source-to-source transformation rules that preserve not only the semantics but also the syntactic naturalness of programs. Through controlled experiments, we demonstrated that semantic and syntax-naturalness preserving are the expected properties for a transformation rule to be effective in data augmentation. We designed 18 transformation rules that are proved semantic-preserving and tested syntax-naturalness-preserving. We also implemented and open-sourced a partial program transformation tool for Java based on the rules, named SPAT, whose effectiveness for data augmentation is validated in three big code tasks: method naming, code commenting, and code clone detection. Editor's note: Open Science material was validated by the Journal of Systems and Software Open Science Board. (c) 2022 Elsevier Inc. All rights reserved.
Keyword:
Data Augmentation
Big Code
Program Transformation

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
8.4K

机构

N
national university of defense technology - china
学者数:
1.8W
论文数: 1.4W
被引数: 9
引用论文

引用论文

Oxygen Reduction Reaction Catalyzed by Small Gold Cluster on h-BN/Au(111) Support
err2017-06-21
err0
PREAI
errAndrey Lyalin; Kohei Uosaki; Tetsuya Taketsugu
err分享
err收藏
err分享
err收藏
err分享
err收藏
没有更多内容