Projects per year
Abstract
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.
© 2024 Copyright held by the owner/author(s). Publication rights licensed to ACM.
| Original language | English |
|---|---|
| Article number | 71 |
| Journal | Proceedings of the ACM on Software Engineering |
| Volume | 1 |
| Issue number | FSE |
| Online published | 12 Jul 2024 |
| DOIs | |
| Publication status | Published - Jul 2024 |
| Event | 32nd ACM International Conference on the Foundations of Software Engineering (FSE 2024) - Porto de Galinhas, Brazil Duration: 15 Jul 2024 → 19 Jul 2024 https://2024.esec-fse.org/ |
Bibliographical note
Research Unit(s) information for this publication is provided by the author(s) concerned.Funding
This work was partially supported by National Key R&D Program under Grant No.2023YFB4503801, National Natural Science Foundation of China (Grant No. 62102233, 62302021, 62192731, 62192730, 62072007, 62192733, 61832009), Shandong Province Overseas Outstanding Youth Fund (Grant No. 2022HWYQ-043), Qilu Young Scholar Program of Shandong University, the General Research Fund (GRF) of the Research Grants Council of Hong Kong, the industry research funds of City University of Hong Kong (7005217,9220097,9220103,9229029,9229098,9678149), and the Key Program of Hubei under Grant JD2023008
Research Keywords
- Automated Code Translation
- Large Language Models
- Transformer
RGC Funding Information
- RGC-funded
Fingerprint
Dive into the research topics of 'Exploring and Unleashing the Power of Large Language Models in Automated Code Translation'. Together they form a unique fingerprint.-
DON_RMG: Deep Learning-based Technologies for Practical Data Analytics in Technological Innovation - RMGS
Keung, J. W. (Principal Investigator / Project Coordinator)
1/04/22 → …
Project: Research
-
DON_RMG: Smart Intelligent Process Automation for the Mortgage Lending Industry - RMGS
Keung, J. W. (Principal Investigator / Project Coordinator)
1/06/20 → …
Project: Research
-
DON: Deep Probabilistic Reasoning and Statistical Analysis Using Deep-Learning
Keung, J. W. (Principal Investigator / Project Coordinator)
1/08/19 → …
Project: Research
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver