mlsanityData to 7 Oct 2026

Tree-to-tree Neural Networks for Program Translation

arXiv 1802.03691 ↗First posted 11 Feb 2018cs.AI cs.LG cs.PLcited by 93

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 28; 2022: 13; 2023: 18; 2024: 15; 2025: 13; 2026: 6.

93 papers.

Sort:

By area:

  1. 2023Teaching Large Language Models to Self-Debugcited by 963
  2. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  3. 2024A Survey on Large Language Models for Code Generationcited by 646
  4. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  5. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  6. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  7. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  8. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  9. 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
  10. 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
  11. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  12. 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 55
38 more
  1. 2021A Survey of Machine Learning for Computer Architecture and Systemscited by 53
  2. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
  3. 2023The Shifted and The Overlooked: A Task-oriented Investigation of User-GPT Interactionscited by 45
  4. 2021Leveraging Language to Learn Program Abstractions and Search Heuristicscited by 44
  5. 2022Code Translation with Compiler Representationscited by 42
  6. 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
  7. 2022Fault-Aware Neural Code Rankerscited by 33
  8. 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
  9. 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assemblycited by 28
  10. 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
  11. 2021Math Word Problem Generation with Mathematical Consistency and Problem Context Constraintscited by 27
  12. 2021How could Neural Networks understand Programs?cited by 26
  13. 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
  14. 2023Exploring Continual Learning for Code Generation Modelscited by 22
  15. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  16. 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Executioncited by 21
  17. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
  18. 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
  19. 2024Rectifier: Code Translation with Corrector via LLMscited by 20
  20. 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
  21. 2021Neural Program Generation Modulo Static Analysiscited by 13
  22. 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
  23. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  24. 2021Learning C to x86 Translation: An Experiment in Neural Compilationcited by 12
  25. 2022Summarize and Generate to Back-translate: Unsupervised Translation of Programming Languagescited by 12
  26. 2021Multimodal Representation for Neural Code Searchcited by 11
  27. 2021Structured Context and High-Coverage Grammar for Conversational Question Answering over Knowledge Graphscited by 10
  28. 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
  29. 2023Data Augmentation for Code Translation with Comparable Corpora and Multiple Referencescited by 9
  30. 2024Output Format Biases in the Evaluation of Large Language Models for Code Translationcited by 9
  31. 2021Toward Code Generation: A Survey and Lessons from Semantic Parsingcited by 8
  32. 2021NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commandscited by 7
  33. 2023Syntax and Domain Aware Model for Unsupervised Program Translationcited by 7
  34. 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
  35. 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detectioncited by 6
  36. 2025Knowledge Augmented Complex Problem Solving with Large Language Models: A Surveycited by 6
  37. 2023Differentiable Tree Operations Promote Compositional Generalizationcited by 5
  38. 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?cited by 5

50 most cited of 93 All 93 (JSON)