Manuscript Offprint

arXiv:2610.27079

ClockMark: Adaptive and Host-Dependent Watermarking for Large Language Models

Yupeng Qiu, Han Fang, Ee-Chien Chang

Abstract

Large language model (LLM) watermarking operates on the next-token distribution that evolves during generation. In streaming generation, each sampled token becomes part of the text and affects subsequent distributions. Embedding therefore proceeds with a changing host, unlike classical watermarking, which adapts embedding to an existing host signal. To accommodate this difference, we formulate a novel embedding framework for LLM watermarking based on two principles. We first argue that embedding should be adaptive, retaining the state of previous sampling decisions to better guide subsequent choices. We further argue that embedding should be host-dependent, using the current LLM distribution to constrain both token selection and state updates. Guided by these principles and the two requirements of distribution preservation and robustness to text editing, we propose ClockMark. It combines adaptive and host-dependent embedding with message spreading, embedding the full payload in each watermarked token. Theoretically, we prove that ClockMark preserves the original LLM sequence distribution, thereby maintaining generation quality. Empirically, extensive experiments against 12 baselines demonstrate improved robustness to text editing, with gains of up to 16.08 percentage points in bit accuracy over the strongest tested baseline.

1 Introduction

Texts generated by large language models (LLMs) are increasingly difficult to distinguish from human-written content (Jakesch et al., 2023; Porter and Machery, 2024). Text watermarking offers a practical way to verify model-generated text by embedding secret signals during generation. Earlier zero-bit methods can only determine whether the given text is watermarked, which is insufficient for more detailed attribution (Kirchenbauer et al., 2023; Hu et al., 2024; Kuditipudi et al., 2024; Dathathri et al., 2024). Multi-bit watermarking addresses this limitation by embedding identifiers, such as model or user IDs, that can later be recovered for tracing (Wang et al., 2024; Yoo et al., 2024).

However, achieving robustness to text editing while preserving generation quality remains challenging. Existing methods improve robustness through balanced allocation and structured coding (Yoo et al., 2024; Qu et al., 2025; Xu et al., 2026). More recent methods broaden watermark signal coverage by allowing each token to carry signals for all message bits (Gilani et al., 2026; Gloaguen et al., 2026). In parallel, distribution-preserving approaches use unbiased reweighting or keyed sampling to maintain generation quality (Feng et al., 2025; Jiang et al., 2025; Cui et al., 2026; Wang et al., 2026). For methods that derive watermark randomness from preceding text, repeated contexts introduce a further difficulty. Reusing the same randomness at these contexts can bias generation, whereas skipping them sacrifices embedding opportunities (Dathathri et al., 2024; Feng et al., 2025; Jiang et al., 2026b; Wang et al., 2026). Increasing the watermark

∗^{*}Corresponding author: fanghan@ustc.edu.cn.

context length reduces repetition but allows a single edit to disrupt watermark signals in more subsequent tokens.

Addressing these challenges requires considering how watermark embedding interacts with the LLM generation process. LLM watermarking operates on the next-token distribution, which becomes available one step at a time and depends on the previously generated text. In streaming generation, each sampled token becomes part of the text and affects the distributions used for subsequent sampling. Embedding therefore proceeds through a sequence of sampling choices under a changing host, unlike classical watermarking, which adapts embedding to an existing host signal (Moulin and O'Sullivan, 2003).

To accommodate this difference, we formulate a novel embedding framework for LLM watermarking based on two principles. Adaptive embedding retains the state of previous sampling decisions and uses it to guide subsequent choices. Host-dependent embedding uses the current LLM distribution to constrain both token selection and state updates. A concrete method developed within this framework should also meet two requirements: preserving the LLM sequence distribution and supporting reliable message recovery after text editing.

Following this framework, we propose ClockMark. The embedding process is a race among candidate tokens. Each candidate starts with a countdown determined by the secret key and all payload bits, so each sampling decision depends jointly on the full payload without position allocation. The current LLM probability determines how quickly each countdown decreases, and the first candidate to reach zero is selected as the next token. To implement adaptive embedding, ClockMark gives only the selected candidate a new countdown and retains the unfinished countdowns of the others. It saves these values for each context and resumes them when that context reappears. This allows ClockMark to use one-token contexts without skipping repetitions, limiting the number of subsequent watermark signals affected by an edit. To implement host-dependent embedding, all candidates advance for the same duration at rates set by their current LLM probabilities. These probabilities therefore govern both token selection and the unfinished countdowns retained for future decisions. Theoretically, we prove that ClockMark preserves the original LLM sequence distribution, thereby maintaining generation quality. Empirically, extensive experiments against 12 baselines demonstrate improved robustness to text editing, with gains of up to 16.08 percentage points in bit accuracy over the strongest tested baseline.

Our main contributions are as follows:

• We formulate an adaptive and host-dependent framework for LLM watermarking that models embedding as a sequential process guided by the evolving host distribution and the state retained from previous sampling decisions.

• We propose ClockMark, which combines full-payload embedding with adaptive and host-dependent sampling. We theoretically prove that the resulting process preserves the original LLM sequence distribution, thereby maintaining generation quality.

• We develop a unified receiver that supports message recovery and watermark detection through a shared statistic computed from the received text and secret key. We establish theoretical false-positive control for detection.

• Extensive experiments against 12 multi-bit watermarking baselines demonstrate improved robustness to text editing while maintaining generation quality, with gains of up to 16.08 percentage points in bit accuracy over the strongest tested baseline.

References (57)