Improve the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models
Weiqing He, Xiang Li, Li Shen, Weijie Su, Qi Long
TL;DR
This work reexamines the perceived impossibility of simultaneously maximizing watermark strength and speculative-sampling efficiency in language models. It introduces a continuous watermark-strength measure based on $WS = \mathbb{E}_{\zeta}[D_{KL}(P_{\zeta} \| P)]$, showing it is maximized when tokens are deterministic functions of pseudorandomness and connecting it to detection difficulty via sample complexity. The authors formalize the trade-off as a Pareto frontier between watermark strength and sampling efficiency, derive explicit curves for prominent schemes, and then propose a principled pseudorandom-acceptance mechanism that achieves maximal watermark strength without sacrificing efficiency, with empirical validation of improved detectability. Collectively, the results offer a concrete, practical pathway to deploy watermarking with speculative sampling in real-world LLM systems while preserving provenance signals and throughput.
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.
