mlsanityData to 7 Oct 2026

Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Study

arXiv 2303.06808 ↗First posted 13 Mar 2023cs.SE cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 20 of its 32 references that are in the map. First posted on arXiv 13 Mar 2023.

Builds on

20 of 32 references.

References · 20

  1. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  2. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  3. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  4. 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
  5. 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
  6. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  7. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  8. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  9. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  10. 2019Augmenting Data with Mixup for Sentence Classification: An Empirical Studycited by 125
  11. 2022Natural Attack for Pre-trained Models of Codecited by 72
  12. 2021Self-Supervised Bug Detection and Repaircited by 59
8 more
  1. 2020Adversarial Robustness for Codecited by 36
  2. 2019Improving short text classification through global augmentation methodscited by 33
  3. 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 27
  4. 2021How could Neural Networks understand Programs?cited by 26
  5. 2020Empirical Study of Transformers for Source Codecited by 13
  6. 2021A Search-Based Testing Framework for Deep Neural Networks of Source Code Embeddingcited by 12
  7. 2022CodeS: Towards Code Model Generalization Under Distribution Shiftcited by 6
  8. 2021CoCoFuzzing: Testing Neural Code Models with Coverage-Guided Fuzzingcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 1; 2025: 2; 2026: 1.

5 papers.