arrow
返回

FeaMix: Feature Mix With Memory Batch Based on Self-Consistency Learning for Code Generation and Code Translation

delete2025-02-01
delete1
PRE
AI
S
Shuai Zhao
田杰 封面图
田杰 (Jie Tian) *
J
Jie Fu *
J
Jie Chen
温
温金明 (Jinming Wen)
DOI:10.1109/TETCI.2024.3395531delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Data augmentation algorithms, such as back translation, have shown to be effective in various deep-learning tasks. Despite their remarkable success, there has been a hurdle to applying data augmentation algorithms to code-related tasks since code consists of discrete tokens with uniqueness and certainty. In this work, we propose FeaMix, a novel yet simple data augmentation approach designed for the feature mix with memory batch based on self-consistency learning. FeaMix has a couple of uniqueness. First, it specially selects the samples to be mixed by memory batch to guarantee that the generated features are in the same spatial distribution as the mixed features. Second, it extends the self-consistency learning technique to optimize the language model for code-related tasks. With extensive experiments, we empirically validate that our method outperforms several baseline models and traditional data augmentation methods on code generation and code translation. It is noteworthy that we achieve state-of-the-art results in the CoNaLa and CodeTrans benchmarks, with a significant improvement of 1.9% in the Exact Match accuracy metric for code translation tasks.
Keyword:
Code generation
code translation
data augmentation
memory batch
self-consistency learning

期刊

I
IEEE Transactions on Emerging Topics in Computational Intelligence
IF:
6.5
论文数:
1.4K
被引数:
4.5K

机构

E
east china normal university
学者数:
3.1W
论文数: 2.1W
被引数: 25
S
Shandong Women's University
学者数:
239
论文数: 237
被引数: 153
J
jinan university
学者数:
4.3W
论文数: 2.7W
被引数: 38
学者 查看更多机构
引用论文

引用论文

Intermediate dose of methotrexate toxicity in non-Hodgkin lymphoma
err1999-02-01
err0
PREAI
errCanan Uluoğlu; Aynur Oğuz; Özenç Timlioğlu; Gürsel Biberoğlu; Alev Hasanoğlu
err分享
err收藏
err分享
err收藏
err分享
err收藏
Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
Structural health monitoring of a historic masonry bell tower by radar interferometric measurements
err2018-06-01
err0
PREAI
errAnna Castellano; Aguinaldo Fraddosio; Federica Martorano; Gemma Mininno; Francesco Paparella; Mario Daniele Piccioni
err分享
err收藏
Prevalence of Agglutinating Antibodies to Toxoplasma gondii and Sarcocystis neurona in Beavers (Castor canadensis) From Massachusetts
err2005-10-01
err0
errOAAI
errCarly N. Jordan; Taranjit Kaur; Kiana Koenen; Stephen DeStefano; Anne M. Zajac; David S. Lindsay
err分享
err收藏
The Reasoning Criminal理性犯罪者
err
IF0
err2017-09-08
err0
PREAI
errMarvin Scott
err分享
err收藏
学者 查看更多内容