Exploring and Unleashing the Power of Large Language Models in Automated Code Translation
Open accessThe DOI matches its Crossref record; 66 of the 67 references it cites were found in a registry or an index, and 1 are not checked yet.
Abstract
Code translation tools, namely transpilers, are developed for automatic source-to-source translation. Latest learning-based transpilers have shown impressive enhancement against rule-based counterparts in both translation accuracy and readability, owing to their task-specific pre-training on extensive monolingual corpora. Nevertheless, their current performance still remains unsatisfactory for practical deployment, and the associated training resources are also prohibitively expensive. Large Language Models (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 re-training/fine-tuning. 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 (38.51%), missing clear instructions on I/O types in translation (14.94%), and ignoring discrepancies between source and target programs (41.38%). 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, including GPT-3.5 and LLaMA-13B/7B, are tested with UniTrans , and all achieve substantial improvements in terms of computational accuracy and exact match accuracy among almost all translation settings, showing the universal effectiveness of UniTrans in practice.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures







Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Yang et al. [34] proposed UniTrans, which introduces auto-generated test cases throughout the whole code translation framework via translation augmentation and repair. Although UniTrans injects test information and achieves certain effectiveness, it overlooks the role of intrinsic code structure information in assisting the model to understand code semantics.”
From Post-Incorporating Code Structural Knowledge Into Pretrained Models via ICL for Code Translation (2025) · cites this paper as [34]
In the citing paper
“The LLMpowered code translation has achieved significant progress in recent years [34], [72]-[74].”
From Post-Incorporating Code Structural Knowledge Into Pretrained Models via ICL for Code Translation (2025) · cites this paper as [34]
In the citing paper
“Another external validity threat is the quality of the dataset. It was released by [31] and is widely used due to multi-lingual samples and self-contained test suites [32][34]. We use the cleaned dataset from [34], where four authors cross-checked their cleaned results in pairs to reach a consensus for each group of parallel functions.”
From Post-Incorporating Code Structural Knowledge Into Pretrained Models via ICL for Code Translation (2025) · cites this paper as [34]
In the citing paper
“The internal validity threat comes from potential LLM data leakage due to possible training/testing set overlaps, but prior work [34] shows this threat is limited.”
From Post-Incorporating Code Structural Knowledge Into Pretrained Models via ICL for Code Translation (2025) · cites this paper as [34]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
LLaMA: Open and Efficient Foundation Language Models
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. (2023) · arXiv · doi:10.48550/arxiv.2302.13971 · Cited by 4,602 · cited 3×
“However, according to our compared learning-based transpilers [40–42] and open-source LLMs [35, 44], although those LLMs were also pre-trained on natural languages, as for training resources on code, all the above models were pre-trained based on GitHub public dataset available on Google BigQuery…”
BackgroundInfluentialIndividual Comparisons by Ranking Methods
Wilcoxon, F. (1992) · Springer Series in Statistics · doi:10.1007/978-1-4612-4380-9_16 · Cited by 2,915 · cited 1×
“As such, a vast amount of monolingual samples can be leveraged for training.”
BackgroundA Survey of Large Language Models
Zhao, W. X., Zhou, K., Li, J., Tang, T., Dong, Z., Hou, Y., Zhang, B., Min, Y., Zhang, J., Liu, P., et al. (2026) · Frontiers of Computer Science · doi:10.1007/s11704-026-60308-3 · Cited by 2,093
Self-citationA Survey of Large Language Models
Zhao, W. X., Zhou, K., Li, J., Tang, T., Wang, X., Hou, Y., Min, Y., Zhang, B., Zhang, J., Dong, Z., et al. (2023) · arXiv · doi:10.48550/arxiv.2303.18223 · Cited by 2,090
Self-citationEvaluating Large Language Models Trained on Code
Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. D. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. (2021) · arXiv · doi:10.48550/arxiv.2107.03374 · Cited by 1,436 · cited 1×
“…Large Language Models (LLMs), pre-trained on billions of text/code tokens, bypass the need for re-training/fine-tuning but demonstrate the powerful generality of various code-related tasks, such as code generation [7, 11, 23, 25, 28, 52], program repair [12, 48], and code summarization [2, 14].”
BackgroundThe Curious Case of Neural Text Degeneration
Holtzman, A., Buys, J., Du, L., Forbes, M., & Choi, Y. (2019) · arXiv · doi:10.48550/arxiv.1904.09751 · Cited by 1,304 · cited 1×
“To this end, as shown in the right-hand side of Figure 2, we design an Error Analyzer (EA) to extract error information from the above Execution Results (Step 8), including error lines and error messages.”
MethodEvoSuite: automatic test suite generation for object-oriented software
Fraser, G., & Arcuri, A. (2011) · Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on Foundations of software engineering · doi:10.1145/2025113.2025179 · Cited by 1,110 · cited 1×
“Traditional tools, such as Randoop [38], EvoSuite [13], and MOSA [39], exploit search-based heuristics to generate test cases, suffering limitations on diversity and quantity.”
MethodFeedback-Directed Random Test Generation
Pacheco, C., Lahiri, S. K., Ernst, M. D., & Ball, T. (2007) · 29th International Conference on Software Engineering (ICSE'07) · doi:10.1109/icse.2007.37 · Cited by 863 · cited 1×
“Traditional tools, such as Randoop [38], EvoSuite [13], and MOSA [39], exploit search-based heuristics to generate test cases, suffering limitations on diversity and quantity.”
MethodStructured Chain-of-Thought Prompting for Code Generation
Li, J., Li, G., Li, Y., & Jin, Z. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3690635 · Cited by 461 · cited 1×
“…Large Language Models (LLMs), pre-trained on billions of text/code tokens, bypass the need for re-training/fine-tuning but demonstrate the powerful generality of various code-related tasks, such as code generation [7, 11, 23, 25, 28, 52], program repair [12, 48], and code summarization [2, 14].”
BackgroundSelf-citationAutomated Program Repair in the Era of Large Pre-trained Language Models
Xia, C. S., Wei, Y., & Zhang, L. (2023) · 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) · doi:10.1109/icse48619.2023.00129 · Cited by 433
Research works printed but not linked: 3
- JWKJW Kotrlik and CCHCC Higgins. 2001. Organizational research: Determining appropriate sample size in survey research appropriate sample size in survey research. Information technology, learning, and performance journal 19, 1 (2001), 43.
- Jia Li, Yunfei Zhao, Yongmin Li, Ge Li, and Zhi Jin. 2023. Towards Enhancing In-Context Learning for Code Generation. arXiv preprint arXiv:2303.17780 (2023). · DOI · Paper page
- Anh Tuan Nguyen, Tung Thanh Nguyen, and Tien N Nguyen. 2015. Divide-and-conquer approach for multi-phase statistical migration for source code (t). In 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 585-596. · DOI · Paper page
Cited by
Items 201–241 of 241
Wang, G., Sun, Z., Xie, X., Chen, Y., Tan, Y., Zhao, Y., & Hao, D. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2603.26091
“Many prompt-based techniques [61, 74] provide LLMs with few-shot retrieval content to enhance LLMs’ capabilities.”
Chiseling Out Efficiency: Structured Skeleton Supervision for Efficient Code Generation
Yu, Y., Sun, Z., Li, J., Wan, Y., Li, C., Zhang, H., Wang, R., Huang, T., Jin, Z. G., Li, G., et al. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3808194
Self-citationLLMTestCraft: An Automated Unit Test Case Generator using Large Language Models
Nuh, J. A., Koh, T. W., Lawal, B., Jaharadak, A. A., & Ali, M. A. (2025) · IEEE International Conference on Data and Software Engineering (ICoDSE) · doi:10.1109/icodse68111.2025.11351817
“These methods focus mainly on achieving coverage goals, offering limited diversity and interpretability [2], [4].”
Liang, Y., Gan, C., Ying, R., Wei, H., Cui, Z., & Ni, S. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2609.12012
“Translation can use source execution as a behavioral reference, as illustrated by UniTrans and TransAgent [10], [11].”
InfluentialTowards Reliable C-to-Rust Translation with Rule-Guided Reasoning and Reinforcement Learning
Luo, F., Liu, J., Gao, C., Feng, J., & Liu, K. (2026) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3832783.3834534
Yq, Gong, K., Gao, Y. C., Wang, H., & Dong, W. (2025) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2025.findings-emnlp.1048
“…(Doe and Smith, 2025; Le et al., 2024) that first generate an outline and then produce code based on the outline, as well as code translation algorithms (Yang et al., 2024) that translate algorithmic problems into languages like C++ or Java, have both demonstrated outstanding performance.”
Albert, E., & Pasareanu, C. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-22774-4
Ma, Z., Wang, T., Deng, Y., Qiao, Z., Wang, Y., Wei, T., Wang, L., & Ren, J. (2026) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2026.findings-acl.1078
“Most existing approaches (Lin et al., 2025; Zhang et al., 2024c; Yu et al., 2024) focus on device–cloud scenarios, where LLMs reside in the cloud and SLMs operate at the mobile/edge device to provide low-latency, task-specific processing.”
How Developers Use Type-System Related Programming Language Features
Flint, S. W. (2025) · Lincoln (University of Nebraska)
LLM-driven Translation of GPU Code Across Parallel Execution Models
Hagn, M. (2026) · reposiTUm (TU Wien) · doi:10.34726/hss.2026.138663
ORCA: Evaluating LLMs on Data Science Code TranslationPreprint
Li, X.-L., Li, J.-Y., Qin, B.-W., Qu, G., Huo, N., Xu, X.-H., Lin, S.-P., & Cheng, R. (2026) · arXiv.org · doi:10.48550/arxiv.2609.30749
“More recent work has leveraged LLMs for code translation including function-level, multilingual, and repository-level code translation [55, 51, 47, 54, 2, 39, 22].”
Self-citationSong, B., Qin, L., Hu, W., Xiang, J., & Hao, R. (2025) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec66846.2025.00039
Narrowing the Complexity Gap in the Evaluation of Large Language ModelsPreprint
Chen, Y., Liu, S., & Jabbarvand, R. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2602.18928
“For code translation, we used the Avatar (250 programs) and followed best practices [56, 79] to prompt LLMs, e.g., including multiple tests in the prompt to help correct translation (Figure 6b).”
Self-citationSEDCoT: Enhancing LLM-Based COBOL Code Translation via Symbolic Execution and Delta Debugging
Entin, P., Gu, W., Knapp, A., & Chen, C. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3832259
Boosting Automatic Java-to-Cangjie Translation with Multi-Stage LLM Training and Error RepairPreprint
Liang, X., Zhang, J., Li, L., Zhang, J., & Chen, J. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.07403
Hallucinations of Large Language Models in Cross-Language Code Translation: Phenomena and MitigationPreprint
Du, Y., Zhang, Y., & Li, M. (2026) · arXiv · doi:10.48550/arxiv.2610.27868
“For translation correctness, we follow most previous studies [10, 40, 41, 58] to measure two main aspects, including the Compilation Success Rate (CSR) and Computational Accuracy (CA).”
InfluentialAn Extensive Empirical Study on Code Translation TechniquePreprint
Fan, R., Jiang, J., Wang, X., Fu, J., Li, F., & Shen, J. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.20776
“It was widely used as a baseline for code understanding and generation tasks in previous studies [27].”
InfluentialDipto, S. R. (2026) · HARVEST (University of Saskatchewan)
Grynets, O., Lyashkevych, V., Oliferuk, V., Babenko, V., Kovalchuk, D., & Kostetskyi, D. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2611.16143
Neuro-Formal Verification: Agentic Language-Agnostic Formal Program ReasoningPreprint
Lahiri, S. K. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.21516
“Neural language translation — the problem of translating across languages predates the current generation of agents and LLMs [20, 21, 22] but has advanced quickly with them [23].”
RulER: Automated Rule-Based Semantic Error Localization and Repair for Code TranslationPreprint
Jin, S., Chen, S., Xie, X., & Cheung, S.-C. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2509.14829
“With the emergence of powerful LLMs, recent studies have explored leveraging LLMs for code translation [8, 9, 33, 39, 77].”
Maddila, S. R., & Sharma, B. U. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.7277231
Santos, C., Vitagliano, M., Natella, R., & Andrade, E. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.26391
“These approaches automate parts of the development process by translating higher-level descriptions, models, or schemas into executable code or reusable software components, reducing the gap between system specification and implementation [3], [21].”
Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimization
Wu, Y., Zhang, H., Cheng, W., Shen, C., Yang, J., & Hu, W. (2026) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2026/665
An Exploratory Study of Library Migration in Rust
Ye, M., Wu, J., Liu, Z., Liu, J., & Bao, L. (2026) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam71261.2026.00029
Predicting Program Exit Code with LLMs and Programming Language Semantics
Marinov, L., Thimmaiah, A., Srinivasa, J., Li, J. J., & Gligoric, M. (2026) · ACM SIGPLAN International Workshop on Language Models and Programming Languages (LMPL) · doi:10.1145/3843750.3843842
“LLMs have become widely used in software engineering, demonstrating remarkable proficiency in tasks like code generation [11, 24, 31], code translation [26, 43], bug fixing [15, 22], and summarizing complex codebases [23, 27, 38].”
Self-citationYuan, Z., Wang, C., Zhou, Z., Liu, J., & Peng, X. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2610.23044
Comparison of different LLMs in code translation
Güzel, E. C. (2025) · Tampere University Institutional Repository (Tampere University)
Caiazza, G., & Taibi, D. (2026) · IEEE Software · doi:10.1109/ms.2026.3703115
Model Konversi Otomatis Antar Bahasa Pemrograman untuk Meningkatkan Portabilitas Perangkat Lunak
Kaswiyah, K., Rasyada, B. Y. N., & Yaqin, M. A. (2025) · Journal Automation Computer Information System · doi:10.47134/jacis.v5i2.120
MACT: A Multi-Agent Framework for Semantic-Preserving Python-to-C++ Code TranslationPreprint
Wu, J., Peng, F., & Jin, Z. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.6118184
Self-citationLadder Logic Translation using Large Language Models in Industrial AutomationPreprint
Ogundare, O., Ekpo, P., & Wiggins, N. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.31458
“Code translation with Large Language Models (LLMs) is an important problem in enterprise software [1], but industrial automation remains difficult because PLC ecosystems are highly vendor-specific.”
Challenges in Code Translation Using Large Language Models
Theuerkauf, L., Neumann, K., Nahhas, A., Walia, D. S., & Chernigovskaya, M. (2026) · International Conference on New Trends in Translation and Technology (NeTTT) · doi:10.26615/issn.2815-4711.2026_012
From C to Idiomatic Rust: A Ship-of-Theseus Agentic Translation
Sartakov, V. A. (2026) · doi:10.1145/3843775.3844544
Anantha, B., & Sharma, B. U. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.7217223
Legacy System Modernization with Coding Agents: A Case StudyPreprint
Alves, I. D. S. R., Politowski, C., & Montandon, J. E. (2026) · arXiv · doi:10.48550/arxiv.2608.28972
Luo, F. (2026) · International Conference Computational Vision and Bio Inspired Computing · doi:10.1109/iccvbic71195.2026.11689422
“As the reflection, the research [12] found that while LLMs exhibit strong readability and generation capabilities in programming language conversion tasks, issues still exist.”
Assessing the Quality of ChatGPT-Generating Arabic Subtitles: A Functional and Linguistic Analysis
Ben-milad, K. (2026) · Faculty of Languages Journal-Tripoli-Libya
Large Language Models for Quantum Code Translation: An Exploratory StudyPreprint
Li, X., Li, Y., & Zhao, J. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2610.34841
“UniTrans uses execution feedback [26], InterTrans explores intermediate translation paths [15], and AlphaTrans decomposes repositories and combines translation with multiple validation levels [11].”
Req2Rust: A Requirements-Guided Agent Harness for Project-Level C++-to-Rust MigrationPreprint
Wang, S., Liu, M., Chen, Y., & Wang, Y. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2611.07442
Metadata
- Authors
- Yang, Z., Liu, F., Yu, Z., Keung, J. W., Li, J., Liu, S., Hong, Y., Ma, X., Jin, Z., & Li, G.
- Affiliations
- Shandong University (CN)
- Beihang University (CN)
- City University of Hong Kong (HK)
- Peking University (CN)
- ORCID
- Venue
- Proceedings of the ACM on Software Engineering
- Published
- 2024-07-12
- Volume
- 1
- Issue
- FSE
- Pages
- 1585-1608
- ISSN
- 2994-970X (ISSN-L)
- OpenAlex
- W4400582609
- Semantic Scholar
- a8a42eaf78d66bd5cdc5e951befbf731ceca59c1
- Cited by
- 104
- References
- 55
- Citations by year
- 2026: 46 · 2025: 45 · 2024: 13
- FWCI
- 39.10
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- Proceedings of the ACM on software engineering. (publishedVersion)
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University)
- Funders
- National Key R&D Program (2023YFB4503801)
- National Natural Science Foundation of China (62102233, 62302021, 62192731, 62192730, 62072007, 62192733, 61832009)
- Shandong Province Overseas Outstanding Youth Fund (2022HWYQ-043)
- City University of Hong Kong (7005217,9220097,9220103,9229029,9229098,9678149)
- Key Program of Hubei (JD2023008)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Keywords
- transpiler, large language models, test case generation, program repair, source-to-source translation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.