A Survey of the Full Process of Code Search Based on Deep Learning

IF 1.5 4区 计算机科学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Mengge Fang, Haize Hu, Feiyu Hu, Jianxun Liu
{"title":"A Survey of the Full Process of Code Search Based on Deep Learning","authors":"Mengge Fang,&nbsp;Haize Hu,&nbsp;Feiyu Hu,&nbsp;Jianxun Liu","doi":"10.1002/cpe.70277","DOIUrl":null,"url":null,"abstract":"<div>\n \n <p>As a pivotal technology for enhancing software development efficiency, research on code search based on deep learning has emerged as a current hotspot. This review systematically deconstructs the entire code search process into four core stages: dataset construction, code preprocessing, heterogeneous representation model construction, and query expansion, while conducting an in-depth analysis of the application status and challenges of deep learning technologies. In dataset construction, the Q and A pairs and C and D pairs relied on by deep learning models suffer from a lack of standardization. For example, CodeSearchNet exhibits insufficient cross-lingual versatility, and CoDesc has incomplete noise filtering. During the code preprocessing stage, bottlenecks such as AST granularity selection and sequence information redundancy restrict the efficiency of feature extraction. Although the introduction of transformer and graph neural networks has optimized structural representation, a unified evaluation mechanism is lacking. In the research of heterogeneous representation models, while LSTM, CNN, and pretrained models (such as CodeBERT) effectively narrow the semantic gap, their cross-domain search accuracy is insufficient. In terms of query expansion, deep learning-based keyword expansion and intent completion methods struggle to capture users' real needs due to low semantic alignment accuracy. This review proposes, for the first time, a standardized dataset construction framework integrating multimodal data, a syntax-semantic dual-layer preprocessing evaluation mechanism, a cross-domain transfer representation model, and a large language model-driven intent dynamic expansion scheme. These contributions lay a theoretical foundation for the systematic development of code search technologies and provide cross-task methodological references for related fields such as code clone detection.</p>\n </div>","PeriodicalId":55214,"journal":{"name":"Concurrency and Computation-Practice & Experience","volume":"37 23-24","pages":""},"PeriodicalIF":1.5000,"publicationDate":"2025-09-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Concurrency and Computation-Practice & Experience","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/cpe.70277","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

As a pivotal technology for enhancing software development efficiency, research on code search based on deep learning has emerged as a current hotspot. This review systematically deconstructs the entire code search process into four core stages: dataset construction, code preprocessing, heterogeneous representation model construction, and query expansion, while conducting an in-depth analysis of the application status and challenges of deep learning technologies. In dataset construction, the Q and A pairs and C and D pairs relied on by deep learning models suffer from a lack of standardization. For example, CodeSearchNet exhibits insufficient cross-lingual versatility, and CoDesc has incomplete noise filtering. During the code preprocessing stage, bottlenecks such as AST granularity selection and sequence information redundancy restrict the efficiency of feature extraction. Although the introduction of transformer and graph neural networks has optimized structural representation, a unified evaluation mechanism is lacking. In the research of heterogeneous representation models, while LSTM, CNN, and pretrained models (such as CodeBERT) effectively narrow the semantic gap, their cross-domain search accuracy is insufficient. In terms of query expansion, deep learning-based keyword expansion and intent completion methods struggle to capture users' real needs due to low semantic alignment accuracy. This review proposes, for the first time, a standardized dataset construction framework integrating multimodal data, a syntax-semantic dual-layer preprocessing evaluation mechanism, a cross-domain transfer representation model, and a large language model-driven intent dynamic expansion scheme. These contributions lay a theoretical foundation for the systematic development of code search technologies and provide cross-task methodological references for related fields such as code clone detection.

基于深度学习的代码搜索全过程综述
作为提高软件开发效率的关键技术,基于深度学习的代码搜索已经成为当前的研究热点。本文将整个代码搜索过程系统地解构为数据集构建、代码预处理、异构表示模型构建和查询扩展四个核心阶段,同时深入分析了深度学习技术的应用现状和面临的挑战。在数据集构建中,深度学习模型所依赖的Q和A对、C和D对缺乏标准化。例如,CodeSearchNet显示跨语言的通用性不足,CoDesc具有不完整的噪声过滤。在代码预处理阶段,AST粒度选择和序列信息冗余等瓶颈制约了特征提取的效率。虽然变压器和图神经网络的引入优化了结构表征,但缺乏统一的评价机制。在异构表示模型的研究中,虽然LSTM、CNN和预训练模型(如CodeBERT)有效地缩小了语义差距,但它们的跨域搜索精度不足。在查询扩展方面,基于深度学习的关键词扩展和意图补全方法由于语义对齐精度较低,难以捕捉用户的真实需求。本文首次提出了集成多模态数据的标准化数据集构建框架、语法语义双层预处理评价机制、跨域迁移表示模型和大型语言模型驱动的意图动态扩展方案。这些贡献为代码搜索技术的系统发展奠定了理论基础,并为代码克隆检测等相关领域提供了跨任务方法参考。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Concurrency and Computation-Practice & Experience
Concurrency and Computation-Practice & Experience 工程技术-计算机:理论方法
CiteScore
5.00
自引率
10.00%
发文量
664
审稿时长
9.6 months
期刊介绍: Concurrency and Computation: Practice and Experience (CCPE) publishes high-quality, original research papers, and authoritative research review papers, in the overlapping fields of: Parallel and distributed computing; High-performance computing; Computational and data science; Artificial intelligence and machine learning; Big data applications, algorithms, and systems; Network science; Ontologies and semantics; Security and privacy; Cloud/edge/fog computing; Green computing; and Quantum computing.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信