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
deleteOriginal request for help
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

Journal

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

Organization

T
Tianjin University
Scholars:
4.7K
Papers: 1.7K
Citations: 8.5W
U
University of Luxembourg
Scholars:
228
Papers: 117
Citations: 6
K
Kyushu University
Scholars:
3.2W
Papers: 2.6W
Citations: 2.8W
S
singapore management university
Scholars:
353
Papers: 265
Citations: 0
researcher View more organizations