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 \href{https://github.com/THU-BPM/Robust_Watermark}{https://github.com/THU-BPM/Robust\_Watermark}. Additionally, our algorithm could also be accessed through MarkLLM \citep{pan2024markllm} \footnote{https://github.com/THU-BPM/MarkLLM}.
From Essence to Defense: Adaptive Semantic-aware Watermarking for Embedding-as-a-Service Copyright Protection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
PMark: Towards Robust and Distortion-free Semantic-level Watermarking with Channel Constraints
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学);National University of Singapore(新加坡国立大学);Tsinghua University(清华大学)
Preserving Structure, Strengthening Signals: A Grammar-Driven Approach to Optimize the Trade-off Between Quality and Detectability in Code Watermarking
DualGuard: Dual-stream Large Language Model Watermarking Defense against Paraphrase and Spoofing Attack
Institute of Information Engineering, Chinese Academy of Sciences(信息工程研究所,中国科学院);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络与信息安全学院);Institute of Computing Technology, Chinese Academy of Sciences(计算技术研究所,中国科学院)
School of Communication and Information Engineering, Shanghai University(上海大学通信与信息工程学院);School of Big Data and Computer Science, Guizhou Normal University(贵州师范大学大数据与计算机科学学院)
From Trade-off to Synergy: A Versatile Symbiotic Watermarking Framework for Large Language Models
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);Hainan Province Fang Binxing Academician Workstation(海南省方斌星院士工作站)
Tsinghua University(清华大学);Shandong University(山东大学);Wuhan University(武汉大学);Zhongguancun Laboratory(中关村实验室);Shandong Institute of Blockchain(山东省区块链研究院);National Financial Cryptography Research Center(国家金融密码研究中心)
Removing Watermarks with Partial Regeneration using Semantic Information
International Computer Science Institute(国际计算机科学研究所);School of Computing and Augmented Intelligence(计算与增强智能学院);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Department of Statistics(统计学系);University of California at Berkeley(加州大学伯克利分校)
SemBind: Binding Diffusion Watermarks to Semantics Against Black-Box Forgery Attacks
School of Cyber Science and Technology, University of Science and Technology of China, Anhui, China(中国科学技术大学网络安全学院);Anhui Province Key Laboratory of Digital Security, Anhui, China(安徽省数字安全重点实验室)