arrow
Return

GenCode: A generic data augmentation framework for boosting deep learning-based code understanding

delete2026-02-10
delete0
PRE
AI
Z
Zeming Dong
Q
Qiang Hu *
X
Xiaofei Xie
M
Maxime Cordy
M
Mike Papadakis
Y
Yves Le Traon
J
Jianjun Zhao
DOI:10.1007/s10664-026-10809-3delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
Code understanding
Data augmentation
Program transformation
Boosting source code learning with text-oriented data augmentation: an empirical study
err2025-02-18
err0
PREAI
errDong, Zeming; Hu, Qiang; Guo, Yuejun; Zhang, Zhenya; Cordy, Maxime; Papadakis, Mike; Le Traon, Yves; Zhao, Jianjun
errShare
errSave
Data Augmentation by Program Transformation
err2022-08-01
err31
PREAI
errYu, Shiwen; Wang, Ting; Wang, Ji
errShare
errSave
A deep data augmentation framework based on generative adversarial networks
err2022-08-13
err2
PREAI
errWang, Qiping; Luo, Ling; Xie, Haoran; Rao, Yanghui; Lau, Raymond Y. K.; Zhang, Detian
errShare
errSave
Enhancing code smell classification with code refactoring-based data augmentation
err2026-09-01
err0
PREAI
errAli Nizam; Musa Aydin; Ertugrul Islamoglu; Shaaban Sahmoud; Samil Bilal Ozaydin
errShare
errSave
errShare
errSave
An data augmentation method for source code summarization
err2023-09-01
err2
PREAI
errSong, Zixuan; Zeng, Hui; Shang, Xiuwei; Li, Guanxi; Li, Hui; Guo, Shikai
errShare
errSave
Enhancing robustness of AI offensive code generators via data augmentation
err2024-10-19
err0
PREAI
errImprota, Cristina; Liguori, Pietro; Natella, Roberto; Cukic, Bojan; Cotroneo, Domenico
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

U
university of luxembourg
Scholars:
457
Papers: 209
Citations: 4.2K
K
kyushu university
Scholars:
2.1K
Papers: 733
Citations: 1.5W
Tianjin University cover
Tianjin University
Scholars:
9.3K
Papers: 2.7K
Citations: 4.7W
S
Singapore Management University
Scholars:
229
Papers: 159
Citations: 2.3K
researcher View more organizations
Cited Papers

Cited Papers

Towards a Big Data Curated Benchmark of Inter-project Code Clones
err2014-09-01
err0
PREAI
errJeffrey Svajlenko; Judith F. Islam; Iman Keivanloo; Chanchal K. Roy; Mohammad Mamun Mia
errShare
errSave
Investigating the Efficacy of Large Language Models for Code Clone Detection
err2024-06-13
err0
errOAAI
errMohamad Khajezade; Jie JW Wu; Fatemeh Hendijani Fard; Gema Rodriguez-Perez; Mohamed Sami Shehata
errShare
errSave
Code smells and refactoring: A tertiary systematic review of challenges and observations
err2020-09-01
err102
errOAAI
errLacerda, Guilherme; Petrillo, Fabio; Pimenta, Marcelo; Gueheneuc, Yann Gael
errShare
errSave
Exploring Representation-level Augmentation for Code Search
err2022-01-01
err0
errOAAI
errHaochen Li; Chunyan Miao; Cyril Leung; Yanxian Huang; Yuan Huang; Hongyu Zhang; Yanlin Wang
errShare
errSave
researcher View more