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 m m m , keeping its semantics, so that the decoder reads a chosen target message m ′ 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' 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' m ′ can compute a certificate, without access to the key, for a lower bound on the probability that the decoder will decode m ′ 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 m m m , keeping its meaning, so that the decoder attributes it to a chosen message m ′ 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 m m m so that the decoder instead recovers the target message m ′ 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} M = { 0 , 1 } L be the message space. Let p K , m p_{K,m} p K , m be the next-token distribution for encoding watermarked text with message m m m and secret key K K K . Typically m m m will be the account identifier of the person generating text. For text y ∼ p K , m y \sim p_{K,m} y ∼ p K , m the decoder D K D_K D K will output with high probability that D K ( y ) = m D_K(y)=m D K ( y ) = m .
The attacker’s goal is as follows: For a target message m ′ ∈ M m' \in\mathcal{M} m ′ ∈ M , the attacker outputs text y ^ = A ( y , m ′ , O M ) \hat{y} = A(y,m',O_M) y ^ = A ( y , m ′ , O M ) such that (i) the decoder will output m ′ m' m ′ as watermarking message and (ii) the rewritten text y ^ \hat{y} y ^ is semantically close to the original text y y y and (iii) O M O_M O 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 ) ) ∈ M n , n ≥ 1 , (1) M = \left(m^{(1)},\ldots,m^{(n)}\right) \in\mathcal{M}^{n}, \qquad n \ge1, \tag*{(1)} M = ( m ( 1 ) , … , m ( n ) ) ∈ M n , n ≥ 1 , (1)
so he can generate text for p K , m ( 1 ) , … , p K , m ( n ) p_{K,m^{(1)}},\ldots,p_{K,m^{(n)}} p K , m ( 1 ) , … , 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 K K K 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 y y y , at every position t t t the method takes the last ℓ \ell ℓ tokens (the context length) of y y y , i.e. c = y t − ℓ : t c = y_{t-\ell:t} c = y t − ℓ : t . Together with the key K K K , the message m ∈ M m \in\mathcal{M} m ∈ M , the green list of tokens is computed:
G K m ( c ) ⊆ V , (2) G_K^m(c) \subseteq\mathcal{V}, \tag*{(2)} G K m ( c ) ⊆ V , (2)
The green list is used as follows:
(P1) generation under message m m m replaces the base distribution p ( ⋅ ∣ c ) p(\cdot\mid c) p ( ⋅ ∣ c ) by p K , m ( ⋅ ∣ c ) = Φ ( p ( ⋅ ∣ c ) , G K m ( c ) ) p_{K,m}(\cdot\mid c) = \Phi\left(p(\cdot\mid c), G_K^m(c)\right) p K , m ( ⋅ ∣ c ) = Φ ( p ( ⋅ ∣ c ) , G K m ( c ) ) for a fixed, key-independent rule Φ \Phi Φ , and
(P2) the decoder recomputes the green lists for all messages m ∈ M m \in\mathcal{M} m ∈ M and chooses the message that maximizes the probability of having generated the watermarked text y y y , i.e. m ∈ arg max m ~ ∈ M p K , m ~ ( y ) m \in\arg\max_{\tilde{m} \in\mathcal{M}} p_{K,\tilde{m}}(y) m ∈ arg max m ~ ∈ M p K , 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 G K m ( c ) G_K^m(c) G K m ( c ) to be the complement of the original green set (Appendix A). For simplicity, for a controlled account i i i with known message m ( i ) m^{(i)} m ( i ) , we write G i ( c ) : = G K m ( i ) ( c ) G_i(c) := G_K^{m^{(i)}}(c) G i ( c ) := G K m ( i ) ( c ) .
Green-List G K m G_K^m G K m Construction. The watermarking method uses key K K K and context c c c to compute a pseudorandom permutation π K ( c ) \pi_K(c) π K ( c ) of the vocabulary and splits the permuted tokens into two halves. This assigns every token v v v a hidden color C K ( c , v ) ∈ { 0 , 1 } C_K(c,v) \in\{0,1\} C K ( c , v ) ∈ { 0 , 1 } . The key also determines a message position J K ( c ) ∈ [ L ] J_K(c) \in[L] J K ( c ) ∈ [ L ] . For message m m m , the green list is computed as those tokens whose color agrees with the message m m m at position J K ( c ) J_K(c) J K ( c ) , namely
G K m ( c ) = { v ∈ V : C K ( c , v ) = m J K ( c ) } . (3) G_K^m(c) = \{v \in\mathcal{V}: C_K(c,v) = m_{J_K(c)}\}. \tag*{(3)} G K m ( c ) = { v ∈ V : C K ( c , v ) = m J K ( c ) } . (3)
The attacker has no access to the key, hence cannot compute the permutation π K ( c ) \pi_K(c) π K ( c ) , nor message position J K J_K J K or hidden color C K C_K C K . It observes only the resulting probability shift. Figure 3 shows why G K m ( c ) G_K^m(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 G i ( c ) G_i(c) G i ( c ) . Fix any context c c c . Let p ( ⋅ ∣ c ) p(\cdot\mid c) p ( ⋅ ∣ c ) be the base model’s next-token distribution, and let p i ( ⋅ ∣ c ) : = p K , m ( i ) ( ⋅ ∣ c ) p_i(\cdot\mid c) := p_{K,m^{(i)}}(\cdot\mid c) p i ( ⋅ ∣ c ) := p K , m ( i ) ( ⋅ ∣ c ) be the observable distribution of controlled account i i i . For general rules Φ \Phi Φ , the true green list set G i ( c ) G_i(c) G i ( c ) is unknown, since
the attacker does not know K K K . However, for all the used watermarking methods function Φ \Phi Φ is simple and we can obtain G i ( c ) G_i(c) G i ( c ) analytically. For example, for MPAC Φ \Phi Φ increases the probability for all tokens in G i ( c ) G_i(c) G i ( c ) and reduces them for the complement. Hence G i ( c ) = { v ∈ V : p ( v ∣ c ) < p i ( v ∣ c ) } G_i(c)=\{v\in\mathcal{V}:p(v\mid c)<p_i(v\mid c)\} G i ( c ) = { v ∈ V : p ( v ∣ c ) < p i ( v ∣ c )} .
We present a general inversion approach that computes G i ( c ) G_i(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' m ′ . The attacker controls n n n accounts and, at context c c c , holds their green lists G 1 ( c ) , … , G n ( c ) G_1(c), \ldots, G_n(c) G 1 ( c ) , … , G n ( c ) . We detail below how the attacker uses them to compute the target set G K m ′ ( c ) G_K^{m'}(c) G K m ′ ( c ) . Recall that in (3) the key assigns c c c the position j = J K ( c ) j = J_K(c) j = J K ( c ) , which the attacker does not know. It knows, however, that G i ( c ) G_i(c) G i ( c ) is the class of tokens with color m j ( i ) m_j^{(i)} m j ( i ) , and that the two color classes partition V \mathcal{V} V . Two accounts therefore have the same green list at c c c exactly when their messages have the same bit at the hidden position,
G i ( c ) = G i ′ ( c ) ⟺ m j ( i ) = m j ( i ′ ) , (4) G_i(c) = G_{i'}(c) \Longleftrightarrow m_j^{(i)} = m_j^{(i')}, \tag*{(4)} G i ( c ) = G i ′ ( c ) ⟺ m j ( i ) = m j ( i ′ ) , (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] j ∈ [ L ] , its account signature
x j = ( x j , 2 , … , x j , n ) ∈ { 0 , 1 } n − 1 , x j , i = ( m j ( i ) + m j ( 1 ) ) m o d 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)} x j = ( x j , 2 , … , x j , n ) ∈ { 0 , 1 } n − 1 , x j , i = ( m j ( i ) + m j ( 1 ) ) mod 2 , (5)
so x j , i = 0 x_{j,i} = 0 x j , i = 0 if account i i i has the same bit as the reference at position j j j , and x j , i = 1 x_{j,i} = 1 x j , i = 1 if it has the opposite bit. The attacker computes every x j x_j x j from the known messages, and by (4) the sets reveal the signature of the hidden position, x J K ( c ) , i = 1 { G i ( c ) ≠ G 1 ( c ) } x_{J_K(c),i} = 1\{G_i(c) \ne G_1(c)\} x J K ( c ) , i = 1 { G i ( c ) = G 1 ( c )} . Positions j j j and j ′ j' j ′ are twins if x j = x j ′ x_j = x_{j'} x j = x j ′ . We write T \mathcal{T} T for the resulting partition of [ L ] [L] [ L ] into twin classes and T ( c ) T(c) T ( c ) for the class of J K ( c ) J_K(c) J K ( c ) . Matching the observed signature against the known ones identifies T ( c ) T(c) T ( c ) , but no comparison of sets can separate twins (Figure 5 ).
Figure 5. Building the set of the target m ′ m' m ′ from twin classes. Top: two accounts with known messages, m ( 1 ) m^{(1)} m ( 1 ) as the reference, and the signature x j x_j x j that marks where m ( 2 ) m^{(2)} m ( 2 ) differs from it. Positions with equal x j x_j x j are twins, here T a = { 1 , 2 } T_a = \{1,2\} T a = { 1 , 2 } and T b = { 3 , 4 } T_b = \{3,4\} T b = { 3 , 4 } . The target m ′ m' m ′ differs from the reference by r j r_j r j , which is constant on each class, so every class fixes one choice between G 1 ( c ) G_1(c) G 1 ( c ) and its complement (6). Middle: at a context c c c the two accounts’ green lists differ, which by (4) means that their messages differ at the hidden position j = J K ( c ) j = J_K(c) j = J K ( c ) , so j ∈ T a j \in T_a j ∈ T a and the attacker boosts G 1 ( c ) G_1(c) G 1 ( c ) . Bottom: at a context c ′ c' c ′ the sets agree, so j ′ ∈ T b j' \in T_b j ′ ∈ T b and the attacker boosts the complement of G 1 ( c ′ ) G_1(c') G 1 ( c ′ ) . Neither step needs the position or the names of the colors. Bit 0 is green, bit 1 is orange, and the set to boost is blue.
Let r j = ( m j ′ + m j ( 1 ) ) m o d 2 r_j = (m'_j + m_j^{(1)}) \bmod2 r j = ( m j ′ + m j ( 1 ) ) mod 2 be the target’s bit relative to the reference. Since G K m ′ ( c ) G_K^{m'}(c) G K m ′ ( c ) is the class of tokens with color m J K ( c ) ′ m'_{J_K(c)} m J K ( c ) ′ , it equals G 1 ( c ) G_1(c) G 1 ( c ) if r J K ( c ) = 0 r_{J_K(c)} = 0 r J K ( c ) = 0 and V ∖ G 1 ( c ) \mathcal{V} \setminus G_1(c) V ∖ G 1 ( c ) otherwise. If r r r is constant on every twin class, with value r T r_T r T on class T T T , the attacker can make this choice from T ( c ) T(c) T ( c ) alone:
G K m ′ ( c ) = { G 1 ( c ) , r T ( c ) = 0 , V ∖ G 1 ( c ) , r T ( c ) = 1. (6) G_K^{m'}(c) =
\begin{cases}
G_1(c), & r_{T(c)} = 0,\\
\mathcal{V} \setminus G_1(c), & r_{T(c)} = 1.
\end{cases} \tag*{(6)} G K m ′ ( c ) = { G 1 ( c ) , V ∖ G 1 ( c ) , r T ( c ) = 0 , r T ( c ) = 1. (6)
The attacker never needs the hidden position or the name of either color. This covers 2 ∣ T ∣ 2^{|\mathcal{T}|} 2 ∣ T ∣ targets, one per choice of the values r T r_T r T (all 2 L 2^L 2 L when every position has a distinct signature). It remains to use these sets to steer the rewrite.
Redirecting the decoded message to m ′ m' m ′ . Let y y y be the source text. We will use a paraphraser model p p a r a p_{\mathrm{para}} p para , a chat model that is asked to rewrite y y y faithfully (Appendix § 11 ). Let z z z be the rewritten text and z < t z_{<t} z < t the rewrite prefix at position t t t . We write
p t ( v ) : = p p a r a ( v ∣ y , z < t ) p_t(v) := p_{\mathrm{para}}(v \mid y, z_{<t}) p t ( v ) := p para ( v ∣ y , z < t )
for the paraphraser’s next-token distribution. The prompt never mentions the watermark, which enters only through the decoding rule below. At the watermark context z < t z_{<t} z < t we have the green-list G K m ′ ( z < t ) G_K^{m'}(z_{<t}) G K m ′ ( z < t ) . We use the hard bias sampler
r t ( v ) ∝ { p t ( v ) , v ∈ G K m ′ ( z < t ) , 0 , otherwise . (7) r_t(v) \propto
\begin{cases}
p_t(v), & v \in G_K^{m'}(z_{<t}),\\
0, & \text{otherwise}.
\end{cases} \tag*{(7)} r t ( v ) ∝ { p t ( v ) , 0 , v ∈ G K m ′ ( z < t ) , otherwise . (7)
We apply (7) when Z t ≥ τ Z_t \ge\tau Z t ≥ τ and G K m ′ ( z < t ) G_K^{m'}(z_{<t}) G K m ′ ( z < t ) contains an available token. Otherwise we retain the full vocabulary and use a soft bias sampler . Choose a δ a t k > 0 \delta_{\mathrm{atk}} > 0 δ atk > 0 and let
r t ( v ) ∝ p t ( v ) exp ( δ a t k 1 { v ∈ G K m ′ ( z < t ) } ) . (8) r_t(v) \propto p_t(v) \exp\left(\delta_{\mathrm{atk}} 1\{v \in G_K^{m'}(z_{<t})\}\right). \tag*{(8)} r t ( v ) ∝ p t ( v ) exp ( δ atk 1 { v ∈ G K m ′ ( z < t )} ) . (8)
Thus τ = 0 \tau= 0 τ = 0 forces a target-compatible token whenever possible, while larger τ \tau τ leaves low-mass contexts closer to the paraphraser.
The decoder relies on distinct context-token pairs for its efficacy. Since context-token pairs can repeat too often (recall that context-token pairs can reappear due to fixed context length ℓ \ell ℓ ), and constrained decoding tends to loop, we block repeated 4-grams ((Paulus et al., 2018)). Algorithm 1 in Appendix § 9 lists the complete attack for binary MPAC.
Figure 6. The certified attack on a rewrite z z z , for L = 4 L = 4 L = 4 with twin classes T a = { 1 , 2 } T_a = \{1, 2\} T a = { 1 , 2 } and T b = { 3 , 4 } T_b = \{3, 4\} T b = { 3 , 4 } . Top: z z z read as the sequence of pairs ( c t , z t ) (c_t, z_t) ( c t , z t ) , one vote each, with σ ( c t , z t ) = + 1 \sigma(c_t, z_t) = +1 σ ( c t , z t ) = + 1 when z t z_t z t lies in the recovered target green list G K m ′ ( c t ) G_K^{m'}(c_t) G K m ′ ( c t ) and − 1 -1 − 1 otherwise. The context c 1 c_1 c 1 occurs three times, at t = 1 , 4 , 9 t = 1, 4, 9 t = 1 , 4 , 9 . Bottom left: the pairs grouped by context with the vote sum of each context. Bottom middle: the attacker knows J K ( c 1 ) ∈ { 1 , 2 } J_K(c_1) \in\{1, 2\} J K ( c 1 ) ∈ { 1 , 2 } but not whether it is 1 or 2, so Π O \Pi_O Π O draws the position of every context uniformly from its class, independently across contexts. Each draw gives the margins M j ( J ) M_j(J) M j ( J ) , and E E E holds when every margin is positive. E E E fails when c 3 c_3 c 3 cancels c 2 c_2 c 2 (draw 2) or when no pair lands on position 2 (draw 3). Bottom right: the share of draws with E E E is the certificate, a lower bound on the probability that the decoder reads z z z as m ′ m' m ′ . In this small example Pr [ E ] \Pr[E] Pr [ E ] is computed by hand, 2 / 8 2/8 2/8 for T a T_a T a (positions of c 1 c_1 c 1 and c 2 c_2 c 2 differ and c 3 c_3 c 3 joins c 1 c_1 c 1 ) times 6 / 8 6/8 6/8 for T b T_b T b (not all three contexts on one position), whereas the experiments estimate it by Monte Carlo over draws of J J J .
Certification
Upper bound on attack success. The comparisons in § 3.1 reveal the twin class T ( c ) T(c) T ( c ) of the hidden position J K ( c ) J_K(c) J K ( c ) , but cannot distinguish the positions inside that class. Recall that r j = ( m j ′ + m j ( 1 ) ) m o d 2 r_j = (m'_j + m_j^{(1)}) \mathbin{\bmod} 2 r j = ( m j ′ + m j ( 1 ) ) mod 2 records whether the target differs from the reference account at position j j j . For each twin class T T T , define
a T : = ∑ j ∈ T r j . (9) a_T := \sum_{j \in T} r_j. \tag*{(9)} a T := j ∈ T ∑ r j . (9)
Thus a T a_T a T is the number of positions in T T T at which the target differs from the reference. The attacker knows this number, but the observations do not identify which a T a_T a T of the ∣ T ∣ |T| ∣ T ∣ hidden positions carry those differences. There are ( ∣ T ∣ a T ) \binom{|T|}{a_T} ( a T ∣ T ∣ ) possible placements. The choices combine across twin classes, giving the ambiguity multiplicity
N ( M , m ′ ) : = ∏ T ∈ T ( ∣ T ∣ a T ) . (10) N(M,m') := \prod_{T \in\mathcal{T}} \binom{|T|}{a_T}. \tag*{(10)} N ( M , m ′ ) := T ∈ T ∏ ( a T ∣ T ∣ ) . (10)
This count uses only the known account messages and the chosen target; it does not require the secret key.
Theorem 1 (Targeting bound). Under the symmetry assumptions of Appendix § 18 , every attack A A A against the distortion watermarking satisfies, for every target m ′ m' m ′ ,
Pr [ D K ( A ( O ) ) = m ′ ∣ O ] ≤ ( ∏ T ∈ T ( ∣ T ∣ a T ) ) − 1 . (11) \Pr\left[D_K(A(O)) = m' \mid O\right] \le\left(\prod_{T \in\mathcal{T}} \binom{|T|}{a_T}\right)^{-1}. \tag*{(11)} Pr [ D K ( A ( O )) = m ′ ∣ O ] ≤ ( T ∈ T ∏ ( a T ∣ T ∣ ) ) − 1 . (11)
The proof, including adaptive observations, attack randomness, and decoder ties, is given in Appendices § 18 and § 19 .
Remark 1. In Appendix § 18 we present an elegant group-theoretic characterization of the twin sets and relate the group’s orbit to the ambiguity multiplicity.
Attacker-side lower bound. Theorem 1 limits the success of any attack. Next, we will compute certificates that evaluate how good our attack has inserted the target watermark message m ′ m' m ′ into the rewrite z z z . The decoder scores the distinct context–token pairs P ( z ) : = { ( z t − ℓ : t , z t ) : 1 ≤ t ≤ ∣ z ∣ } \mathcal{P}(z) := \{(z_{t-\ell:t}, z_t) : 1 \le t \le|z|\} P ( z ) := {( z t − ℓ : t , z t ) : 1 ≤ t ≤ ∣ z ∣ } . Each context-token pair induces a hidden position J K ( z t − ℓ : t ) J_K(z_{t-\ell:t}) J K ( z t − ℓ : t ) . For every ( c , v ) ∈ P ( z ) (c,v) \in\mathcal{P}(z) ( c , v ) ∈ P ( z ) , the attacker computes the twin class T ( c ) T(c) T ( c ) of J K ( c ) J_K(c) J K ( c ) , with T ( c ) : = [ L ] T(c) := [L] T ( c ) := [ L ] if no class matched. Then we collect votes for estimating whether the next token v v v is in the target message green list or not.
σ ( c , v ) : = { + 1 , recovery shows v ∈ G K ( m ′ ) ( c ) , − 1 , otherwise. (12) \sigma(c,v) :=
\begin{cases}
+1, & \text{recovery shows } v \in G_K^{(m')}(c),\\
-1, & \text{otherwise.}
\end{cases} \tag*{(12)} σ ( c , v ) := { + 1 , − 1 , recovery shows v ∈ G K ( m ′ ) ( c ) , otherwise. (12)
Recall that the exact position of J K ( c ) J_K(c) J K ( c ) inside T ( c ) T(c) T ( c ) stays hidden. We therefore define Π O \Pi_O Π O as the distribution that draws an assignment J J J uniform on T ( c ) T(c) T ( c ) , independently across distinct contexts. We next define a margin M j ( J ) M_j(J) M j ( J ) that counts how often we have sampled from the green list as follows:
M j ( J ) : = ∑ ( c , v ) ∈ P ( z ) : J ( c ) = j σ ( c , v ) . (13) M_j(J) := \sum_{(c,v)\in\mathcal{P}(z):\,J(c)=j} \sigma(c,v). \tag*{(13)} M j ( J ) := ( c , v ) ∈ P ( z ) : J ( c ) = j ∑ σ ( c , v ) . (13)
Finally, E E E contains all realization of J J J for which we have a positive margin for every message position:
E : = { J : M j ( J ) > 0 for every j ∈ [ L ] } . (14) E := \{J : M_j(J) > 0 \text{ for every } j \in[L]\}. \tag*{(14)} E := { J : M j ( J ) > 0 for every j ∈ [ L ]} . (14)
Theorem 2 (Certificate validity). Under the posterior Π O \Pi_O Π O and any decoder D K D_K D K
Cert ( z , m ′ ∣ O ) : = Pr J ∼ Π O [ E ] ≤ Pr [ D K ( z ) = m ′ ∣ O ] , (15) \operatorname{Cert}(z,m' \mid O) := \Pr_{J \sim\Pi_O}[E] \le\Pr[D_K(z) = m' \mid O], \tag*{(15)} Cert ( z , m ′ ∣ O ) := J ∼ Π O Pr [ E ] ≤ Pr [ D K ( z ) = m ′ ∣ O ] , (15) with equality if G K ( m ′ ) G_K^{(m')} G K ( m ′ ) was recovered exactly.
The proof is given in Appendix § 20 . We estimate the certificate by Monte Carlo over draws of $J ({xref}Algorithm 2 in {xref}Appendix B), and it is zero when $N(M,m') > 1$. Under the $\tau = 0$ rule every $\sigma$ is $+1$, so $M_j(J)$ counts the pairs at $j$ and $E$ only asks that every position be covered. The fallback and soft rules also need positive margins. {citet}Theorem 3 ({xref}Appendix N`) adds an analytic bound in terms of the true vote counts.
Experiments
Setup. We attack five published multi-bit schemes: MPAC (Yoo et al., 2024), RSBH (Qu et al., 2025), StealthInk (Jiang et al., 2025), XMark (Xu et al., 2026), and CycleShift (Fernandez et al., [18 ] ). The watermarked texts are completions of prompts from the RealNewsLike subset of C4 (Raffel et al., 2020), written by four generators, Llama-2-7B (Touvron et al., 2023), Llama-3.1-8B (Grattafiori et al., [25 ] ), Qwen3.5-4B, and Qwen3.5-9B (Qwen Team, 2026). The attacker uses the same model as chat model for rewriting. We measure attack efficacy by the exact-match rate, the fraction of rewrites whose decoded message equals the target, and by bit accuracy. We compare both metrics with the symmetry upper bound of Theorem 1 in the binary position–color case, with its scheme-specific counterpart otherwise, and with the attacker’s certificate (15) . Appendix § 10 gives the corpora, decoding settings, attack conditions, the formal definitions of every metric, and the implementation details.
Steering MPAC across generators. Table 1 steers MPAC on all four generators, from the attacker’s own account and from enough colluding accounts to separate every message position. Both reach the target in almost every text, for 8- and 16-bit messages alike, while a paraphrase without watermark knowledge stays at chance. The rewrites keep the source’s topic and part of its wording but drift from its content. Targets that the theory declares unreachable are never decoded exactly (Figure 7 ). Appendix § 13 reports the same table for the other four schemes (Table 4 ). @references#+#+#+#+ иҳәеит
Figure 7. Exact-match success against the number of colluding accounts for five schemes and message lengths L ∈ { 8 , 16 , 32 } L \in\{8,16,32\} L ∈ { 8 , 16 , 32 } at 200 tokens per text, mean over the four generators Llama-2-7B, Llama-3.1-8B, Qwen3.5-4B, and Qwen3.5-9B (per-generator panels in Appendix § 14 , 64-bit messages and other text lengths in Appendix § 15 ). Dashed: the upper-bound certificate, the mean scheme-specific symmetry bound over the drawn targets (shaded: ruled out), and the lower-bound certificate, the mean of (15) over the τ = 0 \tau= 0 τ = 0 rewrites. Circles: the τ = 0 \tau= 0 τ = 0 rule, band: its range over the generators. Diamonds: τ = 10 − 3 \tau= 10^{-3} τ = 1 0 − 3 . Dotted: the decoder’s exact-match rate on the untouched source. CycleShift falls to a single account, so its panels show a random target from one account at n = 1 n = 1 n = 1 , extended flat because any larger coalition can use one account, with the chunked variant of Appendix § 10 at 32 bits. Its lower-bound certificate is zero for Llama-2-7B at 16 bits, whose vocabulary is smaller than the 2 16 2^{16} 2 16 shifts, so one account reveals only part of the keyed set.
Table 1. Steering binary MPAC on four generators. BA: bit accuracy of the decoded message to the attacker’s target, EM: exact-match rate, both in percent. Every cell averages the 100 watermarked texts of one generator and message length, each rewritten once per condition (800 sources and 2,400 rewrites in all). ↑: higher is better. Clean: BA of the watermarked source to its own message. No attack: the same paraphraser, with the same 4-gram block but no watermark knowledge, scored against a random target, i.e., chance. Own account: the attacker uses only its own account and targets the complement of its own message m ˉ \bar{m} m ˉ . n n n accounts: n = 8 n = 8 n = 8 (L = 8 L = 8 L = 8 ) or n = 12 n = 12 n = 12 (L = 16 L = 16 L = 16 ) colluding accounts and a uniformly random target. Fidelity to the source, for the paraphrase without the attack (para.) and for the n n n -account rewrite (attack): BERTScore F1 and ROUGE-L F1 against the watermarked source, and the mean score of two LLM judges on a 1 to 5 scale (Appendix § 10 ).
Table 4. Steering other multi-bit schemes with 8-bit messages, per generator with the mean over the four generators. Same accuracy metrics as Table 1 , with BERTScore and perplexity under Llama-2-13B (source and attack rewrite) as text metrics. ↑ (↓): higher (lower) is better. The colluding column uses the largest number of accounts run for each scheme, n max n_{\max} n m a x , and for CycleShift a random target from the own account alone. CycleShift: the payload cyclically shifts one secret set, so one account reveals every payload’s set. RSBH: public segments and an RS(4,2) code over GF(16) whose released decoder falls back to the raw payload when decoding fails. XMark: public blocks from the two previous tokens and two keyed quarterings of the vocabulary, with the 2-bit symbol suppressing one quarter under both. StealthInk: the released 2-bit chunks, for which the accuracy columns report symbol accuracy over the four 2-bit positions, and a binary variant.
Collusion across schemes
Figure 7 sweeps the number of colluding accounts for every scheme at 8, 16, and 32 bits. Success tracks the symmetry upper bound and meets it once the accounts make the target structurally reachable, so each scheme’s residual ambiguity decides how many accounts it withstands: CycleShift falls to a single account, MPAC and StealthInk once the accounts separate every message position or show every symbol value, XMark once every symbol value has appeared at every block, and RSBH only to coalitions large enough to cover its codeword symbols. Message length changes none of this up to 16 bits. At 32 bits the bound still reaches one, but 200 tokens spread too few votes over each position for a reliable majority, so success falls short of the bound until the target grows (Appendix § 15 ), and 64-bit messages exceed what 200 tokens carry for every scheme. Across schemes, a paraphrase without watermark knowledge stays at chance.
Empirical check of the certificate
Table 2 compares the certificate of every rewrite with whether the decoder read the target, under the forced rule and under the rule that leaves low-mass contexts to the paraphraser. A certificate of one is never wrong, a certificate of zero almost never sees the target decoded, and in between the certificate stays below the realized success for MPAC, RSBH, and StealthInk and matches it for XMark, so the attacker can treat it as the lower bound it claims to be and release only the rewrites it vouches for. The few conditions in which the mean certificate exceeds the realized success by more than its sampling error concentrate on XMark and RSBH, whose public positions leave the posterior only the unrevealed colors to draw.
Table 2. Certificate against realized success over all rewrites at 200 tokens under the τ = 0 \tau= 0 τ = 0 and τ = 10 − 3 \tau= 10^{-3} τ = 1 0 − 3 rules (9,200 to 12,900 rewrites per scheme and rule), grouped by certificate value: the success rate where the certificate is one, the mean certificate and the success rate where it lies strictly between zero and one, and the success rate where it is zero, in percent. Flagged: conditions (corpus and account setting) whose mean certificate exceeds the realized success by more than two standard errors. ↑ (↓): higher (lower) is better.
Conclusion
Targeted displacement is, to our knowledge, the first attack that steers a multi-bit LLM watermark to a chosen message without the key. On five published schemes its success meets the predicted upper bound once enough accounts collude. We argue that our attack can be successfully executed for insiders on closed source LLMs, with potential security implications, including identity theft.
Limitations
The limitations of our paper are the assumptions of its threat model. Our attacker knows the watermarking scheme and its public hyperparameters but not the secret key. It has the unwatermarked base model and its tokenizer. It controls accounts whose embedded identifiers it knows, all watermarked under the provider’s single key, and it reads the next-token distributions of these accounts at the contexts of its rewrite. These assumptions are, however, standard in the watermarking literature. That the attacker knows everything except the key is Kerckhoffs’ principle, which the watermark stealing threat model adopts explicitly (Jovanović et al., 2024). Access to the unwatermarked distribution of the model is the available base responses setting of the same threat model and of its successors [7 ] (Jovanović et al. 2024), and it is the attacker against which stealthiness is argued (Jiang et al., 2025). Accounts with known identifiers are the spoofing adversary against which RSBH is argued secure (Qu et al., 2025), and a single provider key with the identifier as the message is how every scheme we study embeds it [18 ] (Yoo et al. 2024; Qu et al. 2025; Jiang et al. 2025; Xu et al. 2026). Next-token log-probabilities are returned by public APIs and assumed by prior attacks [7 ] (Pang et al. 2024). Our attacker reads the full distribution, which idealizes the top-k k k entries that APIs return. A provider that hides account identifiers, keys the labeling per account, or withholds log-probabilities removes what the attacker reads, and we do not measure the query cost of sample access, under which the symmetry bound still holds.
Ethics Statement
This work was conducted in accordance with the ACL Code of Ethics and the ACM Code of Ethics and Professional Conduct, and we have adhered to the rules throughout this research. We recognize that the attack we describe could be misused to make a watermark decoder attribute a harmful text to a user who did not write it, and that decoded identifiers may feed moderation or legal decisions. Our intention is to show providers and scheme designers that attribution by a multi-bit watermark can be displaced without the key, so that a decoded identifier is not treated as conclusive evidence on its own and so that future schemes are designed against this threat. The symmetry bound also tells a provider which targets no attacker can reach. All experiments use public prompts, open-weight models, and accounts that we simulate locally, and no deployed service or real user was involved. We also acknowledge that appropriate safeguards and further evaluation are necessary to mitigate risks in real world applications.
Explicit transformations and recovery rules
This appendix instantiates the transformation Φ \Phi Φ for every watermark studied in this paper. Fix a context c c c and abbreviate p v = p ( v ∣ c ) p_v = p(v \mid c) p v = p ( v ∣ c ) , q i , v = q i ( v ∣ c ) q_{i,v} = q_i(v \mid c) q i , v = q i ( v ∣ c ) , and ℓ i ( v ) = log q i , v − log p v \ell_i(v) = \log q_{i,v} - \log p_v ℓ i ( v ) = log q i , v − log p v . The equations below describe population distributions. Under sample access, q i q_i q i is replaced by its empirical estimate.
General inversion. Given an arbitrary function Φ \Phi Φ , recall that (P1) states
p i ( ⋅ ∣ c ) = Φ ( p ( ⋅ ∣ c ) , G i ( c ) ) . (16) p_i(\cdot\mid c) = \Phi\left(p(\cdot\mid c), G_i(c)\right). \tag*{(16)} p i ( ⋅ ∣ c ) = Φ ( p ( ⋅ ∣ c ) , G i ( c ) ) . (16)
For some Φ \Phi Φ inverting through it to compute G i ( c ) G_i(c) G i ( c ) given p p p and p i p_i p i might not be possible. However, Φ \Phi Φ defines which candidate sets are consistent with the observed distribution. Under exact distribution access, these candidates are
S i ( c ) : = { S ⊆ V : Φ ( p ( ⋅ ∣ c ) , S ) = q i ( ⋅ ∣ c ) } = arg min S ⊆ V d T V ( q i ( ⋅ ∣ c ) , Φ ( p ( ⋅ ∣ c ) , S ) ) , (17) \mathcal{S}_i(c) := \{S \subseteq\mathcal{V} : \Phi(p(\cdot\mid c), S) = q_i(\cdot\mid c)\}
= \mathop{\arg\min}_{S \subseteq\mathcal{V}} d_{\mathrm{TV}}(q_i(\cdot\mid c), \Phi(p(\cdot\mid c), S)), \tag*{(17)} S i ( c ) := { S ⊆ V : Φ ( p ( ⋅ ∣ c ) , S ) = q i ( ⋅ ∣ c )} = arg min S ⊆ V d TV ( q i ( ⋅ ∣ c ) , Φ ( p ( ⋅ ∣ c ) , S )) , (17)
where d T V ( r , s ) : = 1 2 ∑ v ∈ V ∣ r ( v ) − s ( v ) ∣ d_{\mathrm{TV}}(r,s) := \frac{1}{2}\sum_{v \in\mathcal{V}} \lvert r(v)-s(v)\rvert d TV ( r , s ) := 2 1 ∑ v ∈ V ∣ r ( v ) − s ( v )∣ is total-variation distance. This inverts (P1): each scheme uses its own public Φ \Phi Φ (Appendix § 8 ). If S i ( c ) \mathcal{S}_i(c) S i ( c ) is a singleton, it identifies G i ( c ) G_i(c) G i ( c ) , and otherwise we constrain only memberships on which all candidates agree, replacing q i q_i q i by its empirical estimate under sample access. Figure 4 works through the MPAC case: the log-ratio of the two distributions takes only two values, and the midpoint threshold between them returns the set exactly. By (P2), these memberships are the only way the key enters decoding, so controlling them suffices to control the decoder without recovering K K K .
Figure 4. Recovering an account’s set for MPAC at one context. Top: the key colors the vocabulary and selects position 1, where account i i i ’s message has bit 0, so generation boosts G i ( c ) = { a , c , e } G_i(c)=\{a,c,e\} G i ( c ) = { a , c , e } . The attacker sees none of this. Bottom: the attacker queries the account and the base model at c c c . By the public rule (P1), every token of the hidden set has its probability multiplied by e δ e^\delta e δ before renormalization, so the log-ratio ℓ i ( v ) = log q i ( v ) − log p ( v ) \ell_i(v)=\log q_i(v)-\log p(v) ℓ i ( v ) = log q i ( v ) − log p ( v ) takes only two values, δ − log Z i \delta-\log Z_i δ − log Z i inside the set and − log Z i -\log Z_i − log Z i outside it, where Z i = 1 + ( e δ − 1 ) ∑ v ∈ G i ( c ) p ( v ) = 3.9 Z_i=1+(e^\delta-1)\sum_{v\in G_i(c)}p(v)=3.9 Z i = 1 + ( e δ − 1 ) ∑ v ∈ G i ( c ) p ( v ) = 3.9 . The midpoint θ i \theta_i θ i separates the two and returns { a , c , e } \{a,c,e\} { a , c , e } exactly, without the key. The position J K ( c ) J_K(c) J K ( c ) and the name of the color stay hidden. Appendix § 8 gives the rule for every scheme.
A shared additive transformation. MPAC, CycleShift, RSBH, and XMark use the same operation once their message-conditioned set has been constructed. For S ⊆ V S \subseteq\mathcal{V} S ⊆ V and bias δ > 0 \delta> 0 δ > 0 , define
A δ ( p , S ) v : = p v exp ( δ 1 { v ∈ S } ) Z δ ( p , S ) , Z δ ( p , S ) : = 1 + ( e δ − 1 ) ∑ u ∈ S p u . (18) A_\delta(p,S)_v := \frac{p_v \exp(\delta\mathbf{1}\{v \in S\})}{Z_\delta(p,S)},
\qquad
Z_\delta(p,S) := 1 + (e^\delta- 1)\sum_{u \in S}p_u. \tag*{(18)} A δ ( p , S ) v := Z δ ( p , S ) p v exp ( δ 1 { v ∈ S }) , Z δ ( p , S ) := 1 + ( e δ − 1 ) u ∈ S ∑ p u . (18)
If q i = A δ ( p , G i ) q_i = A_\delta(p,G_i) q i = A δ ( p , G i ) , write Z i : = Z δ ( p , G i ) Z_i := Z_\delta(p,G_i) Z i := Z δ ( p , G i ) . Then
ℓ i ( v ) = { δ − log Z i , v ∈ G i , − log Z i , v ∉ G i . (19) \ell_i(v) =
\begin{cases}
\delta- \log Z_i, & v \in G_i,\\
-\log Z_i, & v \notin G_i.
\end{cases} \tag*{(19)} ℓ i ( v ) = { δ − log Z i , − log Z i , v ∈ G i , v ∈ / G i . (19)
Thus the exact inversion rule is
θ i : = 1 2 ( max v ℓ i ( v ) + min v ℓ i ( v ) ) , G i ( c ) = { v ∈ V : ℓ i ( v ) > θ i } . (20) \theta_i := \frac{1}{2}\left(\max_v \ell_i(v) + \min_v \ell_i(v)\right),
\qquad
G_i(c) = \{v \in\mathcal{V} : \ell_i(v) > \theta_i\}. \tag*{(20)} θ i := 2 1 ( v max ℓ i ( v ) + v min ℓ i ( v ) ) , G i ( c ) = { v ∈ V : ℓ i ( v ) > θ i } . (20)
This rule uses only the two observable distributions. The normalizer is common to every token and therefore need not be known.
MPAC. At context c c c , the key selects a position J K ( c ) J_K(c) J K ( c ) and a vocabulary coloring C K ( c , ⋅ ) C_K(c,\cdot) C K ( c , ⋅ ) . Writing V K , c , s : = { v : C K ( c , v ) = s } V_{K,c,s} := \{v : C_K(c,v) = s\} V K , c , s := { v : C K ( c , v ) = s } , the message-conditioned set is
G K m ( c ) = V K , c , m J K ( c ) . (21) G_K^m(c) = V_{K,c,m_{J_K(c)}}. \tag*{(21)} G K m ( c ) = V K , c , m J K ( c ) . (21)
Generation uses
Φ M P A C ( p , G K m ( c ) ) = A δ ( p , G K m ( c ) ) . (22) \Phi_{\mathrm{MPAC}}(p,G_K^m(c)) = A_\delta(p,G_K^m(c)). \tag*{(22)} Φ MPAC ( p , G K m ( c )) = A δ ( p , G K m ( c )) . (22)
Consequently, a controlled account’s set G i ( c ) G_i(c) G i ( c ) is recovered directly by (20) . The key, selected position, and absolute color name are not recovered by this operation.
CycleShift. Let R = max ( 2 L , ∣ V ∣ ) R = \max(2^L,\lvert\mathcal{V}\rvert) R = max ( 2 L , ∣ V ∣) , let ⟨ m ⟩ ∈ [ 2 L ] \langle m\rangle\in[2^L] ⟨ m ⟩ ∈ [ 2 L ] be the integer represented by the message, and let H K ( c ) ⊆ [ R ] H_K(c) \subseteq[R] H K ( c ) ⊆ [ R ] be the keyed base set. The set associated with message m m m is the cyclic shift
G K m ( c ) = { v ∈ V : ( v + ⟨ m ⟩ ) m o d R ∈ H K ( c ) } . (23) G_K^m(c) = \{v \in\mathcal{V} : (v + \langle m\rangle) \bmod R \in H_K(c)\}. \tag*{(23)} G K m ( c ) = { v ∈ V : ( v + ⟨ m ⟩) mod R ∈ H K ( c )} . (23)
Its transformation is again additive,
Φ C S ( p , G K m ( c ) ) = A δ ( p , G K m ( c ) ) , (24) \Phi_{\mathrm{CS}}(p,G_K^m(c)) = A_\delta(p,G_K^m(c)), \tag*{(24)} Φ CS ( p , G K m ( c )) = A δ ( p , G K m ( c )) , (24)
so (20) recovers G i ( c ) G_i(c) G i ( c ) . When R = ∣ V ∣ R = \lvert\mathcal{V}\rvert R = ∣ V ∣ , the controlled message also recovers the base set and every target set:
H K ( c ) = { ( v + ⟨ m ( i ) ⟩ ) m o d R : v ∈ G i ( c ) } , G K m ′ ( c ) = { v : ( v + ⟨ m ′ ⟩ ) m o d R ∈ H K ( c ) } . (25) H_K(c) = \{(v + \langle m^{(i)}\rangle) \bmod R : v \in G_i(c)\},
\qquad
G_K^{m'}(c) = \{v : (v + \langle m'\rangle) \bmod R \in H_K(c)\}. \tag*{(25)} H K ( c ) = {( v + ⟨ m ( i ) ⟩) mod R : v ∈ G i ( c )} , G K m ′ ( c ) = { v : ( v + ⟨ m ′ ⟩) mod R ∈ H K ( c )} . (25)
If R > ∣ V ∣ R > \lvert\mathcal{V}\rvert R > ∣ V ∣ , the account reveals only the coordinates of the extended set that are represented in the model vocabulary.
RSBH. Let Enc ( m ) = ( a 0 ( m ) , … , a r − 1 ( m ) ) \operatorname{Enc}(m) = (a_0(m),\ldots,a_{r-1}(m)) Enc ( m ) = ( a 0 ( m ) , … , a r − 1 ( m )) be the public Reed–Solomon codeword and let σ ( c ) ∈ [ r ] \sigma(c) \in[r] σ ( c ) ∈ [ r ] be the public segment selected by the context. For each context and symbol value a a a , the key determines a set H K , c , a ⊆ V H_{K,c,a} \subseteq\mathcal{V} H K , c , a ⊆ V . Hence
G K m ( c ) = H K , c , a σ ( c ) ( m ) , (26) G_K^m(c) = H_{K,c,a_{\sigma(c)}(m)}, \tag*{(26)} G K m ( c ) = H K , c , a σ ( c ) ( m ) , (26)
Φ R S B H ( p , G K m ( c ) ) = A δ ( p , G K m ( c ) ) . \Phi_{\mathrm{RSBH}}(p,G_K^m(c)) = A_\delta(p,G_K^m(c)). Φ RSBH ( p , G K m ( c )) = A δ ( p , G K m ( c )) .
Equation (20) therefore recovers, from account i i i , the set indexed by its codeword symbol a σ ( c ) ( m ( i ) ) a_{\sigma(c)}(m^{(i)}) a σ ( c ) ( m ( i ) ) . It does not reveal sets belonging to other symbol values. In the released construction, the set for symbol value 0 0 0 is generated without the secret multiplier and is therefore public as well.
XMark. A message consists of B = L / 2 B = L/2 B = L /2 symbols m 1 , … , m B ∈ { 0 , 1 , 2 , 3 } m_1,\ldots,m_B \in\{0,1,2,3\} m 1 , … , m B ∈ { 0 , 1 , 2 , 3 } of two bits each. The block of a token is public: if c = ( u , w ) c = (u,w) c = ( u , w ) are the two preceding tokens, the block is σ ( c ) = ( u + w ) m o d B \sigma(c) = (u+w) \bmod B σ ( c ) = ( u + w ) mod B . The key seeds two permutations of the vocabulary at c c c , each cut into four quarters, which give every token two quarter labels Q K 1 ( c , v ) , Q K 2 ( c , v ) ∈ { 0 , 1 , 2 , 3 } Q_K^1(c,v), Q_K^2(c,v) \in\{0,1,2,3\} Q K 1 ( c , v ) , Q K 2 ( c , v ) ∈ { 0 , 1 , 2 , 3 } . Symbol s s s boosts the tokens that lie outside quarter s s s under both permutations, the dark set
D K , c , s : = { v : Q K 1 ( c , v ) ≠ s and Q K 2 ( c , v ) ≠ s } . (27) D_{K,c,s} := \{v : Q_K^1(c,v) \ne s \text{ and } Q_K^2(c,v) \ne s\}. \tag*{(27)} D K , c , s := { v : Q K 1 ( c , v ) = s and Q K 2 ( c , v ) = s } . (27)
which holds 9/16 of the vocabulary. Hence
G K m ( c ) = D K , c , m σ ( c ) , Φ X M ( p , G K m ( c ) ) = A δ ( p , G K m ( c ) ) . (28) G^{m}_{K}(c)=D_{K,c,m_{\sigma(c)}}, \qquad
\Phi_{\mathrm{XM}}(p,G^{m}_{K}(c))=A_{\delta}(p,G^{m}_{K}(c)). \tag*{(28)} G K m ( c ) = D K , c , m σ ( c ) , Φ XM ( p , G K m ( c )) = A δ ( p , G K m ( c )) . (28)
The decoder gives every scored token one vote for its quarter under the first permutation and, if that quarter differs, one for its quarter under the second, and collects the votes per block, and outputs the symbol with the fewest votes. A token votes for s s s exactly when it lies outside D K , c , s D_{K,c,s} D K , c , s , so the vote count of s s s at a block is the number of its tokens outside the dark set of s s s , and the decoder reads the key only through membership in the sets G K m ( c ) G^{m}_{K}(c) G K m ( c ) , as (P2) requires. The released code seeds the two permutations with fixed public constants, which we replace by a secret key and a second key derived from it. Equation (20) recovers from account i i i the dark set D K , c , a D_{K,c,a} D K , c , a of its symbol a = m σ ( c ) ( i ) a=m^{(i)}_{\sigma(c)} a = m σ ( c ) ( i ) and hence its complement U K , c , a : = V ∖ D K , c , a U_{K,c,a}:=\mathcal{V}\setminus D_{K,c,a} U K , c , a := V ∖ D K , c , a , the tokens that lie in quarter a a a under at least one permutation. It reveals neither the two quarters separately nor the dark sets of the other symbol values. Because the block is public, the sets of different accounts at the same context combine by symbol value. The target’s dark set at a context is available exactly when some account carries the target’s symbol s ′ s' s ′ at that block, or when at most one symbol value is unseen there: if a a a and b b b are two known values other than s ′ s' s ′ , a token in U K , c , a ∩ U K , c , b U_{K,c,a}\cap U_{K,c,b} U K , c , a ∩ U K , c , b has one quarter equal to a a a and the other equal to b b b , so both differ from s ′ s' s ′ and the token lies in D K , c , s ′ D_{K,c,s'} D K , c , s ′ . The implementation forces the tokens that lie in at least two known non-target unions, a subset of D K , c , s ′ D_{K,c,s'} D K , c , s ′ that is certain under every labeling consistent with the observations. When the target’s symbol is unseen and two or more symbol values are unseen at a block, these values are interchangeable in the attacker’s view, and the orbit of the target gains a factor equal to their number.
StealthInk. Here the exact transformation uses an ordered vocabulary partition, not only the selected chunk as an unordered set. Let π K ( c ) = ( π 1 , … , π ∣ V ∣ ) \pi_{K}(c)=(\pi_{1},\ldots,\pi_{|\mathcal{V}|}) π K ( c ) = ( π 1 , … , π ∣ V ∣ ) be the keyed permutation, split into contiguous chunks. If s = m J K ( c ) s=m_{J_{K}(c)} s = m J K ( c ) and the index interval of chunk s s s is { a + 1 , … , b } \{a+1,\ldots,b\} { a + 1 , … , b } , then
G K m ( c ) = { π a + 1 , … , π b } . (29) G^{m}_{K}(c)=\{\pi_{a+1},\ldots,\pi_{b}\}. \tag*{(29)} G K m ( c ) = { π a + 1 , … , π b } . (29)
Put F 0 = 0 F_{0}=0 F 0 = 0 and F r = ∑ j = 1 r p π j F_{r}=\sum_{j=1}^{r}p_{\pi_{j}} F r = ∑ j = 1 r p π j , and let I = [ F a , F b ] I=[F_{a},F_{b}] I = [ F a , F b ] and I ⋆ = [ 1 − F b , 1 − F a ] I^{\star}=[1-F_{b},1-F_{a}] I ⋆ = [ 1 − F b , 1 − F a ] . Define
w I ( x ) : = 1 + 1 { x ∈ I ⋆ } − 1 { x ∈ I } . (30) w_{I}(x):=1+\mathbf{1}\{x\in I^{\star}\}-\mathbf{1}\{x\in I\}. \tag*{(30)} w I ( x ) := 1 + 1 { x ∈ I ⋆ } − 1 { x ∈ I } . (30)
The released cumulative reweighting is exactly
Φ S I ( p , π K ( c ) , s ) π r = ∫ F r − 1 F r w I ( x ) d x . (31) \Phi_{\mathrm{SI}}(p,\pi_{K}(c),s)_{\pi_{r}}=\int_{F_{r-1}}^{F_{r}}w_{I}(x)\,\mathrm{d}x. \tag*{(31)} Φ SI ( p , π K ( c ) , s ) π r = ∫ F r − 1 F r w I ( x ) d x . (31)
The selected part of the probability interval receives weight 0, its reflection about 1 / 2 1/2 1/2 receives weight 2, and their overlap and the remainder receive weight 1. Since a token in the selected chunk has its whole cumulative interval inside I I I , whereas every other token lies outside I I I , the exact membership implications are
q i , v < p v ⟹ v ∈ G i ( c ) , q_{i,v}<p_{v}\ \Longrightarrow\ v\in G_{i}(c), q i , v < p v ⟹ v ∈ G i ( c ) ,
q i , v > p v ⟹ v ∉ G i ( c ) , q_{i,v}>p_{v}\ \Longrightarrow\ v\notin G_{i}(c), q i , v > p v ⟹ v ∈ / G i ( c ) ,
q i , v = p v ⟹ v is unresolved . (32) q_{i,v}=p_{v}\ \Longrightarrow\ v\text{ is unresolved}. \tag*{(32)} q i , v = p v ⟹ v is unresolved . (32)
Thus this transformation generally reveals only part of G i ( c ) G_{i}(c) G i ( c ) and part of its complement. The implementation uses the numerically conservative log-ratio rules log ( q i , v / p v ) < − 5 \log(q_{i,v}/p_{v})<-5 log ( q i , v / p v ) < − 5 for inside and log ( q i , v / p v ) > 0.2 \log(q_{i,v}/p_{v})>0.2 log ( q i , v / p v ) > 0.2 for outside, leaving the remainder unresolved. When applying (17) to this scheme, a candidate consists of a chunk together with a compatible ordering π \pi π , because the ordering affects the output probabilities.
Pseudocode of the attack on MPAC
Algorithm 1 lists the attack of § 3 for binary MPAC, with the green-list recovery rule of Appendix § 8 , and Algorithm 2 the certification of § 3.2 . Both are written for one source text. The attacker queries its accounts and the base model at a context once and caches the recovered lists. With exact next-token distributions the log-ratio ℓ i \ell_i ℓ i takes exactly two values at a context, so the midpoint threshold recovers G i ( c ) G_i(c) G i ( c ) exactly, and under sample access the empirical estimates of Appendix § 8 take its place. The experiments use S = 1,000 \mathcal{S}=1{,}000 S = 1 , 000 draws for the certificate.
Experimental details
Corpora. Every corpus consists of 100 completions of C4 prompts (Raffel et al., 2020) with 200 tokens each, sampled at temperature 0.7 and top-p p p 0.9 (Holtzman et al., 2020) from the generator under one secret key and one attacker message, with binary MPAC (γ = 1 / 2 \gamma=1/2 γ = 1/2 , δ = 2 \delta=2 δ = 2 ). Message lengths are L ∈ { 8 , 16 } L\in\{8,16\} L ∈ { 8 , 16 } in the tables and up to L = 64 L=64 L = 64 in Figure 7 . The released CycleShift code enumerates 2 L 2^{L} 2 L shifts, so at 32 bits we run a chunked variant: four 8-bit blocks, the block chosen by the previous token, each a released CycleShift over the same secret set.
Algorithm 1 Targeted displacement attack on binary MPAC
Require: source y y y , target m ′ ∈ { 0 , 1 } L m' \in\{0,1\}^{L} m ′ ∈ { 0 , 1 } L , messages m ( 1 ) , … , m ( n ) m^{(1)},\ldots,m^{(n)} m ( 1 ) , … , m ( n ) of the controlled accounts, next-token access to the accounts q i ( ⋅ ∣ c ) q_i(\cdot\mid c) q i ( ⋅ ∣ c ) and to the base model p ( ⋅ ∣ c ) p(\cdot\mid c) p ( ⋅ ∣ c ) , paraphraser p p a r a p_{\mathrm{para}} p para , threshold τ \tau τ , bias δ a t k \delta_{\mathrm{atk}} δ atk
Ensure: rewrite z z z
{ \{ { twin classes and relative bits, from the messages alone (§ 3.1 )} \} }
for j = 1 , … , L j=1,\ldots,L j = 1 , … , L do
x j ← ( ( m j ( i ) + m j ( 1 ) ) m o d 2 ) i = 2 n x_j \gets\left(\left(m_j^{(i)}+m_j^{(1)}\right)\bmod2\right)_{i=2}^{n} x j ← ( ( m j ( i ) + m j ( 1 ) ) mod 2 ) i = 2 n and r j ← ( m j ′ + m j ( 1 ) ) m o d 2 r_j \gets(m'_j+m_j^{(1)})\bmod2 r j ← ( m j ′ + m j ( 1 ) ) mod 2
end for
T ← \mathcal{T}\gets T ← partition of [ L ] [L] [ L ] into classes of equal x j x_j x j
for every class T ∈ T T\in\mathcal{T} T ∈ T do
if r j r_j r j is constant on T T T then
r T ← r_T\gets r T ← that value
else
r T ← r j r_T\gets r_j r T ← r j for a uniformly random j ∈ T j\in T j ∈ T { \{ { ambiguous class, N ( M , m ′ ) > 1 N(M,m')>1 N ( M , m ′ ) > 1 , success bounded by Theorem 1 } \} }
end if
end for
{ \{ { constrained rewriting (§ 3.1 )} \} }
z ← ( ) z\gets() z ← ( )
for t = 1 , 2 , … t=1,2,\ldots t = 1 , 2 , … until the paraphraser stops do
p t ( ⋅ ) ← p p a r a ( ⋅ ∣ y , z < t ) p_t(\cdot)\gets p_{\mathrm{para}}(\cdot\mid y,z_{<t}) p t ( ⋅ ) ← p para ( ⋅ ∣ y , z < t ) , then p t ( v ) ← 0 p_t(v)\gets0 p t ( v ) ← 0 for every v v v that would complete a 4-gram already in z < t z_{<t} z < t
c t ← c_t\gets c t ← the watermark context of z < t z_{<t} z < t (the previous token for MPAC), B t ← TARGETLIST ( c t ) B_t\gets\operatorname{TARGETLIST}(c_t) B t ← TARGETLIST ( c t )
if B t ≠ ∅ B_t\ne\varnothing B t = ∅ and Z t : = ∑ u ∈ B t p t ( u ) ≥ τ Z_t:=\sum_{u\in B_t}p_t(u)\ge\tau Z t := ∑ u ∈ B t p t ( u ) ≥ τ then
sample z t ∼ r t z_t\sim r_t z t ∼ r t with r t ( v ) = p t ( v ) 1 { v ∈ B t } / Z t r_t(v)=p_t(v)\mathbf{1}\{v\in B_t\}/Z_t r t ( v ) = p t ( v ) 1 { v ∈ B t } / Z t
else
sample z t ∼ r t z_t\sim r_t z t ∼ r t with r t ( v ) ∝ p t ( v ) exp ( δ a t k 1 { v ∈ B t } ) r_t(v)\propto p_t(v)\exp(\delta_{\mathrm{atk}}\mathbf{1}\{v\in B_t\}) r t ( v ) ∝ p t ( v ) exp ( δ atk 1 { v ∈ B t })
end if
end for
return z z z
procedure TARGETLIST( c ) (c) ( c ) { \{ { the green list of m ′ m' m ′ at c c c , (6)} \} }
for i = 1 , … , n i=1,\ldots,n i = 1 , … , n do
ℓ i ( v ) ← log q i ( v ∣ c ) − log p ( v ∣ c ) \ell_i(v)\gets\log q_i(v\mid c)-\log p(v\mid c) ℓ i ( v ) ← log q i ( v ∣ c ) − log p ( v ∣ c ) for all v ∈ V v\in\mathcal{V} v ∈ V , θ i ← 1 2 ( max v ℓ i ( v ) + min v ℓ i ( v ) ) \theta_i\gets\frac{1}{2}\left(\max_v\ell_i(v)+\min_v\ell_i(v)\right) θ i ← 2 1 ( max v ℓ i ( v ) + min v ℓ i ( v ) ) , G i ( c ) ← { v : ℓ i ( v ) > θ i } G_i(c)\gets\{v:\ell_i(v)>\theta_i\} G i ( c ) ← { v : ℓ i ( v ) > θ i }
end for
x ( c ) ← ( 1 { G i ( c ) ≠ G 1 ( c ) } ) i = 2 n x(c)\gets\left(\mathbf{1}\{G_i(c)\ne G_1(c)\}\right)_{i=2}^{n} x ( c ) ← ( 1 { G i ( c ) = G 1 ( c )} ) i = 2 n
if x ( c ) = x j x(c)=x_j x ( c ) = x j for some j ∈ [ L ] j\in[L] j ∈ [ L ] then
T ( c ) ← T(c)\gets T ( c ) ← the class with signature x ( c ) x(c) x ( c )
return G 1 ( c ) G_1(c) G 1 ( c ) if r T ( c ) = 0 r_{T(c)}=0 r T ( c ) = 0 , else V ∖ G 1 ( c ) \mathcal{V}\setminus G_1(c) V ∖ G 1 ( c )
else
return ∅ \varnothing ∅ { \{ { no class matches, the paraphraser alone decides this step} \} }
end if
Attacker. The attacker rewrites each text with a chat model that shares the generator’s tokenizer (Llama-2-7B-chat, Llama-3.1-8B-Instruct, and the Qwen model itself with its reasoning mode disabled) and has distribution access to its accounts. The paraphraser samples at temperature 0.7 and top-p p p 0.9. We report the constrained rewriting rule of § 3.1 with τ = 0 \tau=0 τ = 0 , and the paraphraser additionally blocks repeated 4-grams, which keeps constrained decoding from collapsing into loops. Conditions: the own account with the target set to the complement m ˉ \bar{m} m ˉ or to a message one bit away, and n n n colluding accounts with a uniformly random target. Fact protection (used in the fidelity experiments of Appendix § 17 ) leaves a step unconstrained when the paraphraser’s top token has probability at least κ \kappa κ and ends the text, is whitespace, or continues a numeral, name, or negation copied from the source. Such a token may vote against the target, and the certificate counts it as a rival vote.
Metrics. Let z ^ \hat{z} z ^ be the rewrite of a source y y y against target m ′ m' m ′ . Success, or exact match, is the fraction of texts with D K ( z ^ ) = m ′ D_K(\hat{z})=m' D K ( z ^ ) = m ′ , and bit accuracy is the fraction of the target’s bits (symbols, for the 2-bit schemes) that the decoded message matches, both over the 100 texts of a corpus. The bound is the mean of the appropriate symmetry upper bound over the drawn targets; in the binary position–color case this is 1 / N ( M , m ′ ) 1/N(M,m') 1/ N ( M , m ′ ) from Theorem 1 . The certificate is the Monte Carlo estimate of the posterior quantity (15) (Table 2 ). Fidelity to the source uses BERTScore F1 (Zhang et al., 2020) and ROUGE-L F1 (Lin, 2004) between z ^ \hat{z} z ^ and y y y . Two LLM judges (Zhang et al., 2023) from different families, Llama-3.3-70B-Instruct (Grattafiori et al., [25 ] ) and Qwen2.5-72B-Instruct (Qwen Team, 2024), both in 4-bit AWQ (Lin et al., 2024) with greedy decoding, rate on a five-point scale how faithfully
Algorithm 2 Attacker-side certificate
Require: rewrite z z z , the classes T T T , relative bits r T r_T r T , and procedure TARGETLIST of Algorithm 1, number of draws S S S
Ensure: Cert( z , m ′ ∣ O ) (z,m' \mid O) ( z , m ′ ∣ O )
if N ( M , m ′ ) > 1 N(M,m') > 1 N ( M , m ′ ) > 1 then
return 0
end if
P ( z ) ← { ( c t , z t ) : 1 ≤ t ≤ ∣ z ∣ } \mathcal{P}(z) \leftarrow\{(c_t,z_t):1 \le t \le|z|\} P ( z ) ← {( c t , z t ) : 1 ≤ t ≤ ∣ z ∣ } {distinct pairs}
for every distinct context c c c in P ( z ) \mathcal{P}(z) P ( z ) do
T ( c ) ← T(c) \leftarrow T ( c ) ← the class matched in TARGETLIST( c ) (c) ( c ) , or [ L ] [L] [ L ] if none
σ ( c , v ) ← + 1 \sigma(c,v) \leftarrow+1 σ ( c , v ) ← + 1 if v ∈ v \in v ∈ TARGETLIST( c ) (c) ( c ) , else − 1 -1 − 1 , for every ( c , v ) ∈ P ( z ) (c,v) \in\mathcal{P}(z) ( c , v ) ∈ P ( z )
end for
ok ← 0 \leftarrow0 ← 0
for s = 1 , … , S s=1,\ldots,S s = 1 , … , S do
draw J ( c ) ∼ Unif T ( c ) J(c) \sim\operatorname{Unif} T(c) J ( c ) ∼ Unif T ( c ) independently for every distinct context c c c
M j ( J ) ← ∑ ( c , v ) ∈ P ( z ) : J ( c ) = j σ ( c , v ) M_j(J) \leftarrow\sum_{(c,v)\in\mathcal{P}(z):J(c)=j}\sigma(c,v) M j ( J ) ← ∑ ( c , v ) ∈ P ( z ) : J ( c ) = j σ ( c , v ) for j = 1 , … , L j=1,\ldots,L j = 1 , … , L
if M j ( J ) > 0 M_j(J)>0 M j ( J ) > 0 for every j ∈ [ L ] j \in[L] j ∈ [ L ] then
ok ← \leftarrow ← ok + 1 +1 + 1
end if
end for
return ok/S S S
z ^ \hat{z} z ^ keeps the facts, numbers, names, negations, and claims of y y y (5 for the same content, 3 when at least one fact is changed, invented, or lost, and 1 for different content). A DeBERTa-v3-large NLI model (He et al., 2023) gives support , the mean over the sentences of z ^ \hat{z} z ^ of the probability that y y y entails the sentence, and coverage , the mean over the sentences of y y y of the probability that z ^ \hat{z} z ^ entails the sentence. Facts kept is the fraction of the numeric expressions of y y y , with sign, currency, and magnitude word, and of its named entities, found by a BERT NER tagger trained on CoNLL-2003 (Devlin et al., [14 ] ; Tjong Kim Sang and De Meulder (2003)), that z ^ \hat{z} z ^ reproduces verbatim (numbers up to spacing and equivalent percent and dollar notation). Neither extractor shares code with fact protection. The judges agree with each other (Spearman 0.78 over the rewrites and paraphrases, within one point on 97 percent of the pairs) and with NLI (0.64). For the other schemes, Table 4 reports BERTScore and perplexity under Llama-2-13B instead, since ROUGE-L and the judges were computed for the MPAC rewrites.
Implementation details. Every generation, attack, and scoring job runs on one NVIDIA H100 (94 GB) or A40 (48 GB) of a Slurm cluster with 8 CPU cores and 64 GB of host memory (96 GB for the judges); the LLM judges run on two A40s with tensor parallelism and the NLI and NER scorers on one A40 (wall-clock costs in Appendix § 16 ). The code is Python 3.12 with PyTorch 2.11 (Paszke et al., 2019) and Transformers 5.10 (Wolf et al., 2020), except that the earliest Llama-2-7B MPAC runs at 8 and 16 bits with τ = 10 − 3 \tau= 10^{-3} τ = 1 0 − 3 used PyTorch 2.4.1 and Transformers 4.45.2; the judges are served by vLLM 0.23 (Kwon et al., 2023). The generators are the Hugging Face checkpoints Llama-2-7b-hf, Llama-3.1-8B, Qwen3.5-4B, and Qwen3.5-9B, and the paraphrasers Llama-2-7b-chat-hf, Llama-3.1-8B-Instruct, and the two Qwen models themselves, so one copy of a Qwen model serves as generator, attacker’s base model, and paraphraser. Llama-2-7B generates in float16 and the other generators in bfloat16; during the attack every model runs in bfloat16, the Llama paraphrasers use eager attention, a guard replaces non-finite logits during rewriting (Llama-2-7B-chat produced NaNs in batched float16 generation), and the learner compares log-probabilities in float32.
Corpora are sampled in batches of 10 prompts, truncated to 1,200 tokens and left-padded, with exactly T T T new tokens, top-k k k disabled, and a 5-gram repetition block (Paulus et al., 2018); the unwatermarked completion of a prompt reuses the sampling seed of its watermarked twin. Rewrites are sampled in batches of 8 with top-k k k disabled. The 4-gram block of Table 1 and Table 4 and of Figure 7 is the no_repeat_ngram_size option of Transformers, which indexes the prompt as well, so a rewrite repeats no 4-gram of its source; the rewrite-only block of Appendix § 17 is our own logits processor over the generated tokens. The watermarked API is simulated in-process: an oracle takes the generator’s logits at the attacker’s prefix, applies the watermark of the queried account (the δ \delta δ bias of its set, or StealthInk’s reweighting), and returns the full log-softmax; the base-model forward pass is shared with the attacker’s own call and cached per prefix. For the additive schemes the learner classifies every token of the vocabulary by thresholding the log-ratio log p i ( v ∣ c ) − log p ( v ∣ c ) \log p_i(v \mid c)-\log p(v \mid c) log p i ( v ∣ c ) − log p ( v ∣ c ) , which equals δ 1 { v ∈ G i ( c ) } − log Z \delta\,1\{v \in G_i(c)\}-\log Z δ 1 { v ∈ G i ( c )} − log Z up to float32 rounding, at the midpoint of its range; StealthInk uses the closed-form rule of Appendix § 8 . Learned sets are cached per context and account, and for MPAC accounts whose learned sets agree on at least 90 percent of the jointly resolved tokens form one twin class. Each corpus carries a pool of extra accounts with random messages (16 for MPAC at 8 and 16 bits, up to 128 for the longer messages and for the schemes with more positions); the n n n colluding accounts are the attacker’s own account and the first n − 1 n-1 n − 1 accounts of one fixed random ordering of the pool, so the coalitions are nested in n n n , and the target of a text is drawn by a generator seeded with the condition, the global seed, and the text index, so a text faces the same target under every rewrite rule. The certificate (15) uses 1,000 Monte Carlo draws of the position assignment for MPAC, 300 for RSBH and StealthInk, and 200 for XMark, and is exact for CycleShift. Scheme parameters follow the released code: δ = 2 \delta= 2 δ = 2 wherever a logit bias is added (StealthInk reweights without a bias), one-token contexts except for XMark (two tokens) and StealthInk (three), and set fractions γ = 1 / 2 \gamma= 1/2 γ = 1/2 for MPAC and RSBH, 1 / 4 1/4 1/4 for CycleShift, and 9 / 16 9/16 9/16 for XMark. Our MPAC re-implementation draws the position and the color partition of a context from a PRNG seeded by a hash of key and context rather than from torch.randperm, so that generation and detection agree across devices; an 8-bit corpus generated with the released MPAC code and judged by its detector gives the same success rates as our re-implementation. The other schemes keep the seeding and decoding of their released code (Appendix § 8 ), with a secret key where the released code uses a fixed constant.
BERTScore F1 uses bert-score 0.3.13 with RoBERTa-large and no baseline rescaling, ROUGE-L F1 uses rouge-score 0.1.2 with Porter stemming, and perplexity is that of Llama-2-13B in float16 given the last 3,000 characters of the prompt. The judges, Llama-3.3-70B-Instruct-AWQ and Qwen2.5-72B-Instruct-AWQ, generate at most 400 tokens in a 4,096-token context and answer with a JSON object holding a score and up to three changed facts; the score is read from the reply with a regular expression, and a reply without a score is dropped. The NLI model is DeBERTa-v3-largemnli-fever-anli-ling-wanli in float16 on pairs truncated to 512 tokens, with sentences split at terminal punctuation and kept when they have at least four words, and the NER tagger is bert-large-NER with simple entity aggregation. All randomness is seeded (seed 0 for the secret key, the messages, sampling, the attack, and the choice of accounts), and every reported cell is a single run over the 100 texts of its corpus.
Paraphraser prompt
Every rewrite in the paper, the plain paraphrase included, is generated from the same two chat messages, and the rules of § 3.1 change only the decoding. The source y y y is the watermarked completion alone, without the C4 prompt that produced it.
System
You are a careful editor.
User
Rewrite the following passage in your own words. Preserve every fact and the order of ideas, keep roughly the same length, and output only the rewritten passage with no preamble.
Passage:
⟨watermarked text $y$⟩
Each paraphraser receives the two messages in its own chat template and writes the assistant turn. The template of Llama-3.1-8B-Instruct adds its default lines Cutting Knowledge Date: December 2023 and Today Date: 26 Jul 2024 to the system message, and for Qwen3.5 the reasoning mode is disabled, so the prompt ends with an empty reasoning block. The answer is sampled at temperature 0.7 and top-p p p 0.9 with 150 to 248 new tokens (the sources have 200), and the decoder scores it as generated, without post-processing.
Example rewrites
Table 3 shows two watermarked sources with their plain paraphrase and their attack rewrite under the τ = 0 \tau= 0 τ = 0 rule of Table 1 , both decoded to the target. Selection: among the 792 n n n -account rewrites that reached their target, we keep the 75 that both LLM judges score at least 4 (facts kept), leave out the Llama-2-7B-chat paraphraser, whose τ = 0 \tau= 0 τ = 0 rewrites carry spelling and case corruption that the judges tolerate but perplexity (Table 4 ) does not, and show the two closest to the source by ROUGE-L among the rest, at most one per generator. Over all 792 the ROUGE-L median is 0.29, and the examples score 0.40 and 0.51. The texts are shown as the judges and the metrics saw them, after the paraphraser’s chat preamble is removed.
Table 3. Two example rewrites of binary MPAC under the τ = 0 \tau= 0 τ = 0 rule of Table 1 : the watermarked source, the same paraphraser without the attack, and the n n n -account attack rewrite that decoded to the target. Each example’s line gives the generator, the message length, the number of colluding accounts, the target and decoded messages, and the judge score, ROUGE-L and BERTScore of the paraphrase and of the attack rewrite. Selection as described in Appendix § 12 .
Results for the other schemes
Table 4 gives, for every scheme at 8 bits and for each generator with the mean over the four, the clean decode rate, the bit accuracy and exact match of the plain paraphrase, of the own-account rewrite, and of the n max n_{\max} n m a x -account rewrite, and the
BERTScore and perplexity of the rewrites. The paragraph on other schemes in § 4 discusses the means.
Per-generator collusion curves
Figure 8 to Figure 12 repeat the panels of Figure 7 for every generator separately, with the same rules and bound, and the MPAC figure adds the soft bias of {(8)}.
Figure 8. Binary MPAC: per-generator version of Figure 7 . Triangles: the soft bias of (8) .
Figure 12. CycleShift: per-generator version of Figure 7 . Every target is reachable from the own account, so the panels show the complement m ˉ \bar{m} m ˉ , targets one and four bits away from m m m , and a uniformly random one.
Text length
Figure 13 repeats the sweep of Figure 7 for sources of 100, 200, and 400 tokens under the τ = 0 \tau= 0 τ = 0 rule. The symmetry bound does not depend on the text length. What changes is how many tokens each message position receives. Up to 16 bits the three lengths give the same curves within a few points, except StealthInk at 16 bits and 100 tokens, where eight to 32 accounts reach 74 to 79 percent instead of 94 to 100. At 32 bits doubling the text to 400 tokens lifts the plateau of MPAC from 65 to 87 percent, StealthInk from 55 to 94, and XMark and RSBH to 100. At 64 bits no scheme carries its message through 200 tokens, untouched or rewritten (at most 23 percent, for XMark), and 400 tokens are still too few for MPAC (about 20 percent from 12 accounts on) and StealthInk (28 percent), while XMark reaches 82 to 85 percent, and the untouched watermarks decode none of these sources exactly.
Figure 13. Exact-match success of the constrained rewrite (τ = 0 \tau= 0 τ = 0 , 4-gram block) against the number of colluding accounts for sources of T ∈ { 100 , 200 , 400 } T \in\{100, 200, 400\} T ∈ { 100 , 200 , 400 } tokens, rewrites of 0.75 T 0.75T 0.75 T to 1.24 T 1.24T 1.24 T tokens, mean over the four generators. Dashed: the mean symmetry bound, the same for every T T T . Shaded: ruled out. Figure 14 and Figure 15 show the same runs in the layout of Figure 7 .
Figure 14. Figure 7 at 100 tokens per text (τ = 0 \tau= 0 τ = 0 rule, since the τ = 10 − 3 \tau= 10^{-3} τ = 1 0 − 3 rule and CycleShift were run at 200 tokens only). Dotted: the decoder’s exact-match rate on the untouched 100-token source.
Figure 15. Figure 7 at 400 tokens per text (τ = 0 \tau= 0 τ = 0 rule, since the τ = 10 − 3 \tau= 10^{-3} τ = 1 0 − 3 rule and CycleShift were run at 200 tokens only). Dotted: the decoder’s exact-match rate on the untouched 400-token source.
Runtime
Every attack job rewrites the 100 texts of one corpus under every condition of its row in Figure 7 on a single NVIDIA H100 (94 GB), with the generator, the paraphraser, and the attacker’s copy of the base model loaded together and batches of 8 texts. The API is simulated locally with the generator itself, so the time includes the oracle’s own forward passes. Table 5 reports, for the settings run on the H100, the wall-clock time per rewritten text under the τ = 0 \tau= 0 τ = 0 rule, including decoding, the certificate, and the learner’s queries. The τ = 10 − 3 \tau= 10^{-3} τ = 1 0 − 3 rule costs the same. The dominant cost is one base-model forward pass per new context, so schemes whose context is longer than one token (XMark, StealthInk) query at almost every step, while MPAC, CycleShift, and RSBH reuse contexts. Queries is the number of oracle calls per rewritten text with a plan, one per context and account whose set the learner resolved, and corpus is the time to sample the 100 watermarked and 100 unwatermarked continuations of a corpus.
Table 5. Wall-clock cost of the attack per rewritten text, in seconds on one H100, for the τ = 0 \tau= 0 τ = 0 rule, the number of oracle queries per rewrite, and the corpus-generation time in minutes (mean over generators). ↓: lower is better.
Fidelity per generator
Figure 9. RSBH: per-generator version of Figure 7 . A target is reachable once at most one of its codeword symbols is uncovered by the accounts, which takes 32 accounts for 8-bit messages and 64 for 16-bit ones.
Figure 10. StealthInk with its released 2-bit symbols: per-generator version of Figure 7 . A target becomes reachable once every one of its symbols has been seen at its position by some account.
Figure 11. XMark with its released 2-bit symbols: per-generator version of Figure 7 . Blocks are public, so a target’s symbol at a block is reachable once some account carries it or only one symbol value is unseen there.
Figure 16. Exact-match success against fidelity (mean of the two LLM judges) for the rewrite rules evaluated in this section, one panel per message length, mean over the four generators and over the own-account and n n n -account rewrites. Blue: the constrained rule from the soft bias to τ = 0 \tau= 0 τ = 0 . Squares: τ = 0 \tau= 0 τ = 0 with either 4-gram block. Stars: τ = 0 \tau= 0 τ = 0 with fact protection. Dashed lines: fidelity of the plain paraphrase, of an unwatermarked completion of the same prompt, and of an unrelated source.
Table 6. Per-generator fidelity results for the plain paraphrase, the rule of Table 1 (τ = 0 \tau= 0 τ = 0 , 4-gram block over the whole input), the same rule with the block over the rewrite only, and the latter with fact protection (κ = 0.5 \kappa= 0.5 κ = 0.5 ). Judges: mean of the two LLM judges. NLI: mean of support and coverage. ↑: higher is better.
Relabelings and the general ambiguity bound
The main text avoids group notation and states the binary count directly in Theorem 1 . This appendix gives the general symmetry argument behind that result. It also makes explicit the assumptions on the hidden-key distribution and on the decoder’s treatment of labels, including ties.
Let K \mathcal{K} K be the key space and M \mathcal{M} M the message space. A relabeling group ( G , ∘ ) (\mathcal{G},\circ) ( G , ∘ ) acts on both spaces: every g ∈ G g\in\mathcal{G} g ∈ G induces maps ρ g K : K → K \rho_g^{\mathcal{K}}:\mathcal{K}\to\mathcal{K} ρ g K : K → K and ρ g M : M → M \rho_g^{\mathcal{M}}:\mathcal{M}\to\mathcal{M} ρ g M : M → M . We write both as ρ g ( x ) \rho_g(x) ρ g ( x ) because the argument identifies the space. With identity e e e and inverse g − 1 g^{-1} g − 1 , the action satisfies
ρ e ( x ) = x , ρ g ∘ h ( x ) = ρ g ( ρ h ( x ) ) , G ρ g ( K ) ρ g ( c ) = G K K ( c ) . (33) \begin{aligned}
\rho_e(x)&=x,\\
\rho_{g\circ h}(x)&=\rho_g(\rho_h(x)),\\
G^{\rho_g}_{\rho_g(\mathcal{K})}(c)&=G^{\mathcal{K}}_{\mathcal{K}}(c). \tag*{(33)}
\end{aligned} ρ e ( x ) ρ g ∘ h ( x ) G ρ g ( K ) ρ g ( c ) = x , = ρ g ( ρ h ( x )) , = G K K ( c ) . (33)
The first two identities hold for x ∈ K ∪ M x\in\mathcal{K}\cup\mathcal{M} x ∈ K ∪ M and the last for every key, message, relabeling, and context. Thus renaming the hidden key structure and the message together leaves every green list unchanged.
For the controlled messages M = ( m ( 1 ) , … , m ( n ) ) M=(m^{(1)},\ldots,m^{(n)}) M = ( m ( 1 ) , … , m ( n ) ) , define the relabelings that preserve all their public names by
H M : = { g ∈ G : ρ g ( m ( i ) ) = m ( i ) for every i } . (34) \mathcal{H}_M:=\{g\in\mathcal{G}:\rho_g(m^{(i)})=m^{(i)}\text{ for every }i\}. \tag*{(34)} H M := { g ∈ G : ρ g ( m ( i ) ) = m ( i ) for every i } . (34)
The messages indistinguishable from a target m ′ m' m ′ under these remaining symmetries form
Orb H M ( m ′ ) : = { ρ g ( m ′ ) : g ∈ H M } . (35) \operatorname{Orb}_{\mathcal{H}_M}(m'):=\{\rho_g(m'):g\in\mathcal{H}_M\}. \tag*{(35)} Orb H M ( m ′ ) := { ρ g ( m ′ ) : g ∈ H M } . (35)
Appendix O gives concrete examples of a relabeling that remains in H M \mathcal{H}_M H M and one that the controlled messages exclude.
Full symmetry statement for Theorem 1 . Fix the controlled messages M = ( m ( 1 ) , … , m ( n ) ) M=(m^{(1)},\ldots,m^{(n)}) M = ( m ( 1 ) , … , m ( n ) ) , a target m ′ m' m ′ , and a finite relabeling group satisfying (33) . Write H : = H M H:=\mathcal{H}_M H := H M and assume the following.
(A1) Invariant key prior. The key K K K has a probability distribution μ \mu μ satisfying
μ ( ρ g ( B ) ) = μ ( B ) ( g ∈ H ) (36) \mu(\rho_g(B))=\mu(B)\qquad(g\in H) \tag*{(36)} μ ( ρ g ( B )) = μ ( B ) ( g ∈ H ) (36)
for every measurable set of keys B ⊆ K B\subseteq\mathcal{K} B ⊆ K , where ρ g ( B ) : = { ρ g ( k ) : k ∈ B } \rho_g(B):=\{\rho_g(k):k\in B\} ρ g ( B ) := { ρ g ( k ) : k ∈ B } . Thus a set of keys and its relabeling have the same prior probability.
(A2) Observations through the controlled accounts. The transcript O O O records all queries and responses available to the attack. The accounts generate responses according to (P1), and the attack may choose accounts, contexts, prompts, and when to stop from its earlier observations. Exact next-token distributions are also allowed as responses. Sample responses use fresh sampling randomness independent of the key and of the attack’s private randomness, with the conditional token laws specified by (P1). All queries finish and the attack outputs a finite text almost surely. There is no additional key-dependent information outside O O O . The attack’s private random seed R R R , containing all of its random choices, is independent of K K K before observations are collected. Its output is A ( O , R ) A(O,R) A ( O , R ) , and the notation A ( O ) A(O) A ( O ) in the theorem leaves R R R implicit.
(A3) Equivariant decoder. The decoder returns a message or an abstention symbol ⊥ \perp ⊥ , and for every key k k k , text z z z , message b b b , and g ∈ H g\in H g ∈ H ,
Pr [ D ρ g ( k ) ( z ) = ρ g ( b ) ] = Pr [ D k ( z ) = b ] . (37) \Pr[D_{\rho_g(k)}(z)=\rho_g(b)]
=
\Pr[D_k(z)=b]. \tag*{(37)} Pr [ D ρ g ( k ) ( z ) = ρ g ( b )] = Pr [ D k ( z ) = b ] . (37)
These probabilities are only over the decoder’s own fresh randomness, independent of the attack and of generation. For a deterministic decoder, this is the identity D ρ g ( k ) ( z ) = ρ g ( D k ( z ) ) D_{\rho_g(k)}(z)=\rho_g(D_k(z)) D ρ g ( k ) ( z ) = ρ g ( D k ( z )) . We extend the action by ρ g ( ⊥ ) = ⊥ \rho_g(\perp)=\perp ρ g ( ⊥ ) =⊥ .
Public model and sampling settings are fixed throughout, and independent public randomness can be included in R R R . Let
B : = Orb H ( m ′ ) , N : = ∣ B ∣ < ∞ . (38) \mathcal{B}:=\operatorname{Orb}_{H}(m'),\qquad N:=|\mathcal{B}|<\infty. \tag*{(38)} B := Orb H ( m ′ ) , N := ∣ B ∣ < ∞. (38)
Then
Pr [ D K ( A ( O , R ) ) = m ′ ∣ O ] ≤ 1 N . (39) \Pr[D_K(A(O,R))=m'\mid O]\le\frac{1}{N}. \tag*{(39)} Pr [ D K ( A ( O , R )) = m ′ ∣ O ] ≤ N 1 . (39)
The inequality holds almost surely in O O O . The probability includes the key, account sampling, attack randomness, and any decoder randomness. “Almost surely” means that the inequality may exclude observations in a set of total probability zero. In particular, it holds at every discrete observation o o o with Pr [ O = o ] > 0 \Pr[O=o]>0 Pr [ O = o ] > 0 .
Proof. We first show that even the attack’s complete view, including its seed, leaves the key distribution invariant under H H H . We then show that the decoder assigns equal conditional probabilities to every message in B \mathcal{B} B , and sum those probabilities.
Step 1: check the group operations used below. The action identities in (33) give, for any key or message x x x ,
ρ g − 1 ( ρ g ( x ) ) = ρ g − 1 ∘ g ( x ) = x , ρ g ( ρ g − 1 ( x ) ) = ρ g ∘ g − 1 ( x ) = x . (40) \rho_{g^{-1}}(\rho_g(x))=\rho_{g^{-1}\circ g}(x)=x,
\qquad
\rho_g(\rho_{g^{-1}}(x))=\rho_{g\circ g^{-1}}(x)=x. \tag*{(40)} ρ g − 1 ( ρ g ( x )) = ρ g − 1 ∘ g ( x ) = x , ρ g ( ρ g − 1 ( x )) = ρ g ∘ g − 1 ( x ) = x . (40)
Thus ρ g \rho_g ρ g is a bijection with inverse ρ g − 1 \rho_{g^{-1}} ρ g − 1 . The identity fixes every controlled message, so e ∈ H e \in H e ∈ H . If g , h ∈ H g,h \in H g , h ∈ H , then for each i i i ,
ρ g ∘ h ( m ( i ) ) = ρ g ( ρ h ( m ( i ) ) ) = ρ g ( m ( i ) ) = m ( i ) . (41) \rho_{g\circ h}(m^{(i)})=\rho_g(\rho_h(m^{(i)}))=\rho_g(m^{(i)})=m^{(i)}. \tag*{(41)} ρ g ∘ h ( m ( i ) ) = ρ g ( ρ h ( m ( i ) )) = ρ g ( m ( i ) ) = m ( i ) . (41)
Hence g ∘ h ∈ H g\circ h \in H g ∘ h ∈ H . If g ∈ H g \in H g ∈ H , applying ρ g − 1 \rho_{g^{-1}} ρ g − 1 to ρ g ( m ( i ) ) = m ( i ) \rho_g(m^{(i)})=m^{(i)} ρ g ( m ( i ) ) = m ( i ) gives ρ g − 1 ( m ( i ) ) = m ( i ) \rho_{g^{-1}}(m^{(i)})=m^{(i)} ρ g − 1 ( m ( i ) ) = m ( i ) , so g − 1 ∈ H g^{-1} \in H g − 1 ∈ H as well. This verifies that H H H is a subgroup. It also gives m ′ = ρ e ( m ′ ) ∈ B m'=\rho_e(m') \in\mathcal{B} m ′ = ρ e ( m ′ ) ∈ B , so N ≥ 1 N \ge1 N ≥ 1 and division by N N N is valid.
Step 2: show that each account response is unchanged. Fix g ∈ H g \in H g ∈ H , a key k k k , an account i i i , and a context c c c . The stabilizer condition and (33) give
G ρ g ( k ) m ( i ) ( c ) = G ρ g ( m ( i ) ) ρ g ( k ) ( c ) = G k m ( i ) ( c ) . (42) G_{\rho_g(k)}^{m^{(i)}}(c)=G_{\rho_g(m^{(i)})}^{\rho_g(k)}(c)
=G_k^{m^{(i)}}(c). \tag*{(42)} G ρ g ( k ) m ( i ) ( c ) = G ρ g ( m ( i ) ) ρ g ( k ) ( c ) = G k m ( i ) ( c ) . (42)
The first equality uses ρ g ( m ( i ) ) = m ( i ) \rho_g(m^{(i)})=m^{(i)} ρ g ( m ( i ) ) = m ( i ) , and the second relabels the key and message together. By (P1), for every token v v v ,
p ρ g ( k ) , m ( i ) ( v ∣ c ) = Φ ( p ( ⋅ ∣ c ) , G ρ g ( k ) m ( i ) ( c ) ) ( v ) = Φ ( p ( ⋅ ∣ c ) , G k m ( i ) ( c ) ) ( v ) = p k , m ( i ) ( v ∣ c ) . (43) p_{\rho_g(k),m^{(i)}}(v\mid c)
=\Phi(p(\cdot\mid c),G_{\rho_g(k)}^{m^{(i)}}(c))(v)
=\Phi(p(\cdot\mid c),G_k^{m^{(i)}}(c))(v)
=p_{k,m^{(i)}}(v\mid c). \tag*{(43)} p ρ g ( k ) , m ( i ) ( v ∣ c ) = Φ ( p ( ⋅ ∣ c ) , G ρ g ( k ) m ( i ) ( c )) ( v ) = Φ ( p ( ⋅ ∣ c ) , G k m ( i ) ( c )) ( v ) = p k , m ( i ) ( v ∣ c ) . (43)
Here Φ ( p , S ) ( v ) \Phi(p,S)(v) Φ ( p , S ) ( v ) denotes the probability of v v v in the distribution returned by Φ \Phi Φ . The base distribution and the rule Φ \Phi Φ are the same in both experiments because they are key-independent.
Consequently, a query returning the entire next-token distribution has exactly the same answer. A query sampling a token has the same answer distribution. For a completion w = ( w 1 , … , w T ) w=(w_1,\ldots,w_T) w = ( w 1 , … , w T ) , fix the query prompt and let c t ( w < t ) c_t(w_{<t}) c t ( w < t ) be the context determined by that prompt and prefix. The probability of this completion is
p ρ g ( k ) , m ( i ) ( w ) = ∏ t = 1 T p ρ g ( k ) , m ( i ) ( w t ∣ c t ( w < t ) ) = ∏ t = 1 T p k , m ( i ) ( w t ∣ c t ( w < t ) ) = p k , m ( i ) ( w ) . (44) \begin{aligned}
p_{\rho_g(k),m^{(i)}}(w)
&=\prod_{t=1}^{T}p_{\rho_g(k),m^{(i)}}(w_t\mid c_t(w_{<t}))\\
&=\prod_{t=1}^{T}p_{k,m^{(i)}}(w_t\mid c_t(w_{<t}))\\
&=p_{k,m^{(i)}}(w). \tag*{(44)}
\end{aligned} p ρ g ( k ) , m ( i ) ( w ) = t = 1 ∏ T p ρ g ( k ) , m ( i ) ( w t ∣ c t ( w < t )) = t = 1 ∏ T p k , m ( i ) ( w t ∣ c t ( w < t )) = p k , m ( i ) ( w ) . (44)
The first and last equalities are the autoregressive sampling rule, and the middle equality applies (43) to each factor. The identity includes zero-probability sequences. If the response stops at an end token or a public length limit, the same stopping rule is applied to the same sequence, so the resulting response laws still agree.
Step 3: preserve this equality under adaptive queries. Fix the private seed at R = r R=r R = r . Once this seed is fixed, each next query and the decision to stop are deterministic functions of the preceding transcript. Write T j T_j T j for the transcript after j j j queries, with T 0 T_0 T 0 empty. For a possible preceding transcript t t t , denote the next query by q j ( r , t ) q_j(r,t) q j ( r , t ) . Denote its response distribution under key k k k by Q k ( ⋅ ∣ q j ( r , t ) , t ) Q_k(\cdot\mid q_j(r,t),t) Q k ( ⋅ ∣ q j ( r , t ) , t ) . Step 2 gives, for every response event F F F ,
Q ρ g ( k ) ( F ∣ q j ( r , t ) , t ) = Q k ( F ∣ q j ( r , t ) , t ) . (45) Q_{\rho_g(k)}(F\mid q_j(r,t),t)=Q_k(F\mid q_j(r,t),t). \tag*{(45)} Q ρ g ( k ) ( F ∣ q j ( r , t ) , t ) = Q k ( F ∣ q j ( r , t ) , t ) . (45)
For ordinary fresh sampling this kernel is the distribution from Step 2. Writing the history explicitly also accommodates repeated contexts and queries chosen using earlier responses. We do not require different queries to concern different contexts.
We prove equality of transcript laws by induction on j j j . It holds at j = 0 j=0 j = 0 because both transcripts are empty. Suppose it holds after j − 1 j-1 j − 1 queries, and call the common law η j − 1 \eta_{j-1} η j − 1 . For an event E E E of extended transcripts, the probability after the next query under key k k k is
∬ 1 { ( t , q j ( r , t ) , a ) ∈ E } ⋅ Q k ( d a ∣ q j ( r , t ) , t ) η j − 1 ( d t ) . (46) \iint\mathbf{1}\{(t,q_j(r,t),a)\in E\}\cdot Q_k(\mathrm{d}a\mid q_j(r,t),t)\,\eta_{j-1}(\mathrm{d}t). \tag*{(46)} ∬ 1 {( t , q j ( r , t ) , a ) ∈ E } ⋅ Q k ( d a ∣ q j ( r , t ) , t ) η j − 1 ( d t ) . (46)
The expression under key ρ g ( k ) \rho_g(k) ρ g ( k ) has the same outer measure by the induction hypothesis, the same query because r , t r,t r , t are fixed, and the same inner measure by (45) . The two probabilities are therefore equal, completing the induction.
Stopping causes no exception: at a fixed r , t r,t r , t , both experiments make the same stopping decision. Equivalently, append a fixed stop symbol at every subsequent round once the attack stops. The preceding induction then applies to these padded transcripts. Since termination occurs after finitely many queries almost surely, every event of final transcripts is the disjoint union of its parts with stopping times 0 , 1 , 2 , … 0,1,2,\ldots 0 , 1 , 2 , … . Equality for each part gives equality for their sum. Thus, for every transcript event E E E ,
Pr [ O ∈ E ∣ K = ρ g ( k ) , R = r ] = Pr [ O ∈ E ∣ K = k , R = r ] . (47) \Pr[O \in E \mid K = \rho_g(k), R = r]
= \Pr[O \in E \mid K = k, R = r]. \tag*{(47)} Pr [ O ∈ E ∣ K = ρ g ( k ) , R = r ] = Pr [ O ∈ E ∣ K = k , R = r ] . (47)
This proves likelihood invariance for the whole adaptive experiment, including exact distribution responses, whose laws are point masses.
Step 4: derive invariance of the conditional key distribution. Let V : = ( O , R ) V := (O,R) V := ( O , R ) be the attack’s complete view, including the private seed. Although R R R and K K K are independent initially, they need not remain independent after conditioning on O O O . We therefore retain R R R in V V V .
For an event C C C of complete views, put L C ( k ) : = Pr [ V ∈ C ∣ K = k ] L_C(k) := \Pr[V \in C \mid K = k] L C ( k ) := Pr [ V ∈ C ∣ K = k ] . Let ν \nu ν be the initial law of R R R and write C r : = { o : ( o , r ) ∈ C } C_r := \{o : (o,r) \in C\} C r := { o : ( o , r ) ∈ C } . Independence before querying gives
L C ( k ) = ∫ Pr [ O ∈ C r ∣ K = k , R = r ] ν ( d r ) . (48) L_C(k) = \int\Pr[O \in C_r \mid K = k, R = r]\,\nu(\mathrm{d}r). \tag*{(48)} L C ( k ) = ∫ Pr [ O ∈ C r ∣ K = k , R = r ] ν ( d r ) . (48)
Equation (47) holds for each fixed seed, so integrating it against this same ν \nu ν yields
L C ( ρ g ( k ) ) = L C ( k ) . (49) L_C(\rho_g(k)) = L_C(k). \tag*{(49)} L C ( ρ g ( k )) = L C ( k ) . (49)
For a set of keys B B B , the definition of conditional probability gives
Pr [ K ∈ ρ g ( B ) , V ∈ C ] = ∫ ρ g ( B ) L C ( k ) μ ( d k ) = ∫ B L C ( ρ g ( k ) ) μ ( d k ) = ∫ B L C ( k ) μ ( d k ) = Pr [ K ∈ B , V ∈ C ] . (50) \begin{aligned}
\Pr[K \in\rho_g(B), V \in C]
&= \int_{\rho_g(B)} L_C(k)\,\mu(\mathrm{d}k)\\
&= \int_B L_C(\rho_g(k))\,\mu(\mathrm{d}k)\\
&= \int_B L_C(k)\,\mu(\mathrm{d}k)\\
&= \Pr[K \in B,V \in C]. \tag*{(50)}
\end{aligned} Pr [ K ∈ ρ g ( B ) , V ∈ C ] = ∫ ρ g ( B ) L C ( k ) μ ( d k ) = ∫ B L C ( ρ g ( k )) μ ( d k ) = ∫ B L C ( k ) μ ( d k ) = Pr [ K ∈ B , V ∈ C ] . (50)
The second line changes variables through the bijection ρ g \rho_g ρ g , and (A1) says that this change preserves μ \mu μ . The third line uses (49) .
For a discrete view v v v with positive probability, set C = { v } C = \{v\} C = { v } in (50) and divide by Pr [ V = v ] \Pr[V=v] Pr [ V = v ] . This gives
Pr [ K ∈ ρ g ( B ) ∣ V = v ] = Pr [ K ∈ B ∣ V = v ] . (51) \Pr[K \in\rho_g(B) \mid V = v] = \Pr[K \in B \mid V = v]. \tag*{(51)} Pr [ K ∈ ρ g ( B ) ∣ V = v ] = Pr [ K ∈ B ∣ V = v ] . (51)
For general observations, including real-valued distribution responses, we use a regular conditional distribution μ v ( B ) : = Pr [ K ∈ B ∣ V = v ] \mu_v(B) := \Pr[K \in B \mid V=v] μ v ( B ) := Pr [ K ∈ B ∣ V = v ] . To see why the same conclusion holds, let P V P_V P V be the law of V V V and rewrite (50) as
∫ C μ v ( ρ g ( B ) ) P V ( d v ) = ∫ C μ v ( B ) P V ( d v ) . (52) \int_C \mu_v(\rho_g(B))\,P_V(\mathrm{d}v)
=
\int_C \mu_v(B)\,P_V(\mathrm{d}v). \tag*{(52)} ∫ C μ v ( ρ g ( B )) P V ( d v ) = ∫ C μ v ( B ) P V ( d v ) . (52)
This holds for every view event C C C . Two measurable functions with equal integrals over every event C C C are equal almost everywhere: otherwise, on an event where one exceeds the other by at least 1 / j 1/j 1/ j for some integer j ≥ 1 j \ge1 j ≥ 1 , their integrals would differ. Applying this fact gives (51) almost surely in v v v . The key and observation spaces here are finite or countable products of discrete and real-valued spaces, on which these conditional distributions exist. Equality can first be imposed on a countable generating algebra of key events, then extended to all measurable events by uniqueness of probability measures. Since H H H is finite, one common set of views of probability one works for every g ∈ H g \in H g ∈ H .
In particular, at each such view and for every bounded measurable function f f f of the key,
∫ f ( ρ g ( k ) ) μ v ( d k ) = ∫ f ( k ) μ v ( d k ) . (53) \int f(\rho_g(k))\,\mu_v(\mathrm{d}k) = \int f(k)\,\mu_v(\mathrm{d}k). \tag*{(53)} ∫ f ( ρ g ( k )) μ v ( d k ) = ∫ f ( k ) μ v ( d k ) . (53)
Indeed, (51) , applied to g − 1 ∈ H g^{-1} \in H g − 1 ∈ H , says that ρ g ( K ) \rho_g(K) ρ g ( K ) and K K K have the same conditional distribution. Expectations of the same function under equal distributions coincide.
Step 5: make the decoder’s symmetry explicit, including ties. For a fixed key and text, define the decoder probabilities
d k ( z , b ) : = Pr [ D k ( z ) = b ] . (54) d_k(z,b) := \Pr[D_k(z)=b]. \tag*{(54)} d k ( z , b ) := Pr [ D k ( z ) = b ] . (54)
If the decoder is deterministic, d k ( z , b ) d_k(z,b) d k ( z , b ) is the indicator of D k ( z ) = b D_k(z)=b D k ( z ) = b . Assumption (A3) states that
d ρ g ( k ) ( z , ρ g ( b ) ) = d k ( z , b ) . (55) d_{\rho_g(k)}(z,\rho_g(b)) = d_k(z,b). \tag*{(55)} d ρ g ( k ) ( z , ρ g ( b )) = d k ( z , b ) . (55)
We explain how this condition follows for a common membership-based scoring rule, and why its tie rule matters.
For a fixed text z = ( z 1 , … , z T ) z=(z_1,\ldots,z_T) z = ( z 1 , … , z T ) , let c t c_t c t be its scoring contexts and put
β k ( z , b ) : = ( 1 { z t ∈ G k b ( c t ) } ) t = 1 T . (56) \beta_k(z,b):=\left(1\{z_t\in G_k^b(c_t)\}\right)_{t=1}^T. \tag*{(56)} β k ( z , b ) := ( 1 { z t ∈ G k b ( c t )} ) t = 1 T . (56)
For each t t t , (33) gives
1 { z t ∈ G ρ g ( k ) ρ g ( b ) ( c t ) } = 1 { z t ∈ G k b ( c t ) } . (57) 1\{z_t\in G_{\rho_g(k)}^{\rho_g(b)}(c_t)\}=1\{z_t\in G_k^b(c_t)\}. \tag*{(57)} 1 { z t ∈ G ρ g ( k ) ρ g ( b ) ( c t )} = 1 { z t ∈ G k b ( c t )} . (57)
Equality at every coordinate gives
β ρ g ( k ) ( z , ρ g ( b ) ) = β k ( z , b ) . (58) \beta_{\rho_g(k)}(z,\rho_g(b))=\beta_k(z,b). \tag*{(58)} β ρ g ( k ) ( z , ρ g ( b )) = β k ( z , b ) . (58)
Suppose each candidate is evaluated by the same public function,
s k ( z , b ) : = s ( z , β k ( z , b ) ) . (59) s_k(z,b):=s(z,\beta_k(z,b)). \tag*{(59)} s k ( z , b ) := s ( z , β k ( z , b )) . (59)
Substitution then yields
s ρ g ( k ) ( z , ρ g ( b ) ) = s k ( z , b ) . (60) s_{\rho_g(k)}(z,\rho_g(b))=s_k(z,b). \tag*{(60)} s ρ g ( k ) ( z , ρ g ( b )) = s k ( z , b ) . (60)
The use of the same function for every candidate is part of this sufficient condition. A candidate-dependent public preference is not justified by key access through memberships alone.
For a maximizing decoder, write
E k ( z ) : = arg max b ∈ M s k ( z , b ) . (61) \mathcal{E}_k(z):=\underset{b\in\mathcal{M}}{\arg\max}\ s_k(z,b). \tag*{(61)} E k ( z ) := b ∈ M arg max s k ( z , b ) . (61)
If b ∈ E k ( z ) b\in\mathcal{E}_k(z) b ∈ E k ( z ) , then s k ( z , b ) ≥ s k ( z , a ) s_k(z,b)\ge s_k(z,a) s k ( z , b ) ≥ s k ( z , a ) for every a ∈ M a\in\mathcal{M} a ∈ M . Equation (60) implies
s ρ g ( k ) ( z , ρ g ( b ) ) ≥ s ρ g ( k ) ( z , ρ g ( a ) ) for every a . (62) s_{\rho_g(k)}(z,\rho_g(b))\ge s_{\rho_g(k)}(z,\rho_g(a))\quad\text{for every }a. \tag*{(62)} s ρ g ( k ) ( z , ρ g ( b )) ≥ s ρ g ( k ) ( z , ρ g ( a )) for every a . (62)
Because ρ g \rho_g ρ g is a bijection on messages, ρ g ( a ) \rho_g(a) ρ g ( a ) ranges over all candidates. Thus ρ g ( b ) ∈ E ρ g ( k ) ( z ) \rho_g(b)\in\mathcal{E}_{\rho_g(k)}(z) ρ g ( b ) ∈ E ρ g ( k ) ( z ) . This proves one inclusion in
E ρ g ( k ) ( z ) = ρ g ( E k ( z ) ) . (63) \mathcal{E}_{\rho_g(k)}(z)=\rho_g(\mathcal{E}_k(z)). \tag*{(63)} E ρ g ( k ) ( z ) = ρ g ( E k ( z )) . (63)
For the reverse inclusion, take b ′ ∈ E ρ g ( k ) ( z ) b'\in\mathcal{E}_{\rho_g(k)}(z) b ′ ∈ E ρ g ( k ) ( z ) and apply the same argument to the key ρ g ( k ) \rho_g(k) ρ g ( k ) and the element g − 1 g^{-1} g − 1 . It gives ρ g − 1 ( b ′ ) ∈ E k ( z ) \rho_{g^{-1}}(b')\in\mathcal{E}_k(z) ρ g − 1 ( b ′ ) ∈ E k ( z ) , hence b ′ ∈ ρ g ( E k ( z ) ) b'\in\rho_g(\mathcal{E}_k(z)) b ′ ∈ ρ g ( E k ( z )) as required. For a minimizing decoder, replace each score inequality above by ≤ \le ≤ , and both inclusions follow in exactly the same way.
If the extremum is unique, (63) relabels that unique output, proving (55) . For a finite nonempty tied set, uniform tie breaking gives
d k ( z , b ) = 1 { b ∈ E k ( z ) } ∣ E k ( z ) ∣ . (64) d_k(z,b)=\frac{1\{b\in\mathcal{E}_k(z)\}}{\lvert\mathcal{E}_k(z)\rvert}. \tag*{(64)} d k ( z , b ) = ∣ E k ( z )∣ 1 { b ∈ E k ( z )} . (64)
Equation (63) preserves membership in the tied set and its cardinality, so it again gives (55) . If instead the decoder abstains whenever there is a tie, both relabeled experiments abstain, since their tied sets have the same size. With ρ g ( ⊥ ) = ⊥ \rho_g(\perp)=\perp ρ g ( ⊥ ) =⊥ , this also satisfies (A3). A deterministic preference for the largest or smallest label need not do so. For other decoder architectures, (A3) is the condition required, since (P2) alone does not establish their tie behavior.
Step 6: show equality of conditional decoding probabilities. Fix a complete view v = ( o , r ) v=(o,r) v = ( o , r ) in the probability-one set from Step 4. The attack’s rewritten text
z : = A ( o , r ) (65) z:=A(o,r) \tag*{(65)} z := A ( o , r ) (65)
is now fixed. Relabeling a key in its conditional distribution does not change o o o , r r r , or this text. For every message b b b , put
p v ( b ) : = Pr [ D K ( A ( O , R ) ) = b ∣ V = v ] = ∫ d k ( z , b ) μ v ( d k ) . (66) p_v(b):=\Pr[D_K(A(O,R))=b\mid V=v]
=\int d_k(z,b)\,\mu_v(\mathrm{d}k). \tag*{(66)} p v ( b ) := Pr [ D K ( A ( O , R )) = b ∣ V = v ] = ∫ d k ( z , b ) μ v ( d k ) . (66)
The second line averages the decoder’s probabilities over the conditional key distribution. It uses the fact that the decoder’s fresh randomness is independent of the view once its key and input are fixed.
For any g ∈ H g\in H g ∈ H , compute
p v ( ρ g ( b ) ) = ∫ d k ( z , ρ g ( b ) ) μ v ( d k ) = ∫ d ρ g ( k ) ( z , ρ g ( b ) ) μ v ( d k ) = ∫ d k ( z , b ) μ v ( d k ) = p v ( b ) . (67) \begin{aligned}
p_v(\rho_g(b))
&=\int d_k(z,\rho_g(b))\,\mu_v(\mathrm{d}k)\\
&=\int d_{\rho_g(k)}(z,\rho_g(b))\,\mu_v(\mathrm{d}k)\\
&=\int d_k(z,b)\,\mu_v(\mathrm{d}k)\\
&=p_v(b). \tag*{(67)}
\end{aligned} p v ( ρ g ( b )) = ∫ d k ( z , ρ g ( b )) μ v ( d k ) = ∫ d ρ g ( k ) ( z , ρ g ( b )) μ v ( d k ) = ∫ d k ( z , b ) μ v ( d k ) = p v ( b ) . (67)
The first and last lines use (66) . The second line applies (53) to the bounded function f ( k ) = d k ( z , ρ g ( b ) ) f(k)=d_k(z,\rho_g(b)) f ( k ) = d k ( z , ρ g ( b )) . The third line applies (55) at each key. Notice that the target is not relabeled in the actual attack. The calculation compares the probabilities of different decoder outputs for the same fixed text z z z .
Step 7: sum over the distinct messages in the orbit. By definition of B \mathcal{B} B , each b ∈ B b\in\mathcal{B} b ∈ B has the form b = ρ m ′ ( b ′ ) b=\rho_{m'}(b') b = ρ m ′ ( b ′ ) for some g ∈ H g\in H g ∈ H . Substituting m ′ m' m ′ for b b b in (67) therefore gives p v ( b ) = p v ( m ′ ) p_v(b)=p_v(m') p v ( b ) = p v ( m ′ ) for every b ∈ B b\in\mathcal{B} b ∈ B . There are N N N distinct messages in this set. The events that the decoder outputs each of these messages are pairwise disjoint: one decoder run returns at most one message. Consequently,
N p v ( m ′ ) = ∑ b ∈ B p v ( b ) = Pr [ D K ( z ) ∈ B ∣ V = v ] ≤ 1. (68) N p_v(m') = \sum_{b \in\mathcal{B}} p_v(b)
= \Pr[D_K(z) \in\mathcal{B} \mid V = v]
\le1. \tag*{(68)} N p v ( m ′ ) = b ∈ B ∑ p v ( b ) = Pr [ D K ( z ) ∈ B ∣ V = v ] ≤ 1. (68)
We sum over distinct messages, not group elements: several relabelings can send m ′ m' m ′ to the same message and must not be counted repeatedly. Dividing by N ≥ 1 N \ge1 N ≥ 1 proves
Pr [ D K ( A ( O , R ) ) = m ′ ∣ O , R ] ≤ 1 N . (69) \Pr[D_K(A(O,R)) = m' \mid O,R] \le\frac{1}{N}. \tag*{(69)} Pr [ D K ( A ( O , R )) = m ′ ∣ O , R ] ≤ N 1 . (69)
This inequality holds almost surely in ( O , R ) (O,R) ( O , R ) . The inequality in (68) allows the decoder to output messages outside B \mathcal{B} B or to abstain. Thus we have not assumed that its total probability on this orbit is one.
Step 8: average over the attack’s private randomness. Let E : = { D K ( A ( O , R ) ) = m ′ } E := \{D_K(A(O,R)) = m'\} E := { D K ( A ( O , R )) = m ′ } be the success event. Because conditioning on ( O , R ) (O,R) ( O , R ) includes conditioning on O O O , the law of iterated conditional expectation gives
Pr [ E ∣ O ] = E [ 1 E ∣ O ] = E [ E [ 1 E ∣ O , R ] ∣ O ] = E [ Pr [ E ∣ O , R ] ∣ O ] ≤ E [ 1 N ∣ O ] = 1 N . (70) \begin{aligned}
\Pr[E \mid O] &= \mathbb{E}[\mathbf{1}_E \mid O] \\
&= \mathbb{E}[\mathbb{E}[\mathbf{1}_E \mid O,R] \mid O] \\
&= \mathbb{E}[\Pr[E \mid O,R] \mid O] \\
&\le\mathbb{E}\left[\left.\frac{1}{N}\right| O\right] \\
&= \frac{1}{N}. \tag*{(70)}
\end{aligned} Pr [ E ∣ O ] = E [ 1 E ∣ O ] = E [ E [ 1 E ∣ O , R ] ∣ O ] = E [ Pr [ E ∣ O , R ] ∣ O ] ≤ E [ N 1 O ] = N 1 . (70)
The inequality substitutes (69) and uses monotonicity of conditional expectation. The last equality holds because M M M and m ′ m' m ′ are fixed, so their orbit size N N N is fixed. This averaging uses the actual conditional law of R R R given O O O , and it does not assume that the seed remains independent of the key after observation. Replacing N N N by its definition in (38) gives the claimed general bound.
When the ideal-key assumption applies. Assumption (A1) is a distributional requirement, not a consequence of the algebraic identity (33) alone. In the binary position–color idealization, at each context the position is uniform on [ L ] [L] [ L ] and the balanced two-color partition is uniform, independently of that position and of the assignments at other contexts. A position permutation and per-position color flips define a bijection of the possible (position, partition) pairs. Each pair originally has the same probability, so the relabeled pair is again uniform. The transformation acts separately at each context, preserving independence across contexts, and repeated contexts still read the same assignment. This proves invariance of the entire ideal key table. For a concrete finite-seed pseudorandom implementation, a uniform seed by itself does not prove that the induced table distribution has this exact symmetry. The information-theoretic conclusion above uses (A1).
Why the condition on ties cannot be dropped. Consider two-bit messages, a single controlled message ( 0 , 1 ) (0,1) ( 0 , 1 ) , and the relabeling
ρ g ( b 1 , b 2 ) = ( 1 − b 2 , 1 − b 1 ) . (71) \rho_g(b_1,b_2) = (1-b_2,1-b_1). \tag*{(71)} ρ g ( b 1 , b 2 ) = ( 1 − b 2 , 1 − b 1 ) . (71)
This is a position swap together with a flip at each position in the binary group described in the main text. It fixes ( 0 , 1 ) (0,1) ( 0 , 1 ) , so g ∈ H g \in H g ∈ H , but it interchanges ( 0 , 0 ) (0,0) ( 0 , 0 ) and ( 1 , 1 ) (1,1) ( 1 , 1 ) . With one controlled message, a stabilizing relabeling has its color flips determined by its position permutation. There are just two position permutations here: the identity gives the identity relabeling, and the swap gives g g g . Therefore
Orb H ( ( 1 , 1 ) ) = { ( 1 , 1 ) , ( 0 , 0 ) } . (72) \operatorname{Orb}_H((1,1)) = \{(1,1),(0,0)\}. \tag*{(72)} Orb H (( 1 , 1 )) = {( 1 , 1 ) , ( 0 , 0 )} . (72)
On an empty text all vote counts are zero. A decoder that resolves every tied bit toward 1 returns ( 1 , 1 ) (1,1) ( 1 , 1 ) for every key. Its success probability for that target is 1, exceeding the purported bound 1 / 2 1/2 1/2 . The equivariance assumption excludes precisely this failure. The example concerns exact decoding, and it does not claim that an empty text passes watermark acceptance or preserves a source’s content.
Source texts and unlabelled observations. The attacker of § 3 also observes the source y y y . To apply the theorem, include it in the observation:
O = ( y , O M ) , A ( O , R ) = A ( y , m ′ , O M , R ) . (73) O = (y,O_M), \qquad A(O,R) = A(y,m',O_M,R). \tag*{(73)} O = ( y , O M ) , A ( O , R ) = A ( y , m ′ , O M , R ) . (73)
Here the fixed target is left implicit on the left-hand side. If y y y is generated under a controlled message, Step 2 applies directly. If y y y is generated independently of the key and the account experiment, it also preserves the likelihood invariance. A source under a different unknown message requires an additional assumption, because simply not revealing its message does not imply symmetry.
For example, let U = ( U 1 , … , U s ) U = (U_1,\ldots,U_s) U = ( U 1 , … , U s ) be the unknown messages of all additional watermarked texts. Define the joint relabeling
( K , U ) ↦ ( ρ g ( K ) , ρ g ( U 1 ) , … , ρ g ( U s ) ) . (74) (K,U) \mapsto(\rho_g(K),\rho_g(U_1),\ldots,\rho_g(U_s)). \tag*{(74)} ( K , U ) ↦ ( ρ g ( K ) , ρ g ( U 1 ) , … , ρ g ( U s )) . (74)
Suppose their joint prior is invariant under this map for every g ∈ H g \in H g ∈ H . An invariant key prior with independent uniform U j U_j U j on a finite message space is one sufficient choice: the map permutes that message space, so it preserves each uniform distribution and their product. For each additional text, (33) gives
G ρ g ( u j ) ρ g ( k ) ( c ) = G k u j ( c ) . (75) G^{\rho_g(k)}_{\rho_g(u_j)}(c)=G^{u_j}_{k}(c). \tag*{(75)} G ρ g ( u j ) ρ g ( k ) ( c ) = G k u j ( c ) . (75)
Thus the response likelihood is invariant when key and hidden messages are relabeled together. Step 3 applies to this enlarged hidden state, and Step 4 gives invariance of its posterior. Taking a posterior event of the form { K ∈ B , U ∈ M s } \{K \in B, U \in\mathcal{M}^{s}\} { K ∈ B , U ∈ M s } then gives invariance of the marginal posterior of K K K , since the full message space maps to itself. Steps 5–8 therefore prove the same bound conditional on all these observations. If an extra source message is known, it should instead be added to M M M , and the orbit recomputed under the resulting smaller stabilizer. An arbitrary fixed or nonuniform unknown source message is not covered without the stated joint symmetry.
Content constraints, acceptance, and the meaning of the bound. The proof applies to every output text A ( O , R ) A(O,R) A ( O , R ) , so restricting the attacker to content-preserving rewrites of y y y , as condition (ii) of its goal in § 3 demands, cannot invalidate the upper bound when y y y is included in O O O as above. A deployment may also apply a keyed acceptance test Acc K ( z ) ∈ { 0 , 1 } \operatorname{Acc}_K(z) \in\{0,1\} Acc K ( z ) ∈ { 0 , 1 } , which decides whether a text is watermarked at all, before it attributes the text to the decoded message, and the attacker’s goal in § 3 omits this test. The bound covers it nonetheless: for Z : = A ( O , R ) Z := A(O,R) Z := A ( O , R ) ,
Pr [ D K ( Z ) = m ′ , Acc K ( Z ) = 1 ∣ O ] ≤ Pr [ D K ( Z ) = m ′ ∣ O ] ≤ 1 N . (76) \Pr[D_K(Z)=m',\operatorname{Acc}_K(Z)=1 \mid O]
\le\Pr[D_K(Z)=m' \mid O]\le\frac{1}{N}. \tag*{(76)} Pr [ D K ( Z ) = m ′ , Acc K ( Z ) = 1 ∣ O ] ≤ Pr [ D K ( Z ) = m ′ ∣ O ] ≤ N 1 . (76)
The first inequality follows because the event on the first line is a subset of the exact-decoding event. It requires no symmetry of the acceptance rule when D K D_K D K itself satisfies (A3). This is a bound on joint success and acceptance, not on the success probability conditional on acceptance.
For a released decoder with a label-dependent tie rule, apply the theorem instead to the decoder that abstains whenever the relevant extremum is not unique. On texts without such ties the two decoders agree, so the joint event of exact success and no ties is bounded by 1 / N 1/N 1/ N . To transfer that bound to accepted outputs of the released decoder, one must establish that acceptance excludes all the relevant ties, and the presence of an acceptance threshold alone does not establish this.
Finally, when N = 1 N=1 N = 1 the bound is 1 and places no restriction on success. When N > 1 N>1 N > 1 , Step 7 identifies the obstruction: all N N N orbit messages have equal conditional decoding probability. The theorem supplies an upper bound, not an attack attaining it. In particular, a singleton orbit alone does not prove that a content-preserving successful rewrite exists.
Binary ambiguity count
We make the binary position–color setting of § 3 explicit, verify that its relabelings form a group acting as (33) requires, determine the stabilizer H M \mathcal{H}_M H M of the controlled messages exactly, and count the orbit of the target. Throughout, ( u + w ) m o d 2 (u+w)\bmod2 ( u + w ) mod 2 denotes the sum of the bits u u u and w w w reduced modulo 2, so that ( u + u ) m o d 2 = 0 (u+u)\bmod2=0 ( u + u ) mod 2 = 0 . Since ( ( u + w ) m o d 2 + z ) m o d 2 = ( u + w + z ) m o d 2 ((u+w)\bmod2+z)\bmod2=(u+w+z)\bmod2 (( u + w ) mod 2 + z ) mod 2 = ( u + w + z ) mod 2 , a reduction inside a longer sum may be postponed to the end, and we do so without comment. On bit vectors the reduction acts coordinatewise.
Closed-form count. Fix the following.
(S1) Messages, keys, and sets. The message space is M = { 0 , 1 } L \mathcal{M}=\{0,1\}^{L} M = { 0 , 1 } L . A key K K K assigns to every context c c c a position J K ( c ) ∈ [ L ] J_K(c)\in[L] J K ( c ) ∈ [ L ] and a coloring C K ( c , ⋅ ) : V → { 0 , 1 } C_K(c,\cdot):\mathcal{V}\to\{0,1\} C K ( c , ⋅ ) : V → { 0 , 1 } , and the green list of message m m m at c c c is G K m ( c ) = { v : C K ( c , v ) = m J K ( c ) } G^m_K(c)=\{v:C_K(c,v)=m_{J_K(c)}\} G K m ( c ) = { v : C K ( c , v ) = m J K ( c ) } , as in (3) .
(S2) Relabelings. An element of G \mathcal{G} G is a pair g = ( σ , f ) g=(\sigma,f) g = ( σ , f ) of a permutation σ ∈ S L \sigma\in\mathcal{S}_L σ ∈ S L of the positions and a flip vector f ∈ { 0 , 1 } L f\in\{0,1\}^{L} f ∈ { 0 , 1 } L . It acts on messages and keys as follows, where the first line holds for every j ∈ [ L ] j\in[L] j ∈ [ L ] ,
[ ρ g ( m ) ] σ ( j ) = ( m j + f j ) m o d 2 , [\rho_g(m)]_{\sigma(j)}=(m_j+f_j)\bmod2, [ ρ g ( m ) ] σ ( j ) = ( m j + f j ) mod 2 ,
J ρ g ( K ) ( c ) = σ ( J K ( c ) ) , J_{\rho_g(K)}(c)=\sigma(J_K(c)), J ρ g ( K ) ( c ) = σ ( J K ( c )) ,
C ρ g ( K ) ( c , v ) = ( C K ( c , v ) + f J K ( c ) ) m o d 2. (77) C_{\rho_g(K)}(c,v)=(C_K(c,v)+f_{J_K(c)})\bmod2. \tag*{(77)} C ρ g ( K ) ( c , v ) = ( C K ( c , v ) + f J K ( c ) ) mod 2. (77)
Thus the bit at position j j j moves to position σ ( j ) \sigma(j) σ ( j ) and is flipped exactly when f j = 1 f_j=1 f j = 1 , and the key renames its positions by σ \sigma σ and exchanges the two color names at every context whose position j j j has f j = 1 f_j=1 f j = 1 . The identity is e = ( i d , 0 ) e=(\mathrm{id},0) e = ( id , 0 ) , and the product of g = ( σ g , f g ) g=(\sigma_g,f^g) g = ( σ g , f g ) and h = ( σ h , f h ) h=(\sigma_h,f^h) h = ( σ h , f h ) is
g ∘ h = ( σ g ∘ σ h , f g ∘ h ) , f j g ∘ h = ( f j h + f σ h ( j ) g ) m o d 2. (78) g\circ h=(\sigma_g\circ\sigma_h,f^{g\circ h}),\qquad
f^{g\circ h}_j=(f^h_j+f^g_{\sigma_h(j)})\bmod2. \tag*{(78)} g ∘ h = ( σ g ∘ σ h , f g ∘ h ) , f j g ∘ h = ( f j h + f σ h ( j ) g ) mod 2. (78)
Signatures and twin classes
For the controlled messages M = ( m ( 1 ) , … , m ( n ) ) M=(m^{(1)},\ldots,m^{(n)}) M = ( m ( 1 ) , … , m ( n ) ) and every position j j j , the account signature is x j = ( x j , 2 , … , x j , n ) x_j=(x_{j,2},\ldots,x_{j,n}) x j = ( x j , 2 , … , x j , n ) with x j , i = ( m j ( i ) + m j ( 1 ) ) m o d 2 x_{j,i}=(m^{(i)}_j+m^{(1)}_j)\bmod2 x j , i = ( m j ( i ) + m j ( 1 ) ) mod 2 , as in (5) . Positions with equal signatures are twins, T \mathcal{T} T is the partition of [ L ] [L] [ L ] into twin classes, and for the target m ′ m' m ′ the relative bits are r j = ( m j ′ + m j ( 1 ) ) m o d 2 r_j=(m'_j+m^{(1)}_j)\bmod2 r j = ( m j ′ + m j ( 1 ) ) mod 2 , with a T = ∑ j ∈ T r j a_T=\sum_{j\in T}r_j a T = ∑ j ∈ T r j for T ∈ T T\in\mathcal{T} T ∈ T .
Then ( G , ∘ ) (\mathcal{G},\circ) ( G , ∘ ) is a finite group, the action (77) satisfies (33) , and the orbit of m ′ m' m ′ under the stabilizer H M \mathcal{H}_M H M of (34) has size
∣ Orb H M ( m ′ ) ∣ = ∏ T ∈ T ( ∣ T ∣ a T ) . (79) \lvert\operatorname{Orb}_{\mathcal{H}_M}(m')\rvert
=\prod_{T\in\mathcal{T}}\binom{\lvert T\rvert}{a_T}. \tag*{(79)} ∣ Orb H M ( m ′ )∣ = T ∈ T ∏ ( a T ∣ T ∣ ) . (79)
Proof. We first check that (77) is a group action with the equivariance property, so that the general bound of Appendix K applies. We then determine H M \mathcal{H}_M H M exactly, pass to coordinates relative to the reference message, and count.
Step 1: verify the group action and the equivariance identity. The identity acts trivially: with e = ( id , 0 ) e=(\operatorname{id},0) e = ( id , 0 ) , (77) gives [ ρ e ( m ) ] j = m j [\rho_e(m)]_j=m_j [ ρ e ( m ) ] j = m j , J ρ e ( K ) = J K J_{\rho_e(K)}=J_K J ρ e ( K ) = J K , and C ρ e ( K ) = C K C_{\rho_e(K)}=C_K C ρ e ( K ) = C K , so ρ e ( x ) = x \rho_e(x)=x ρ e ( x ) = x for every message and key x x x . For the composition, fix g , h g,h g , h , and a message m m m . Applying (77) twice,
[ ρ g ( ρ h ( m ) ) ] σ g ( σ h ( j ) ) = ( [ ρ h ( m ) ] σ h ( j ) + f σ h ( j ) g ) m o d 2 = ( m j + f j h + f σ h ( j ) g ) m o d 2 = ( m j + f j g ∘ h ) m o d 2 , (80) \begin{aligned}
[\rho_g(\rho_h(m))]_{\sigma_g(\sigma_h(j))}
&=([\rho_h(m)]_{\sigma_h(j)}+f^g_{\sigma_h(j)})\bmod2\\
&=(m_j+f^h_j+f^g_{\sigma_h(j)})\bmod2\\
&=(m_j+f^{g\circ h}_j)\bmod2, \tag*{(80)}
\end{aligned} [ ρ g ( ρ h ( m )) ] σ g ( σ h ( j )) = ([ ρ h ( m ) ] σ h ( j ) + f σ h ( j ) g ) mod 2 = ( m j + f j h + f σ h ( j ) g ) mod 2 = ( m j + f j g ∘ h ) mod 2 , (80)
which is [ ρ g ∘ h ( m ) ] ( σ g ∘ σ h ) ( j ) [\rho_{g\circ h}(m)]_{(\sigma_g\circ\sigma_h)(j)} [ ρ g ∘ h ( m ) ] ( σ g ∘ σ h ) ( j ) by (77) and (78) . For a key,
J ρ g ( ρ h ( K ) ) ( c ) = σ g ( J ρ h ( K ) ( c ) ) = σ g ( σ h ( J K ( c ) ) ) , C ρ g ( ρ h ( K ) ) ( c , v ) = ( C ρ h ( K ) ( c , v ) + f J ρ h ( K ) ( c ) g ) m o d 2 = ( C K ( c , v ) + f J K ( c ) h + f σ h ( J K ( c ) ) g ) m o d 2 = ( C K ( c , v ) + f J K ( c ) g ∘ h ) m o d 2. (81) \begin{aligned}
J_{\rho_g(\rho_h(K))}(c)
&=\sigma_g(J_{\rho_h(K)}(c))\\
&=\sigma_g(\sigma_h(J_K(c))),\\
C_{\rho_g(\rho_h(K))}(c,v)
&=(C_{\rho_h(K)}(c,v)+f^g_{J_{\rho_h(K)}(c)})\bmod2\\
&=(C_K(c,v)+f^h_{J_K(c)}+f^g_{\sigma_h(J_K(c))})\bmod2\\
&=(C_K(c,v)+f^{g\circ h}_{J_K(c)})\bmod2. \tag*{(81)}
\end{aligned} J ρ g ( ρ h ( K )) ( c ) C ρ g ( ρ h ( K )) ( c , v ) = σ g ( J ρ h ( K ) ( c )) = σ g ( σ h ( J K ( c ))) , = ( C ρ h ( K ) ( c , v ) + f J ρ h ( K ) ( c ) g ) mod 2 = ( C K ( c , v ) + f J K ( c ) h + f σ h ( J K ( c )) g ) mod 2 = ( C K ( c , v ) + f J K ( c ) g ∘ h ) mod 2. (81)
which is the action of g ∘ h g\circ h g ∘ h on K K K . Hence ρ g ∘ h = ρ g ∘ ρ h \rho_{g\circ h}=\rho_g\circ\rho_h ρ g ∘ h = ρ g ∘ ρ h on messages and keys, and together with ρ e = id \rho_e=\operatorname{id} ρ e = id these are the first two identities of (33) . Every g = ( σ , f ) g=(\sigma,f) g = ( σ , f ) has the inverse g − 1 = ( σ − 1 , f ′ ) g^{-1}=(\sigma^{-1},f') g − 1 = ( σ − 1 , f ′ ) with f σ ( j ) ′ = f j f'_{\sigma(j)}=f_j f σ ( j ) ′ = f j , that is, f k ′ = f σ − 1 ( k ) f'_k=f_{\sigma^{-1}(k)} f k ′ = f σ − 1 ( k ) . Indeed, by (78) the product g ∘ g − 1 g\circ g^{-1} g ∘ g − 1 has permutation σ ∘ σ − 1 = id \sigma\circ\sigma^{-1}=\operatorname{id} σ ∘ σ − 1 = id and flips ( f k ′ + f σ − 1 ( k ) ) m o d 2 = 0 (f'_k+f_{\sigma^{-1}(k)})\bmod2=0 ( f k ′ + f σ − 1 ( k ) ) mod 2 = 0 at every k k k , and g − 1 ∘ g g^{-1}\circ g g − 1 ∘ g has permutation id \operatorname{id} id and flips ( f j + f σ ( j ) ′ ) m o d 2 = 0 (f_j+f'_{\sigma(j)})\bmod2=0 ( f j + f σ ( j ) ′ ) mod 2 = 0 at every j j j , so both products equal e e e . The action on messages is faithful: if ρ g ( m ) = m \rho_g(m)=m ρ g ( m ) = m for every m m m , then m = 0 m=0 m = 0 gives f j = [ ρ g ( 0 ) ] σ ( j ) = 0 f_j=[\rho_g(0)]_{\sigma(j)}=0 f j = [ ρ g ( 0 ) ] σ ( j ) = 0 for every j j j , and then [ ρ g ( m ) ] σ ( j ) = m j [\rho_g(m)]_{\sigma(j)}=m_j [ ρ g ( m ) ] σ ( j ) = m j for every m m m forces σ ( j ) = j \sigma(j)=j σ ( j ) = j , as the unit vector m m m with a single one at position j j j shows. Therefore g ↦ ρ g g\mapsto\rho_g g ↦ ρ g is an injective map from G \mathcal{G} G to the bijections of { 0 , 1 } L \{0,1\}^L { 0 , 1 } L that sends ∘ \circ ∘ to composition, e e e to the identity, and g − 1 g^{-1} g − 1 to the inverse, so ∘ \circ ∘ inherits associativity from composition and ( G , ∘ ) (\mathcal{G},\circ) ( G , ∘ ) is a group. It has 2 L L ! 2^L L! 2 L L ! elements and is therefore finite. Finally, for the last identity of (33) put j = J K ( c ) j=J_K(c) j = J K ( c ) . Then J ρ g ( K ) ( c ) = σ ( j ) J_{\rho_g(K)}(c)=\sigma(j) J ρ g ( K ) ( c ) = σ ( j ) , and by (77) the membership condition C ρ g ( K ) ( c , v ) = [ ρ g ( m ) ] σ ( j ) C_{\rho_g(K)}(c,v)=[\rho_g(m)]_{\sigma(j)} C ρ g ( K ) ( c , v ) = [ ρ g ( m ) ] σ ( j ) reads
( C K ( c , v ) + f j ) m o d 2 = ( m j + f j ) m o d 2. (82) (C_K(c,v)+f_j)\bmod2=(m_j+f_j)\bmod2. \tag*{(82)} ( C K ( c , v ) + f j ) mod 2 = ( m j + f j ) mod 2. (82)
Adding the same bit f j f_j f j to both sides of an equation modulo 2 does not change its solutions, so (82) holds exactly when C K ( c , v ) = m j C_K(c,v)=m_j C K ( c , v ) = m j . Hence
G ρ g ( K ) ρ g ( m ) ( c ) = { v : C ρ g ( K ) ( c , v ) = [ ρ g ( m ) ] σ ( j ) } = { v : C K ( c , v ) = m j } = G K m ( c ) . (83) G^{\rho_g(m)}_{\rho_g(K)}(c)
=\{v:C_{\rho_g(K)}(c,v)=[\rho_g(m)]_{\sigma(j)}\}
=\{v:C_K(c,v)=m_j\}
=G^m_K(c). \tag*{(83)} G ρ g ( K ) ρ g ( m ) ( c ) = { v : C ρ g ( K ) ( c , v ) = [ ρ g ( m ) ] σ ( j ) } = { v : C K ( c , v ) = m j } = G K m ( c ) . (83)
By Step 1 of Appendix K, which used only the identities (33) , every ρ g \rho_g ρ g is therefore a bijection with inverse ρ g − 1 \rho_{g^{-1}} ρ g − 1 , and H M \mathcal{H}_M H M is a subgroup of G \mathcal{G} G .
Step 2: determine the stabilizer. Let g = ( σ , f ) ∈ G g=(\sigma,f)\in\mathcal{G} g = ( σ , f ) ∈ G . By (77) , ρ g ( m ( i ) ) = m ( i ) \rho_g(m^{(i)})=m^{(i)} ρ g ( m ( i ) ) = m ( i ) holds exactly when [ ρ g ( m ( i ) ) ] σ ( j ) = m σ ( j ) ( i ) [\rho_g(m^{(i)})]_{\sigma(j)}=m^{(i)}_{\sigma(j)} [ ρ g ( m ( i ) ) ] σ ( j ) = m σ ( j ) ( i ) for every j j j , that is, when
( m j ( i ) + f j ) m o d 2 = m σ ( j ) ( i ) ( j ∈ [ L ] ) . (84) (m^{(i)}_j+f_j)\bmod2=m^{(i)}_{\sigma(j)}
\qquad(j\in[L]). \tag*{(84)} ( m j ( i ) + f j ) mod 2 = m σ ( j ) ( i ) ( j ∈ [ L ]) . (84)
We use (84) first for the reference account and then for the others. For i = 1 i=1 i = 1 , adding m j ( 1 ) m^{(1)}_j m j ( 1 ) to both sides of (84) modulo 2 and using ( u + u ) m o d 2 = 0 (u+u)\bmod2=0 ( u + u ) mod 2 = 0 gives f j = ( m j ( 1 ) + m σ ( j ) ( 1 ) ) m o d 2 f_j=(m^{(1)}_j+m^{(1)}_{\sigma(j)})\bmod2 f j = ( m j ( 1 ) + m σ ( j ) ( 1 ) ) mod 2 for every j j j . Hence the flips of an element of H M \mathcal{H}_M H M are determined by its permutation, and we write
f j σ : = ( m j ( 1 ) + m σ ( j ) ( 1 ) ) m o d 2 ( j ∈ [ L ] ) . (85) f^\sigma_j:=(m^{(1)}_j+m^{(1)}_{\sigma(j)})\bmod2
\qquad(j\in[L]). \tag*{(85)} f j σ := ( m j ( 1 ) + m σ ( j ) ( 1 ) ) mod 2 ( j ∈ [ L ]) . (85)
For i ≥ 2 i \ge2 i ≥ 2 , substitute f = f σ f=f^\sigma f = f σ into (84) and add m σ ( j ) ( i ) m_{\sigma(j)}^{(i)} m σ ( j ) ( i ) to both sides modulo 2. By (85) and ( u + u ) mod 2 = 0 (u+u)\mathbin{\operatorname{mod}}2=0 ( u + u ) mod 2 = 0 , the left side becomes
( m j ( i ) + f j σ + m σ ( j ) ( 1 ) ) mod 2 = ( m j ( i ) + m j ( 1 ) ) mod 2 = x j , i , (86) \begin{aligned}
\left(m_j^{(i)}+f_j^\sigma+m_{\sigma(j)}^{(1)}\right)\mathbin{\operatorname{mod}}2
&=\left(m_j^{(i)}+m_j^{(1)}\right)\mathbin{\operatorname{mod}}2=x_{j,i}, \tag*{(86)}
\end{aligned} ( m j ( i ) + f j σ + m σ ( j ) ( 1 ) ) mod 2 = ( m j ( i ) + m j ( 1 ) ) mod 2 = x j , i , (86)
and the right side becomes
( m σ ( j ) ( i ) + m σ ( j ) ( 1 ) ) mod 2 = x σ ( j ) , i , (87) \left(m_{\sigma(j)}^{(i)}+m_{\sigma(j)}^{(1)}\right)\mathbin{\operatorname{mod}}2=x_{\sigma(j),i}, \tag*{(87)} ( m σ ( j ) ( i ) + m σ ( j ) ( 1 ) ) mod 2 = x σ ( j ) , i , (87)
where both final equalities are the definition of the signatures in (S3). Adding the same bit to both sides of an equation modulo 2 is reversible, so for i ≥ 2 i\ge2 i ≥ 2 condition (84) is equivalent to x j , i = x σ ( j ) , i x_{j,i}=x_{\sigma(j),i} x j , i = x σ ( j ) , i . Requiring this for every i ∈ { 2 , … , n } i\in\{2,\ldots,n\} i ∈ { 2 , … , n } says x σ ( j ) = x j x_{\sigma(j)}=x_j x σ ( j ) = x j , that is, σ ( j ) \sigma(j) σ ( j ) is a twin of j j j . Every step above is an equivalence, so we have shown
( σ , f ) ∈ H M ⟺ f = f σ and x σ ( j ) = x j for every j ∈ [ L ] . (88) (\sigma,f)\in\mathcal{H}_M\Longleftrightarrow f=f^\sigma\ \text{and}\ x_{\sigma(j)}=x_j\ \text{for every }j\in[L]. \tag*{(88)} ( σ , f ) ∈ H M ⟺ f = f σ and x σ ( j ) = x j for every j ∈ [ L ] . (88)
Let Σ T \Sigma_{\mathcal{T}} Σ T be the set of permutations σ ∈ S L \sigma\in S_L σ ∈ S L with x σ ( j ) = x j x_{\sigma(j)}=x_j x σ ( j ) = x j for every j j j . Such a σ \sigma σ maps every twin class T T T into itself, and since σ \sigma σ is injective and T T T is finite, σ ( T ) = T \sigma(T)=T σ ( T ) = T . Thus σ \sigma σ restricts to a permutation σ T \sigma_T σ T of each class. Conversely, every family ( σ T ) T ∈ T (\sigma_T)_{T\in\mathcal{T}} ( σ T ) T ∈ T of permutations σ T ∈ S ( T ) \sigma_T\in\mathcal{S}(T) σ T ∈ S ( T ) defines an element of Σ T \Sigma_{\mathcal{T}} Σ T by σ ( j ) = σ T ( j ) \sigma(j)=\sigma_T(j) σ ( j ) = σ T ( j ) for j ∈ T j\in T j ∈ T , because the classes partition [ L ] [L] [ L ] and σ ( j ) \sigma(j) σ ( j ) then has the signature of j j j . Identifying a permutation with its tuple of restrictions, we obtain
Σ T = ∏ T ∈ T S ( T ) , \Sigma_{\mathcal{T}}=\prod_{T\in\mathcal{T}}\mathcal{S}(T), Σ T = T ∈ T ∏ S ( T ) ,
H M = { ( σ , f σ ) : σ ∈ Σ T } , (89) \mathcal{H}_M=\{(\sigma,f^\sigma):\sigma\in\Sigma_{\mathcal{T}}\}, \tag*{(89)} H M = {( σ , f σ ) : σ ∈ Σ T } , (89)
where the second line restates (88) , and the map σ ↦ ( σ , f σ ) \sigma\mapsto(\sigma,f^\sigma) σ ↦ ( σ , f σ ) is a bijection from Σ T \Sigma_{\mathcal{T}} Σ T onto H M \mathcal{H}_M H M .
Step 3: pass to coordinates relative to the reference message. For a message m m m define r ( m ) : = ( m + m ( 1 ) ) mod 2 r(m):=(m+m^{(1)})\mathbin{\operatorname{mod}}2 r ( m ) := ( m + m ( 1 ) ) mod 2 coordinatewise, so that R : = r ( m ′ ) = ( r 1 , … , r L ) R:=r(m')=(r_1,\ldots,r_L) R := r ( m ′ ) = ( r 1 , … , r L ) is the vector of relative target bits of (S3). The map r r r is a bijection of { 0 , 1 } L \{0,1\}^L { 0 , 1 } L , since r ( r ( m ) ) = ( m + m ( 1 ) + m ( 1 ) ) mod 2 = m r(r(m))=(m+m^{(1)}+m^{(1)})\mathbin{\operatorname{mod}}2=m r ( r ( m )) = ( m + m ( 1 ) + m ( 1 ) ) mod 2 = m . For σ ∈ S L \sigma\in S_L σ ∈ S L and a bit vector u u u , let π σ ( u ) \pi_\sigma(u) π σ ( u ) be the vector whose coordinates are those of u u u moved by σ \sigma σ ,
[ π σ ( u ) ] σ ( j ) : = u j ( j ∈ [ L ] ) . (90) [\pi_\sigma(u)]_{\sigma(j)}:=u_j\qquad(j\in[L]). \tag*{(90)} [ π σ ( u ) ] σ ( j ) := u j ( j ∈ [ L ]) . (90)
Now let g = ( σ , f σ ) ∈ H M g=(\sigma,f^\sigma)\in\mathcal{H}_M g = ( σ , f σ ) ∈ H M . By (77) , (85) , and ( u + u ) mod 2 = 0 (u+u)\mathbin{\operatorname{mod}}2=0 ( u + u ) mod 2 = 0 ,
[ r ( ρ g ( m ′ ) ) ] σ ( j ) = ( [ ρ g ( m ′ ) ] σ ( j ) + m σ ( j ) ( 1 ) ) mod 2 = ( m j ′ + f j σ + m σ ( j ) ( 1 ) ) mod 2 = ( m j ′ + m j ( 1 ) ) mod 2 = r j , (91) \begin{aligned}
[r(\rho_g(m'))]_{\sigma(j)}
&=([\rho_g(m')]_{\sigma(j)}+m_{\sigma(j)}^{(1)})\mathbin{\operatorname{mod}}2\\
&=(m_j'+f_j^\sigma+m_{\sigma(j)}^{(1)})\mathbin{\operatorname{mod}}2\\
&=(m_j'+m_j^{(1)})\mathbin{\operatorname{mod}}2=r_j, \tag*{(91)}
\end{aligned} [ r ( ρ g ( m ′ )) ] σ ( j ) = ([ ρ g ( m ′ ) ] σ ( j ) + m σ ( j ) ( 1 ) ) mod 2 = ( m j ′ + f j σ + m σ ( j ) ( 1 ) ) mod 2 = ( m j ′ + m j ( 1 ) ) mod 2 = r j , (91)
that is, r ( ρ g ( m ′ ) ) = π σ ( R ) r(\rho_g(m'))=\pi_\sigma(R) r ( ρ g ( m ′ )) = π σ ( R ) : an element of the stabilizer moves the relative bits of the target along its permutation and flips none of them. Let O : = { π σ ( R ) : σ ∈ Σ T } \mathcal{O}:=\{\pi_\sigma(R):\sigma\in\Sigma_{\mathcal{T}}\} O := { π σ ( R ) : σ ∈ Σ T } . Since r r r is a bijection and, by (89) , σ \sigma σ ranges over Σ T \Sigma_{\mathcal{T}} Σ T as g g g ranges over H M \mathcal{H}_M H M ,
Orb H M ( m ′ ) = r − 1 ( O ) , ∣ Orb H M ( m ′ ) ∣ = ∣ O ∣ . (92) \operatorname{Orb}_{\mathcal{H}_M}(m')=r^{-1}(\mathcal{O}),\qquad|\operatorname{Orb}_{\mathcal{H}_M}(m')|=|\mathcal{O}|. \tag*{(92)} Orb H M ( m ′ ) = r − 1 ( O ) , ∣ Orb H M ( m ′ ) ∣ = ∣ O ∣. (92)
Step 4: decompose along the twin classes. Write u ∣ T ∈ { 0 , 1 } T u|_T\in\{0,1\}^T u ∣ T ∈ { 0 , 1 } T for the restriction of a bit vector u u u to the coordinates in T T T . Because the classes partition [ L ] [L] [ L ] , the map u ↦ ( u ∣ T ) T ∈ T u\mapsto(u|_T)_{T\in\mathcal{T}} u ↦ ( u ∣ T ) T ∈ T is a bijection from { 0 , 1 } L \{0,1\}^L { 0 , 1 } L onto ∏ T { 0 , 1 } T \prod_T\{0,1\}^T ∏ T { 0 , 1 } T . For σ ∈ Σ T \sigma\in\Sigma_{\mathcal{T}} σ ∈ Σ T and k ∈ T k\in T k ∈ T we have σ − 1 ( k ) ∈ T \sigma^{-1}(k)\in T σ − 1 ( k ) ∈ T by Step 2, so (90) gives [ π σ ( u ) ] k = u σ − 1 ( k ) = [ π σ T ( u ∣ T ) ] k [\pi_\sigma(u)]_k=u_{\sigma^{-1}(k)}=[\pi_{\sigma_T}(u|_T)]_k [ π σ ( u ) ] k = u σ − 1 ( k ) = [ π σ T ( u ∣ T ) ] k , that is,
π σ ( u ) ∣ T = π σ T ( u ∣ T ) ( T ∈ T ) . (93) \pi_\sigma(u)|_T=\pi_{\sigma_T}(u|_T)\qquad(T\in\mathcal{T}). \tag*{(93)} π σ ( u ) ∣ T = π σ T ( u ∣ T ) ( T ∈ T ) . (93)
Put O T : = { π τ ( R ∣ T ) : τ ∈ S ( T ) } \mathcal{O}_T:=\{\pi_\tau(R|_T):\tau\in\mathcal{S}(T)\} O T := { π τ ( R ∣ T ) : τ ∈ S ( T )} . We claim that O \mathcal{O} O consists exactly of the vectors u u u with u ∣ T ∈ O T u|_T\in\mathcal{O}_T u ∣ T ∈ O T for every T T T . If u = π σ ( R ) u=\pi_\sigma(R) u = π σ ( R ) with σ ∈ Σ T \sigma\in\Sigma_{\mathcal{T}} σ ∈ Σ T , then (93) gives u ∣ T = π σ T ( R ∣ T ) ∈ O T u|_T=\pi_{\sigma_T}(R|_T)\in\mathcal{O}_T u ∣ T = π σ T ( R ∣ T ) ∈ O T for every T T T . Conversely, if u ∣ T ∈ O T u|_T\in\mathcal{O}_T u ∣ T ∈ O T for every T T T , choose τ T ∈ S ( T ) \tau_T\in\mathcal{S}(T) τ T ∈ S ( T ) with π τ T ( R ∣ T ) = u ∣ T \pi_{\tau_T}(R|_T)=u|_T π τ T ( R ∣ T ) = u ∣ T , and let σ ∈ Σ T \sigma\in\Sigma_{\mathcal{T}} σ ∈ Σ T be the permutation with restrictions σ T = τ T \sigma_T=\tau_T σ T = τ T , which exists by (89) . Then (93) gives π σ ( R ) ∣ T = u ∣ T \pi_\sigma(R)|_T=u|_T π σ ( R ) ∣ T = u ∣ T for every T T T , so π σ ( R ) = u \pi_\sigma(R)=u π σ ( R ) = u and u ∈ O u\in\mathcal{O} u ∈ O . Hence u ↦ ( u ∣ T ) T ∈ T u\mapsto(u|_T)_{T\in\mathcal{T}} u ↦ ( u ∣ T ) T ∈ T maps O \mathcal{O} O bijectively onto ∏ T O T \prod_T\mathcal{O}_T ∏ T O T , and
∣ O ∣ = ∏ T ∈ T ∣ O T ∣ . (94) |\mathcal{O}|=\prod_{T\in\mathcal{T}}|\mathcal{O}_T|. \tag*{(94)} ∣ O ∣ = T ∈ T ∏ ∣ O T ∣. (94)
Step 5: count within one twin class. Fix T ∈ T T\in\mathcal{T} T ∈ T , put k = ∣ T ∣ k=|T| k = ∣ T ∣ , and let w ∗ = R ∣ T w^\ast=R|_T w ∗ = R ∣ T , which has exactly a T a_T a T coordinates equal to one by the definition of a T a_T a T in (S3). We claim
O T = { w ∈ { 0 , 1 } T : w has exactly a T ones } . (95) \mathcal{O}_T=\{w\in\{0,1\}^T:w\text{ has exactly }a_T\text{ ones}\}. \tag*{(95)} O T = { w ∈ { 0 , 1 } T : w has exactly a T ones } . (95)
Moving coordinates does not change how many of them equal one, so O T \mathcal{O}_T O T is contained in the right side. Conversely, let w w w have exactly a T a_T a T ones, and let P = { j ∈ T : w j ∗ = 1 } P=\{j\in T:w_j^\ast=1\} P = { j ∈ T : w j ∗ = 1 } and Q = { j ∈ T : w j = 1 } Q=\{j\in T:w_j=1\} Q = { j ∈ T : w j = 1 } , two subsets of T T T with ∣ P ∣ = ∣ Q ∣ = a T |P|=|Q|=a_T ∣ P ∣ = ∣ Q ∣ = a T and hence ∣ T ∖ P ∣ = ∣ T ∖ Q ∣ = k − a T |T \setminus P| = |T \setminus Q| = k-a_T ∣ T ∖ P ∣ = ∣ T ∖ Q ∣ = k − a T . Choose a bijection from P P P onto Q Q Q and a bijection from T ∖ P T \setminus P T ∖ P onto T ∖ Q T \setminus Q T ∖ Q , and let τ \tau τ be their union, a permutation of T T T . For j ∈ P j \in P j ∈ P , (90) gives [ π τ ( w ∗ ) ] τ ( j ) = w j ∗ = 1 [\pi_\tau(w^*)]_{\tau(j)} = w^*_j = 1 [ π τ ( w ∗ ) ] τ ( j ) = w j ∗ = 1 with τ ( j ) ∈ Q \tau(j) \in Q τ ( j ) ∈ Q , and for j ∈ T ∖ P j \in T \setminus P j ∈ T ∖ P it gives [ π τ ( w ∗ ) ] τ ( j ) = 0 [\pi_\tau(w^*)]_{\tau(j)} = 0 [ π τ ( w ∗ ) ] τ ( j ) = 0 with τ ( j ) ∉ Q \tau(j) \notin Q τ ( j ) ∈ / Q . Since τ \tau τ is a bijection of T T T , the vector π τ ( w ∗ ) \pi_\tau(w^*) π τ ( w ∗ ) equals one exactly on Q Q Q , so π τ ( w ∗ ) = w \pi_\tau(w^*) = w π τ ( w ∗ ) = w and w ∈ O T w \in O_T w ∈ O T . The right side of (95) is in bijection with the a T a_T a T -element subsets of the k k k -element set T T T , so
∣ O T ∣ = ( ∣ T ∣ a T ) . (96) |O_T| = \binom{|T|}{a_T}. \tag*{(96)} ∣ O T ∣ = ( a T ∣ T ∣ ) . (96)
Step 6: conclude. Substituting (96) into (94) and the result into (92) gives
∣ Orb H M ( m ′ ) ∣ = ∣ O ∣ = ∏ T ∈ T ( ∣ T ∣ a T ) , (97) |\operatorname{Orb}_{\mathcal{H}_M}(m')| = |\mathcal{O}| = \prod_{T \in\mathcal{T}} \binom{|T|}{a_T}, \tag*{(97)} ∣ Orb H M ( m ′ ) ∣ = ∣ O ∣ = T ∈ T ∏ ( a T ∣ T ∣ ) , (97)
which is (79) . Together with (10) , this identifies the main text’s N ( M , m ′ ) N(M,m') N ( M , m ′ ) with the number of indistinguishable messages. As in Step 7 of Appendix K, the count is over distinct messages: several elements of H M \mathcal{H}_M H M may send m ′ m' m ′ to the same message, which is why we counted the vectors in O \mathcal{O} O rather than the permutations in Σ T \Sigma_{\mathcal{T}} Σ T . Substituting this identity into the general bound of Appendix K gives (11) and completes the proof of Theorem 1. □
Consequences used in the main text. For k ≥ 1 k \ge1 k ≥ 1 the binomial coefficient ( k a ) \binom{k}{a} ( a k ) equals 1 exactly when a ∈ { 0 , k } a \in\{0,k\} a ∈ { 0 , k } , and a product of positive integers equals 1 exactly when every factor does. Hence the orbit is trivial if and only if a T ∈ { 0 , ∣ T ∣ } a_T \in\{0,|T|\} a T ∈ { 0 , ∣ T ∣ } for every class, that is, if and only if the relative bits r j r_j r j are constant on every twin class. Choosing this constant independently for each of the ∣ T ∣ |\mathcal{T}| ∣ T ∣ classes gives 2 ∣ T ∣ 2^{|\mathcal{T}|} 2 ∣ T ∣ vectors r r r , and m ′ = ( r + m ( 1 ) ) m o d 2 m' = (r + m^{(1)}) \bmod2 m ′ = ( r + m ( 1 ) ) mod 2 is a bijection between these vectors and the targets with a trivial orbit, so exactly 2 ∣ T ∣ 2^{|\mathcal{T}|} 2 ∣ T ∣ targets are reachable. When every position has a distinct signature, every class is a singleton and all 2 L 2^L 2 L targets are reachable. Finally, (91) is the reason behind the construction (6) : for a target with a trivial orbit, r r r takes a single value r T r_T r T on each class, so the attacker needs only the class T ( c ) T(c) T ( c ) of a context to decide whether the target’s set at c c c is G 1 ( c ) G_1(c) G 1 ( c ) or its complement.
Proof of certificate validity
We prove Theorem 2 for a fixed observation O O O and rewrite z z z . In the ideal-key model, the hidden positions J K ( c ) J_K(c) J K ( c ) are initially independent and uniform on [ L ] [L] [ L ] across distinct contexts. The controlled-account sets observed at c c c reveal the account signature x J K ( c ) x_{J_K(c)} x J K ( c ) , and therefore the twin class T ( c ) T(c) T ( c ) , but not the position inside that class. The within-class symmetries proved in Appendix K assign equal posterior probability to every position in T ( c ) T(c) T ( c ) . Independence across distinct contexts is preserved because the ideal key assigns them independently and the observations expose only their classes, and repeated occurrences of the same context share the same assignment. If no class was identified, the observation gives no position information and the posterior remains uniform on [ L ] [L] [ L ] . Consequently, the conditional law of the position map J K J_K J K on the contexts of z z z is exactly Π O \Pi_O Π O .
For a key K K K , define the true target vote of a scored pair by
σ K ( c , v ) : = { + 1 , v ∈ G K ′ ( c ) , − 1 , v ∉ G K ′ ( c ) . (98) \sigma_K(c,v) :=
\begin{cases}
+1, & v \in G'_K(c),\\
-1, & v \notin G'_K(c).
\end{cases} \tag*{(98)} σ K ( c , v ) := { + 1 , − 1 , v ∈ G K ′ ( c ) , v ∈ / G K ′ ( c ) . (98)
When the target set at c c c was recovered, the attacker’s vote σ ( c , v ) \sigma(c,v) σ ( c , v ) equals σ K ( c , v ) \sigma_K(c,v) σ K ( c , v ) . When it was not recovered, the attacker sets σ ( c , v ) = − 1 \sigma(c,v) = -1 σ ( c , v ) = − 1 , so in every case
σ ( c , v ) ≤ σ K ( c , v ) . (99) \sigma(c,v) \le\sigma_K(c,v). \tag*{(99)} σ ( c , v ) ≤ σ K ( c , v ) . (99)
For the true assignment J K J_K J K , let
M j K : = ∑ ( c , v ) ∈ P ( z ) : J K ( c ) = j σ K ( c , v ) (100) M_j^K := \sum_{\substack{(c,v)\in P(z):\\ J_K(c)=j}} \sigma_K(c,v) \tag*{(100)} M j K := ( c , v ) ∈ P ( z ) : J K ( c ) = j ∑ σ K ( c , v ) (100)
be the decoder’s target margin at position j j j . Equations (99) and (100) give
M j ( J K ) ≤ M j K ( j ∈ [ L ] ) . (101) M_j(J_K) \le M_j^K \qquad(j \in[L]). \tag*{(101)} M j ( J K ) ≤ M j K ( j ∈ [ L ]) . (101)
Therefore, if E E E holds for the conservative tally, every position is covered and has M j K > 0 M_j^K > 0 M j K > 0 . The strict-majority decoder must then output m ′ m' m ′ at every position. Pointwise in the hidden key,
1 { E ( J K ) } ≤ 1 { D K ( z ) = m ′ } . (102) \mathbf{1}\{E(J_K)\} \le\mathbf{1}\{D_K(z)=m'\}. \tag*{(102)} 1 { E ( J K )} ≤ 1 { D K ( z ) = m ′ } . (102)
Taking conditional expectations and using that J K ∣ O ∼ Π O J_K \mid O \sim\Pi_O J K ∣ O ∼ Π O yields
Cert ( z , m ′ ∣ O ) = Pr J ∼ Π O [ E ] = Pr [ E ( J K ) ∣ O ] ≤ Pr [ D K ( z ) = m ′ ∣ O ] , (103) \operatorname{Cert}(z,m' \mid O)
= \Pr_{J\sim\Pi_O}[E]
= \Pr[E(J_K)\mid O]
\le\Pr[D_K(z)=m'\mid O], \tag*{(103)} Cert ( z , m ′ ∣ O ) = J ∼ Π O Pr [ E ] = Pr [ E ( J K ) ∣ O ] ≤ Pr [ D K ( z ) = m ′ ∣ O ] , (103)
which proves the lower bound. If every target set used by z z z was recovered, then (99) is an equality for every pair. The strict-majority decoder outputs m ′ m' m ′ exactly when every position is covered and has positive target margin, so (102) is also an equality. This proves the equality claim.
The vote bound
The certificate of § 3.2 evaluates the decoder’s vote tally exactly under the attacker’s posterior. The following bound complements it from the other side: it lower-bounds the success probability in terms of the true vote counts and vote biases, which the attacker cannot see, and explains why the constrained rule succeeds once enough contexts carry a target vote. We fix the setting with numbered assumptions, state the bound, and prove it in four steps: the vote probabilities of the two rewriting rules, the decoder’s success as an intersection of per-position majority events, Hoeffding’s inequality for each failure event, and a union bound over the positions.
Setting. Fix a source y y y , a target m ′ ∈ { 0 , 1 } L m' \in\{0,1\}^{L} m ′ ∈ { 0 , 1 } L , and a rewrite z = ( z 1 , … , z T ) z=(z_1,\ldots,z_T) z = ( z 1 , … , z T ) of y y y produced by the rule of § 3.1 for any threshold τ ≥ 0 \tau\ge0 τ ≥ 0 , with or without the 4-gram block, and assume the following.
(V1) Decoder. The decoder is the binary position–color decoder of (3) . Let P ( z ) \mathcal{P}(z) P ( z ) be the set of distinct context–token pairs ( c t , z t ) (c_t,z_t) ( c t , z t ) of z z z , each pair counted once however often it occurs. Position j ∈ [ L ] j \in[L] j ∈ [ L ] receives the pairs with J K ( c ) = j J_K(c)=j J K ( c ) = j , and for a color b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } its vote count is
V j ( b ) : = # { ( c , v ) ∈ P ( z ) : J K ( c ) = j , C K ( c , v ) = b } . (104) V_j(b):=\#\{(c,v)\in\mathcal{P}(z):J_K(c)=j,\ C_K(c,v)=b\}. \tag*{(104)} V j ( b ) := # {( c , v ) ∈ P ( z ) : J K ( c ) = j , C K ( c , v ) = b } . (104)
so that N j : = V j ( 0 ) + V j ( 1 ) N_j:=V_j(0)+V_j(1) N j := V j ( 0 ) + V j ( 1 ) is the number of pairs at position j j j . The decoder outputs at position j j j the color b b b with V j ( b ) > V j ( 1 − b ) V_j(b)>V_j(1-b) V j ( b ) > V j ( 1 − b ) whenever such a color exists, and D K ( z ) = m ′ D_K(z)=m' D K ( z ) = m ′ requires this output to be m j ′ m'_j m j ′ at every position.
(V2) Rewrite rule and recovered sets. The orbit of m ′ m' m ′ is trivial and the attacker has recovered every target set G K m ′ ( c ) G^{m'}_K(c) G K m ′ ( c ) exactly, so that at every step t t t the target-compatible set is B t = G K m ′ ( c t ) B_t=G^{m'}_K(c_t) B t = G K m ′ ( c t ) , since the decoder of (V1) rewards membership in the target’s set. Token z t z_t z t is drawn from the constrained distribution (7) when q t ≥ τ q_t\ge\tau q t ≥ τ and B t B_t B t contains an available token, and otherwise from the soft bias (8) , where p t p_t p t is the paraphraser’s distribution at step t t t , after the 4-gram block has removed its tokens if the block is in use, and
q t = ∑ u ∈ B t p t ( u ) . q_t=\sum_{u\in B_t}p_t(u). q t = u ∈ B t ∑ p t ( u ) .
(V3) Vote variables. Enumerate the pairs of position j j j as ( c j , s , v j , s ) (c_{j,s},v_{j,s}) ( c j , s , v j , s ) for s = 1 , … , N j s=1,\ldots,N_j s = 1 , … , N j , and put
X j , s : = 1 { C K ( c j , s , v j , s ) = m j ′ } = 1 { v j , s ∈ G K m ′ ( c j , s ) } . (105) X_{j,s}:=\mathbf{1}\{C_K(c_{j,s},v_{j,s})=m'_j\}
=\mathbf{1}\{v_{j,s}\in G^{m'}_K(c_{j,s})\}. \tag*{(105)} X j , s := 1 { C K ( c j , s , v j , s ) = m j ′ } = 1 { v j , s ∈ G K m ′ ( c j , s )} . (105)
the two forms being equal by (3) because J K ( c j , s ) = j J_K(c_{j,s})=j J K ( c j , s ) = j .
(V4) Independence and bias. Conditionally on the vote counts ( N j ) j ∈ [ L ] (N_j)_{j\in[L]} ( N j ) j ∈ [ L ] , the variables X j , s X_{j,s} X j , s are independent, and there are numbers ρ j > 1 / 2 \rho_j>1/2 ρ j > 1/2 with Pr [ X j , s = 1 ] ≥ ρ j \Pr[X_{j,s}=1]\ge\rho_j Pr [ X j , s = 1 ] ≥ ρ j for every j j j and s s s . All probabilities below are conditional on ( N j ) j ∈ [ L ] (N_j)_{j\in[L]} ( N j ) j ∈ [ L ] .
Theorem 3 (Vote bound). Under (V1) to (V4), a pair drawn by (7) has X j , s = 1 X_{j,s}=1 X j , s = 1 with certainty, a pair drawn by (8) at step t t t has X j , s = 1 X_{j,s}=1 X j , s = 1 with probability q t e δ a t k q t e δ a t k + 1 − q t \frac{q_t e^{\delta_{\mathrm{atk}}}}{q_t e^{\delta_{\mathrm{atk}}}+1-q_t} q t e δ atk + 1 − q t q t e δ atk , and
Pr [ D K ( z ) = m ′ ] ≥ 1 − ∑ j = 1 L e − 2 N j ( ρ j − 1 / 2 ) 2 . (106) \Pr[D_K(z)=m']\ge1-\sum_{j=1}^{L}e^{-2N_j(\rho_j-1/2)^2}. \tag*{(106)} Pr [ D K ( z ) = m ′ ] ≥ 1 − j = 1 ∑ L e − 2 N j ( ρ j − 1/2 ) 2 . (106)
Proof. Step 1: compute the vote probabilities of the two rules. Let t t t be a step whose pair ( c t , z t ) (c_t,z_t) ( c t , z t ) belongs to position j j j , so that J K ( c t ) = j J_K(c_t)=j J K ( c t ) = j and B t = G K m ′ ( c t ) B_t=G^{m'}_K(c_t) B t = G K m ′ ( c t ) by (V2). If z t z_t z t is drawn from (7) , then r t ( v ) = 0 r_t(v)=0 r t ( v ) = 0 for every v ∉ B t v\notin B_t v ∈ / B t , so z t ∈ B t z_t\in B_t z t ∈ B t with probability one and the pair’s vote variable equals 1 { z t ∈ G K m ′ ( c t ) } = 1 \mathbf{1}\{z_t\in G^{m'}_K(c_t)\}=1 1 { z t ∈ G K m ′ ( c t )} = 1 . If z t z_t z t is drawn from (8) , then r t ( v ) = p t ( v ) e δ a t k / Z t r_t(v)=p_t(v)e^{\delta_{\mathrm{atk}}}/Z_t r t ( v ) = p t ( v ) e δ atk / Z t for v ∈ B t v\in B_t v ∈ B t and r t ( v ) = p t ( v ) / Z t r_t(v)=p_t(v)/Z_t r t ( v ) = p t ( v ) / Z t for v ∉ B t v\notin B_t v ∈ / B t , with the normalizer
Z t = ∑ v ∈ B t p t ( v ) e δ a t k + ∑ v ∉ B t p t ( v ) = q t e δ a t k + 1 − q t . (107) Z_t=\sum_{v\in B_t}p_t(v)e^{\delta_{\mathrm{atk}}}+\sum_{v\notin B_t}p_t(v)
=q_t e^{\delta_{\mathrm{atk}}}+1-q_t. \tag*{(107)} Z t = v ∈ B t ∑ p t ( v ) e δ atk + v ∈ / B t ∑ p t ( v ) = q t e δ atk + 1 − q t . (107)
because ∑ v ∉ B t p t ( v ) = 1 − q t \sum_{v\notin B_t}p_t(v)=1-q_t ∑ v ∈ / B t p t ( v ) = 1 − q t . Summing r t r_t r t over B t B_t B t ,
Pr [ z t ∈ B t ] = q t e δ a t k q t e δ a t k + 1 − q t , (108) \Pr[z_t\in B_t]=\frac{q_t e^{\delta_{\mathrm{atk}}}}{q_t e^{\delta_{\mathrm{atk}}}+1-q_t}, \tag*{(108)} Pr [ z t ∈ B t ] = q t e δ atk + 1 − q t q t e δ atk , (108)
which is the stated probability. When the 4-gram block removes tokens, p t p_t p t denotes the blocked and renormalized distribution, and both computations apply unchanged with its q t q_t q t . Since e δ a t k > 1 e^{\delta_{\mathrm{atk}}}>1 e δ atk > 1 , the probability (108) exceeds q t q_t q t , and it exceeds 1 / 2 1/2 1/2 exactly when q t e δ a t k > 1 − q t q_t e^{\delta_{\mathrm{atk}}}>1-q_t q t e δ atk > 1 − q t .
Step 2: express the decoder’s success through the vote sums. Fix a position j j j and put S j : = S_j:= S j := ∑ s = 1 N j X j , s \sum_{s=1}^{N_j} X_{j,s} ∑ s = 1 N j X j , s . Every pair at position j j j has one of the two colors, so (104) and (105) give
V j ( m j ′ ) = S j , V j ( 1 − m j ′ ) = N j − S j . (109) V_j(m'_j)=S_j,\qquad V_j(1-m'_j)=N_j-S_j. \tag*{(109)} V j ( m j ′ ) = S j , V j ( 1 − m j ′ ) = N j − S j . (109)
By (V1), the decoder outputs m j ′ m'_j m j ′ at position j j j whenever V j ( m j ′ ) > V j ( 1 − m j ′ ) V_j(m'_j)>V_j(1-m'_j) V j ( m j ′ ) > V j ( 1 − m j ′ ) , that is, whenever S j > N j − S j S_j>N_j-S_j S j > N j − S j , which is equivalent to S j > N j / 2 S_j>N_j/2 S j > N j /2 . Define the failure event
F j : = { S j ≤ N j / 2 } . (110) F_j:=\{S_j\le N_j/2\}. \tag*{(110)} F j := { S j ≤ N j /2 } . (110)
If N j = 0 N_j=0 N j = 0 , then S j = 0 S_j=0 S j = 0 and F j F_j F j is certain, which matches the fact that an empty position has no majority. If no F j F_j F j occurs, every position outputs m j ′ m'_j m j ′ and D K ( z ) = m ′ D_K(z)=m' D K ( z ) = m ′ . Hence
{ D K ( z ) = m ′ } ⊇ ⋂ j = 1 L F j c , (111) \{D_K(z)=m'\}\supseteq\bigcap_{j=1}^{L}F_j^{\mathrm{c}}, \tag*{(111)} { D K ( z ) = m ′ } ⊇ j = 1 ⋂ L F j c , (111)
Pr [ D K ( z ) = m ′ ] ≥ 1 − Pr [ ⋃ j = 1 L F j ] . \Pr[D_K(z)=m']\ge1-\Pr\left[\bigcup_{j=1}^{L}F_j\right]. Pr [ D K ( z ) = m ′ ] ≥ 1 − Pr [ j = 1 ⋃ L F j ] .
The inclusion is an equality when the decoder never outputs m j ′ m'_j m j ′ from a tie, which the strict majority rule of (V1) guarantees, but the inequality is all the proof needs.
Step 3: bound each failure event by Hoeffding’s inequality. Hoeffding’s inequality (Hoeffding, 1963) states that for independent random variables Y 1 , … , Y N Y_1,\ldots,Y_N Y 1 , … , Y N with 0 ≤ Y s ≤ 1 0\le Y_s\le1 0 ≤ Y s ≤ 1 and S = ∑ s = 1 N Y s S=\sum_{s=1}^{N}Y_s S = ∑ s = 1 N Y s ,
Pr [ S − E [ S ] ≤ − u ] ≤ e − 2 u 2 / N ( u > 0 ) . (112) \Pr[S-\mathbb{E}[S]\le-u]\le e^{-2u^2/N}\qquad(u>0). \tag*{(112)} Pr [ S − E [ S ] ≤ − u ] ≤ e − 2 u 2 / N ( u > 0 ) . (112)
Fix j j j with N j ≥ 1 N_j\ge1 N j ≥ 1 . By (V4) the X j , s X_{j,s} X j , s are independent, take values in { 0 , 1 } \{0,1\} { 0 , 1 } , and satisfy
E [ S j ] = ∑ s = 1 N j Pr [ X j , s = 1 ] ≥ N j ρ j . (113) \mathbb{E}[S_j]=\sum_{s=1}^{N_j}\Pr[X_{j,s}=1]\ge N_j\rho_j. \tag*{(113)} E [ S j ] = s = 1 ∑ N j Pr [ X j , s = 1 ] ≥ N j ρ j . (113)
On F j F_j F j we have S j ≤ N j / 2 S_j\le N_j/2 S j ≤ N j /2 , so by (113)
S j − E [ S j ] ≤ N j 2 − N j ρ j = − N j ( ρ j − 1 2 ) . (114) S_j-\mathbb{E}[S_j]\le\frac{N_j}{2}-N_j\rho_j=-N_j\left(\rho_j-\frac{1}{2}\right). \tag*{(114)} S j − E [ S j ] ≤ 2 N j − N j ρ j = − N j ( ρ j − 2 1 ) . (114)
and u : = N j ( ρ j − 1 / 2 ) u:=N_j(\rho_j-1/2) u := N j ( ρ j − 1/2 ) is positive because ρ j > 1 / 2 \rho_j>1/2 ρ j > 1/2 . Applying (112) with N = N j N=N_j N = N j and this u u u ,
Pr [ F j ] ≤ Pr [ S j − E [ S j ] ≤ − u ] ≤ e − 2 u 2 / N j = e − 2 N j ( ρ j − 1 / 2 ) 2 . (115) \Pr[F_j]\le\Pr[S_j-\mathbb{E}[S_j]\le-u]\le e^{-2u^2/N_j}=e^{-2N_j(\rho_j-1/2)^2}. \tag*{(115)} Pr [ F j ] ≤ Pr [ S j − E [ S j ] ≤ − u ] ≤ e − 2 u 2 / N j = e − 2 N j ( ρ j − 1/2 ) 2 . (115)
If N j = 0 N_j=0 N j = 0 , then Pr [ F j ] = 1 = e 0 \Pr[F_j]=1=e^0 Pr [ F j ] = 1 = e 0 , so (115) holds for every position.
Step 4: combine the positions. The union bound gives Pr [ ⋃ j = 1 L F j ] ≤ ∑ j = 1 L Pr [ F j ] \Pr[\bigcup_{j=1}^{L}F_j]\le\sum_{j=1}^{L}\Pr[F_j] Pr [ ⋃ j = 1 L F j ] ≤ ∑ j = 1 L Pr [ F j ] , and inserting (115) into (111) yields
Pr [ D K ( z ) = m ′ ] ≥ 1 − ∑ j = 1 L e − 2 N j ( ρ j − 1 / 2 ) 2 , (116) \Pr[D_K(z)=m']\ge1-\sum_{j=1}^{L}e^{-2N_j(\rho_j-1/2)^2}, \tag*{(116)} Pr [ D K ( z ) = m ′ ] ≥ 1 − j = 1 ∑ L e − 2 N j ( ρ j − 1/2 ) 2 , (116)
which is (106) . The bound is informative only when the sum is below one, and it needs no assumption on how the decoder resolves ties, because Step 2 counted a tie as a failure.
Reading the bound. Under the rule with τ = 0 \tau=0 τ = 0 and every set recovered, Step 1 gives X j , s = 1 X_{j,s}=1 X j , s = 1 for every pair, so ρ j = 1 \rho_j=1 ρ j = 1 is admissible and the bound reads 1 − ∑ j e − N j / 2 1-\sum_j e^{-N_j/2} 1 − ∑ j e − N j /2 , a smooth relaxation of the exact statement that the decoder then succeeds as soon as every position receives a pair. Under the fallback (8) , ρ j \rho_j ρ j can be taken as the smallest probability (108) over the fallback steps of position j j j , provided it exceeds 1 / 2 1/2 1/2 , and the bound then says how many votes a position needs before its majority is reliable. The attacker cannot evaluate (106) itself, because it does not know the positions J K ( c ) J_K(c) J K ( c ) and hence the counts N j N_j N j , which is why § 3.2 certifies a rewrite from the posterior over the twin classes instead.
Worked examples of relabelings and stabilizers
This appendix works through two relabelings of a binary position–color watermark. The first survives after the controlled-account messages are known and therefore lies in H M \mathcal{H}_M H M , while the second is a valid symmetry of the watermark, but is ruled out by those messages. Both are pure position relabelings: their per-position color-flip vector is zero.
Common setup
Let the message space be M = { 0 , 1 } 3 \mathcal{M}=\{0,1\}^3 M = { 0 , 1 } 3 and the vocabulary be V = { a , b , c , d } \mathcal{V}=\{a,b,c,d\} V = { a , b , c , d } . At every context c c c , the key selects a message position J K ( c ) ∈ { 1 , 2 , 3 } J_K(c)\in\{1,2,3\} J K ( c ) ∈ { 1 , 2 , 3 } and assigns each token a color C K ( c , v ) ∈ { 0 , 1 } C_K(c,v)\in\{0,1\} C K ( c , v ) ∈ { 0 , 1 } . The green list is
G K m ( c ) = { v ∈ V : C K ( c , v ) = m J K ( c ) } . (117) G_K^m(c)=\{v\in\mathcal{V}:C_K(c,v)=m_{J_K(c)}\}. \tag*{(117)} G K m ( c ) = { v ∈ V : C K ( c , v ) = m J K ( c ) } . (117)
For a concrete context, suppose
J K ( c ) = 2 , m = ( 0 , 1 , 1 ) , (118) J_K(c)=2,\qquad m=(0,1,1), \tag*{(118)} J K ( c ) = 2 , m = ( 0 , 1 , 1 ) , (118)
and let the token colors be
The key reads m J K ( c ) = m 2 = 1 m_{J_K(c)} = m_2 = 1 m J K ( c ) = m 2 = 1 , so
G K m ( c ) = { v : C K ( c , v ) = 1 } = { c , d } . (119) G_K^m(c) = \{v : C_K(c,v) = 1\} = \{c,d\}. \tag*{(119)} G K m ( c ) = { v : C K ( c , v ) = 1 } = { c , d } . (119)
Finally, suppose that the attacker controls two accounts with messages
m ( 1 ) = ( 0 , 1 , 1 ) , m ( 2 ) = ( 1 , 0 , 0 ) , (120) m^{(1)} = (0,1,1), \qquad m^{(2)} = (1,0,0), \tag*{(120)} m ( 1 ) = ( 0 , 1 , 1 ) , m ( 2 ) = ( 1 , 0 , 0 ) , (120)
and write M = ( m ( 1 ) , m ( 2 ) ) M = (m^{(1)},m^{(2)}) M = ( m ( 1 ) , m ( 2 ) ) .
A relabeling retained by the stabilizer
Let g g g swap the names of positions 2 and 3. Write this permutation as
σ g ( 1 ) = 1 , σ g ( 2 ) = 3 , σ g ( 3 ) = 2. (121) \sigma_g(1) = 1, \qquad\sigma_g(2) = 3, \qquad\sigma_g(3) = 2. \tag*{(121)} σ g ( 1 ) = 1 , σ g ( 2 ) = 3 , σ g ( 3 ) = 2. (121)
Step 1. Relabel the message. The bit formerly called position j j j must appear at the new position σ g ( j ) \sigma_g(j) σ g ( j ) . Hence
[ ρ g ( m ) ] σ g ( j ) = m j , [\rho_g(m)]_{\sigma_g(j)} = m_j, [ ρ g ( m ) ] σ g ( j ) = m j ,
ρ g ( m 1 , m 2 , m 3 ) = ( m 1 , m 3 , m 2 ) . (122) \rho_g(m_1,m_2,m_3) = (m_1,m_3,m_2). \tag*{(122)} ρ g ( m 1 , m 2 , m 3 ) = ( m 1 , m 3 , m 2 ) . (122)
For example, ( 0 , 1 , 0 ) (0,1,0) ( 0 , 1 , 0 ) becomes ( 0 , 0 , 1 ) (0,0,1) ( 0 , 0 , 1 ) .
Step 2. Relabel the key. The key must follow the same renaming of positions, while the token colors remain unchanged:
J ρ g ( K ) ( c ) = σ g ( J K ( c ) ) , J_{\rho_g(K)}(c) = \sigma_g(J_K(c)), J ρ g ( K ) ( c ) = σ g ( J K ( c )) ,
C ρ g ( K ) ( c , v ) = C K ( c , v ) . (123) C_{\rho_g(K)}(c,v) = C_K(c,v). \tag*{(123)} C ρ g ( K ) ( c , v ) = C K ( c , v ) . (123)
In the concrete context of (118) , the new key therefore selects position 3.
Step 3. Check the concrete green list. Here ρ g ( m ) = ( 0 , 1 , 1 ) \rho_g(m) = (0,1,1) ρ g ( m ) = ( 0 , 1 , 1 ) and
[ ρ g ( m ) ] J ρ g ( K ) ( c ) = [ ρ g ( m ) ] 3 = 1 = m 2 . (124) \begin{aligned}
[\rho_g(m)]_{J_{\rho_g(K)}(c)} = [\rho_g(m)]_3 \\
&= 1 = m_2. \tag*{(124)}
\end{aligned} [ ρ g ( m ) ] J ρ g ( K ) ( c ) = [ ρ g ( m ) ] 3 = 1 = m 2 . (124)
The colors have not changed, so the relabeled system again selects { c , d } \{c,d\} { c , d } .
Step 4. Verify the relabeling for every key, message, and context. Fix arbitrary K K K , m m m , c c c and put j = J K ( c ) j = J_K(c) j = J K ( c ) . Equations (122) –(123) give
[ ρ g ( m ) ] J ρ g ( K ) ( c ) = [ ρ g ( m ) ] σ g ( j ) = m j = m J K ( c ) . (125) \begin{aligned}
[\rho_g(m)]_{J_{\rho_g(K)}(c)} = [\rho_g(m)]_{\sigma_g(j)} \\
&= m_j = m_{J_K(c)}. \tag*{(125)}
\end{aligned} [ ρ g ( m ) ] J ρ g ( K ) ( c ) = [ ρ g ( m ) ] σ g ( j ) = m j = m J K ( c ) . (125)
Substituting this identity and the unchanged colors into (117) yields
G ρ g ( K ) ρ g ( m ) ( c ) = { v : C ρ g ( K ) ( c , v ) = [ ρ g ( m ) ] J ρ g ( K ) ( c ) } = { v : C K ( c , v ) = m J K ( c ) } = G K m ( c ) . (126) \begin{aligned}
G_{\rho_g(K)}^{\rho_g(m)}(c)
= \left\{v : C_{\rho_g(K)}(c,v) = [\rho_g(m)]_{J_{\rho_g(K)}(c)}\right\} \\
&= \{v : C_K(c,v) = m_{J_K(c)}\}
= G_K^m(c). \tag*{(126)}
\end{aligned} G ρ g ( K ) ρ g ( m ) ( c ) = { v : C ρ g ( K ) ( c , v ) = [ ρ g ( m ) ] J ρ g ( K ) ( c ) } = { v : C K ( c , v ) = m J K ( c ) } = G K m ( c ) . (126)
Moreover, σ g \sigma_g σ g is its own inverse. Thus g g g is an invertible, set-preserving relabeling, so g ∈ G g \in G g ∈ G .
Step 5. Check the controlled messages. Both controlled messages are fixed because their second and third bits agree:
Therefore ρ g ( m ( i ) ) = m ( i ) \rho_g(m^{(i)}) = m^{(i)} ρ g ( m ( i ) ) = m ( i ) for every controlled account, which is exactly the stabilizer condition in (34) . Consequently,
g ∈ G and g ∈ H M . (127) g \in G \quad\text{and} \quad g \in H_M. \tag*{(127)} g ∈ G and g ∈ H M . (127)
A relabeling excluded by the stabilizer
Now let h h h swap the names of positions 1 and 2:
σ h ( 1 ) = 2 , σ h ( 2 ) = 1 , σ h ( 3 ) = 3. (128) \sigma_h(1) = 2, \qquad\sigma_h(2) = 1, \qquad\sigma_h(3) = 3. \tag*{(128)} σ h ( 1 ) = 2 , σ h ( 2 ) = 1 , σ h ( 3 ) = 3. (128)
Step 1. Relabel the message. As before, the old bit m j m_j m j is moved to position σ h ( j ) \sigma_h(j) σ h ( j ) :
[ ρ h ( m ) ] σ h ( j ) = m j , [\rho_h(m)]_{\sigma_h(j)} = m_j, [ ρ h ( m ) ] σ h ( j ) = m j ,
ρ h ( m 1 , m 2 , m 3 ) = ( m 2 , m 1 , m 3 ) . (129) \rho_h(m_1,m_2,m_3) = (m_2,m_1,m_3). \tag*{(129)} ρ h ( m 1 , m 2 , m 3 ) = ( m 2 , m 1 , m 3 ) . (129)
Step 2. Relabel the key. Apply the same position renaming to the key and leave its colors unchanged:
J ρ h ( K ) ( c ) = σ h ( J K ( c ) ) , J_{\rho_h(K)}(c) = \sigma_h(J_K(c)), J ρ h ( K ) ( c ) = σ h ( J K ( c )) ,
C ρ h ( K ) ( c , v ) = C K ( c , v ) . (130) C_{\rho_h(K)}(c,v) = C_K(c,v). \tag*{(130)} C ρ h ( K ) ( c , v ) = C K ( c , v ) . (130)
Thus, in the concrete context, the old choice J K ( c ) = 2 J_K(c) = 2 J K ( c ) = 2 becomes J ρ h ( K ) ( c ) = 1 J_{\rho_h(K)}(c) = 1 J ρ h ( K ) ( c ) = 1 .
Step 3. Check the concrete green list. The message becomes ρ h ( m ) = ( 1 , 0 , 1 ) \rho_h(m) = (1,0,1) ρ h ( m ) = ( 1 , 0 , 1 ) , but the new key reads
[ ρ h ( m ) ] J ρ h ( K ) ( c ) = [ ρ h ( m ) ] 1 = 1 = m 2 . (131) \begin{aligned}
[\rho_h(m)]_{J_{\rho_h(K)}(c)} = [\rho_h(m)]_1 \\
&= 1 = m_2. \tag*{(131)}
\end{aligned} [ ρ h ( m ) ] J ρ h ( K ) ( c ) = [ ρ h ( m ) ] 1 = 1 = m 2 . (131)
The selected bit and token colors are therefore unchanged, so the green list is again { c , d } \{c,d\} { c , d } .
Step 4. Verify the relabeling for every key, message, and context. For arbitrary K , m , c K,m,c K , m , c , put j = J K ( c ) j=J_K(c) j = J K ( c ) . Then
[ ρ h ( m ) ] ρ h ( K ) ( c ) = [ ρ h ( m ) ] σ h ( j ) = m j = m J K ( c ) . (132) [\rho_h(m)]_{\rho_h(K)(c)}=[\rho_h(m)]_{\sigma_h(j)}
= m_j=m_{J_K(c)}. \tag*{(132)} [ ρ h ( m ) ] ρ h ( K ) ( c ) = [ ρ h ( m ) ] σ h ( j ) = m j = m J K ( c ) . (132)
Together with C ρ h ( K ) ( c , v ) = C K ( c , v ) C_{\rho_h(K)}(c,v)=C_K(c,v) C ρ h ( K ) ( c , v ) = C K ( c , v ) , this gives, for every K , m , c K,m,c K , m , c ,
G ρ h ( K ) ρ h ( m ) ( c ) = G K m ( c ) (133) G^{\rho_h(m)}_{\rho_h(K)}(c)=G^m_K(c) \tag*{(133)} G ρ h ( K ) ρ h ( m ) ( c ) = G K m ( c ) (133)
The permutation σ h \sigma_h σ h is also its own inverse, so h h h is a valid relabeling and h ∈ G h\in\mathcal{G} h ∈ G .
Step 5. Check the controlled messages. This time neither controlled message is fixed:
Table 7.
Already ρ h ( m ( 1 ) ) ≠ m ( 1 ) \rho_h(m^{(1)})\ne m^{(1)} ρ h ( m ( 1 ) ) = m ( 1 ) , so h h h fails the defining condition of H M \mathcal{H}_M H M . Hence
h ∈ G but h ∉ H M . (134) h\in\mathcal{G}\quad\text{but}\quad h\notin\mathcal{H}_M. \tag*{(134)} h ∈ G but h ∈ / H M . (134)
What the two examples show
Table 8.
Thus G \mathcal{G} G contains all valid symmetries of the watermark, whereas H M \mathcal{H}_M H M contains only those symmetries that the known controlled-account messages do not rule out. These examples use pure position permutations. The full binary position–color group also permits a position permutation combined with per-position color flips, and such a combination is a different group element. Therefore h ∉ H M h\notin\mathcal{H}_M h ∈ / H M excludes the particular pure swap defined above, not every relabeling whose position component swaps 1 and 2.
Use of AI assistants
We used large language models to help polish the presentation and writing of this manuscript and to assist in drafting portions of the implementation code. All substantive research decisions and core technical contributions, however, were made by the authors.