mlsanityData to 7 Oct 2026

GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understanding

arXiv 2402.15769 ↗First posted 24 Feb 2024cs.SE cs.AIcited by 2

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  3. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  4. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  5. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  6. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  7. 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  9. 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
  10. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  11. 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
  12. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
31 more
  1. 2019Deep Batch Active Learning by Diverse, Uncertain Gradient Lower Boundscited by 602
  2. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  3. 2021A Survey of Data Augmentation Approaches for NLPcited by 408
  4. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  5. 2018code2vec: Learning Distributed Representations of Codecited by 249
  6. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  7. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  8. 2021Data Augmentation Can Improve Robustnesscited by 193
  9. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  10. 2019Augmenting Data with Mixup for Sentence Classification: An Empirical Studycited by 125
  11. 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
  12. 2022Natural Attack for Pre-trained Models of Codecited by 72
  13. 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 68
  14. 2019Adversarial Examples for Models of Codecited by 61
  15. 2021Self-Supervised Bug Detection and Repaircited by 59
  16. 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
  17. 2020Adversarial Robustness for Codecited by 36
  18. 2019Improving short text classification through global augmentation methodscited by 33
  19. 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
  20. 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 27
  21. 2020Code Smells and Refactoring: A Tertiary Systematic Review of Challenges and Observationscited by 18
  22. 2021Text AutoAugment: Learning Compositional Augmentation Policy for Text Classificationcited by 15
  23. 2021A Search-Based Testing Framework for Deep Neural Networks of Source Code Embeddingcited by 12
  24. 2022A Survey of Automated Data Augmentation Algorithms for Deep Learning-based Image Classification Taskscited by 12
  25. 2021GraphCode2Vec: Generic Code Embedding via Lexical and Program Dependence Analysescited by 11
  26. 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
  27. 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
  28. 2017Reinforcing Adversarial Robustness using Model Confidence Induced by Adversarial Trainingcited by 4
  29. 2022MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentationcited by 4
  30. 2023Active Code Learning: Benchmarking Sample-Efficient Training of Code Modelscited by 3
  31. 2022On the Effectiveness of Hybrid Pooling in Mixup-Based Graph Learning for Language Processingcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.