InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translation
Not on the map. Why?
Abstract (arXiv)
Code translation aims to convert a program from one programming language (PL) to another. This long-standing software engineering task is crucial for modernizing legacy systems, ensuring cross-platform compatibility, enhancing performance, and more. However, automating this process remains challenging due to many syntactic and semantic differences between PLs. Recent studies show that even advanced techniques such as large language models (LLMs), especially open-source LLMs, still struggle with the task. Currently, code LLMs are trained with source code from multiple programming languages, thus presenting multilingual capabilities. In this paper, we investigate whether such multilingual capabilities can be harnessed to enhance code translation. To achieve this goal, we introduce InterTrans, an LLM-based automated code translation approach that, in contrast to existing approaches, leverages intermediate translations across PLs to bridge the syntactic and semantic gaps between source and target PLs. InterTrans contains two stages. It first utilizes a novel Tree of Code Translation (ToCT) algorithm to plan transitive intermediate translation sequences between a given source and target PL, then validates them in a specific order. We evaluate InterTrans with three open LLMs on three benchmarks (i.e., CodeNet, HumanEval-X, and TransCoder) involving six PLs. Results show an absolute improvement between 18.3% to 43.3% in Computation Accuracy (CA) for InterTrans over Direct Translation with 10 attempts. The best-performing variant of InterTrans (with Magicoder LLM) achieved an average CA of 87.3%-95.4% on three benchmarks.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 23 of its 40 references that are in the map. First posted on arXiv 1 Nov 2024.
Builds on
23 of 40 references.
References · 23
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2020Beyond English-Centric Multilingual Machine Translationcited by 559
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
11 more
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 84
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2022Code Translation with Compiler Representationscited by 42
- 2024McEval: Massively Multilingual Code Evaluationcited by 42
- 2019Pivot-based Transfer Learning for Neural Machine Translation between Non-English Languagescited by 36
- 2023On the Evaluation of Neural Code Translation: Taxonomy and Benchmarkcited by 23
- 2024Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Examplecited by 15
- 2024Output Format Biases in the Evaluation of Large Language Models for Code Translationcited by 9
Built on by
Citing papers per year: 2024: 1; 2025: 9; 2026: 5.
15 papers.
Sort:
By area:
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
- 2025Mix-of-Language-Experts Architecture for Multilingual Programmingcited by 2
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Codecited by 1
- 2025Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generationcited by 1
- 2025BabelCoder: Agentic Code Translation with Specification Alignmentcited by 1
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMscited by 0
- 2025Automated Snippet-Alignment Data Augmentation for Code Translationcited by 0
- 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuningcited by 0
- 2026Predicting Program Exit Code with LLMs and Programming Language Semantics1 Sep 2026
- 2026Legacy System Modernization with Coding Agents: A Case Study29 Aug 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuning18 Jun 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2025BabelCoder: Agentic Code Translation with Specification Alignment7 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translation21 Oct 2025
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation16 Oct 2025
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMs10 Oct 2025
- 2025Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generation24 Sep 2025
- 2025Mix-of-Language-Experts Architecture for Multilingual Programming18 Jun 2025
3 more
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks15 Mar 2025
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Features25 Feb 2025
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Code31 Dec 2024
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
- 2025Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generationcited by 1
- 2025BabelCoder: Agentic Code Translation with Specification Alignmentcited by 1
- 2026Legacy System Modernization with Coding Agents: A Case Studycited by 0
- 2026Legacy System Modernization with Coding Agents: A Case Study29 Aug 2026
- 2025BabelCoder: Agentic Code Translation with Specification Alignment7 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generation24 Sep 2025
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks15 Mar 2025
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translation21 Oct 2025
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
- 2025Mix-of-Language-Experts Architecture for Multilingual Programmingcited by 2
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Codecited by 1
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMscited by 0
- 2025Automated Snippet-Alignment Data Augmentation for Code Translationcited by 0
- 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migrationcited by 0
- 2026Predicting Program Exit Code with LLMs and Programming Language Semanticscited by 0
- 2026Predicting Program Exit Code with LLMs and Programming Language Semantics1 Sep 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation16 Oct 2025
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMs10 Oct 2025
- 2025Mix-of-Language-Experts Architecture for Multilingual Programming18 Jun 2025
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Features25 Feb 2025
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Code31 Dec 2024