A Systematic Literature Review on Neural Code Translation
Xiang Chen, Jiacheng Xue, Xiaofei Xie, Caokai Liang, Xiaolin Ju
TL;DR
This systematic literature review analyzes 57 neural code translation studies from 2020 to 2025 to map the field across task characteristics, data preprocessing, code modeling, model construction, post-processing, evaluation subjects, and evaluation metrics. It finds that bidirectional translations between statically typed languages at function-level granularity dominate, with data cleaning and deduplication as key preprocessing steps, and plain-text modeling being most common alongside growing graph-based and IR-based approaches. Model construction trends favor fine-tuning and prompt engineering, while post-processing and robust evaluation (static and dynamic metrics) are increasingly emphasized to ensure correctness and maintainability. The study highlights open directions including leveraging retrieval-augmented generation and multi-agent LLM systems, improving translations for low-resource languages, securing code translation pipelines, and incorporating repository-level context and repair/refinement processes for practical, large-scale software migration.
Abstract
Code translation aims to convert code from one programming language to another automatically. It is motivated by the need for multi-language software development and legacy system migration. In recent years, neural code translation has gained significant attention, driven by rapid advancements in deep learning and large language models. Researchers have proposed various techniques to improve neural code translation quality. However, to the best of our knowledge, no comprehensive systematic literature review has been conducted to summarize the key techniques and challenges in this field. To fill this research gap, we collected 57 primary studies covering the period 2020~2025 on neural code translation. These studies are analyzed from seven key perspectives: task characteristics, data preprocessing, code modeling, model construction, post-processing, evaluation subjects, and evaluation metrics. Our analysis reveals current research trends, identifies unresolved challenges, and shows potential directions for future work. These findings can provide valuable insights for both researchers and practitioners in the field of neural code translation.
