paper-with-me

Papers

Automated Snippet-Alignment Data Augmentation for Code Translation

2025-10-16 · Zhiming Zhang, Qingfu Zhu, Xianzhen Luo, Yixuan Wang, Bohan Li, Wanxiang Che arxiv

Code translation aims to translate the code from its source language to the target language and is used in various software development scenarios. Recent developments in Large Language Models (LLMs) have showcased their capabilities in code translation, and parallel corpora play a crucial role in training models for code translation. Parallel corpora can be categorized into program-alignment (PA) and snippet-alignment (SA) data. Although PA data has complete context and is suitable for semantic alignment learning, it may not provide adequate fine-grained training signals due to its extended length, while the brevity of SA data enables more fine-grained alignment learning. Due to limited parallel corpora, researchers explore several augmentation methods for code translation. Previous studies mainly focus on augmenting PA data. In this paper, we propose a data augmentation method that leverages LLMs to generate SA data automatically. To fully leverage both PA data and SA data, we explore a simple yet effective two-stage training strategy, which consistently enhances model performance compared to fine-tuning solely on PA data. Experiments on TransCoder-test demonstrate that our augmented SA data combined with the two-stage training approach yields consistent improvements over the baseline, achieving a maximum gain of 3.78% on pass@k.

📄 PDF Abstract BibTeX arXiv:2510.15004

Code (0)

등록된 구현이 없습니다.

Tasks

Data AugmentationCode Translation

Similar Papers 제목 키워드 기반

Augmenting and Aligning Snippets for Few-Shot Video Domain Adaptation

2023-03-18 · ICCV 2023 1 · Yuecong Xu, Jianfei Yang, Yunjiao Zhou, Zhenghua Chen 외

For video models to be transferred and applied seamlessly across video tasks in varied environments, Video Unsupervised Domain Adaptation (VUDA) has been introduced to improve the robustness and transferability of video …

Action RecognitionDomain AdaptationUnsupervised Domain Adaptation

CodeBoost: Boosting Code LLMs by Squeezing Knowledge from Code Snippets with RL

2025-08-07 · Sijie Wang, Quanjiang Guo, Kai Zhao, Yawei Zhang 외 arxiv

Code large language models (LLMs) have become indispensable tools for building efficient and automated coding pipelines. Existing models are typically post-trained using reinforcement learning (RL) from general-purpose L…

Reinforcement Learning

ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization

2024-07-01 · Chunrong Fang, Weisong Sun, Yuchen Chen, Xiao Chen 외

(Source) code summarization aims to automatically generate succinct natural language summaries for given code snippets. Such summaries play a significant role in promoting developers to understand and maintain code. Insp…

Code SummarizationDecoderLanguage ModelingLanguage Modelling+4

Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Search

2021-07-10 · Lun Du, Xiaozhou Shi, Yanlin Wang, Ensheng Shi 외

Recently, deep learning methods have become mainstream in code search since they do better at capturing semantic correlations between code snippets and search queries and have promising performance. However, code snippet…

Code SearchData AugmentationEnsemble Learningmodel

From Legal Texts to Defeasible Deontic Logic via LLMs: A Study in Automated Semantic Analysis

2025-06-10 · Elias Horner, Cristinel Mateis, Guido Governatori, Agata Ciabattoni

We present a novel approach to the automated semantic analysis of legal texts using large language models (LLMs), targeting their transformation into formal representations in Defeasible Deontic Logic (DDL). We propose a…

Prompt Engineering