mlsanityData to 14 Oct 2026

AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validation

arXiv 2410.24117 ↗First posted 31 Oct 2024cs.SE cs.LGcited by 28

Not on the map. Why?

Abstract (arXiv)

Code translation transforms programs from one programming language (PL) to another. Several rule-based transpilers have been designed to automate code translation between different pairs of PLs. However, the rules can become obsolete as the PLs evolve and cannot generalize to other PLs. Recent studies have explored the automation of code translation using Large Language Models (LLMs). One key observation is that such techniques may work well for crafted benchmarks but fail to generalize to the scale and complexity of real-world projects with dependencies, custom types, PL-specific features, etc. We propose AlphaTrans, a neuro-symbolic approach to automate repository-level code translation. AlphaTrans translates both source and test code, and employs multiple levels of validation to ensure the translation preserves the functionality of the source program. To break down the problem for LLMs, AlphaTrans leverages program analysis to decompose the program into fragments and translates them in the reverse call order. We leveraged AlphaTrans to translate ten real-world open-source projects consisting of <836, 8575, 2719> classes, methods, and tests. AlphaTrans breaks down these projects into 17874 fragments and translates the entire repository. 96.40% of the translated fragments are syntactically correct, and AlphaTrans validates the translations' runtime behavior and functional correctness for 27.03% and 25.14% of fragments. On average, the integrated translation and validation take 34 hours to translate a project, showing its scalability in practice. For the incorrect translations, AlphaTrans generates a report including existing translation, stack trace, test errors, or assertion failures. We provided these artifacts to two developers to fix the translation bugs in four projects. They were able to fix the issues in 20.1 hours on average and achieve all passing tests.

Key facts. Cited by 28 papers in the map (data through 14 Oct 2026). Builds on 15 of its 56 references that are in the map. First posted on arXiv 31 Oct 2024.

Builds on

15 of 56 references.

References · 15

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  3. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  4. 2020Unsupervised Translation of Programming Languagescited by 263
  5. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  6. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  7. 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
  8. 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
  9. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  10. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 34
  11. 2023On the Evaluation of Neural Code Translation: Taxonomy and Benchmarkcited by 23
  12. 2024VERT: Verified Equivalent Rust Transpilation with Large Language Models as Few-Shot Learnerscited by 20
3 more
  1. 2024Rectifier: Code Translation with Corrector via LLMscited by 20
  2. 2023CodeFuse-13B: A Pretrained Multi-lingual Code Large Language Modelcited by 14
  3. 2024Program Decomposition and Translation with Static Analysiscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 13; 2026: 14.

28 papers.

Sort:

By area:

  1. 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checkingcited by 24
  2. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 23
  3. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
  4. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
  5. 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
  6. 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?cited by 5
  7. 2025MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repaircited by 4
  8. 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinementcited by 3
  9. 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphscited by 3
  10. 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settingscited by 3
  11. 2025An Empirical Study of Reasoning Steps in Thinking Code LLMscited by 2
  12. 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
16 more
  1. 2025When Many-Shot Prompting Fails: An Empirical Study of LLM Code Translationcited by 1
  2. 2025BabelCoder: Agentic Code Translation with Specification Alignmentcited by 1
  3. 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generationcited by 1
  4. 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMscited by 1
  5. 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilationcited by 1
  6. 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
  7. 2025A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insightscited by 0
  8. 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMscited by 0
  9. 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
  10. 2026Revisiting the Role of Natural Language Code Comments in Code Translationcited by 0
  11. 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translationcited by 0
  12. 2026Entropy-based Code Adversarial Translation for Real-world Repository Migrationcited by 0
  13. 2026Fine-Tuning Qwen3-27B for C-to-Rust Code Translation: A Three-Stage Curriculum of Pretraining, Debugging-Aware SFT, and Task-Specific SFTcited by 0
  14. 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migrationcited by 0
  15. 2026CoSTAR: Data Synthesis-Driven Constraint-Aware COBOL Section Summarization for Legacy System Modernizationcited by 0
  16. 2026ORCA: Evaluating LLMs on Data Science Code Translationcited by 0