跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:1802.03691 (cs)
[提交于 2018年2月11日 (v1),最后修订于 2018年10月26日 (此版本, v3)]

标题:Tree-to-tree Neural Networks for Program Translation

作者:Xinyun Chen, Chang Liu, Dawn Song
查看论文《Tree-to-tree Neural Networks for Program Translation》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要: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.
评论: Published in NIPS 2018
主题: 人工智能 (cs.AI); 机器学习 (cs.LG); 程序设计语言 (cs.PL)
引用方式: arXiv:1802.03691 [cs.AI]
  (或者 arXiv:1802.03691v3 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.1802.03691

提交历史

来自:Xinyun Chen
[v1] 2018年2月11日 星期日 04:42:03 UTC
[v3] 2018年10月26日 星期五 03:51:27 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2018-10
切换浏览方式为:
cs.AI
cs.LG
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站