Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
110 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

ASTRO: An AST-Assisted Approach for Generalizable Neural Clone Detection (2208.08067v1)

Published 17 Aug 2022 in cs.SE and cs.LG

Abstract: Neural clone detection has attracted the attention of software engineering researchers and practitioners. However, most neural clone detection methods do not generalize beyond the scope of clones that appear in the training dataset. This results in poor model performance, especially in terms of model recall. In this paper, we present an Abstract Syntax Tree (AST) assisted approach for generalizable neural clone detection, or ASTRO, a framework for finding clones in codebases reflecting industry practices. We present three main components: (1) an AST-inspired representation for source code that leverages program structure and semantics, (2) a global graph representation that captures the context of an AST among a corpus of programs, and (3) a graph embedding for programs that, in combination with extant large-scale LLMs, improves state-of-the-art code clone detection. Our experimental results show that ASTRO improves state-of-the-art neural clone detection approaches in both recall and F-1 scores.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Yifan Zhang (245 papers)
  2. Junwen Yang (11 papers)
  3. Haoyu Dong (55 papers)
  4. Qingchen Wang (5 papers)
  5. Huajie Shao (29 papers)
  6. Kevin Leach (29 papers)
  7. Yu Huang (176 papers)
Citations (3)

Summary

We haven't generated a summary for this paper yet.