Back to Search Start Over

Code Membership Inference for Detecting Unauthorized Data Use in Code Pre-trained Language Models

Authors :
Zhang, Sheng
Li, Hui
Publication Year :
2023

Abstract

Code pre-trained language models (CPLMs) have received great attention since they can benefit various tasks that facilitate software development and maintenance. However, CPLMs are trained on massive open-source code, raising concerns about potential data infringement. This paper launches the first study of detecting unauthorized code use in CPLMs, i.e., Code Membership Inference (CMI) task. We design a framework Buzzer for different settings of CMI. Buzzer deploys several inference techniques, including distilling the target CPLM, ensemble inference, and unimodal and bimodal calibration. Extensive experiments show that CMI can be achieved with high accuracy using Buzzer. Hence, Buzzer can serve as a CMI tool and help protect intellectual property rights.

Details

Database :
arXiv
Publication Type :
Report
Accession number :
edsarx.2312.07200
Document Type :
Working Paper