RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translation
Not on the map. Why?
Abstract (arXiv)
Repository-level code translation refers to translating an entire code repository from one programming language to another while preserving the functionality of the source repository. Many benchmarks have been proposed to evaluate the performance of such code translators. However, previous benchmarks mostly provide fine-grained samples, focusing at either code snippet, function, or file-level code translation. Such benchmarks do not accurately reflect real-world demands, where entire repositories often need to be translated, involving longer code length and more complex functionalities. To address this gap, we propose a new benchmark, named RepoTransBench, which is a real-world multilingual repository-level code translation benchmark featuring 1,897 real-world repository samples across 13 language pairs with automatically executable test suites. Besides, we introduce RepoTransAgent, a general agent framework to perform repository-level code translation. We evaluate both our benchmark's challenges and agent's effectiveness using several methods and backbone LLMs, revealing that repository-level translation remains challenging, where the best-performing method achieves only a 32.8% success rate. Furthermore, our analysis reveals that translation difficulty varies significantly by language pair direction, with dynamic-to-static language translation being much more challenging than the reverse direction (achieving below 10% vs. static-to-dynamic at 45-63%). Finally, we conduct a detailed error analysis and highlight current LLMs' deficiencies in repository-level code translation, which could provide a reference for further improvements. We provide the code and data at https://github.com/DeepSoftwareAnalytics/RepoTransBench.
Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). Builds on 41 of its 87 references that are in the map. First posted on arXiv 23 Dec 2024.
Builds on
41 of 87 references.
References · 41
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
29 more
- 2023StarCoder: may the source be with you!cited by 799
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
- 2020Unsupervised Translation of Programming Languagescited by 263
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2023SantaCoder: don't reach for the stars!cited by 170
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 57
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 53
- 2018Unsupervised Statistical Machine Translationcited by 51
- 2022Code Translation with Compiler Representationscited by 42
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
- 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2023On the Evaluation of Neural Code Translation: Taxonomy and Benchmarkcited by 23
- 2024Rectifier: Code Translation with Corrector via LLMscited by 20
- 2024Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generationcited by 16
- 2023Data Augmentation for Code Translation with Comparable Corpora and Multiple Referencescited 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
Built on by
Citing papers per year: 2024: 1; 2025: 10; 2026: 12.
23 papers.
Sort:
By area:
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 38
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?cited by 5
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluationcited by 3
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Taskscited by 3
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
11 more
- 2026Large Language Models for Multilingual Code Intelligence: A Surveycited by 2
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Codecited by 1
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agentscited by 1
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositoriescited by 0
- 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalencecited by 0
- 2026Entropy-based Code Adversarial Translation for Real-world Repository Migrationcited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluationcited by 0
- 2026ORCA: Evaluating LLMs on Data Science Code Translationcited by 0
- 2026Correct Code, Broken Contributions? SWE-CC: Benchmarking Repository Policy Compliance for Coding Agentscited by 0
- 2026Correct Code, Broken Contributions? SWE-CC: Benchmarking Repository Policy Compliance for Coding Agents5 Oct 2026
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents3 Sep 2026
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation1 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?24 Aug 2026
- 2026Entropy-based Code Adversarial Translation for Real-world Repository Migration10 Aug 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalence27 May 2026
- 2026Large Language Models for Multilingual Code Intelligence: A Survey27 Apr 2026
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora20 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
11 more
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translation21 Oct 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?18 Sep 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories28 Jul 2025
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Tasks4 Jul 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluation27 Jan 2025
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Code31 Dec 2024
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?cited by 5
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agentscited by 1
- 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalencecited by 0
- 2026Entropy-based Code Adversarial Translation for Real-world Repository Migrationcited by 0
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluationcited by 0
- 2026Correct Code, Broken Contributions? SWE-CC: Benchmarking Repository Policy Compliance for Coding Agentscited by 0
- 2026Correct Code, Broken Contributions? SWE-CC: Benchmarking Repository Policy Compliance for Coding Agents5 Oct 2026
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents3 Sep 2026
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation1 Sep 2026
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?24 Aug 2026
- 2026Entropy-based Code Adversarial Translation for Real-world Repository Migration10 Aug 2026
- 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalence27 May 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 38
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluationcited by 3
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Taskscited by 3
- 2026Large Language Models for Multilingual Code Intelligence: A Surveycited by 2
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Codecited by 1
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositoriescited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026ORCA: Evaluating LLMs on Data Science Code Translationcited by 0
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026Large Language Models for Multilingual Code Intelligence: A Survey27 Apr 2026
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?18 Sep 2025
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories28 Jul 2025
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Tasks4 Jul 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluation27 Jan 2025
- 2024SPDZCoder: Combining Expert Knowledge with LLMs for Generating Privacy-Computing Code31 Dec 2024