Importance of watermark removal for content quality

Combining Token Substitution, Synonym Cycling, and Prompt Perturbation to Break Green-List Red-List Signals

Layered edits may cut KGW's green-token excess, but only a measured z-score proves it.

· 8 min read
Cover illustration for “Combining Token Substitution, Synonym Cycling, and Prompt Perturbation to Break Green-List Red-List Signals”
Watermark Detection & Evasion · November 22, 2026 · 8 min read · 1,894 words

KGW watermark detector evasion by z-score requires reducing the excess of green-list tokens across a sequence. Combining token substitution, synonym cycling, and prompt perturbation can reach more of that statistical signal than isolated edits. The decisive evidence, however, is a measured z-score below the specified detector’s threshold.

How KGW embeds a statistical bias into token sequences

KGW divides the vocabulary into green and red sets at each generation step. It hashes the preceding context to derive a pseudorandom seed, uses that seed to construct the partition, and adds a fixed logit bias to green-list tokens. This raises their sampling probability without making red-list tokens forbidden or requiring a change in grammar. A token is not intrinsically green or red, because its assignment depends on the context that precedes it.

Detection reconstructs those context-dependent partitions using the text and the secret key. It counts the green tokens among the eligible positions and applies a one-proportion z-test. The standard formulation is z = (G − nγ) / √(nγ(1−γ)), where G is the observed green-token count, n is the number of eligible tokens, and γ is the expected green fraction under the null. The numerator measures excess green tokens. The denominator scales that excess against the variation expected without the watermark.

A score above the detector’s threshold supports a watermark finding because the aggregate green fraction is improbably high under the null. No individual word supplies that evidence alone. Conversely, a green token does not become suspicious simply because it belongs to the favored set at one position. Detection depends on enough eligible tokens accumulating enough excess green assignments to reach statistical significance.

Because detection depends on sample size, shorter texts tend to give weaker evidence for an otherwise similar bias. It also defines the central problem for an editing attack. Changing one position may change what it adds to the count and the assignments of nearby positions, but the excess elsewhere can remain. The signal resides in the population distribution, so a local intervention must be judged by its effect on the aggregate count.

Why token substitution alone leaves most of the green-list bias intact

Token substitution changes the token at an edited position and can disturb the context used to assign the tokens that follow. Synonym cycling extends that approach by varying the replacements rather than repeatedly applying one substitution pattern. Both can lower the green-token excess that the detector measures. Their scope is the immediate constraint. When edits reach only a minority of eligible positions, much of the sequence can retain its original contribution to the watermark.

A replacement can alter the seed for the immediately following position, while longer context windows can expose more downstream assignments to the same edit. Once the changed token falls outside the context used for an assignment, its effect on the partition ends. For post-hoc editing, this is a change in how existing tokens are evaluated. That distinction keeps the mechanism precise.

Using more preceding tokens can improve diversity and make generation details harder to infer, but it also makes the watermark more vulnerable to text modification. Shorter windows limit the reach of a substitution. They can be more robust to such edits while producing less diverse text. Consequently, the same replacement strategy need not have the same statistical effect across KGW variants.

Targeting high-entropy positions aims to weaken the signal more with fewer edits, but the detector still counts the same set of positions. Enough substitutions could, in principle, drive the score below threshold, so substitution is not mathematically incapable of evasion. The practical objection is the required editing budget and its effect on text quality. A claim that combination is more efficient must therefore compare both detection results and the amount of rewriting, rather than treating substitution’s failure as universal.

Why prompt perturbation alone reshuffles rather than removes the green-list signal

Prompt-side perturbation changes the input before generation, including through synonym introduction, word reordering, or character-level changes. This changes the context from which generation begins. If the generating model still applies KGW, it derives partitions from the new context and continues favoring green-list tokens. The result can be a different sequence with the same kind of population-level bias.

That failure mode differs from perturbing output after generation. Post-hoc changes can disturb the tokenization or contexts that the detector reconstructs when reading an existing sequence. Their purpose is not to induce a different starting distribution, but to break alignment between the generated text and the detector’s reconstructed assignments. The timing changes the mechanism. Calling both operations prompt perturbation without distinguishing them obscures why one may preserve the bias while the other may weaken its measured trace.

Character-level edits can have a broader local effect than word replacements. Zhang et al. at NDSS 2026 explain that a word-level change typically affects the word and its immediate neighbors, while a character-level change can disrupt the tokenization process. A homoglyph or a change that splits a token can therefore affect more than the visible character alone. Yet the reach remains configuration-dependent. A few disrupted regions do not establish that the full sequence has lost enough excess green assignments to evade detection.

Semantic preservation is a separate question from statistical removal. An edit can keep the meaning and disrupt processing while leaving the aggregate count too high. Prompt-side perturbation may simply produce fresh green-biased output, while sparse post-hoc perturbation may leave too much of the original signal untouched. The relevant limitation remains incomplete coverage of the positions contributing to the z-score.

Why their combination can suppress the z-score across the full token population

Combining the techniques can help with those limits by spreading changes across different parts of the sequence. Substitution changes selected token choices and their context alignment. Post-hoc perturbation can disturb additional contexts and tokenization boundaries. Synonym cycling varies the replacement strategy so that one editing pattern does not dominate.

If each pass changes much the same positions, the rest of the population may keep enough green excess for detection. If the passes reach different contributing positions, they can reduce the numerator of the z-score more broadly. The intended effect is structural. It concerns the distribution of surviving green assignments across eligible tokens, rather than the visible density of edits in a few passages.

Cycling also needs a precise interpretation. Avoiding a fixed replacement pattern may broaden the rewriting process, but a recurring synonym pattern is not itself what the KGW z-test counts. The detector counts context-dependent green assignments. Cycling helps only insofar as its changes alter that count or the contexts from which assignments are reconstructed. Its presence cannot substitute for evidence that the residual green bias has fallen.

The proposed advantage is a better trade-off between signal reduction and text quality than relying on one aggressive intervention. Describing that advantage as Pareto-superior, however, requires a comparison showing improvement without a corresponding loss on the other relevant measures. The supplied mechanism alone does not establish that result. Nor does it establish that all three techniques are necessary in every configuration.

A multi-model relay is one way to carry out this broader rewriting process. Each handoff gives another model a new input context, and the tokens it chooses can bring substitutions and varied phrasing throughout the output. Whether it actually removes enough of the original signal depends on the resulting token population, and whether the next model generates another detectable bias remains a separate question.

How multi-model pipelines implement this combination by construction

A multi-model pipeline consists of ordered model steps in which each model consumes the previous output and generates a new one. The handoff supplies a new prompt context rather than merely applying a fixed replacement table. Cross-model token choices can implement substitution and synonym variation as part of generation. This makes the architecture relevant to the combined approach.

The limitation of a single watermarked generator is that changing its prompt does not remove its generation rule. It continues applying context hashing, green-list partitioning, and logit bias under its key. Repeatedly asking that generator for different wording therefore preserves the generation bias, while leaving open the possibility of removing its signal through post-hoc editing. Editing can change the text sent to the detector, and tests are still needed to see how well it works.

A relay is useful only if its model differences produce the relevant statistical differences. Two endpoints can share an underlying provider’s green-list logic, so two model names do not establish independent token distributions. Even independent distributions do not prove that the final output falls below the target threshold. Architecture enables the intervention. Measurement establishes the outcome. For the same reason, a claim about KGW needs further evidence before it can apply to distortion-free or sampling-based watermarking schemes.

Content teams can make that architectural change without discarding working briefs, approved outlines, or reliable drafts. In the proposed workflow, the generation step changes while the brief, outline, and review stages stay in place. That is a practical advantage over rebuilding the editorial process around a separate editing routine. It does not remove the need to assess the final output against the detector under discussion.

The supporting research also has limits. Zhao et al.’s ICLR 2025 paper examines watermark detectability in model intellectual-property infringement and identifies hash key instability and query selection as challenges. It does not establish that pipeline handoffs erase KGW signals. Its findings support attention to configuration and evaluation conditions.

What quantitative proof of evasion must actually demonstrate

A credible watermark-removal claim names the detector, reports z-scores before and after processing, and accounts for how many tokens were rewritten. These are complementary requirements. The detector identifies the statistical test being challenged, the scores show its measured response, and the rewrite fraction exposes the intervention’s scope. Without those details, the result cannot show whether a small change worked or much of the original sequence was replaced.

The detector description must identify the KGW variant, context window size, and key configuration used in the evaluation. The applicable threshold must also be explicit. A lower score is not necessarily an evasion result, because the output may remain above that threshold. Likewise, judging a claimed improvement needs both the green-token count and the eligible sequence length. Both G and n enter the test.

Self-reported benchmarks establish results only for the tested configurations and inputs. A technique that crosses the threshold for one context window or key may leave a detectable signal under another. The same limitation applies to combined techniques. Their broader intended coverage does not exempt them from configuration-specific testing.

Provider diversity requires independent support rather than an inference from the number of model endpoints. A benchmark for cross-provider dispersal must establish that the pipeline is not simply passing text between models that share the relevant watermarking logic. It must also report the fraction of tokens rewritten through that process. Otherwise, the architectural explanation can outrun the evidence, attributing success to independent distributions without demonstrating that independence.

Informed buyers and content teams should demand the specified detector configuration, before-and-after z-scores, the rewrite fraction, and a final score below the detector’s stated threshold. For a combined method, those results must show the claimed population-level effect, which a record of three kinds of editing alone cannot prove. The evidence must end at the detector’s decision boundary. A pipeline that changes words has shown transformation. A reproducible test that crosses that boundary has shown evasion for the configuration tested.

Sources

  1. Published as a conference paper at ICLR 2025 CAN WATERMARKS BE USED
  2. A Survey of Text Watermarking in the Era of Large Language Models
  3. Watermark under Fire: A Robustness Evaluation of LLM ...

More in Watermark Detection & Evasion