Why Z-Score Detection Collapses Under Targeted Token Substitution
Small, well-placed edits can push KGW's z-score below threshold.

KGW watermark detection collapses under targeted token substitution when edits reduce the aggregate green-token rate enough to push its z-score below the detection threshold. The weakness lies in the structure of detection, so a better ability to recognize polished prose would not fix it. Effective evasion changes the token-level statistical signal, but more editing alone does not show that the signal is gone.
How the KGW z-score is constructed and what it actually measures
KGW partitions the vocabulary at each decoding step into a green list and a red list. In the one-token-context setting, a hash key derived from the previous token determines that partition. The parameter γ sets the fraction of vocabulary assigned to the green list, while the red list contains the remainder. These assignments depend on the preceding token. A token therefore has no fixed green or red status independent of its context.
During generation, KGW adds a fixed logit bias δ to every green-list token. This raises the probability that sampling selects a green token without requiring every selected token to be green. At detection, the detector reconstructs the assignments from the candidate text and counts the green tokens. The statistic is z = (|S|_G − γ|T|) / √(|T|γ(1−γ)), where |S|_G is the count of green tokens found in the text and |T| is the sequence length.
The numerator shows how far the green-token count is above the null expectation γ|T|. The denominator scales that excess by √(|T|γ(1−γ)). Detection is then a threshold decision on this statistic. A score above a predefined threshold, commonly 4, flags the text as watermarked. Counting requires token-level classifications, but the final z-score keeps only their total, with no record of which positions added to the excess.
Why the z-score is a threshold test on a rate, not a token-level record
For a given sequence length and γ, a threshold on the z-score is also a threshold on the empirical green-token rate. Lowering the green count lowers that rate and the statistic together. Complete removal of green tokens is unnecessary. An intervention only needs to bring their overrepresentation below the decision boundary, and some signal can remain below it.
This aggregation limits what the statistic can explain. When someone deliberately lowers the green-token rate, detection can give the same result as it does for a low rate in human-authored text. The score tests whether the observed count is sufficiently above the expected count.
The starting margin also depends on how much freedom generation allows. High-factual-accuracy responses constrain token choice, leaving fewer opportunities to embed a watermark without forcing unnatural wording. Temperature and sampling entropy likewise affect how concentrated those choices are. At lower effective entropy, the signal that builds up is weaker, but the detection threshold stays the same. Because the decision rests on an aggregate, attacking that aggregate is sufficient. An attacker does not need to identify every green token, only a method that reduces the rate.
How targeted token substitution exploits the hash-chain dependency to collapse the green-token rate
A substitution first changes the token that is scored against the green list set by the token before it. If the replacement changes that event from green to red, the observed green count falls. But the effect does not stop there. Because the replacement also supplies the context hash for the next token, it changes the partition against which that successor is scored. An unchanged successor can consequently switch classification.
This is the cascade effect in one-token-context KGW. Each scored event consists of a token paired with its predecessor, so one substitution can change two events. The substituted token changes one pair, and its role as predecessor changes the next. Neither change guarantees a green-to-red transition in isolation. The attack succeeds when the changes together lower the aggregate green count.
For a substitution that leaves token length unchanged, the denominator √(|T|γ(1−γ)) stays fixed. The expected count γ|T| also stays fixed, so a net loss of green events acts directly on the numerator. A phrase-level rewrite can disturb more events because retokenization changes token boundaries, but it also consumes more edit budget. If length changes, both the expected count and denominator must be recalculated.
The cascade is efficient, with costs and limits. Even small character-level perturbations can disturb tokenization without being readily perceptible to a reader. The relevant unit is therefore the scored token event. A small number of well-placed substitutions can disrupt more events than the number of edits suggests.
What the BIRA attack demonstrates about how completely the z-score collapses
POSTECH researchers’ 2025 paper, LLM Watermark Evasion via Bias Inversion, introduces the Bias-Inversion Rewriting Attack, or BIRA. The attack applies a negative logit bias during LLM-based rewriting to a proxy suppression set identified through self-information, also called token surprisal. It does not require the watermark’s secret key or its green-list partition.
BIRA lowers the reported z-score from 6.03 to 0.83, against a detection threshold of 4, while keeping the original text’s semantic content. The paper reports evasion rates above 99% across diverse recent watermarking schemes. Its authors characterize these results as evidence of a fundamental vulnerability. Those results concern the tested methods and conditions.
The access requirement deserves a precise distinction. BIRA uses a rewriting LLM, so it is not merely a manual word substitution. However, it is query-free with respect to the watermarked model, and the separate rewriter does not interact with that model. Access to a rewriter is required, but access to the originating model’s watermark partition is not.
Why the SIRA attack shows that only the highest-signal token positions need to be targeted
The Self-Information Rewrite Attack, or SIRA, uses self-information to identify positions most critical to the watermark signal. These are positions associated with greater freedom in the model’s choice, where a generation bias has more opportunity to affect the selected token. SIRA rewrites those positions while leaving the rest unchanged. Its reported near-complete success against seven watermarking schemes extends the argument from achievable suppression to selective suppression.
Where facts or the rules of language leave little choice, the watermark bias has less room to shape sampling. Positions with more choice can contribute more strongly to the accumulated excess. Targeting those positions therefore attacks the signal where it is concentrated rather than spending edits uniformly across the sequence.
A 2026 budgeted evasion study provides a separate, bounded result. In controlled tests of one-token-context KGW on short passages, a large share of the sources detected at first were rewritten with a terminal detector score Z below 4. The mean actual token-edit cost was well below the 20% allowance studied. This supports tractability under a strict edit budget without establishing the same performance for every passage length or context setting. Which scored events change determines the effect of the edits.
How passing through a second model already performs a version of this collapse, unintentionally
When a drafting agent passes its output to an editing agent, it can break the same context dependencies without trying to attack the watermark. When the second model rewrites, summarizes, or expands the first model’s output, it changes tokens and their predecessor relationships. Detection then reconstructs green-list assignments from the resulting sequence. Assignments that held in the original sequence need not hold in the rewritten one, fragmenting the original signal.
This is the same dependency in another setting. Targeted substitution uses changes to predecessor-token hashes on purpose, while routine rewriting makes such changes as it produces new text. A second model does not need to know the original watermark key to disturb those relationships. Nevertheless, the presence of a second model alone does not establish that the final score is below threshold. That remains a property of the resulting output and the detector applied to it.
Yi Nian et al.’s 2026 IET framework addresses the broader attribution problem across multiple agents. The researchers point out that existing approaches mainly detect text generated by a particular model and do little to trace how information flows across agents. IET uses agent-specific, key-conditioned statistical signals added during token generation, but it needs instrumentation at every agent boundary, which most enterprise pipelines do not have. A vendor-side model upgrade can also alter the pipeline’s joint output distribution without triggering a single-component drift monitor. Consequently, the effective watermark signal can shift without an explicit change to the editing workflow.
What genuine evasion requires, as opposed to editing harder
BIRA and SIRA target tokens that contribute disproportionately to the signal rather than treating every word as equally useful to replace. Ordinary paraphrasing can achieve limited evasion or distort meaning without reliably suppressing the relevant excess. Edit volume is not the governing variable here.
For content teams, the architectural implication concerns where that excess can accumulate. Token-level blending across independent providers is structurally different from post-hoc paraphrasing when it prevents any single green-list partition from governing a sufficient run of tokens to produce a detectable score. The condition is essential, because merely describing a workflow as multi-model does not demonstrate that it has achieved that result.
Two endpoints from the same provider may share green-list logic, so making more than one inference call does not by itself show that the generation paths are independent. The providers must be genuinely independent, with different architectures. Even then, the proposed mechanism is not a substitute for measurement. A blending pipeline can claim evasion only when its output shows the required drop in score against the specific detector and keeps semantic fidelity.
What a valid evasion claim must demonstrate, given what the math shows
An evasion claim must name the watermarking scheme and detector variant, give the relevant scores before and after the intervention, state the token-edit rate or how much was rewritten, and show semantic fidelity. For KGW, that means reporting the z-scores. Each requirement answers a different question about the result. Together, they identify what was tested, whether detection changed, how much intervention occurred, and whether the output retained its meaning.
The scope of the evidence must remain explicit. A result against KGW does not by itself show what works against SBW or SynthID, and a result on short passages under one-token-context conditions does not show how well it works on long-form enterprise content. Self-reported benchmarks establish results only for their tested configuration and detector. The 2025 ICLR paper on LLM watermark IP detection further shows that detectability depends heavily on the queries used to sample from a model.
For a multi-model blending pipeline, the corresponding evaluation is concrete. Test the blended output with the specific KGW-family detector in use, check that its z-score falls below the detection threshold, and account for the tokens rewritten through cross-provider dispersal. The method must also make semantic preservation assessable and the benchmark reproducible.


