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

Weiqing He, Xiang Li, Li Shen, Weijie Su, Qi Long
2/1/2026
cs.LGcs.CR

No official code found. Best implementation: hwq0726/watermark-tradeoff (3 stars, last commit 2026-02-03).

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.

View on arXivView PDF

Code Implementations(1)

Code for the paper: Improving the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models

32Shell, PythonJan 29, 20268 months ago

Similar Papers

Cite this paper

@article{he2026improve,
  title  = {Improve the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models},
  author = {Weiqing He and Xiang Li and Li Shen and Weijie Su and Qi Long},
  year   = {2026},
  eprint = {2602.01428},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.01428v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.01428.svg)](https://codeofpaper.com/paper/2602.01428)

Discussion