TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment
Not on the map. Why?
Abstract (arXiv)
Code translation transforms code between programming languages while preserving functionality, which is critical in software development and maintenance. While traditional learning-based code translation methods have limited effectiveness due to the lack of sufficient parallel training data, Large Language Models (LLMs) have recently advanced this field with their strong code generation and comprehension capabilities. However, code translated by LLMs still suffers from diverse quality issues, such as syntax and semantic errors. In this work, we propose TransAGENT, a novel multi-agent system that eliminates the errors during LLM-based code translation. The main insight of TransAGENT is to localize error-prone code blocks via fine-grained execution alignment between source and target code. We evaluate TransAGENT on a newly constructed benchmark of recent programming tasks to mitigate data leakage. TransAGENT outperforms the latest UniTrans by up to 33.3% in translation accuracy and achieves an average improvement of 56.7% over Agentless in program repair performance. We also conduct an ablation study and evaluate TransAGENT across different LLMs, demonstrating its effectiveness and strong generalizability.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 31 of its 80 references that are in the map. First posted on arXiv 30 Sep 2024.
Builds on
31 of 80 references.
References · 31
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
19 more
- 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2023Towards Better Chain-of-Thought Prompting Strategies: A Surveycited by 62
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2023A Survey of Learning-based Automated Program Repaircited by 55
- 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
- 2022Code Translation with Compiler Representationscited by 42
- 2018Nopol: Automatic Repair of Conditional Statement Bugs in Java Programscited by 32
- 2017ARJA: Automated Repair of Java Programs via Multi-Objective Genetic Programmingcited by 26
- 2018FixMiner: Mining Relevant Fix Patterns for Automated Program Repaircited by 22
- 2018AVATAR : Fixing Semantic Bugs with Fix Patterns of Static Analysis Violationscited by 22
- 2023GAMMA: Revisiting Template-based Automated Program Repair via Mask Predictioncited by 22
- 2024LLM-Powered Test Case Generation for Detecting Bugs in Plausible Programscited by 14
- 2022Summarize and Generate to Back-translate: Unsupervised Translation of Programming Languagescited by 12
- 2023Data Augmentation for Code Translation with Comparable Corpora and Multiple Referencescited by 9
- 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
- 2020Challenges in migrating legacy software systems to the cloud an empirical studycited by 3
Built on by
Citing papers per year: 2025: 6; 2026: 1.
7 papers.
- 2025CODEMENV: Benchmarking Large Language Models on Code Migrationcited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025CAFES: A Collaborative Multi-Agent Framework for Multi-Granular Multimodal Essay Scoringcited by 7
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2025Function-to-Style Guidance of LLMs for Code Translationcited by 4
- 2025A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insightscited by 0
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skillscited by 0
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 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
- 2025A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insights21 Jul 2025
- 2025Function-to-Style Guidance of LLMs for Code Translation15 Jul 2025
- 2025CODEMENV: Benchmarking Large Language Models on Code Migration1 Jun 2025
- 2025CAFES: A Collaborative Multi-Agent Framework for Multi-Granular Multimodal Essay Scoring20 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026LegacyTranslate: LLM-based Multi-Agent Method for Legacy Code Translation
- 2025BabelCoder: Agentic Code Translation with Specification Alignment
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories
- 2025A Survey on Code Generation with LLM-based Agents
- 2026Enhancing LLM-Based Code Translation with Verified Multi-Semantic Representations ↗