GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understanding
Not on the map. Why?
Abstract (arXiv)
Pre-trained code models lead the era of code intelligence, with multiple models designed with impressive performance. However, one important problem, data augmentation for code data that automatically helps developers prepare training data lacks study in this field. In this paper, we introduce a generic data augmentation framework, GenCode, to enhance the training of code understanding models. Simply speaking, GenCode follows a generation-and-selection paradigm to prepare useful training code data. Specifically, it employs code augmentation techniques to generate new code candidates first and then identifies important ones as the training data by influence scores. To evaluate the effectiveness of GenCode, we conduct experiments on four code understanding tasks (e.g., code clone detection) and three pre-trained code models (e.g., CodeT5) and two recent released code-specific Large Language Models (LLMs) (e.g., Qwen2.5-Coder). Compared to the state-of-the-art (SOTA) code augmentation method MixCode, GenCode produces pre-trained code models with 2.92% higher accuracy and 4.90% adversarial robustness on average. For code-specific LLMs, GenCode achieves an average improvement of 0.93% in accuracy and 0.98% in natural robustness.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 43 of its 64 references that are in the map. First posted on arXiv 24 Feb 2024.
Builds on
43 of 64 references.
References · 43
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
31 more
- 2019Deep Batch Active Learning by Diverse, Uncertain Gradient Lower Boundscited by 602
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2021A Survey of Data Augmentation Approaches for NLPcited by 408
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2021Data Augmentation Can Improve Robustnesscited by 193
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2019Augmenting Data with Mixup for Sentence Classification: An Empirical Studycited by 125
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
- 2022Natural Attack for Pre-trained Models of Codecited by 72
- 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 68
- 2019Adversarial Examples for Models of Codecited by 61
- 2021Self-Supervised Bug Detection and Repaircited by 59
- 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
- 2020Adversarial Robustness for Codecited by 36
- 2019Improving short text classification through global augmentation methodscited by 33
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 27
- 2020Code Smells and Refactoring: A Tertiary Systematic Review of Challenges and Observationscited by 18
- 2021Text AutoAugment: Learning Compositional Augmentation Policy for Text Classificationcited by 15
- 2021A Search-Based Testing Framework for Deep Neural Networks of Source Code Embeddingcited by 12
- 2022A Survey of Automated Data Augmentation Algorithms for Deep Learning-based Image Classification Taskscited by 12
- 2021GraphCode2Vec: Generic Code Embedding via Lexical and Program Dependence Analysescited by 11
- 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
- 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
- 2017Reinforcing Adversarial Robustness using Model Confidence Induced by Adversarial Trainingcited by 4
- 2022MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentationcited by 4
- 2023Active Code Learning: Benchmarking Sample-Efficient Training of Code Modelscited by 3
- 2022On the Effectiveness of Hybrid Pooling in Mixup-Based Graph Learning for Language Processingcited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.