Modeling Functional Similarity in Source Code with Graph-Based Siamese Networks
Not on the map. Why?
Abstract (arXiv)
Code clones are duplicate code fragments that share (nearly) similar syntax or semantics. Code clone detection plays an important role in software maintenance, code refactoring, and reuse. A substantial amount of research has been conducted in the past to detect clones. A majority of these approaches use lexical and syntactic information to detect clones. However, only a few of them target semantic clones. Recently, motivated by the success of deep learning models in other fields, including natural language processing and computer vision, researchers have attempted to adopt deep learning techniques to detect code clones. These approaches use lexical information (tokens) and(or) syntactic structures like abstract syntax trees (ASTs) to detect code clones. However, they do not make sufficient use of the available structural and semantic information hence, limiting their capabilities. This paper addresses the problem of semantic code clone detection using program dependency graphs and geometric neural networks, leveraging the structured syntactic and semantic information. We have developed a prototype tool HOLMES, based on our novel approach, and empirically evaluated it on popular code clone benchmarks. Our results show that HOLMES performs considerably better than the other state-of-the-art tool, TBCCD. We also evaluated HOLMES on unseen projects and performed cross dataset experiments to assess the generalizability of HOLMES. Our results affirm that HOLMES outperforms TBCCD since most of the pairs that HOLMES detected were either undetected or suboptimally reported by TBCCD.
Key facts. Cited by 10 papers in the map (data through 13 Oct 2026). First posted on arXiv 23 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 5; 2024: 3; 2025: 1.
10 papers.
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
- 2022NeuDep: Neural Binary Memory Dependence Analysiscited by 3
- 2024Mobile Network Configuration Recommendation using Deep Generative Graph Neural Networkcited by 3
- 2023Source Code is a Graph, Not a Sequence: A Cross-Lingual Perspective on Code Clone Detectioncited by 0
- 2024CONCORD: Towards a DSL for Configurable Graph Code Representationcited by 0
- 2024Analysing the Behaviour of Tree-Based Neural Networks in Regression Taskscited by 0
- 2025MAGNET: A Multi-Graph Attentional Network for Code Clone Detectioncited by 0
- 2025MAGNET: A Multi-Graph Attentional Network for Code Clone Detection28 Oct 2025
- 2024Analysing the Behaviour of Tree-Based Neural Networks in Regression Tasks17 Jun 2024
- 2024Mobile Network Configuration Recommendation using Deep Generative Graph Neural Network7 Jun 2024
- 2024CONCORD: Towards a DSL for Configurable Graph Code Representation31 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Source Code is a Graph, Not a Sequence: A Cross-Lingual Perspective on Code Clone Detection27 Dec 2023
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformation10 Nov 2023
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmaps8 Sep 2023
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challenges28 Jun 2023
- 2022NeuDep: Neural Binary Memory Dependence Analysis4 Oct 2022