A Semantic Invariant Robust Watermark for Large Language Models

水印 稳健性(进化) 计算机科学 嵌入 数字水印 安全性令牌 不变(物理) 人工智能 计算机安全 理论计算机科学 数据挖掘 自然语言处理 数学 数学物理 生物化学 化学 图像(数学) 基因
作者
Aiwei Liu,Leyi Pan,Xuming Hu,Shiao Meng,Lijie Wen
出处
期刊:Cornell University - arXiv 被引量:1
标识
DOI:10.48550/arxiv.2310.06356
摘要

Watermark algorithms for large language models (LLMs) have achieved extremely high accuracy in detecting text generated by LLMs. Such algorithms typically involve adding extra watermark logits to the LLM's logits at each generation step. However, prior algorithms face a trade-off between attack robustness and security robustness. This is because the watermark logits for a token are determined by a certain number of preceding tokens; a small number leads to low security robustness, while a large number results in insufficient attack robustness. In this work, we propose a semantic invariant watermarking method for LLMs that provides both attack robustness and security robustness. The watermark logits in our work are determined by the semantics of all preceding tokens. Specifically, we utilize another embedding LLM to generate semantic embeddings for all preceding tokens, and then these semantic embeddings are transformed into the watermark logits through our trained watermark model. Subsequent analyses and experiments demonstrated the attack robustness of our method in semantically invariant settings: synonym substitution and text paraphrasing settings. Finally, we also show that our watermark possesses adequate security robustness. Our code and data are available at https://github.com/THU-BPM/Robust_Watermark.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
无语的麦片完成签到,获得积分20
2秒前
猩心完成签到,获得积分10
3秒前
3秒前
小苏苏完成签到,获得积分10
3秒前
巴顿将军发布了新的文献求助10
4秒前
彬彬有李发布了新的文献求助10
4秒前
angelinazh完成签到,获得积分0
4秒前
r93527005完成签到,获得积分10
5秒前
6秒前
科研通AI5应助懒羊羊采纳,获得10
6秒前
玛卡巴卡发布了新的文献求助10
6秒前
量子星尘发布了新的文献求助10
7秒前
7秒前
8秒前
9秒前
优美的海秋完成签到,获得积分10
9秒前
9秒前
TY完成签到,获得积分10
11秒前
11秒前
13秒前
爆米花应助叽里咕卢采纳,获得10
14秒前
ln发布了新的文献求助10
14秒前
安东尼发布了新的文献求助10
15秒前
滴滴滴完成签到 ,获得积分10
16秒前
16秒前
英俊的铭应助李冰采纳,获得10
16秒前
17秒前
量子星尘发布了新的文献求助10
17秒前
18秒前
活泼的踏歌完成签到,获得积分10
18秒前
18秒前
19秒前
19秒前
19秒前
20秒前
小蘑菇应助ZMY采纳,获得10
21秒前
Shayulajiao发布了新的文献求助10
21秒前
大力水手发布了新的文献求助10
21秒前
22秒前
高分求助中
Production Logging: Theoretical and Interpretive Elements 2700
Neuromuscular and Electrodiagnostic Medicine Board Review 1000
Statistical Methods for the Social Sciences, Global Edition, 6th edition 600
こんなに痛いのにどうして「なんでもない」と医者にいわれてしまうのでしょうか 510
Walter Gilbert: Selected Works 500
An Annotated Checklist of Dinosaur Species by Continent 500
岡本唐貴自伝的回想画集 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3660105
求助须知:如何正确求助?哪些是违规求助? 3221425
关于积分的说明 9740535
捐赠科研通 2930781
什么是DOI,文献DOI怎么找? 1604673
邀请新用户注册赠送积分活动 757396
科研通“疑难数据库(出版商)”最低求助积分说明 734406