Deep Graph Matching and Searching for Semantic Code Retrieval
Deep Graph Matching and Searching for Semantic Code Retrieval
复制标题
语义代码检索的深度图匹配和搜索
DOI:
10.1145/3447571
复制
发表时间:
2020-10
期刊:
影响因子:
--
通讯作者:
Shouling Ji
中科院分区:
文献类型:
--
作者:
Xiang Ling;Lingfei Wu;Saizhuo Wang;Gaoning Pan;Tengfei Ma;Fangli Xu;Alex X. Liu;Chunming Wu;Shouling Ji
Code retrieval is to find the code snippet from a large corpus of source code repositories that highly matches the query of natural language description. Recent work mainly uses natural language processing techniques to process both query texts (i.e., human natural language) and code snippets (i.e., machine programming language), however, neglecting the deep structured features of query texts and source codes, both of which contain rich semantic information. In this article, we propose an end-to-end deep graph matching and searching (DGMS) model based on graph neural networks for the task of semantic code retrieval. To this end, we first represent both natural language query texts and programming language code snippets with the unified graph-structured data, and then use the proposed graph matching and searching model to retrieve the best matching code snippet. In particular, DGMS not only captures more structural information for individual query texts or code snippets, but also learns the fine-grained similarity between them by cross-attention based semantic matching operations. We evaluate the proposed DGMS model on two public code retrieval datasets with two representative programming languages (i.e., Java and Python). Experiment results demonstrate that DGMS significantly outperforms state-of-the-art baseline models by a large margin on both datasets. Moreover, our extensive ablation studies systematically investigate and illustrate the impact of each part of DGMS.
登录
查看更多内容
DOI:
10.1145/3211346.3211353
发表时间:
2018-06
期刊:
Proceedings of the 2nd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages
影响因子:
--
作者:
Saksham Sachdev;Hongyu Li;Sifei Luan;Seohyun Kim;Koushik Sen;S. Chandra
通讯作者:
Saksham Sachdev;Hongyu Li;Sifei Luan;Seohyun Kim;Koushik Sen;S. Chandra
DOI:
--
发表时间:
2018-08
期刊:
ArXiv
影响因子:
--
作者:
Uri Alon;Shaked Brody;Omer Levy;Eran Yahav
通讯作者:
Uri Alon;Shaked Brody;Omer Levy;Eran Yahav
DOI:
10.18653/v1/p16-2
发表时间:
2016
期刊:
--
影响因子:
--
作者:
K. Erk;Noah A. Smith
通讯作者:
K. Erk;Noah A. Smith
DOI:
--
发表时间:
2019-09
期刊:
ArXiv
影响因子:
--
作者:
Hamel Husain;Hongqiu Wu;Tiferet Gazit;Miltiadis Allamanis;Marc Brockschmidt
通讯作者:
Hamel Husain;Hongqiu Wu;Tiferet Gazit;Miltiadis Allamanis;Marc Brockschmidt
DOI:
10.1109/ase.2011.6100115
发表时间:
2011-11
期刊:
2011 26th IEEE/ACM International Conference on Automated Software Engineering (ASE 2011)
影响因子:
--
作者:
Emily Hill;L. Pollock;K. Vijay-Shanker
通讯作者:
Emily Hill;L. Pollock;K. Vijay-Shanker