Manuscript Offprint

arXiv:2610.23601

Token-Level Attribution of Multi-Mode LLM Watermarks: Optimal Rule and Belief Weighting

Rui Zhou, Licheng Zhao, Chao Shen, Wenqiang Pu

Rui Zhou, Licheng Zhao, Chao Shen, and Wenqiang Pu

Abstract—A watermark verifier may hold many modes, i.e., secret keys, and a document may mix spans of different modes with unwatermarked text. Directly reporting the mode with the largest pivotal statistic (pivot) inflates the Type I error, and restoring the nominal level reduces power as candidate modes are added. We formulate token-level multi-mode attribution for the Gumbel-max watermark as maximizing correct-label power under a Type I error constraint given a mode prior. We show that the optimal rule reports the mode with the largest prior-weighted alternative density and rejects when this density exceeds one common threshold. Based on this rule, we propose the Belief-weighted Likelihood Attribution with Density Estimation (BLADE) detector. It estimates the mode prior from neighboring pivots and the alternative density from reference token probabilities. Under a conditional product model of the pivots, it keeps the exact Type I error. We further show that BLADE approaches the optimal rule as its prior and density estimates improve, with a sharp coefficient on the density error. On OPT-1.3B and other open-weight large language models, BLADE attains higher correct-label power than the compared detectors across candidate counts, token-substitution rates, generation temperatures and generator models.

Index Terms—Large language models, watermarking, multi-mode attribution, optimal detector, neighboring evidence.

I. INTRODUCTION

WATERMARKING embeds a key-dependent statistical signal into the text generated by a large language model (LLM). A verifier holding the secret key can then test whether a given text was generated by the model [2]–[4]. Existing schemes either bias the next-token prediction (NTP) distribution toward a key-dependent subset of the vocabulary, e.g., the green-list watermark [2], [5], or preserve it in expectation over the pseudorandomness [3], [4], [6]–[8]. The latter class includes the Gumbel-max watermark [3], [9], [10]. For the Gumbel-max watermark, the detector computes at each token a pivotal statistic (pivot), namely the keyed pseudorandom value of the observed token. It then tests whether the pivot follows the uniform distribution of unwatermarked text or the stochastically larger distribution of watermarked text [9]. These schemes and their detectors, however, mostly consider a single key and make a binary decision about a whole text.

Many practical applications require a finer answer. A model provider may assign different keys to different users or, for a single user, to different products or usage states, e.g., polishing a human draft versus authoring a manuscript from scratch. We refer to each key, together with the user, product or state that it identifies, as a watermark mode. The text submitted to a verifier may then mix unwatermarked spans, as in [11], [12], with spans generated under different modes. The unwatermarked spans may be written by a human, generated by the model without a watermark, or generated with a watermark that is no longer retained after later editing. We call such a text a mixed document. The verifier must decide, at each token, whether a watermark is retained and, if so, under which of K candidate modes it was generated. We refer to this problem as multimode attribution. Since a detection with a wrong mode label is an attribution error, the relevant performance measure is the correct-label power, i.e., the probability of detecting a retained watermark and assigning it to the correct mode.

A direct approach computes one pivot per candidate mode and reports the mode with the largest pivot whenever that pivot exceeds a threshold. We call this rule Max-Pivot. However, testing several candidates at once inflates the overall Type I error above the nominal level of each individual test, since each candidate pivot may exceed the threshold under the null hypothesis. Restoring the overall nominal level requires a stricter threshold for each candidate, i.e., a multiplicity correction, and we call the resulting rule calibrated Max-Pivot. This threshold increases as candidates are added, lowering the probability that the pivot of the true mode exceeds it. In addition, a correct detection requires the pivot of the true mode to exceed the pivots of all other modes, which also becomes less likely as candidates are added. Both effects grow with the number of candidates, because the candidate modes share one null hypothesis and one Type I error budget at every token. We refer to these effects as the competition among modes. This competition characterizes multi-mode attribution and is absent from single-mode detection.

Several methods use multiple keys or identify the source of a text, but they are not designed for the multi-mode attribution problem considered here. Multi-user watermarks embed a user-specific signal to trace a text to an individual user or to members of a colluding group [13]. Watermark-based attribution assigns each user a distinct watermark selected to improve the accuracy of identifying the user [14]. Randomized key selection uses several keys and accepts a text when exactly one of them is detected [15]. Multi-bit watermarks embed a message, e.g., a user identifier, and recover it by aggregating evidence across many tokens [16]. Methods that

A preliminary version of this work was submitted to the 2027 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) [1].

Rui Zhou is with the City University of Hong Kong (Dongguan), Dongguan, China, and also with the City University of Hong Kong, Hong Kong (email: rui.zhou@cityu-dg.edu.cn).

Licheng Zhao, Chao Shen, and Wenqiang Pu are with the Shenzhen Research Institute of Big Data, The Chinese University of Hong Kong (Shenzhen), Shenzhen, China (e-mail: zhaolicheng@sribd.cn; chaoshen@sribd.cn; wpu@sribd.cn).

localize watermarked segments in mixed-source text [17]–[21] label positions within mixed documents but consider a single key. Most of the multi-key methods above assume that the whole text carries only one watermark, and even the collusion-resistant scheme [13] identifies users rather than labeling tokens. The multi-key methods therefore determine which user or key produced a whole text, whereas multi-mode attribution must determine which mode, if any, generated each token.

Within a source span, neighboring tokens usually share a mode, so the neighbors of a token provide evidence for identifying its mode more accurately. In our preliminary work [1], we proposed a Belief-weighted (BW) detector for the Gumbel-max watermark. It allocates the Type I error budget across the candidates with weights given by mode probabilities from a hidden Markov model of local persistence [22]. On mixed documents, it improved the correct-label power over calibrated Max-Pivot. However, the BW detector and its weights were designed heuristically rather than derived from an optimality criterion.

In this paper, we cast multi-mode attribution as a constrained optimization problem over the decision rule, in which the neighboring evidence enters through the mode prior, i.e., the prior probability of each mode at the target token. Under a conditional product model of the pivots, the optimal rule has an explicit form. The main contributions are as follows:

• We formulate token-level multi-mode attribution for the Gumbel-max watermark as maximizing the prior-weighted correct-label power under a Type I error constraint given the mode prior. We show that the optimal rule reports the mode with the largest prior-weighted alternative density and rejects when this density exceeds one common threshold. Under the uniform product null of the pivots, this threshold splits the Type I error budget among the modes and also bounds the misattribution rate.

• Based on the optimal rule, we propose the Belief-weighted Likelihood Attribution with Density Estimation (BLADE) detector. It estimates the required alternative density from reference token probabilities and the mode prior with a working Markov chain that includes a null state. Under the conditional product model, it keeps the exact Type I error for any such estimates formed from the other positions and independent reference data.

• We bound the loss of BLADE relative to the optimum in terms of the prior and density estimation errors, and show that the coefficient of the density error is sharp.

• We evaluate the detectors on OPT-1.3B and other open-weight LLMs. BLADE attains higher correct-label power than calibrated Max-Pivot, the Local-Count weighting of [1] and BW across candidate counts, token-substitution rates, generation temperatures and generator models. It also keeps the Type I error near the nominal level on human-written and edited text.

This paper is organized as follows. Section II reviews single-mode Gumbel-max watermarking and its pivot distribution. Section III formulates multi-mode attribution, and Section IV derives the optimal rule. Section V constructs BW and BLADE from the optimal rule and bounds BLADE's loss from estimated inputs. Section VI presents numerical experiments, and Section VII concludes the paper.

Notation: Boldface lowercase and uppercase letters denote vectors and matrices, respectively. Pr⁡(⋅)\Pr(\cdot) and E[⋅]\mathbb{E}[\cdot] denote probability and expectation, Unif(0,1)\text{Unif}(0,1) is the uniform distribution on [0,1][0,1], and I{⋅}\mathbb{I}\{\cdot\} is the indicator function. 1K\mathbf{1}_K and IK\mathbf{I}_K are the KK-dimensional all-ones vector and identity matrix, (⋅)⊤(\cdot)^\top denotes transposition, ⊙\odot is the elementwise product, and norm(x)=x/∑ixi\text{norm}(\mathbf{x}) = \mathbf{x}/\sum_i x_i for a nonnegative vector x\mathbf{x} with a positive sum. For x∈RK\mathbf{x} \in \mathbb{R}^K, ∥x∥1=∑j∣xj∣\|\mathbf{x}\|_1 = \sum_j |x_j|, and for an integrable function gg on [0,1][0,1], ∥g∥L1=∫01∣g(x)∣ dx\|g\|_{L^1} = \int_0^1 |g(x)| \, dx.

References (31)