paper-with-me

홈 › Papers

MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentation

2022-10-06 · Zeming Dong, Qiang Hu, Yuejun Guo, Maxime Cordy, Mike Papadakis, Zhenya Zhang, Yves Le Traon, Jianjun Zhao

Inspired by the great success of Deep Neural Networks (DNNs) in natural language processing (NLP), DNNs have been increasingly applied in source code analysis and attracted significant attention from the software engineering community. Due to its data-driven nature, a DNN model requires massive and high-quality labeled training data to achieve expert-level performance. Collecting such data is often not hard, but the labeling process is notoriously laborious. The task of DNN-based code analysis even worsens the situation because source code labeling also demands sophisticated expertise. Data augmentation has been a popular approach to supplement training data in domains such as computer vision and NLP. However, existing data augmentation approaches in code analysis adopt simple methods, such as data transformation and adversarial example generation, thus bringing limited performance superiority. In this paper, we propose a data augmentation approach MIXCODE that aims to effectively supplement valid training data, inspired by the recent advance named Mixup in computer vision. Specifically, we first utilize multiple code refactoring methods to generate transformed code that holds consistent labels with the original data. Then, we adapt the Mixup technique to mix the original code with the transformed code to augment the training data. We evaluate MIXCODE on two programming languages (Java and Python), two code tasks (problem classification and bug detection), four benchmark datasets (JAVA250, Python800, CodRep1, and Refactory), and seven model architectures (including two pre-trained models CodeBERT and GraphCodeBERT). Experimental results demonstrate that MIXCODE outperforms the baseline data augmentation approach by up to 6.24% in accuracy and 26.06% in robustness.

📄 PDF Abstract BibTeX arXiv:2210.03003

Code (1)

zemingd/mixup4code 공식 구현 pytorch

Tasks

ClassificationCode ClassificationData Augmentation

Methods 이 논문이 사용한 방법론

CodeBERT 설명 없음
Mixup Mixup is a data augmentation technique that generates a weighted combination of random image pairs from the training data. Given two images and their ground truth labels:…

Similar Papers 제목 키워드 기반

SynerMix: Synergistic Mixup Solution for Enhanced Intra-Class Cohesion and Inter-Class Separability in Image Classification

2024-03-21 · Ye Xu, Ya Gao, Xiaorong Qiu, Yang Chen 외

To address the issues of MixUp and its variants (e.g., Manifold MixUp) in image classification tasks-namely, their neglect of mixing within the same class (intra-class mixup) and their inadequacy in enhancing intra-class…

image-classificationImage Classificationtext-classificationText Classification

Fused Gromov-Wasserstein Graph Mixup for Graph-level Classifications

2023-06-28 · NeurIPS 2023 11 · Xinyu Ma, Xu Chu, Yasha Wang, Yang Lin 외

Graph data augmentation has shown superiority in enhancing generalizability and robustness of GNNs in graph-level classifications. However, existing methods primarily focus on the augmentation in the graph signal space a…

Data Augmentation

S-Mixup: Structural Mixup for Graph Neural Networks

2023-08-16 · Junghurn Kim, Sukwon Yun, Chanyoung Park

Existing studies for applying the mixup technique on graphs mainly focus on graph classification tasks, while the research in node classification is still under-explored. In this paper, we propose a novel mixup augmentat…

ClassificationGraph ClassificationGraph Neural NetworkNode Classification

Adversarially Optimized Mixup for Robust Classification

2021-03-22 · Jason Bunk, Srinjoy Chattopadhyay, B. S. Manjunath, Shivkumar Chandrasekaran

Mixup is a procedure for data augmentation that trains networks to make smoothly interpolated predictions between datapoints. Adversarial training is a strong form of data augmentation that optimizes for worst-case predi…

ClassificationData AugmentationGeneral ClassificationRobust classification

AGMixup: Adaptive Graph Mixup for Semi-supervised Node Classification

2024-12-11 · Weigang Lu, Ziyu Guan, Wei Zhao, Yaming Yang 외

Mixup is a data augmentation technique that enhances model generalization by interpolating between data points using a mixing ratio $\lambda$ in the image domain. Recently, the concept of mixup has been adapted to the gr…

Data AugmentationNode Classification