Rectifier: Code Translation with Corrector via LLMs
Not on the map. Why?
Abstract (arXiv)
Software migration is garnering increasing attention with the evolution of software and society. Early studies mainly relied on handcrafted translation rules to translate between two languages, the translation process is error-prone and time-consuming. In recent years, researchers have begun to explore the use of pre-trained large language models (LLMs) in code translation. However, code translation is a complex task that LLMs would generate mistakes during code translation, they all produce certain types of errors when performing code translation tasks, which include (1) compilation error, (2) runtime error, (3) functional error, and (4) non-terminating execution. We found that the root causes of these errors are very similar (e.g. failure to import packages, errors in loop boundaries, operator errors, and more). In this paper, we propose a general corrector, namely Rectifier, which is a micro and universal model for repairing translation errors. It learns from errors generated by existing LLMs and can be widely applied to correct errors generated by any LLM. The experimental results on translation tasks between C++, Java, and Python show that our model has effective repair ability, and cross experiments also demonstrate the robustness of our method.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 27 of its 44 references that are in the map. First posted on arXiv 10 Jul 2024.
Builds on
27 of 44 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
15 more
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2021Neural Program Repair with Execution-based Backpropagationcited by 50
- 2022SelfAPR: Self-supervised Program Repair with Test Execution Diagnosticscited by 33
- 2024Multitask-based Evaluation of Open-Source LLM on Software Vulnerabilitycited by 23
- 2018AVATAR : Fixing Semantic Bugs with Fix Patterns of Static Analysis Violationscited by 22
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2023Distinguishing Look-Alike Innocent and Vulnerable Code by Subtle Semantic Representation Learning and Explanationcited by 11
- 2023SteloCoder: a Decoder-Only LLM for Multi-Language to Python Code Translationcited by 9
- 2017DeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learningcited by 8
- 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
- 2024Pros and Cons! Evaluating ChatGPT on Software Vulnerabilitycited by 3
Built on by
Citing papers per year: 2024: 7; 2025: 8; 2026: 5.
20 papers.
Sort:
By area:
- 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Executioncited by 31
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 16
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generationcited by 11
- 2024Multi-Programming Language Sandbox for LLMscited by 9
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4
- 2025Function-to-Style Guidance of LLMs for Code Translationcited by 4
- 2024A Compressive Memory-based Retrieval Approach for Event Argument Extractioncited by 3
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluationcited by 3
8 more
- 2025Program Skeletons for Automated Program Translationcited by 3
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
- 2025Learning to Align Human Code Preferencescited by 1
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
- 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
- 2026Static Program Slicing Using Language Models With Dataflow-Aware Pretraining and Constrained Decodingcited by 0
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translationcited by 0
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migrationcited by 0
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026Static Program Slicing Using Language Models With Dataflow-Aware Pretraining and Constrained Decoding9 Apr 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 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
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025Learning to Align Human Code Preferences27 Jul 2025
- 2025Function-to-Style Guidance of LLMs for Code Translation15 Jul 2025
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rust7 May 2025
- 2025Program Skeletons for Automated Program Translation10 Apr 2025
8 more
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluation27 Jan 2025
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translation23 Dec 2024
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysis18 Dec 2024
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validation31 Oct 2024
- 2024Multi-Programming Language Sandbox for LLMs30 Oct 2024
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generation27 Sep 2024
- 2024A Compressive Memory-based Retrieval Approach for Event Argument Extraction14 Sep 2024
- 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Execution23 Aug 2024
- 2025Learning to Align Human Code Preferencescited by 1
- 2025Learning to Align Human Code Preferences27 Jul 2025
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 16
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generationcited by 11
- 2024Multi-Programming Language Sandbox for LLMscited by 9
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4
- 2025Function-to-Style Guidance of LLMs for Code Translationcited by 4
- 2024A Compressive Memory-based Retrieval Approach for Event Argument Extractioncited by 3
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluationcited by 3
- 2025Program Skeletons for Automated Program Translationcited by 3
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
- 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
12 most cited of 15 All 15 (JSON)
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026Static Program Slicing Using Language Models With Dataflow-Aware Pretraining and Constrained Decoding9 Apr 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 2026
- 2025Function-to-Style Guidance of LLMs for Code Translation15 Jul 2025
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rust7 May 2025
- 2025Program Skeletons for Automated Program Translation10 Apr 2025
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluation27 Jan 2025
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translation23 Dec 2024
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysis18 Dec 2024
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validation31 Oct 2024
12 newest of 15 All 15 (JSON)