Abstract
Code datasets are of immense value for training neural-network-based code completion models, where companies or organizations have made substantial investments to establish and process these datasets. Unluckily, these datasets, either built for proprietary or public usage, face the high risk of unauthorized exploits, resulting from data leakages, license violations, etc. Even worse, the "black-box"nature of neural models sets a high barrier for externals to audit their training datasets, which further connives these unauthorized usages. Currently, watermarking methods have been proposed to prohibit inappropriate usage of image and natural language datasets. However, due to domain specificity, they are not directly applicable to code datasets, leaving the copyright protection of this emerging and important field of code data still exposed to threats. To fill this gap, we propose a method, named CodeMark, to embed user-defined imperceptible watermarks into code datasets to trace their usage in training neural code completion models. CodeMark is based on adaptive semantic-preserving transformations, which preserve the exact functionality of the code data and keep the changes covert against rule-breakers. We implement CodeMark in a toolkit and conduct an extensive evaluation of code completion models. CodeMark is validated to fulfill all desired properties of practical watermarks, including harmlessness to model accuracy, verifiability, robustness, and imperceptibility.
Original language | English |
---|---|
Title of host publication | ESEC/FSE 2023 - Proceedings of the 31st ACM Joint Meeting European Software Engineering Conference and Symposium on the Foundations of Software Engineering |
Editors | Satish Chandra, Kelly Blincoe, Paolo Tonella |
Place of Publication | New York NY USA |
Publisher | Association for Computing Machinery (ACM) |
Pages | 1561-1572 |
Number of pages | 12 |
ISBN (Electronic) | 9798400703270 |
DOIs | |
Publication status | Published - 30 Nov 2023 |
Event | Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering 2023 - San Francisco, United States of America Duration: 3 Dec 2023 → 9 Dec 2023 Conference number: 31st https://dl.acm.org/doi/proceedings/10.1145/3611643 (Proceedings) https://conf.researchr.org/home/fse-2023 (Website) |
Conference
Conference | Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering 2023 |
---|---|
Abbreviated title | ESEC/FSE 2023 |
Country/Territory | United States of America |
City | San Francisco |
Period | 3/12/23 → 9/12/23 |
Internet address |
|
Keywords
- Code dataset
- Neural code completion models
- Watermarking