mlsanityData to 7 Oct 2026

Deep Graph Matching and Searching for Semantic Code Retrieval

arXiv 2010.12908 ↗First posted 24 Oct 2020cs.AI cs.IR cs.SEcited by 20

Not on the map. Why?

Abstract (arXiv)

Code retrieval is to find the code snippet from a large corpus of source code repositories that highly matches the query of natural language description. Recent work mainly uses natural language processing techniques to process both query texts (i.e., human natural language) and code snippets (i.e., machine programming language), however neglecting the deep structured features of query texts and source codes, both of which contain rich semantic information. In this paper, we propose an end-to-end deep graph matching and searching (DGMS) model based on graph neural networks for the task of semantic code retrieval. To this end, we first represent both natural language query texts and programming language code snippets with the unified graph-structured data, and then use the proposed graph matching and searching model to retrieve the best matching code snippet. In particular, DGMS not only captures more structural information for individual query texts or code snippets but also learns the fine-grained similarity between them by cross-attention based semantic matching operations. We evaluate the proposed DGMS model on two public code retrieval datasets with two representative programming languages (i.e., Java and Python). Experiment results demonstrate that DGMS significantly outperforms state-of-the-art baseline models by a large margin on both datasets. Moreover, our extensive ablation studies systematically investigate and illustrate the impact of each part of DGMS.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 24 Oct 2020.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 3; 2022: 8; 2023: 3; 2024: 2; 2025: 4.

20 papers.

Sort:

By area:

  1. 2024Position: Graph Foundation Models are Already Herecited by 84
  2. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  3. 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
  4. 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
  5. 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Artcited by 18
  6. 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
  7. 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
  8. 2023ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerancecited by 11
  9. 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarkingcited by 4
  10. 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
  11. 2022Towards Accurate Subgraph Similarity Computation via Neural Graph Pruningcited by 3
  12. 2021Constructing Contrastive samples via Summarization for Text Classification with limited annotationscited by 2
8 more
  1. 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1
  2. 2022Training Free Graph Neural Networks for Graph Matchingcited by 0
  3. 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structurescited by 0
  4. 2022Code Compliance Assessment as a Learning Problemcited by 0
  5. 2023On the Effectiveness of Adversarial Samples against Ensemble Learning-based Windows PE Malware Detectorscited by 0
  6. 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generationcited by 0
  7. 2025Contextual Tokenization for Graph Inverted Indicescited by 0
  8. 2025Charting the Design Space of Neural Graph Representations for Subgraph Matchingcited by 0