Accelerating Code Search with Deep Hashing and Code Classification
Wenchao Gu, Yanlin Wang, Lun Du, Hongyu Zhang, Shi Han, Dongmei Zhang, Michael R. Lyu
摘要
Code search is to search reusable code snippets from source code corpus based on natural languages queries. Deep learning-based methods on code search have shown promising results. However, previous methods focus on retrieval accuracy, but lacked attention to the efficiency of the retrieval process. We propose a novel method CoSHC to accelerate code search with deep hashing and code classification, aiming to perform efficient code search without sacrificing too much accuracy. To evaluate the effectiveness of CoSHC, we apply our method on five code search models. Extensive experimental results indicate that compared with previous code search baselines, CoSHC can save more than 90% of retrieval time meanwhile preserving at least 99% of retrieval accuracy.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CoCoSoDa: Effective Contrastive Learning for Code Search 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion 引用了 CoCoSoDa: Effective Contrastive Learning for Code Search
- AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion 引用了 SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep Hashing
- AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion 引用了 When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Prevention
- SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep Hashing 引用了 CoCoSoDa: Effective Contrastive Learning for Code Search
- SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep Hashing 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep Hashing 引用了 Deep Joint-Semantics Reconstructing Hashing for Large-Scale Unsupervised Cross-Modal Retrieval
- DrainCode: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning 引用了 CoCoSoDa: Effective Contrastive Learning for Code Search
- DrainCode: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning 引用了 SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep Hashing
- DrainCode: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- DrainCode: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning 引用了 When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Prevention
引用它的顶会 Paper7
- CoCoSoDa: Effective Contrastive Learning for Code SearchEnsheng Shi, Yanlin Wang, Wenchao Gu, Lun Du 等ICSE 2023 · 45 次引用
- When to Stop? Towards Efficient Code Generation in LLMs with Excess Token PreventionLianghong Guo, Yanlin Wang, Ensheng Shi, Wanjun Zhong 等ISSTA 2024 · 16 次引用
- SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep HashingWenchao Gu, Ensheng Shi, Yanlin Wang, Lun Du 等ICSE 2025 · 3 次引用
- DrainCode: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context PoisoningYanli Wang, Jiadong Wu, Tianyue Jiang, Mingwei Liu 等ASE 2025 · 3 次引用
- AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code CompletionTianyue Jiang, Yanlin Wang, Yanli Wang, Daya Guo 等ASE 2025 · 2 次引用
它引用的 Paper2
相关 Paper
- Asymmetric Deep Hashing for Efficient Hash Code CompressionShu Zhao, Dayan Wu, Wanqian Zhang, Yu Zhou 等ACM MM 2020 · 18 次引用
- Efficient Text-to-Code Retrieval with Cascaded Fast and Slow Transformer ModelsAkhilesh Deepak Gotmare, Junnan Li, Shafiq Joty, Steven C. H. HoiFSE 2023 · 5 次引用
- Accelerate Learning of Deep Hashing With Gradient AttentionLong-Kai Huang, Jianda Chen, Sinno Jialin PanICCV 2019 · 22 次引用
- You see what I want you to see: poisoning vulnerabilities in neural code searchYao Wan, Shijie Zhang, Hongyu Zhang, Yulei Sui 等FSE 2022 · 57 次引用
- Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving TransformationsNghi D. Q. Bui, Yijun Yu, Lingxiao JiangSIGIR 2021 · 98 次引用
