mlsanityData to 7 Oct 2026

GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Search

arXiv 2111.02671 ↗First posted 4 Nov 2021cs.SE cs.AIcited by 15

Not on the map. Why?

Abstract (arXiv)

Code search aims to retrieve accurate code snippets based on a natural language query to improve software productivity and quality. With the massive amount of available programs such as (on GitHub or Stack Overflow), identifying and localizing the precise code is critical for the software developers. In addition, Deep learning has recently been widely applied to different code-related scenarios, e.g., vulnerability detection, source code summarization. However, automated deep code search is still challenging since it requires a high-level semantic mapping between code and natural language queries. Most existing deep learning-based approaches for code search rely on the sequential text i.e., feeding the program and the query as a flat sequence of tokens to learn the program semantics while the structural information is not fully considered. Furthermore, the widely adopted Graph Neural Networks (GNNs) have proved their effectiveness in learning program semantics, however, they also suffer the problem of capturing the global dependencies in the constructed graph, which limits the model learning capacity. To address these challenges, in this paper, we design a novel neural network framework, named GraphSearchNet, to enable an effective and accurate source code search by jointly learning the rich semantics of both source code and natural language queries. Specifically, we propose to construct graphs for the source code and queries with bidirectional GGNN (BiGGNN) to capture the local structural information of the source code and queries. Furthermore, we enhance BiGGNN by utilizing the multi-head attention module to supplement the global dependencies that BiGGNN missed to improve the model learning capacity. The extensive experiments on Java and Python programming language from the public benchmark CodeSearchNet confirm that GraphSearchNet outperforms current state-of-the-art works.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 50 of its 93 references that are in the map. First posted on arXiv 4 Nov 2021.

Builds on

50 of 93 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  5. 2017Inductive Representation Learning on Large Graphscited by 6,284
  6. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  7. 2018How Powerful are Graph Neural Networks?cited by 4,355
  8. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  9. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,099
  12. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
38 more
  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2015Gated Graph Sequence Neural Networkscited by 792
  3. 2015Convolutional Networks on Graphs for Learning Molecular Fingerprintscited by 751
  4. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  5. 2019Graph Neural Networks for Social Recommendationcited by 711
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  7. 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
  8. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  9. 2019Text Summarization with Pretrained Encoderscited by 553
  10. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  11. 2018code2vec: Learning Distributed Representations of Codecited by 249
  12. 2017Learning to Represent Programs with Graphscited by 219
  13. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  14. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  15. 2019Reinforcement Learning Based Graph-to-Sequence Model for Natural Question Generationcited by 57
  16. 2018Question Answering by Reasoning Across Documents with Graph Convolutional Networkscited by 56
  17. 2018Structured Neural Summarizationcited by 53
  18. 2018Learning Conditioned Graph Structures for Interpretable Visual Question Answeringcited by 45
  19. 2019When Deep Learning Met Code Searchcited by 45
  20. 2016Deep API Learningcited by 41
  21. 2019GraphFlow: Exploiting Conversation Flow with Graph Neural Networks for Conversational Machine Comprehensioncited by 41
  22. 2019Multi-Modal Attention Network Learning for Semantic Source Code Retrievalcited by 40
  23. 2018Graph2Seq: Graph to Sequence Learning with Attention-based Neural Networkscited by 36
  24. 2020Typilus: Neural Type Hintscited by 29
  25. 2019ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Rankingcited by 25
  26. 2018Exploring Graph-structured Passage Representation for Multi-hop Reading Comprehension with Graph Neural Networkscited by 23
  27. 2019CoaCor: Code Annotation for Code Retrieval with Reinforcement Learningcited by 22
  28. 2020Opportunities and Challenges in Code Search Toolscited by 22
  29. 2020A Multi-Perspective Architecture for Semantic Code Searchcited by 20
  30. 2020Multi-hop Question Generation with Graph Convolutional Networkcited by 20
  31. 2021SPI: Automated Identification of Security Patches via Commitscited by 19
  32. 2018Learning beyond datasets: Knowledge Graph Augmented Neural Networks for Natural language Processingcited by 15
  33. 2019Neural Code Search Evaluation Datasetcited by 13
  34. 2018Open Vocabulary Learning on Source Code with a Graph-Structured Cachecited by 10
  35. 2020OCoR: An Overlapping-Aware Code Retrievercited by 9
  36. 2020CodeMatcher: Searching Code Based on Sequential Semantics of Important Query Wordscited by 5
  37. 2021BERT2Code: Can Pretrained Language Models be Leveraged for Code Search?cited by 2
  38. 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 5; 2024: 4; 2025: 2; 2026: 1.

15 papers.

Sort:

By area: