Exploring and Unleashing the Power of Large Language Models in Automated Code Translation
Not on the map. Why?
Abstract (arXiv)
Code translation tools (transpilers) are developed for automatic source-to-source translation. Although learning-based transpilers have shown impressive enhancement against rule-based counterparts, owing to their task-specific pre-training on extensive monolingual corpora. Their current performance still remains unsatisfactory for practical deployment, and the associated training resources are also prohibitively expensive. LLMs pre-trained on huge amounts of human-written code/text have shown remarkable performance in many code intelligence tasks due to their powerful generality, even without task-specific training. Thus, LLMs can potentially circumvent the above limitations, but they have not been exhaustively explored yet. This paper investigates diverse LLMs and learning-based transpilers for automated code translation tasks, finding that: although certain LLMs have outperformed current transpilers, they still have some accuracy issues, where most of the failures are induced by a lack of comprehension of source programs, missing clear instructions on I/O types in translation, and ignoring discrepancies between source and target programs. Enlightened by the above findings, we further propose UniTrans, a Unified code Translation framework, applicable to various LLMs, for unleashing their power in this field. Specifically, UniTrans first crafts a series of test cases for target programs with the assistance of source programs. Next, it harnesses the above auto-generated test cases to augment the code translation and then evaluate their correctness via execution. Afterward, UniTrans further (iteratively) repairs incorrectly translated programs prompted by test case execution results. Extensive experiments are conducted on six settings of translation datasets between Python, Java, and C++. Three recent LLMs of diverse sizes are tested with UniTrans, and all achieve substantial improvements.
Key facts. Cited by 57 papers in the map (data through 7 Oct 2026). Builds on 31 of its 69 references that are in the map. First posted on arXiv 23 Apr 2024.
Builds on
31 of 69 references.
References · 31
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2023Self-collaboration Code Generation via ChatGPTcited by 255
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
19 more
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
- 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
- 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
- 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
- 2019Getafix: Learning to Fix Bugs Automaticallycited by 40
- 2023SkCoder: A Sketch-based Approach for Automatic Code Generationcited by 40
- 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
- 2023AceCoder: Utilizing Existing Code to Enhance Code Generationcited by 25
- 2018Practical Program Repair via Bytecode Mutationcited by 19
- 2021A Multi-Modal Transformer-based Code Summarization Approach for Smart Contractscited by 16
- 2019An Empirical Study of Obsolete Answers on Stack Overflowcited by 14
- 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal informationcited by 5
Built on by
Citing papers per year: 2024: 12; 2025: 29; 2026: 16.
57 papers.
Sort:
By area:
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 215
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2024An Empirical Study on LLM-based Agents for Automated Bug Fixingcited by 23
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 18
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
38 more
- 2024Planning-Driven Programming: A Large Language Model Programming Workflowcited by 7
- 2025INTA: Intent-Based Translation for Network Configuration with LLM Agentscited by 5
- 2025Is Your Benchmark Still Useful? Dynamic Benchmarking for Code Language Modelscited by 5
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2024A Joint Learning Model with Variational Interaction for Multilingual Program Translationcited by 4
- 2024Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integrationcited by 4
- 2025LoR2C : Low-Rank Residual Connection Adaptation for Parameter-Efficient Fine-Tuningcited by 4
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translationcited by 3
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
- 2025MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repaircited by 3
- 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphscited by 3
- 2025Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translationcited by 3
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versionscited by 2
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
- 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Patterncited by 2
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Codecited by 1
- 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearningcited by 1
- 2025MSPLoRA: A Multi-Scale Pyramid Low-Rank Adaptation for Efficient Model Fine-Tuningcited by 1
- 2025LLM-Powered Quantum Code Transpilationcited by 1
- 2025BabelCoder: Agentic Code Translation with Specification Alignmentcited by 1
- 2026His2Trans: A Knowledge-Guided Agentic Framework for Project-Level C-to-Rust Migrationcited by 1
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysiscited by 1
- 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilationcited by 1
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligencecited by 0
- 2025Model-Driven Quantum Code Generation Using Large Language Models and Retrieval-Augmented Generationcited by 0
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMscited by 0
- 2025Automated Snippet-Alignment Data Augmentation for Code Translationcited by 0
- 2025Exploringand Unleashing the Power of Large Language Models in CI/CD Configuration Translationcited by 0
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Casescited by 0
- 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysiscited by 0
- 2026LegacyTranslate: LLM-based Multi-Agent Method for Legacy Code Translationcited by 0
- 2026Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimizationcited by 0
50 most cited of 57 All 57 (JSON)
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026Predicting Program Exit Code with LLMs and Programming Language Semantics1 Sep 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Evaluating and Mitigating the Misguidance Effect of Buggy Code in LLM-Generated Unit Tests24 Jul 2026
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimization13 May 2026
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora20 Apr 2026
- 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilation13 Apr 2026
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis11 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
38 more
- 2026LegacyTranslate: LLM-based Multi-Agent Method for Legacy Code Translation14 Mar 2026
- 2026His2Trans: A Knowledge-Guided Agentic Framework for Project-Level C-to-Rust Migration3 Mar 2026
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis3 Feb 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025BabelCoder: Agentic Code Translation with Specification Alignment7 Dec 2025
- 2025Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translation29 Nov 2025
- 2025Exploringand Unleashing the Power of Large Language Models in CI/CD Configuration Translation3 Nov 2025
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation16 Oct 2025
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach14 Oct 2025
- 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphs13 Oct 2025
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMs10 Oct 2025
- 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Pattern29 Sep 2025
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems27 Sep 2025
- 2025MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repair19 Sep 2025
- 2025Model-Driven Quantum Code Generation Using Large Language Models and Retrieval-Augmented Generation28 Aug 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translation6 Aug 2025
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generation13 Jul 2025
- 2025LLM-Powered Quantum Code Transpilation12 Jul 2025
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligence3 Jun 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rust7 May 2025
- 2025Migrating Code At Scale With LLMs At Google13 Apr 2025
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions13 Apr 2025
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?31 Mar 2025
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translation28 Mar 2025
- 2025MSPLoRA: A Multi-Scale Pyramid Low-Rank Adaptation for Efficient Model Fine-Tuning27 Mar 2025
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks15 Mar 2025
- 2025Is Your Benchmark Still Useful? Dynamic Benchmarking for Code Language Models9 Mar 2025
- 2025LoR2C : Low-Rank Residual Connection Adaptation for Parameter-Efficient Fine-Tuning1 Mar 2025
- 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearning9 Feb 2025
- 2025INTA: Intent-Based Translation for Network Configuration with LLM Agents15 Jan 2025
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Code31 Dec 2024
- 2024Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integration27 Dec 2024
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translation23 Dec 2024
- 2024Planning-Driven Programming: A Large Language Model Programming Workflow21 Nov 2024
- 2024An Empirical Study on LLM-based Agents for Automated Bug Fixing15 Nov 2024
50 newest of 57 All 57 (JSON)
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2024An Empirical Study on LLM-based Agents for Automated Bug Fixingcited by 23
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
- 2025INTA: Intent-Based Translation for Network Configuration with LLM Agentscited by 5
- 2024Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integrationcited by 4
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
- 2025BabelCoder: Agentic Code Translation with Specification Alignmentcited by 1
- 2026His2Trans: A Knowledge-Guided Agentic Framework for Project-Level C-to-Rust Migrationcited by 1
- 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilationcited by 1
12 most cited of 14 All 14 (JSON)
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilation13 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2026LegacyTranslate: LLM-based Multi-Agent Method for Legacy Code Translation14 Mar 2026
- 2026His2Trans: A Knowledge-Guided Agentic Framework for Project-Level C-to-Rust Migration3 Mar 2026
- 2025BabelCoder: Agentic Code Translation with Specification Alignment7 Dec 2025
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach14 Oct 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generation13 Jul 2025
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks15 Mar 2025
- 2025INTA: Intent-Based Translation for Network Configuration with LLM Agents15 Jan 2025
- 2024Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integration27 Dec 2024
12 newest of 14 All 14 (JSON)
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 18
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
- 2024Planning-Driven Programming: A Large Language Model Programming Workflowcited by 7
- 2025Is Your Benchmark Still Useful? Dynamic Benchmarking for Code Language Modelscited by 5
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2024A Joint Learning Model with Variational Interaction for Multilingual Program Translationcited by 4
12 most cited of 39 All 39 (JSON)
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026Predicting Program Exit Code with LLMs and Programming Language Semantics1 Sep 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Evaluating and Mitigating the Misguidance Effect of Buggy Code in LLM-Generated Unit Tests24 Jul 2026
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis11 Apr 2026
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis3 Feb 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translation29 Nov 2025
- 2025Exploringand Unleashing the Power of Large Language Models in CI/CD Configuration Translation3 Nov 2025
12 newest of 39 All 39 (JSON)