arrow
返回

CRaDLe: Deep code retrieval based on semantic Dependency Learning

delete2021-09-01
delete34
delete
OA
AI
W
Wenchao Gu
Z
Zongjie Li
C
Cuiyun Gao *
C
Chaozheng Wang
张
张宏玉 (Hongyu Zhang)
Z
Zenglin Xu
M
Michael R. Lyu
DOI:10.1016/j.neunet.2021.04.019delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Code retrieval is a common practice for programmers to reuse existing code snippets in the open source repositories. Given a user query (i.e., a natural language description), code retrieval aims at searching the most relevant ones from a set of code snippets. The main challenge of effective code retrieval lies in mitigating the semantic gap between natural language descriptions and code snippets. With the ever-increasing amount of available open-source code, recent studies resort to neural networks to learn the semantic matching relationships between the two sources. The statement-level dependency information, which highlights the dependency relations among the program statements during the execution, reflects the structural importance of one statement in the code, which is favorable for accurately capturing the code semantics but has never been explored for the code retrieval task. In this paper, we propose CRaDLe, a novel approach for Code Retrieval based on statement-level semantic Dependency Learning. Specifically, CRaDLe distills code representations through fusing both the dependency and semantic information at the statement level, and then learns a unified vector representation for each code and description pair for modeling the matching relationship. Comprehensive experiments and analysis on real-world datasets show that the proposed approach can accurately retrieve code snippets for a given query and significantly outperform the state-of-the-art approaches on the task. (C) 2021 Elsevier Ltd. All rights reserved.
Keyword:
Code retrieval
Semantic dependency
Dependency learning
Neural network
AI总结

AI总结

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

期刊

Neural Networks 封面图
Neural Networks
IF:
6.3
论文数:
8.2K
被引数:
3.0W

机构

H
harbin institute of technology
学者数:
8.0W
论文数: 6.6W
被引数: 66
U
University of Newcastle
学者数:
1.5W
论文数: 1.5W
被引数: 16
C
Chinese University of Hong Kong
学者数:
3.4W
论文数: 3.2W
被引数: 5.6W
学者 查看更多机构
引用论文

引用论文

Fast Haar Transforms for Graph Neural Networks
err2020-08-01
err59
errOAAI
errLi, Ming; Ma, Zheng; Wang, Yu Guang; Zhuang, Xiaosheng
err分享
err收藏
err分享
err收藏
On using machine learning to automatically classify software applications into domain categories
err2012-10-10
err62
errOAAI
errLinares-Vasquez, Mario; McMillan, Collin; Poshyvanyk, Denys; Grechanik, Mark
err分享
err收藏
没有更多内容