Accelerating Code Search with Deep Hashing and Code Classification
Not on the map. Why?
Abstract (arXiv)
Code search is to search reusable code snippets from source code corpus based on natural languages queries. Deep learning-based methods of 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 an efficient code search without sacrificing too much accuracy. To evaluate the effectiveness of CoSHC, we apply our method to 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.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 15 of its 32 references that are in the map. First posted on arXiv 29 Mar 2022.
Builds on
15 of 32 references.
References · 15
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,304
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2017HashNet: Deep Learning to Hash by Continuationcited by 122
- 2020A Survey on Deep Hashing Methodscited by 47
- 2019When Deep Learning Met Code Searchcited by 46
- 2015Learning to Hash for Indexing Big Data - A Surveycited by 39
- 2019CoaCor: Code Annotation for Code Retrieval with Reinforcement Learningcited by 22
- 2020A Multi-Perspective Architecture for Semantic Code Searchcited by 20
- 2020Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intentcited by 16
3 more
- 2017Unsupervised Generative Adversarial Cross-modal Hashingcited by 15
- 2020CRaDLe: Deep Code Retrieval Based on Semantic Dependency Learningcited by 12
- 2017Deep Binary Reconstruction for Cross-modal Hashingcited by 6
Built on by
Citing papers per year: 2022: 2; 2023: 1; 2024: 2; 2025: 1; 2026: 4.
10 papers.
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 22
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2025SpecAgent: A Speculative Retrieval and Forecasting Agent for Code Completioncited by 3
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
- 2022DIGMN: Dynamic Intent Guided Meta Network for Differentiated User Engagement Forecasting in Online Professional Social Platformscited by 1
- 2024DEMO: A Statistical Perspective for Efficient Image-Text Matchingcited by 0
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignmentcited by 0
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents21 Jul 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2025SpecAgent: A Speculative Retrieval and Forecasting Agent for Code Completion20 Oct 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024DEMO: A Statistical Perspective for Efficient Image-Text Matching19 May 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2022DIGMN: Dynamic Intent Guided Meta Network for Differentiated User Engagement Forecasting in Online Professional Social Platforms22 Oct 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022