arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05959cs.SEcs.PL
收藏

基于深度学习的代码搜索综述

Survey of Code Search Based on Deep Learning

Yutao Xie, Jiayi Lin, Hande Dong, Lei Zhang, Zhonghai Wu

AI总结:

本综述聚焦基于深度学习的代码搜索技术,梳理现有框架,提出以查询语义建模、代码语义建模、匹配建模三步划分的新分类体系,并给出未来研究方向。

摘要:

代码编写具有重复性和可预测性,这启发我们开发各类代码智能技术。本综述聚焦代码搜索,即通过有效捕捉查询与代码之间的语义相似性,检索出与给定查询匹配的代码。深度学习能够提取复杂的语义信息,已在该领域取得巨大成功。近年来,图神经网络、预训练模型等各类深度学习方法被应用于代码搜索,并取得了显著进展,深度学习如今已成为代码搜索的主流范式。本综述对基于深度学习的代码搜索进行了全面概述:我们回顾了现有的将查询/代码映射为向量并衡量其相似度的基于深度学习的代码搜索框架;此外,我们提出了一种新的分类体系,以“查询语义建模-代码语义建模-涉及深度学习模型训练的匹配建模”三步流程阐述当前最先进的基于深度学习的代码搜索研究;最后,我们为这一前景广阔的领域提出了未来潜在的研究方向。

英文摘要:

Code writing is repetitive and predictable, inspiring us to develop various code intelligence techniques. This survey focuses on code search, that is, to retrieve code that matches a given query by effectively capturing the semantic similarity between the query and code. Deep learning, being able to extract complex semantics information, has achieved great success in this field. Recently, various deep learning methods, such as graph neural networks and pretraining models, have been applied to code search with significant progress. Deep learning is now the leading paradigm for code search. In this survey, we provide a comprehensive overview of deep learning-based code search. We review the existing deep learning-based code search framework which maps query/code to vectors and measures their similarity. Furthermore, we propose a new taxonomy to illustrate the state-of-the-art deep learning-based code search in a three-steps process: query semantics modeling, code semantics modeling, and matching modeling which involves the deep learning model training. Finally, we suggest potential avenues for future research in this promising field.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑