• Cite Icon44
  • https://doi.org/10.1145/3387904.3389278Copy DOI Icon

Adaptive Deep Code Search

  • Jul 13, 2020
  • Chunyang Ling +3 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Searching code in a large-scale codebase using natural language queries is a common practice during software development. Deep learning-based code search methods demonstrate superior performance if models are trained with large amount of text-code pairs. However, few deep code search models can be easily transferred from one codebase to another. It can be very costly to prepare training data for a new codebase and re-train an appropriate deep learning model. In this paper, we propose AdaCS, an adaptive deep code search method that can be trained once and transferred to new codebases. AdaCS decomposes the learning process into embedding domain-specific words and matching general syntactic patterns. Firstly, an unsupervised word embedding technique is used to construct a matching matrix to represent the lexical similarities. Then, a recurrent neural network is used to capture latent syntactic patterns from these matching matrices in a supervised way. As the supervised task learns general syntactic patterns that exist across domains, AdaCS is transferable to new codebases. Experimental results show that: when extended to new software projects never seen in the training data, AdaCS is more robust and significantly outperforms state-of-the-art deep code search methods.

Similar Papers
  • Book Chapter
  • Citations1

Comprehensive Deep Recurrent Artificial Neural Network (CDRANN): Evolutionary Model for Future Prediction

  • Jan 01, 2022
  • G Sundar +1
  • Research Article
  • Citations21

Tradeoff for water resources allocation based on updated probabilistic assessment of matching degree between water demand and water availability.

  • Nov 24, 2019
  • Science of The Total Environment
  • Shenlin Li +4
  • Research Article
  • Citations1

Fault Localization from the Semantic Code Search Perspective

  • Aug 26, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Yihao Qin +8
  • Research Article
  • Citations70

Interpretability of simple RNN and GRU deep learning models used to map land susceptibility to gully erosion

  • Sep 09, 2023
  • Science of The Total Environment
  • Hamid Gholami +4
  • Research Article
  • Citations12

RAPID: Zero-Shot Domain Adaptation for Code Search with Pre-Trained Models

  • Jun 03, 2024
  • ACM Transactions on Software Engineering and Methodology
  • Guodong Fan +5
  • Conference Article
  • Citations280

CodeHow: Effective Code Search Based on API Understanding and Extended Boolean Model (E)

  • Nov 01, 2015
  • Fei Lv +5
  • Research Article
  • Citations8

Evaluating deep learning architecture and data assimilation for improving water temperature forecasts at unmonitored locations

  • Jun 23, 2023
  • Frontiers in Water
  • Jacob A Zwart +13
  • Conference Article
  • Citations621

Deep code search

  • May 27, 2018
  • Xiaodong Gu +2
  • Research Article
  • Citations28

CodeMatcher: Searching Code Based on Sequential Semantics of Important Query Words

  • Sep 28, 2021
  • ACM Transactions on Software Engineering and Methodology
  • Chao Liu +5
  • Supplementary Content
  • Citations5

Automatic Assessment of Singing Voice Pronunciation: A Case Study with Jingju Music

  • Nov 23, 2018
  • Rong Gong
  • Research Article
  • Citations4

Enhanced routing using recurrent neural networks in software defined‐data center network

  • Dec 08, 2022
  • Concurrency and Computation: Practice and Experience
  • Tejas M Modi +1
  • PDF
  • Research Article
  • Citations11

Incorporating Code Structure and Quality in Deep Code Search

  • Feb 16, 2022
  • Applied Sciences
  • Hao Yu +3
  • Conference Article
  • Citations8

CSSAM: Code Search via Attention Matching of Code Semantics and Structures

  • Mar 01, 2023
  • Bo Cai +2
  • PDF
  • Research Article
  • Citations43

Prediction of Wastewater Treatment Plant Effluent Water Quality Using Recurrent Neural Network (RNN) Models

  • Sep 22, 2023
  • Water
  • Praewa Wongburi +1
  • PDF
  • Research Article
  • Citations6

Adaptive deep learning-based neighborhood search method for point cloud

  • Feb 08, 2022
  • Scientific Reports
  • Qian Xiang +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.