paper-with-me

홈 › Papers

Rectifier: Code Translation with Corrector via LLMs

2024-07-10 · Xin Yin, Chao Ni, Tien N. Nguyen, Shaohua Wang, Xiaohu Yang

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.

📄 PDF Abstract BibTeX arXiv:2407.07472

Code (1)

vinci-grape/rectifier 공식 구현

Tasks

Code TranslationTranslation

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Delving into Rectifiers in Style-Based Image Translation

2021-11-20 · YiPeng Zhang, Bingliang Hu, Hailong Ning, Quang Wang

While modern image translation techniques can create photorealistic synthetic images, they have limited style controllability, thus could suffer from translation errors. In this work, we show that the activation function…

DiversityImage GenerationTranslation

FactCorrector: A Graph-Inspired Approach to Long-Form Factuality Correction of Large Language Models

2026-01-16 · Javier Carnerero-Cano, Massimiliano Pronesti, Radu Marinescu, Tigran Tchrakian 외 arxiv

Large language models (LLMs) are widely used in knowledge-intensive applications but often generate factually incorrect responses. A promising approach to rectify these flaws is correcting LLMs using feedback. Therefore,…

A Picture is Worth a Thousand (Correct) Captions: A Vision-Guided Judge-Corrector System for Multimodal Machine Translation

2025-11-10 · Siddharth Betala, Kushan Raj, Vipul Betala, Rohan Saswade arxiv

In this paper, we describe our system under the team name BLEU Monday for the English-to-Indic Multimodal Translation Task at WAT 2025. We participate in the text-only translation tasks for English-Hindi, English-Bengali…

Multimodal Machine Translation

Alirector: Alignment-Enhanced Chinese Grammatical Error Corrector

2024-02-07 · Haihui Yang, Xiaojun Quan

Chinese grammatical error correction (CGEC) faces serious overcorrection challenges when employing autoregressive generative models such as sequence-to-sequence (Seq2Seq) models and decoder-only large language models (LL…

DecoderGrammatical Error CorrectionSentence

Predictor-Corrector Enhanced Transformers with Exponential Moving Average Coefficient Learning

2024-11-05 · Bei Li, Tong Zheng, Rui Wang, Jiahao Liu 외

Residual networks, as discrete approximations of Ordinary Differential Equations (ODEs), have inspired significant advancements in neural network design, including multistep methods, high-order methods, and multi-particl…

Abstractive Text SummarizationLanguage ModelingLanguage ModellingMachine Translation+2