NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Detecting Similar Programs via The Weisfeiler-Leman Graph Kernel

Wenchao Li, Hossein Saidi, Huascar Sanchez, Martin Schäf, Pascal SchweitzerICSR 2016

Abstract

With the increasing availability of source code on the Internet, many new approaches to retrieve, repair, and reuse code have emerged that rely on the ability to efficiently compute the similarity of two pieces of code. The meaning of similarity, however, heavily depends on the application domain. For predicting API calls, for example, programs can be considered similar if they call a specific set of functions in a similar way, while for automated bug fixing, it is important that similar programs share a similar data-flow. In this paper, we propose an algorithm to compute program similarity based on the Weisfeiler-Leman graph kernel. Our algorithm is able to operate on different graph-based representations of programs and thus can be applied in different domains. We show the usefulness of our approach in two experiments using data-flow similarity and API-call similarity.
BibTeX
@inproceedings{li2016detecting,
  author = {Wenchao Li and Hossein Saidi and Huascar Sanchez and Martin Schäf and Pascal Schweitzer},
  title = {{Detecting Similar Programs via The Weisfeiler-Leman Graph Kernel}},
  booktitle = {ICSR},
  year = {2016},
  url = {https://openreview.net/forum?id=IkDLP9bNBRC},
}

Loading related content...

Figure