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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: He, Weiqing, Li, Xiang, Shen, Li, Su, Weijie, Long, Qi
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911462278037504
author He, Weiqing
Li, Xiang
Shen, Li
Su, Weijie
Long, Qi
author_facet He, Weiqing
Li, Xiang
Shen, Li
Su, Weijie
Long, Qi
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_01428
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Improving the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models
He, Weiqing
Li, Xiang
Shen, Li
Su, Weijie
Long, Qi
Machine Learning
Cryptography and Security
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.
title Improving the Trade-off Between Watermark Strength and Speculative Sampling Efficiency for Language Models
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2602.01428