Deep Graph Matching and Searching for Semantic Code Retrieval
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
Citing papers per year: 2021: 3; 2022: 8; 2023: 3; 2024: 2; 2025: 4.
20 papers.
Sort:
By area:
- 2024Position: Graph Foundation Models are Already Herecited by 84
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
- 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Artcited by 18
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
- 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
- 2023ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerancecited by 11
- 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarkingcited by 4
- 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
- 2022Towards Accurate Subgraph Similarity Computation via Neural Graph Pruningcited by 3
- 2021Constructing Contrastive samples via Summarization for Text Classification with limited annotationscited by 2
8 more
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1
- 2022Training Free Graph Neural Networks for Graph Matchingcited by 0
- 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structurescited by 0
- 2022Code Compliance Assessment as a Learning Problemcited by 0
- 2023On the Effectiveness of Adversarial Samples against Ensemble Learning-based Windows PE Malware Detectorscited by 0
- 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generationcited by 0
- 2025Contextual Tokenization for Graph Inverted Indicescited by 0
- 2025Charting the Design Space of Neural Graph Representations for Subgraph Matchingcited by 0
- 2025Charting the Design Space of Neural Graph Representations for Subgraph Matching27 Oct 2025
- 2025Contextual Tokenization for Graph Inverted Indices26 Oct 2025
- 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarking27 Aug 2025
- 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generation8 Apr 2025
- 2024Analyzing the Performance of Large Language Models on Code Summarization10 Apr 2024
- 2024Position: Graph Foundation Models are Already Here3 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance13 Dec 2023
- 2023On the Effectiveness of Adversarial Samples against Ensemble Learning-based Windows PE Malware Detectors25 Sep 2023
- 2022A Survey on Pretrained Language Models for Neural Code Intelligence20 Dec 2022
- 2022Towards Accurate Subgraph Similarity Computation via Neural Graph Pruning19 Oct 2022
- 2022Code Compliance Assessment as a Learning Problem10 Sep 2022
8 more
- 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structures8 Aug 2022
- 2022NS3: Neuro-Symbolic Semantic Code Search21 May 2022
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Training4 May 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022Training Free Graph Neural Networks for Graph Matching14 Jan 2022
- 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Art23 Dec 2021
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Search10 Jul 2021
- 2021Constructing Contrastive samples via Summarization for Text Classification with limited annotations11 Apr 2021
- 2024Position: Graph Foundation Models are Already Herecited by 84
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
- 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Artcited by 18
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
- 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
- 2023ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerancecited by 11
- 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
- 2022Towards Accurate Subgraph Similarity Computation via Neural Graph Pruningcited by 3
- 2021Constructing Contrastive samples via Summarization for Text Classification with limited annotationscited by 2
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1
12 most cited of 19 All 19 (JSON)
- 2025Charting the Design Space of Neural Graph Representations for Subgraph Matching27 Oct 2025
- 2025Contextual Tokenization for Graph Inverted Indices26 Oct 2025
- 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generation8 Apr 2025
- 2024Analyzing the Performance of Large Language Models on Code Summarization10 Apr 2024
- 2024Position: Graph Foundation Models are Already Here3 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance13 Dec 2023
- 2023On the Effectiveness of Adversarial Samples against Ensemble Learning-based Windows PE Malware Detectors25 Sep 2023
- 2022A Survey on Pretrained Language Models for Neural Code Intelligence20 Dec 2022
- 2022Towards Accurate Subgraph Similarity Computation via Neural Graph Pruning19 Oct 2022
- 2022Code Compliance Assessment as a Learning Problem10 Sep 2022
- 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structures8 Aug 2022
12 newest of 19 All 19 (JSON)