Accelerating Code Search with Deep Hashing and Code Classification
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.
Code (0)
등록된 구현이 없습니다.
Tasks
ClassificationCode ClassificationCode SearchDeep HashingRetrievalSimilar Papers 제목 키워드 기반
Deep Supervised Discrete Hashing
With the rapid growth of image and video data on the web, hashing has been extensively studied for image or video search in recent years. Benefit from recent advances in deep learning, deep hashing methods have achieved …
Deep HashingGeneral ClassificationImage RetrievalRetrievalSupervised Incremental Hashing
We propose an incremental strategy for learning hash functions with kernels for large-scale image search. Our method is based on a two-stage classification framework that treats binary codes as intermediate variables bet…
General ClassificationImage RetrievalScalable Gaussian Processes for Supervised Hashing
We propose a flexible procedure for large-scale image search by hash functions with kernels. Our method treats binary codes and pairwise semantic similarity as latent and observed variables, respectively, in a probabilis…
Binary ClassificationGaussian ProcessesGeneral ClassificationImage Retrieval+2Deep Triplet Hashing Network for Case-based Medical Image Retrieval
Deep hashing methods have been shown to be the most efficient approximate nearest neighbor search techniques for large-scale image retrieval. However, existing deep hashing methods have a poor small-sample ranking perfor…
ClassificationDeep HashingGeneral ClassificationImage Retrieval+3Unsupervised Multi-Index Semantic Hashing
Semantic hashing represents documents as compact binary vectors (hash codes) and allows both efficient and effective similarity search in large-scale information retrieval. The state of the art has primarily focused on l…
Information RetrievalRetrieval