Improving the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models.

Weiqing He, Xiang Li, Li Shen, Weijie Su, Qi Long
{"title":"Improving the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models.","authors":"Weiqing He, Xiang Li, Li Shen, Weijie Su, Qi Long","doi":"","DOIUrl":null,"url":null,"abstract":"<p><p>Watermarking is a principled approach for tracing the provenance of large language model (LLM) outputs, but its deployment in practice is hindered by inference inefficiency. Speculative sampling accelerates inference, with efficiency improving as the acceptance rate between draft and target models increases. Yet recent work reveals a fundamental trade-off: higher watermark strength reduces acceptance, preventing their simultaneous achievement. We revisit this trade-off and show it is not absolute. We introduce a quantitative measure of watermark strength that governs statistical detectability and is maximized when tokens are deterministic functions of pseudorandom numbers. Using this measure, we fully characterize the trade-off as a constrained optimization problem and derive explicit Pareto curves for two existing watermarking schemes. Finally, we introduce a principled mechanism that injects pseudorandomness into draft-token acceptance, ensuring maximal watermark strength while maintaining speculative sampling efficiency. Experiments further show that this approach improves detectability without sacrificing efficiency. Our findings uncover a principle that unites speculative sampling and watermarking, paving the way for their efficient and practical deployment.</p>","PeriodicalId":521258,"journal":{"name":"... International Conference on Learning Representations","volume":"2026 ","pages":"30472-30496"},"PeriodicalIF":0.0000,"publicationDate":"2026-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13548028/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"... International Conference on Learning Representations","FirstCategoryId":"1085","ListUrlMain":"","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Watermarking is a principled approach for tracing the provenance of large language model (LLM) outputs, but its deployment in practice is hindered by inference inefficiency. Speculative sampling accelerates inference, with efficiency improving as the acceptance rate between draft and target models increases. Yet recent work reveals a fundamental trade-off: higher watermark strength reduces acceptance, preventing their simultaneous achievement. We revisit this trade-off and show it is not absolute. We introduce a quantitative measure of watermark strength that governs statistical detectability and is maximized when tokens are deterministic functions of pseudorandom numbers. Using this measure, we fully characterize the trade-off as a constrained optimization problem and derive explicit Pareto curves for two existing watermarking schemes. Finally, we introduce a principled mechanism that injects pseudorandomness into draft-token acceptance, ensuring maximal watermark strength while maintaining speculative sampling efficiency. Experiments further show that this approach improves detectability without sacrificing efficiency. Our findings uncover a principle that unites speculative sampling and watermarking, paving the way for their efficient and practical deployment.

改进语言模型中水印强度和推测采样效率之间的权衡。
水印是追踪大型语言模型(LLM)输出来源的一种有原则的方法,但其在实践中的部署受到推理效率低下的阻碍。推测性抽样加速了推理,随着草案模型和目标模型之间的接受率增加,推理效率也随之提高。然而,最近的研究揭示了一个基本的权衡:更高的水印强度降低了接受度,阻碍了它们的同时实现。我们重新审视这种权衡,并表明它不是绝对的。我们引入了一种控制统计可检测性的水印强度的定量度量,当令牌是伪随机数的确定性函数时,该度量是最大化的。利用这一度量,我们将权衡完全描述为约束优化问题,并推导出两种现有水印方案的显式帕累托曲线。最后,我们引入了一种原则性机制,将伪随机性注入到代币接受中,在保持推测采样效率的同时确保最大的水印强度。实验进一步表明,该方法在不牺牲效率的前提下提高了可检测性。我们的发现揭示了一个将推测采样和水印结合起来的原则,为它们的有效和实际部署铺平了道路。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书