mlsanityData to 14 Oct 2026

Automated Snippet-Alignment Data Augmentation for Code Translation

arXiv 2510.15004 ↗First posted 16 Oct 2025cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (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.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 27 references that are in the map. First posted on arXiv 16 Oct 2025.

Builds on

17 of 27 references.

References · 17

  1. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  2. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  3. 2020Unsupervised Translation of Programming Languagescited by 263
  4. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
  5. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  6. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  7. 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
  8. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  9. 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
  10. 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
  11. 2024Unraveling the Potential of Large Language Models in Code Translation: How Far Are We?cited by 17
  12. 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 16
5 more
  1. 2025ExeCoder: Empowering Large Language Models with Executability Representation for Code Translationcited by 10
  2. 2023SteloCoder: a Decoder-Only LLM for Multi-Language to Python Code Translationcited by 9
  3. 2023Data Augmentation for Code Translation with Comparable Corpora and Multiple Referencescited by 9
  4. 2025Enhancing LLMs in Long Code Translation through Instrumentation and Program State Alignmentcited by 4
  5. 2025APIRAT: Integrating Multi-source API Knowledge for Enhanced Code Translation with LLMscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Enhancing LLM-Based Code Translation with Verified Multi-Semantic Representations ↗
  2. 2024Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation
  3. 2026Reward-Free Code Alignment from Pretrained or Fine-Tuned LLM: Unpacking the Trade-offs for Code Generation
  4. 2025Aligning Large Language Models to Low-Resource Languages through LLM-Based Selective Translation: A Systematic Study
  5. 2024Towards Scalable Automated Alignment of LLMs: A Survey
  6. 2024Enhancing Cross-Language Code Translation via Task-Specific Embedding Alignment in Retrieval-Augmented Generation
  7. 2024Efficient Alignment of Large Language Models via Data Sampling
  8. 2024CodecLM: Aligning Language Models with Tailored Synthetic Data