mlsanityData to 7 Oct 2026

Exploring and Unleashing the Power of Large Language Models in Automated Code Translation

arXiv 2404.14646 ↗First posted 23 Apr 2024cs.SE cs.AIcited by 57

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

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  4. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  5. 2022CodeT: Code Generation with Generated Testscited by 369
  6. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  7. 2020Unsupervised Translation of Programming Languagescited by 262
  8. 2023Self-collaboration Code Generation via ChatGPTcited by 255
  9. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  10. 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
  11. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  12. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
19 more
  1. 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
  2. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
  3. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  4. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  5. 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
  6. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
  7. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  8. 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
  9. 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
  10. 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
  11. 2019Getafix: Learning to Fix Bugs Automaticallycited by 40
  12. 2023SkCoder: A Sketch-based Approach for Automatic Code Generationcited by 40
  13. 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
  14. 2023AceCoder: Utilizing Existing Code to Enhance Code Generationcited by 25
  15. 2018Practical Program Repair via Bytecode Mutationcited by 19
  16. 2021A Multi-Modal Transformer-based Code Summarization Approach for Smart Contractscited by 16
  17. 2019An Empirical Study of Obsolete Answers on Stack Overflowcited by 14
  18. 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
  19. 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal informationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 12; 2025: 29; 2026: 16.

57 papers.

Sort:

By area:

  1. 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 215
  2. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
  3. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
  4. 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
  5. 2024An Empirical Study on LLM-based Agents for Automated Bug Fixingcited by 23
  6. 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
  7. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
  8. 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 18
  9. 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
  10. 2025Migrating Code At Scale With LLMs At Googlecited by 14
  11. 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
  12. 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
38 more
  1. 2024Planning-Driven Programming: A Large Language Model Programming Workflowcited by 7
  2. 2025INTA: Intent-Based Translation for Network Configuration with LLM Agentscited by 5
  3. 2025Is Your Benchmark Still Useful? Dynamic Benchmarking for Code Language Modelscited by 5
  4. 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
  5. 2024A Joint Learning Model with Variational Interaction for Multilingual Program Translationcited by 4
  6. 2024Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integrationcited by 4
  7. 2025LoR2C : Low-Rank Residual Connection Adaptation for Parameter-Efficient Fine-Tuningcited by 4
  8. 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4
  9. 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
  10. 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translationcited by 3
  11. 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
  12. 2025MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repaircited by 3
  13. 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphscited by 3
  14. 2025Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translationcited by 3
  15. 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versionscited by 2
  16. 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
  17. 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
  18. 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Patterncited by 2
  19. 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
  20. 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Codecited by 1
  21. 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearningcited by 1
  22. 2025MSPLoRA: A Multi-Scale Pyramid Low-Rank Adaptation for Efficient Model Fine-Tuningcited by 1
  23. 2025LLM-Powered Quantum Code Transpilationcited by 1
  24. 2025BabelCoder: Agentic Code Translation with Specification Alignmentcited by 1
  25. 2026His2Trans: A Knowledge-Guided Agentic Framework for Project-Level C-to-Rust Migrationcited by 1
  26. 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysiscited by 1
  27. 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilationcited by 1
  28. 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
  29. 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligencecited by 0
  30. 2025Model-Driven Quantum Code Generation Using Large Language Models and Retrieval-Augmented Generationcited by 0
  31. 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMscited by 0
  32. 2025Automated Snippet-Alignment Data Augmentation for Code Translationcited by 0
  33. 2025Exploringand Unleashing the Power of Large Language Models in CI/CD Configuration Translationcited by 0
  34. 2025SoK: Understanding (New) Security Issues Across AI4Code Use Casescited by 0
  35. 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
  36. 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysiscited by 0
  37. 2026LegacyTranslate: LLM-based Multi-Agent Method for Legacy Code Translationcited by 0
  38. 2026Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimizationcited by 0

50 most cited of 57 All 57 (JSON)