Year: 2024
Type: dissertation
Abstract: With the rise of deep code models, we are witnessing the success of code intelligence.However, current research mainly focuses on developing new code models or fine-tuning large pre-trained models for code-related tasks.One significant issue that often remains overlooked is the preparation of high-quality data to boost the training of these code models.In contrast, the importance of data quality and diversity via techniques namely data augmentation is well-established in fields such as computer vision and natural language processing.Surprisingly, this aspect has not been extensively explored in source code learning, and most existing practices of data augmentation in source code learning are limited to simple syntax-preserved methods such as code refactoring and are not sufficiently effective.To address these challenges and contribute to the advancement of data augmentation in source code learning, this thesis primarily focuses on enriching effective and reliable code data augmentation methods.These include syntax-preserved methods and syntax-broken methods, and the work is divided into three phases:• Essentially, source code is often represented sequentially as text data.Inspired by this analogy, we take an early step to investigate whether data augmentation methods originally for text data are effective for source code learning.Our focus centered on understanding tasks, and we conducted a comprehensive empirical study spanning four critical code-related problems and four deep neural network (DNN) architectures.Our findings identify that the data augmentation methods can produce more accurate and robust models for source code learning and show that the augmented data are still useful even if they slightly break the syntax of the source code.• Sequential representation ignores the semantic information of the source code.To overcome this limitation, the graph-structural representation of the source code is proposed.In light of the graph nature of the 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.We conduct a comprehensive empirical study to evaluate whether such new ways of data augmentation are more effective than the existing simple code refactoring methods 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.Our findings identify that linear interpoi Throughout this thesis, I have received significant support and assistance, and I am grateful to many individuals.First, I would like to thank Prof.
Author: 董, 沢銘
Institution: Kyushu University
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
SDG: Quality education
Open Access status: green
OpenAlex ID: W7063425888
