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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
常青发布了新的文献求助10
刚刚
2秒前
SciGPT应助Catherine采纳,获得10
3秒前
李健的小迷弟应助东东采纳,获得10
3秒前
FalsqFeng完成签到,获得积分20
4秒前
莫琳完成签到 ,获得积分10
4秒前
6秒前
6秒前
一语初晴发布了新的文献求助10
6秒前
7秒前
东东完成签到,获得积分10
9秒前
昔我往矣完成签到 ,获得积分10
9秒前
目土土发布了新的文献求助10
10秒前
科目三应助Luca采纳,获得10
10秒前
西瓜发布了新的文献求助10
11秒前
暴走诺亚完成签到,获得积分10
11秒前
12秒前
12秒前
13秒前
打工肥仔应助dingdingzuimei采纳,获得10
14秒前
14秒前
上官若男应助一语初晴采纳,获得10
15秒前
爆米花应助cai白白采纳,获得10
16秒前
CipherSage应助敏感的夜阑采纳,获得10
16秒前
李总要发财小苏发文章完成签到,获得积分10
16秒前
wyuwqhjp完成签到,获得积分10
16秒前
kevin_kong完成签到,获得积分10
17秒前
地球发布了新的文献求助10
17秒前
17秒前
无忧应助肉肉采纳,获得10
17秒前
18秒前
顾矜应助化学y采纳,获得10
18秒前
8R60d8应助科研通管家采纳,获得10
18秒前
8R60d8应助科研通管家采纳,获得10
18秒前
隐形曼青应助科研通管家采纳,获得10
19秒前
酷波er应助科研通管家采纳,获得10
19秒前
干卿应助科研通管家采纳,获得10
19秒前
小马甲应助科研通管家采纳,获得10
19秒前
8R60d8应助科研通管家采纳,获得10
19秒前
8R60d8应助科研通管家采纳,获得10
19秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Organometallic Chemistry of the Transition Metals 800
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
The formation of Australian attitudes towards China, 1918-1941 640
Signals, Systems, and Signal Processing 610
全相对论原子结构与含时波包动力学的理论研究--清华大学 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6442070
求助须知:如何正确求助?哪些是违规求助? 8255998
关于积分的说明 17579779
捐赠科研通 5500733
什么是DOI,文献DOI怎么找? 2900381
邀请新用户注册赠送积分活动 1877248
关于科研通互助平台的介绍 1717144