Find Me if You Can: Deep Software Clone Detection by Exploiting the Contest between the Plagiarist and the Detector

Authors

  • Yan-Ya Zhang Nanjing University
  • Ming Li Nanjing University

DOI:

https://doi.org/10.1609/aaai.v33i01.33015813

Abstract

Code clone is common in software development, which usually leads to software defects or copyright infringement. Researchers have paid significant attention to code clone detection, and many methods have been proposed. However, the patterns for generating the code clones do not always remain the same. In order to fool the clone detection systems, the plagiarists, known as the clone creator, usually conduct a series of tricky modifications on the code fragments to make the clone difficult to detect. The existing clone detection approaches, which neglects the dynamics of the “contest” between the plagiarist and the detectors, is doomed to be not robust to adversarial revision of the code. In this paper, we propose a novel clone detection approach, namely ACD, to mimic the adversarial process between the plagiarist and the detector, which enables us to not only build strong a clone detector but also model the behavior of the plagiarists. Such a plagiarist model may in turn help to understand the vulnerability of the current software clone detection tools. Experiments show that the learned policy of plagiarist can help us build stronger clone detector, which outperforms the existing clone detection methods.

Downloads

Published

2019-07-17

How to Cite

Zhang, Y.-Y., & Li, M. (2019). Find Me if You Can: Deep Software Clone Detection by Exploiting the Contest between the Plagiarist and the Detector. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01), 5813-5820. https://doi.org/10.1609/aaai.v33i01.33015813

Issue

Section

AAAI Technical Track: Machine Learning