mlsanityData to 7 Oct 2026

Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Tree

arXiv 2002.08653 ↗First posted 20 Feb 2020cs.SE cs.AIcited by 68

Not on the map. Why?

Abstract (arXiv)

Code clones are semantically similar code fragments pairs that are syntactically similar or different. Detection of code clones can help to reduce the cost of software maintenance and prevent bugs. Numerous approaches of detecting code clones have been proposed previously, but most of them focus on detecting syntactic clones and do not work well on semantic clones with different syntactic features. To detect semantic clones, researchers have tried to adopt deep learning for code clone detection to automatically learn latent semantic features from data. Especially, to leverage grammar information, several approaches used abstract syntax trees (AST) as input and achieved significant progress on code clone benchmarks in various programming languages. However, these AST-based approaches still can not fully leverage the structural information of code fragments, especially semantic information such as control flow and data flow. To leverage control and data flow information, in this paper, we build a graph representation of programs called flow-augmented abstract syntax tree (FA-AST). We construct FA-AST by augmenting original ASTs with explicit control and data flow edges. Then we apply two different types of graph neural networks (GNN) on FA-AST to measure the similarity of code pairs. As far as we have concerned, we are the first to apply graph neural networks on the domain of code clone detection. We apply our FA-AST and graph neural networks on two Java datasets: Google Code Jam and BigCloneBench. Our approach outperforms the state-of-the-art approaches on both Google Code Jam and BigCloneBench tasks.

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

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 13; 2022: 17; 2023: 13; 2024: 10; 2025: 13; 2026: 2.

68 papers.

Sort:

By area:

  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  3. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  4. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  5. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  6. 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
  7. 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 27
  8. 2021How could Neural Networks understand Programs?cited by 26
  9. 2021On Multi-Modal Learning of Editing Source Codecited by 25
  10. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  11. 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
  12. 2024PromSec: Prompt Optimization for Secure Generation of Functional Source Code with Large Language Models (LLMs)cited by 17
38 more
  1. 2021GNN4IP: Graph Neural Network for Hardware Intellectual Property Piracy Detectioncited by 13
  2. 2023Graph Convolutions Enrich the Self-Attention in Transformers!cited by 11
  3. 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
  4. 2022Poison Attack and Defense on Deep Source Code Processing Modelscited by 8
  5. 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Codecited by 8
  6. 2022Learning Program Semantics with Code Representations: An Empirical Studycited by 6
  7. 2022Learning Program Representations with a Tree-Structured Transformercited by 6
  8. 2022CAT-probing: A Metric-based Approach to Interpret How Pre-trained Models for Programming Language Attend Code Structurecited by 6
  9. 2022Parameter-Efficient Finetuning of Transformers for Source Codecited by 6
  10. 2022DexBERT: Effective, Task-Agnostic and Fine-grained Representation Learning of Android Bytecodecited by 6
  11. 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Taskscited by 6
  12. 2021Embedding API Dependency Graph for Neural Code Generationcited by 5
  13. 2022A Neural Network Architecture for Program Understanding Inspired by Human Behaviorscited by 5
  14. 2022TEP-GNN: Accurate Execution Time Prediction of Functional Tests using Graph Neural Networkscited by 5
  15. 2023Revisiting and Improving Retrieval-Augmented Deep Assertion Generationcited by 5
  16. 2022Generalizability of Code Clone Detection on CodeBERTcited by 4
  17. 2023CCT-Code: Cross-Consistency Training for Multilingual Clone Detection and Code Searchcited by 4
  18. 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
  19. 2025XOXO: Stealthy Cross-Origin Context Poisoning Attacks against AI Coding Assistantscited by 4
  20. 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarkingcited by 4
  21. 2021deGraphCS: Embedding Variable-based Flow Graph for Neural Code Searchcited by 3
  22. 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarizationcited by 3
  23. 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
  24. 2022Evaluation of Contrastive Learning with Various Code Representations for Code Clone Detectioncited by 3
  25. 2023A Black-Box Attack on Code Models via Representation Nearest Neighbor Searchcited by 3
  26. 2023ZC3: Zero-Shot Cross-Language Code Clone Detectioncited by 3
  27. 2023PACE: A Program Analysis Framework for Continuous Performance Predictioncited by 3
  28. 2024The Struggles of LLMs in Cross-lingual Code Clone Detectioncited by 3
  29. 2025SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executorscited by 3
  30. 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
  31. 2022On the Effectiveness of Hybrid Pooling in Mixup-Based Graph Learning for Language Processingcited by 2
  32. 2022CLAWSAT: Towards Both Robust and Accurate Code Modelscited by 2
  33. 2023AdaCCD: Adaptive Semantic Contrasts Discovery Based Cross Lingual Adaptation for Code Clone Detectioncited by 2
  34. 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understandingcited by 2
  35. 2025An Empirical Study of Knowledge Distillation for Code Understanding Taskscited by 2
  36. 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Treescited by 1
  37. 2022K-ASTRO: Structure-Aware Adaptation of LLMs for Code Vulnerability Detectioncited by 1
  38. 2023Implant Global and Local Hierarchy Information to Sequence based Code Representation Modelscited by 1

50 most cited of 68 All 68 (JSON)