arrow
返回

Embedding API dependency graph for neural code generation

delete2021-04-21
delete14
delete
OA
AI
C
Chen Lyu *
R
Ruyun Wang
张
张宏玉 (Hongyu Zhang)
H
Hanwen Zhang
S
Songlin Hu
DOI:10.1007/s10664-021-09968-2delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
The problem of code generation from textual program descriptions has long been viewed as a grand challenge in software engineering. In recent years, many deep learning based approaches have been proposed, which can generate a sequence of code from a sequence of textual program description. However, the existing approaches ignore the global relationships among API methods, which are important for understanding the usage of APIs. In this paper, we propose to model the dependencies among API methods as an API dependency graph (ADG) and incorporate the graph embedding into a sequence-to-sequence (Seq2Seq) model. In addition to the existing encoder-decoder structure, a new module named embedder is introduced. In this way, the decoder can utilize both global structural dependencies and textual program description to predict the target code. We conduct extensive code generation experiments on three public datasets and in two programming languages (Python and Java). Our proposed approach, called ADG-Seq2Seq, yields significant improvements over existing state-of-the-art methods and maintains its performance as the length of the target code increases. Extensive ablation tests show that the proposed ADG embedding is effective and outperforms the baselines.
Keyword:
Code generation
Program synthesis
API dependency graph
Graph embedding
Deep learning
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
University of Newcastle
学者数:
1.5W
论文数: 1.5W
被引数: 16
I
institute of information engineering, cas
学者数:
477
论文数: 469
被引数: 0
S
shandong normal university
学者数:
1.0W
论文数: 8.2K
被引数: 3
C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
学者 查看更多机构
引用论文

引用论文

err
IF0
err
err0
errOAAI
err
err分享
err收藏
Adaptation and psychometric properties of the German version of the dissociative experience scale
err2005-06-30
err0
PREAI
errCarsten Spitzer; Harald J. Freyberger; Rolf‐Dieter Stieglitz; Eve B. Carlson; Gabriela Kuhn; Norbert Magdeburg; Christof Kessler
err分享
err收藏
Acid catalysis in hydrolytic reactions水解反应中的酸催化
err1929-01-01
err0
PREAI
errJ. N. Brönsted; W. F. K. Wynne-Jones
err分享
err收藏
学者 查看更多内容