betaFeedback

WorksComputer Science

Pin It on Anyone: Certified Targeted Displacement of Multi-Bit LLM Watermarks Without the Key

Abstract

Multi-bit watermarking embeds a message, typically an account identifier, into LLM output so that harmful text can be traced to its origin. We show an attack technique that allows to alter the watermarking message. This allows to, for example, exchange the embedded account ID to an arbitrary different one. The attacker mainly needs access to a few accounts for generating LLM output and model logits, but crucially not the secret key used to watermark. The attacker then rewrites the text, keeping its meaning, so that the watermarking message decoder recovers the watermarking message embedded by the attacker. We are, to our knowledge, the first to propose such an attack, which we call a targeted displacement. Theoretically, we present upper and lower bounds on the probability of our attack succeeding. This bound depends on the number of accounts the attacker has access to, the length of the message and some characteristics of the given text. Our attack can succeed whenever we can bound the ambiguity of the generated text well enough. Empirically, we test our attack technique against five watermarking methods and four LLMs. Attack success tracks our predicted bounds, allowing us to alter watermarking messages in almost all cases with high accuracy, given enough accounts. Our code can be found at https://github.com/Batorskq/PinIt.

Introduction

Watermarks let a provider recognize text that its language model generated (Kirchenbauer et al., 2023). Multi-bit watermarks also hide a message in the text, typically the identifier of the account that requested it, so that a decoder holding the secret key can attribute a harmful text to its account [18] (Yoo et al. 2024; Qu et al. 2025; Li et al. 2024; Jiang et al. 2025; Xu et al. 2026). We show that an attacker can effectively alter the watermark message (Figure 1). With a few accounts of its own and without the secret key, it rewrites a text that carries a source message mm, keeping its semantics, so that the decoder reads a chosen target message m′m', such as the identifier of a third user. We call this targeted displacement. Obviously, such a watermarking attack can have serious security and privacy implications, when pinning harmful or sensitive text on an innocent party.

Figure 1. Targeted displacement of a multi-bit watermark. The provider embeds each account’s identifier into generated text, and a decoder recovers it to attribute a text. Text from the attacker’s own accounts is traced back to the attacker. By comparing the tokens its accounts favor with their known message bits, the attacker learns the hidden watermark structure without the key and paraphrases its text, keeping the meaning, so that the decoder outputs any identifier of the attacker’s choice, here that of an innocent user.

Prior attacks remove the watermark (Krishna et al., 2023; Zhang et al., 2024) or spoof its presence [26] (Jovanović et al. 2024; Pang et al. 2024; Jiang et al. 2025). They hence change whether the text is recognized as watermarked or not. That a multi-bit watermark might be steered toward a specific user was anticipated [23] (Jovanović et al. 2024) and stated as a security goal (Qu et al., 2025), but no known attack, to our knowledge, was able to alter an underlying watermarking message. We develop the first such attack and a theory of what any such attack can achieve.

We study attacks on so called distortion-based watermarking methods, which include popular green-list and red-list methods (Kirchenbauer et al., 2023, 2024; Zhao et al., 2024; Lee et al., 2024; Liu et al., 2024b; Lu et al., 2024) and their multi-bit variants [18] (Yoo et al. 2024; Wang et al. 2024; Qu et al. 2025). Such schemes make the generator favor, at each step, a subset of the vocabulary that depends on the message and the secret key. The decoder checks how consistently a text follows the subsets of each candidate message. The attacker cannot compute these subsets without the key, but a few accounts whose messages are known can reveal enough information about the favored subset. When comparing an account’s next-token distribution with the base model, we see which tokens are favored, and comparing accounts with one another shows the tokens the target message m′m' would favor. A paraphraser restricted to these tokens then rewrites the text (Figure 2). Not every target message is reachable however: when the accounts are too few or their underlying watermark messages are too similar, several targets look the same to the attacker. For such cases we prove an upper bound on the efficacy of any possible attacker. Additionally, we provide lower bounds for our attacker: For any target message m′m' can compute a certificate, without access to the key, for a lower bound on the probability that the decoder will decode m′m'. We evaluate the attack on five published watermarking methods using four LLMs (§ 4).

Figure 2. Overview of targeted displacement. The attacker wants to rewrite a text that carries watermark message mm, keeping its meaning, so that the decoder attributes it to a chosen message m′m', without the secret key. It controls accounts with known messages and, at every context used by the rewrite, compares an account’s next-token distribution with the base model to recover the account’s green list (step 1). The recovered green lists are turned into the target’s green list. This succeeds exactly when the target’s relative bits are constant within every twin class; otherwise the ambiguity bound of Theorem 1 caps the success probability (step 2). A paraphraser rewrites the source under a token-level constraint toward the target’s set, and the attacker certifies the rewrite from its own posterior without the key (step 3), so that the provider’s decoder reads the target message. Only step 2 depends on the watermark scheme.

Our contributions are the following.

  • To our knowledge, we develop the first attack on a multi-bit watermarking method that can inject arbitrary target messages without access to the key. Its three steps depend on the scheme.

  • We give upper bounds on attack success for any attack method on multi-bit watermarking schemes and a lower bound that certifies the probability of attack success for our method. We exactly characterize in closed form reachable target messages.

  • We evaluate the attack on five published watermarking methods and four LLMs, confirm the bound, show which schemes fall to one account, to multiple colluding accounts, or resist, and measure the price in fidelity for generating watermarked text with a target message.

Related Work

Multi-bit watermarks. Zero-bit watermarks bias the next-token distribution toward a keyed token set [6] (Huo et al. 2024; Kirchenbauer et al. 2023; Kirchenbauer et al. 2024; Lee et al. 2024; Liu et al. 2024b; Liu and Bu 2024; Lu et al. 2024; Wang et al. 2025; Zhao et al. 2024), sample from it without distortion [8, 12, 20, 24] (He et al. 2025; Hu et al. 2024; Mao et al. 2025; Tsur et al. 2025; Wu et al. 2024; Zhao et al. 2025), or select among drafts [21] (Hou et al. 2024). They only detect presence. Multi-bit watermarks, like linguistic steganography (Shen et al., 2020; Ziegler et al., 2019), hide a message, typically a user identifier. CycleShift cyclically shifts one keyed set by the message [18], MPAC gives each context a message position and a vocabulary coloring (Yoo et al., 2024), RSBH spreads a Reed–Solomon codeword over public segments (Qu et al., 2025), DepthW keys a depth permutation by the whole code (Li et al., 2024), StealthInk reweights a keyed permutation without distortion (Jiang et al., 2025), and XMark suppresses keyed vocabulary quarters within public blocks (Xu et al., 2026). Other schemes edit or paraphrase the text (Lau et al., 2024; Xu et al., 2025; Yang et al., 2022; Yoo et al., 2023), balance, stack, or symmetrize partitions [17] (Park et al. 2026; Wang et al. 2024; Zhu et al. 2026), correct, verify, or layer the payload [9] (Kim et al. 2026; Li et al. 2026), personalize it [4] (Yu et al. 2025), or serve diffusion LMs, agents, and code models (Huang and Wan, 2026; Huang et al., 2026b; Yang et al., 2026; Zhang et al., 2025). Attribution has been formalized (Jiang et al., 2026; Song and Shahabi, 2026), and CertMark certifies the decoded message [5]. These works protect the message against erasure by edits and paraphrases. We ask which messages an attacker can make the decoder read.

Attacks on watermarks. Paraphrasing, editing, translation, and ensembling remove watermarks (Cheng et al., 2025a,b; Diaa et al., 2025; Harel- Canada et al., 2025; He et al., 2024; Huang et al., 2025, 2026a; Hwang et al., 2026; Krishna et al., 2023; Pan et al., 2025; Rastogi and Pruthi, 2024; Wu et al., 2026b; Zhang et al., 2024), benchmarks compare schemes (Pan et al., 2024; Tu et al., 2024; Wu et al., 2026a), and queries reveal whether and how a model is watermarked [22, 3]. Closer to us, stealing estimates a zero-bit scheme’s keyed sets from queries [7] (Jovanovic et al. 2024; Wu and Chandrasekaran 2024) and distillation copies a watermark into another model [1, 26] (Sander et al. 2024), so that an attacker can scrub it or spoof it on any text. Robustness alone permits piggyback spoofing (Pang et al., 2024). Defenses harden watermarks against spoofing or detect it [23] (An et al. 2025; An et al. 2026b; Liu et al. 2024a; Shen et al. 2025; Zhou et al. 2024), and image watermarks can likewise be forged or overwritten [16] (Müller et al. 2025; Saberi et al. 2024; Senthuran et al. 2026; Souček et al. 2025; Yang et al. 2024). A zero-bit spoof forges one verdict, whereas spoofing a multi-bit watermark could incriminate a specific user [23], and we study this attack. Combining outputs under several keys removes a watermark (Pang et al., 2024; Wu et al., 2026b). Our attacker combines accounts under one key to forge a message, and our symmetry bound limits it as impossibility and trade-off results limit the defender (Pratihar and Mukhopadhyay, 2026; Zhang et al., 2024). The rewrite steers a paraphraser toward a token set, as in lexically constrained and controlled decoding [13] (Hu et al. 2019; Kajiwara 2019; Liu et al. 2021; Lu et al. 2021; Mudgal et al. 2024; Qin et al. 2022; Yang and Klein 2021), also used to obfuscate authorship [19].

Method

We study targeted displacement: rewriting a text that carries a watermark message mm so that the decoder instead recovers the target message m′m'. We first state the attacker’s objective and describe the watermarks we study.

Watermarking (Attacks). Let M={0,1}L\mathcal{M} = \{0,1\}^{L} be the message space. Let pK,mp_{K,m} be the next-token distribution for encoding watermarked text with message mm and secret key KK. Typically mm will be the account identifier of the person generating text. For text y∼pK,my \sim p_{K,m} the decoder DKD_K will output with high probability that DK(y)=mD_K(y)=m.

The attacker’s goal is as follows: For a target message m′∈Mm' \in\mathcal{M}, the attacker outputs text y^=A(y,m′,OM)\hat{y} = A(y,m',O_M) such that (i) the decoder will output m′m' as watermarking message and (ii) the rewritten text y^\hat{y} is semantically close to the original text yy and (iii) OMO_M contains all the information the attacker has at his disposal. First, the attacker has access to a number of accounts with messages

M=(m(1),…,m(n))∈Mn,n≥1,(1)M = \left(m^{(1)},\ldots,m^{(n)}\right) \in\mathcal{M}^{n}, \qquad n \ge1, \tag*{(1)}

so he can generate text for pK,m(1),…,pK,m(n)p_{K,m^{(1)}},\ldots,p_{K,m^{(n)}}. Furthermore, the attacker has access to the base model, the tokenizer, the watermarking scheme, and relevant hyperparameters (decoding temperature, etc.) but has no access to the secret key KK nor to the decoder for retrieving the watermark message from text.

The threat is direct for open-weight models, where every user of a watermarked service can download the base model. For closed models it becomes an insider threat.

Distortion Watermarking. We study distortion watermarks, which, for a fixed key, embed the message by changing the model’s next-token distribution (Kirchenbauer et al., 2023). When generating text yy, at every position tt the method takes the last ℓ\ell tokens (the context length) of yy, i.e. c=yt−ℓ:tc = y_{t-\ell:t}. Together with the key KK, the message m∈Mm \in\mathcal{M}, the green list of tokens is computed:

GKm(c)⊆V,(2)G_K^m(c) \subseteq\mathcal{V}, \tag*{(2)}

The green list is used as follows:

(P1) generation under message mm replaces the base distribution p(⋅∣c)p(\cdot\mid c) by pK,m(⋅∣c)=Φ(p(⋅∣c),GKm(c))p_{K,m}(\cdot\mid c) = \Phi\left(p(\cdot\mid c), G_K^m(c)\right) for a fixed, key-independent rule Φ\Phi, and

(P2) the decoder recomputes the green lists for all messages m∈Mm \in\mathcal{M} and chooses the message that maximizes the probability of having generated the watermarked text yy, i.e. m∈arg⁡max⁡m~∈MpK,m~(y)m \in\arg\max_{\tilde{m} \in\mathcal{M}} p_{K,\tilde{m}}(y).

The rule Φ\Phi usually shifts probability toward the green list. Alternatively, some schemes such as XMark suppress the green list set instead. We can also express this by taking GKm(c)G_K^m(c) to be the complement of the original green set (Appendix A). For simplicity, for a controlled account ii with known message m(i)m^{(i)}, we write Gi(c):=GKm(i)(c)G_i(c) := G_K^{m^{(i)}}(c).

Green-List GKmG_K^m Construction. The watermarking method uses key KK and context cc to compute a pseudorandom permutation πK(c)\pi_K(c) of the vocabulary and splits the permuted tokens into two halves. This assigns every token vv a hidden color CK(c,v)∈{0,1}C_K(c,v) \in\{0,1\}. The key also determines a message position JK(c)∈[L]J_K(c) \in[L]. For message mm, the green list is computed as those tokens whose color agrees with the message mm at position JK(c)J_K(c), namely

GKm(c)={v∈V:CK(c,v)=mJK(c)}.(3)G_K^m(c) = \{v \in\mathcal{V}: C_K(c,v) = m_{J_K(c)}\}. \tag*{(3)}

The attacker has no access to the key, hence cannot compute the permutation πK(c)\pi_K(c), nor message position JKJ_K or hidden color CKC_K. It observes only the resulting probability shift. Figure 3 shows why GKm(c)G_K^m(c) is therefore the relevant object.

Figure 3. Different hidden permutations and selections can induce the same observable green list set.

Attack

Recovering Gi(c)G_i(c). Fix any context cc. Let p(⋅∣c)p(\cdot\mid c) be the base model’s next-token distribution, and let pi(⋅∣c):=pK,m(i)(⋅∣c)p_i(\cdot\mid c) := p_{K,m^{(i)}}(\cdot\mid c) be the observable distribution of controlled account ii. For general rules Φ\Phi, the true green list set Gi(c)G_i(c) is unknown, since

the attacker does not know KK. However, for all the used watermarking methods function Φ\Phi is simple and we can obtain Gi(c)G_i(c) analytically. For example, for MPAC Φ\Phi increases the probability for all tokens in Gi(c)G_i(c) and reduces them for the complement. Hence Gi(c)={v∈V:p(v∣c)<pi(v∣c)}G_i(c)=\{v\in\mathcal{V}:p(v\mid c)<p_i(v\mid c)\}.

We present a general inversion approach that computes Gi(c)G_i(c) consistent with arbitrary Φ\Phi and give analytic inversion formulas for every used watermarking method in Appendix § 8.

Recovering green list of target m′m'. The attacker controls nn accounts and, at context cc, holds their green lists G1(c),…,Gn(c)G_1(c), \ldots, G_n(c). We detail below how the attacker uses them to compute the target set GKm′(c)G_K^{m'}(c). Recall that in (3) the key assigns cc the position j=JK(c)j = J_K(c), which the attacker does not know. It knows, however, that Gi(c)G_i(c) is the class of tokens with color mj(i)m_j^{(i)}, and that the two color classes partition V\mathcal{V}. Two accounts therefore have the same green list at cc exactly when their messages have the same bit at the hidden position,

Gi(c)=Gi′(c)⟺mj(i)=mj(i′),(4)G_i(c) = G_{i'}(c) \Longleftrightarrow m_j^{(i)} = m_j^{(i')}, \tag*{(4)}

and complementary sets otherwise.

To relate these comparisons to positions, we take account 1 as the reference and define, for every message position j∈[L]j \in[L], its account signature

xj=(xj,2,…,xj,n)∈{0,1}n−1,xj,i=(mj(i)+mj(1)) mod 2,(5)x_j = (x_{j,2}, \ldots, x_{j,n}) \in\{0,1\}^{n-1}, \qquad x_{j,i} = (m_j^{(i)} + m_j^{(1)}) \bmod2, \tag*{(5)}

so xj,i=0x_{j,i} = 0 if account ii has the same bit as the reference at position jj, and xj,i=1x_{j,i} = 1 if it has the opposite bit. The attacker computes every xjx_j from the known messages, and by (4) the sets reveal the signature of the hidden position, xJK(c),i=1{Gi(c)≠G1(c)}x_{J_K(c),i} = 1\{G_i(c) \ne G_1(c)\}. Positions jj and j′j' are twins if xj=xj′x_j = x_{j'}. We write T\mathcal{T} for the resulting partition of [L][L] into twin classes and T(c)T(c) for the class of JK(c)J_K(c). Matching the observed signature against the known ones identifies T(c)T(c), but no comparison of sets can separate twins (Figure 5).

References

  1. [1]Hye­seo­on An, Shinwoo Park, Suyeon Woo, and Yo-Sub Han. 2026a. DITTO: A spoofing attack framework on watermarked LLMs via knowledge distillation. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4922–4936, Rabat, Morocco. Association for Computational Linguistics.
  2. [3]Li An, Yujian Liu, Yepeng Liu, Yang Zhang, Yuheng Bu, and Shiyu Chang. 2025. Defending LLM watermarking against spoofing attacks with contrastive representation learning. In Second Conference on Language Modeling.arxiv.org/abs/2504.06575
  3. [4]Wenbo An, Lianwei Wu, and Zehao Wang. 2026c. IP-Mark: A sentence-level watermark for LLMs with hierarchical personalization and efficient detection. In Proceedings of the 43rd International Conference on Machine Learning.
  4. [5]Paweł Batorski, Przemysław Spur­ek, and Paul Swoboda. 2026. CertMark: Distortion-free multi-bit watermarking with certified decoding. arXiv preprint arXiv:2609.33332.arxiv.org/abs/2609.33332
  5. [6]Liang Chen, Yatao Bian, Yang Deng, Deng Cai, Shuaiyi Li, Peilin Zhao, and Kam-Fai Wong. 2024. WatME: Towards lossless watermarking through lexical redundancy. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9166–9180, Bangkok, Thailand. Association for Computational Linguistics.arxiv.org/abs/2311.09832
  6. [7]Ruibo Chen, Yihan Wu, Junfeng Guo, and Heng Huang. 2025a. De-mark: Watermark removal in large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 9316–9333. PMLR.arxiv.org/abs/2410.13808
  7. [8]Ruibo Chen, Yihan Wu, Junfeng Guo, and Heng Huang. 2025b. Improved unbiased watermark for large language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 20587–26061, Vienna, Austria. Association for Computational Linguistics.
  8. [9]Xuyang Chen, Xiang Li, Yangxinyu Xie, and Qi Long. 2026. Selective disclosure watermarking for large language models. In Proceedings of the 43rd International Conference on Machine Learning.arxiv.org/abs/2607.05353
  9. [12]Miranda Christ, Sam Gunn, and Or Zamir. 2024. Undetectable watermarks for language models. In The Thirty Seventh Annual Conference on Learning Theory, pages 1125–1139. PMLR.arxiv.org/abs/2306.09194
  10. [13]Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. 2020. Plug and play language models: A simple approach to controlled text generation. In International Conference on Learning Representations.
  11. [14]Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics.arxiv.org/abs/1810.04805
  12. [16]Ziping Dong, Chao Shuai, Zhongjie Ba, Peng Cheng, Zhan Qin, Qinglong Wang, and Kui Ren. 2025. WM-Copier: Forging invisible watermarks on arbitrary images. In Advances in Neural Information Processing Systems, volume 38.
  13. [17]Xiaoyan Feng, He Zhang, Yanjun Zhang, Leo Yu Zhang, and Shirui Pan. 2025. BiMark: Unbiased multilayer watermarking for large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 17049–17067. PMLR.arxiv.org/abs/2506.21602
  14. [18]Pierre Fernandez, Antoine Chaffin, Karim Tit, Vivien Chappelier, and Teddy Furon. 2023. Three bricks to consolidate watermarks for large language models. In 2023 IEEE International Workshop on Information Forensics and Security (WIFS), pages 1–6. IEEE.arxiv.org/abs/2308.00113
  15. [19]Jillian Fisher, Ximing Lu, Jaeun Jung, Liwei Jiang, Zaid Harchoui, and Yejin Choi. 2024. JAMDEC: Unsupervised authorship obfuscation using constrained decoding over small language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 1552–1581, Mexico City, Mexico. Association for Computational Linguistics.
  16. [20]Jiayi Fu, Xuandong Zhao, Ruihan Yang, Yuansen Zhang, Jiangjie Chen, and Yanghua Xiao. 2024. Gumbel-Soft: Diversified language model watermarking via the Gumbelmax-trick. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5791–5808, Bangkok, Thailand. Association for Computational Linguistics.DOI
  17. [21]Eva Giboulot and Teddy Furon. 2024. Water-Max: Breaking the LLM watermark detectability-robustness-quality trade-off. In Advances in Neural Information Processing Systems, volume 37.
  18. [22]Thibaud Gloaguen, Nikola Jovanović, Robin Staab, and Martin Vechev. 2025a. Black-box detection of language model watermarks. In The Thirteenth International Conference on Learning Representations.arxiv.org/abs/2405.20777
  19. [23]Thibaud Gloaguen, Nikola Jovanović, Robin Staab, and Martin Vechev. 2025b. Discovering spoofing attempts on language model watermarks. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 19562–19584. PMLR.arxiv.org/abs/2410.02693
  20. [24]Noah Golowich and Ankur Moitra. 2024. Edit distance robust watermarks via indexing pseudorandom codes. In Advances in Neural Information Processing Systems, volume 37.arxiv.org/abs/2406.02633
  21. [25]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, et al. 2024. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783.arxiv.org/abs/2407.21783
  22. [26]Chenchen Gu, Xiang Lisa Li, Percy Liang, and Tatsunori Hashimoto. 2024. On the learnability of watermarks for language models. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2312.04469

Paper details

vlnc:W_cv8b48jj
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

large language models

View statement
Looking for related papers…
Contents