Protecting Intellectual Property of Large Language Model-Based Code Generation APIs via Watermarks

计算机科学 安全性令牌 模仿 语言模型 编码(集合论) 知识产权 财产(哲学) 程序设计语言 计算机安全 人工智能 操作系统 心理学 社会心理学 认识论 哲学 集合(抽象数据类型)
作者
Zongjie Li,Chaozheng Wang,Shuai Wang,Cuiyun Gao
标识
DOI:10.1145/3576915.3623120
摘要

The rise of large language model-based code generation (LLCG) has enabled various commercial services and APIs. Training LLCG models is often expensive and time-consuming, and the training data are often large-scale and even inaccessible to the public. As a result, the risk of intellectual property (IP) theft over the LLCG models (e.g., via imitation attacks) has been a serious concern. In this paper, we propose the first watermark (WM) technique to protect LLCG APIs from remote imitation attacks. Our proposed technique is based on replacing tokens in an LLCG output with their "synonyms" available in the programming language. A WM is thus defined as the stealthily tweaked distribution among token synonyms in LLCG outputs. We design six WM schemes (instantiated into over 30 WM passes) which rely on conceptually distinct token synonyms available in programming languages. Moreover, to check the IP of a suspicious model (decide if it is stolen from our protected LLCG API), we propose a statistical tests-based procedure that can directly check a remote, suspicious LLCG API.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
CodeCraft应助显隐采纳,获得10
1秒前
kiwi完成签到 ,获得积分10
2秒前
3秒前
3秒前
verdure应助冷傲山彤采纳,获得10
3秒前
小楠啥也不会完成签到 ,获得积分10
4秒前
前方应助唐一峰采纳,获得10
5秒前
科研通AI6.1应助Afterlife34采纳,获得10
5秒前
ibigbird发布了新的文献求助10
5秒前
5秒前
6秒前
迷路凉面完成签到,获得积分10
7秒前
希音发布了新的文献求助10
8秒前
chai发布了新的文献求助10
8秒前
ai zs发布了新的文献求助10
10秒前
科目三应助idiot采纳,获得10
10秒前
小沐完成签到,获得积分10
11秒前
ssss完成签到,获得积分10
12秒前
13秒前
13秒前
张宋完成签到 ,获得积分10
13秒前
小小汤同学关注了科研通微信公众号
14秒前
Nicole完成签到,获得积分10
15秒前
15秒前
彩色的涫完成签到,获得积分20
16秒前
16秒前
16秒前
16秒前
丘比特应助韦如采纳,获得10
18秒前
18秒前
才玉先生发布了新的文献求助10
18秒前
徐嘿嘿发布了新的文献求助30
18秒前
19秒前
彩色的涫发布了新的文献求助10
19秒前
青年才俊发布了新的文献求助10
19秒前
牛子妹发布了新的文献求助10
20秒前
20秒前
Fashioner8351发布了新的文献求助10
21秒前
21秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Lewis’s Child and Adolescent Psychiatry: A Comprehensive Textbook Sixth Edition 2000
Wolffs Headache and Other Head Pain 9th Edition 1000
Continuing Syntax 1000
Encyclopedia of Quaternary Science Reference Work • Third edition • 2025 800
Signals, Systems, and Signal Processing 510
荧光膀胱镜诊治膀胱癌 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6221655
求助须知:如何正确求助?哪些是违规求助? 8046628
关于积分的说明 16775117
捐赠科研通 5307018
什么是DOI,文献DOI怎么找? 2827114
邀请新用户注册赠送积分活动 1805280
关于科研通互助平台的介绍 1664633