SSG: Logit-Balanced Vocabulary Partitioning for LLM Watermarking
摘要
Watermarking has emerged as a promising technique for tracing the authorship of content generated by large language models (LLMs). Among existing approaches, the KGW scheme is particularly attractive due to its versatility, efficiency, and effectiveness in natural language generation. However, KGW's effectiveness degrades significantly under low-entropy settings such as code generation and mathematical reasoning. A crucial step in the KGW method is random vocabulary partitioning, which enables adjustments to token selection based on specific preferences. Our study revealed that the nexttoken probability distribution plays an critical role in determining how much, or even whether, we can modify token selection and, consequently, the effectiveness of watermarking. We refer to this characteristic, associated with the probability distribution of each token prediction, as watermark strength. In cases of random vocabulary partitioning, the lower bound of watermark strength is dictated by the nexttoken probability distribution. However, we found that, by redesigning the vocabulary partitioning algorithm, we can potentially raise this lower bound. In this paper, we propose SSG (Sort-then-Split by Groups), a method that partitions the vocabulary into two logit-balanced subsets. This design lifts the lower bound of watermark strength for each token prediction, thereby improving watermark detectability. Experiments on code generation and mathematical reasoning datasets demonstrate the effectiveness of SSG. The source code is available at https://github.com/AllenG-L/SSG .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- On the Learnability of Watermarks for Language Models 引用了 A Watermark for Large Language Models
- Who Wrote this Code? Watermarking for Code Generation 引用了 On the Learnability of Watermarks for Language Models
- CodeMark: Imperceptible Watermarking for Code Datasets against Neural Code Completion Models 引用了 CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoning
它引用的 Paper9
- A Watermark for Large Language ModelsJohn Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz 等ICML 2023 · 854 次引用
- CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data PoisoningZhensu Sun, Xiaoning Du, Fu Song, Mingze Ni 等WWW 2022 · 95 次引用
- On the Learnability of Watermarks for Language ModelsChenchen Gu, Xiang Lisa Li, Percy Liang, Tatsunori HashimotoICLR 2024 · 79 次引用
- Who Wrote this Code? Watermarking for Code GenerationTaehyun Lee, Seokhee Hong, Jaewoo Ahn, Ilgee Hong 等ACL 2024 · 36 次引用
- CodeMark: Imperceptible Watermarking for Code Datasets against Neural Code Completion ModelsZhensu Sun, Xiaoning Du, Fu Song, Li LiFSE 2023 · 34 次引用
相关 Paper
- WatME: Towards Lossless Watermarking Through Lexical RedundancyLiang Chen, Yatao Bian, Yang Deng, Deng Cai 等ACL 2024 · 2 次引用
- Watermarking with Low-Entropy POS-Guided Token Partitioning and Z-Score-Driven Dynamic Bias for Large Language ModelsHe Li, Xiaojun Chen, Zhendong Zhao, Yunfei Yang 等EMNLP Findings 2025
- MorphMark: Flexible Adaptive Watermarking for Large Language ModelsZongqi Wang, Tianle Gu, Baoyuan Wu, Yujiu YangACL 2025 · 11 次引用
- HeavyWater and SimplexWater: Distortion-free LLM Watermarks for Low-Entropy DistributionsDor Tsur, Carol Xuan Long, Claudio Mayrink Verdun, Sajani Vithana 等NeurIPS 2025 · 9 次引用
- Topic-Based Watermarks for Large Language ModelsAlexander Nemecek, Yuzhou Jiang, Erman AydayACL Findings 2026
