Tree-to-tree Neural Networks for Program Translation
Not on the map. Why?
Abstract (arXiv)
Program translation is an important tool to migrate legacy code in one language into an ecosystem built in a different language. In this work, we are the first to employ deep neural networks toward tackling this problem. We observe that program translation is a modular procedure, in which a sub-tree of the source tree is translated into the corresponding target sub-tree at each step. To capture this intuition, we design a tree-to-tree neural network to translate a source tree into a target one. Meanwhile, we develop an attention mechanism for the tree-to-tree model, so that when the decoder expands one non-terminal in the target tree, the attention mechanism locates the corresponding sub-tree in the source tree to guide the expansion of the decoder. We evaluate the program translation capability of our tree-to-tree model against several state-of-the-art approaches. Compared against other neural translation models, we observe that our approach is consistently better than the baselines with a margin of up to 15 points. Further, our approach can improve the previous state-of-the-art program translation approaches by a margin of 20 points on the translation of real-world projects.
Key facts. Cited by 93 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Feb 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 28; 2022: 13; 2023: 18; 2024: 15; 2025: 13; 2026: 6.
93 papers.
Sort:
By area:
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 55
38 more
- 2021A Survey of Machine Learning for Computer Architecture and Systemscited by 53
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2023The Shifted and The Overlooked: A Task-oriented Investigation of User-GPT Interactionscited by 45
- 2021Leveraging Language to Learn Program Abstractions and Search Heuristicscited by 44
- 2022Code Translation with Compiler Representationscited by 42
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
- 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assemblycited by 28
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2021Math Word Problem Generation with Mathematical Consistency and Problem Context Constraintscited by 27
- 2021How could Neural Networks understand Programs?cited by 26
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
- 2023Exploring Continual Learning for Code Generation Modelscited by 22
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Executioncited by 21
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2024Rectifier: Code Translation with Corrector via LLMscited by 20
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
- 2021Neural Program Generation Modulo Static Analysiscited by 13
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2021Learning C to x86 Translation: An Experiment in Neural Compilationcited by 12
- 2022Summarize and Generate to Back-translate: Unsupervised Translation of Programming Languagescited by 12
- 2021Multimodal Representation for Neural Code Searchcited by 11
- 2021Structured Context and High-Coverage Grammar for Conversational Question Answering over Knowledge Graphscited by 10
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2023Data Augmentation for Code Translation with Comparable Corpora and Multiple Referencescited by 9
- 2024Output Format Biases in the Evaluation of Large Language Models for Code Translationcited by 9
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsingcited by 8
- 2021NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commandscited by 7
- 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
- 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detectioncited by 6
- 2025Knowledge Augmented Complex Problem Solving with Large Language Models: A Surveycited by 6
- 2023Differentiable Tree Operations Promote Compositional Generalizationcited by 5
- 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?cited by 5
50 most cited of 93 All 93 (JSON)
- 2026AoA: Theorem Proving Agent over Abstract Syntax Tree of Redesigned Language17 Jul 2026
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026RAG-Reflect: Agentic Retrieval-Augmented Generation with Reflections for Comment-Driven Code Maintenance on Stack Overflow24 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation16 Oct 2025
- 2025BinCtx: Multi-Modal Representation Learning for Robust Android App Behavior Detection16 Oct 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025Function-to-Style Guidance of LLMs for Code Translation15 Jul 2025
38 more
- 2025Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networks22 Jun 2025
- 2025HPCTransCompile: An AI Compiler Generated Dataset for High-Performance CUDA Transpilation and LLM Preliminary Exploration12 Jun 2025
- 2025Knowledge Augmented Complex Problem Solving with Large Language Models: A Survey6 May 2025
- 2025Program Skeletons for Automated Program Translation10 Apr 2025
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translation28 Mar 2025
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement28 Mar 2025
- 2025How to Select Pre-Trained Code Models for Reuse? A Learning Perspective7 Jan 2025
- 2024Renaissance of Literate Programming in the Era of LLMs: Enhancing LLM-Based Code Generation in Large-Scale Projects25 Dec 2024
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translation23 Dec 2024
- 2024Compositional Generalization Across Distributional Shifts with Sparse Tree Operations18 Dec 2024
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translation1 Nov 2024
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validation31 Oct 2024
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment30 Sep 2024
- 2024A Joint Learning Model with Variational Interaction for Multilingual Program Translation25 Aug 2024
- 2024Rectifier: Code Translation with Corrector via LLMs10 Jul 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformers25 Apr 2024
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translation23 Apr 2024
- 2024Forklift: An Extensible Neural Lifter1 Apr 2024
- 2024Output Format Biases in the Evaluation of Large Language Models for Code Translation25 Mar 2024
- 2024Teaching Machines to Code: Smart Contract Translation with LLMs13 Mar 2024
- 2024Structured Code Representations Enable Data-Efficient Adaptation of Code Language Models19 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?1 Dec 2023
- 2023Data Augmentation for Code Translation with Comparable Corpora and Multiple References1 Nov 2023
- 2023The Shifted and The Overlooked: A Task-oriented Investigation of User-GPT Interactions19 Oct 2023
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation8 Oct 2023
- 2023AutoEncoding Tree for City Generation and Applications27 Sep 2023
- 2023Guess & Sketch: Language Model Guided Transpilation25 Sep 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023Exploring Continual Learning for Code Generation Models5 Jul 2023
- 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Execution11 Jun 2023
- 2023Differentiable Tree Operations Promote Compositional Generalization1 Jun 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assembly21 May 2023
- 2023ACRoBat: Optimizing Auto-batching of Dynamic Deep Learning at Compile Time17 May 2023
- 2023Teaching Large Language Models to Self-Debug11 Apr 2023
- 2023Spatial Attention and Syntax Rule Enhanced Tree Decoder for Offine Handwritten Mathematical Expression Recognition13 Mar 2023
50 newest of 93 All 93 (JSON)
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinementcited 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
- 2026AoA: Theorem Proving Agent over Abstract Syntax Tree of Redesigned Languagecited by 1
- 2026AoA: Theorem Proving Agent over Abstract Syntax Tree of Redesigned Language17 Jul 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement28 Mar 2025
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 55
- 2021A Survey of Machine Learning for Computer Architecture and Systemscited by 53
12 most cited of 85 All 85 (JSON)
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation16 Oct 2025
- 2025BinCtx: Multi-Modal Representation Learning for Robust Android App Behavior Detection16 Oct 2025
- 2025Function-to-Style Guidance of LLMs for Code Translation15 Jul 2025
- 2025Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networks22 Jun 2025
- 2025HPCTransCompile: An AI Compiler Generated Dataset for High-Performance CUDA Transpilation and LLM Preliminary Exploration12 Jun 2025
- 2025Program Skeletons for Automated Program Translation10 Apr 2025
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translation28 Mar 2025
- 2025How to Select Pre-Trained Code Models for Reuse? A Learning Perspective7 Jan 2025
12 newest of 85 All 85 (JSON)