# Statistical Text Watermark Robustness Under Synonym Rewriting

## Registration status and scope

Protocol v1, prepared 6 October 2026 (Australia/Sydney). This is a locally timestamped, hash-frozen pilot protocol, not an externally registered study. Deposit the frozen protocol and manifest in a public registry before making a formal preregistration claim. No watermark detection outcomes have informed this protocol. Software smoke tests use explicitly separate text. Later amendments must retain the original protocol, explain their timing, and distinguish exploratory results.

The developer of WordKingPro commissioned this evaluation and has a commercial interest in the result. The experiment is a robustness evaluation, not evidence of universal watermark removal, human authorship, originality, or success against generic AI detectors. A null or quality-damaging outcome is reportable.

## Questions and hypotheses

Primary: How does Balanced mode change the detection rate of the specified watermark relative to unchanged watermarked passages? The estimand is the average within-source difference, averaged across the three variants. Report post minus pre in percentage points (negative means reduced detection).

Secondary: Conservative and Extensive versus unchanged; Extensive+grammar versus the exact corresponding Extensive outputs; paired z-score and green-fraction changes; edit intensity; retained names/numbers/citations; readability and meaning. Directional expectation is decreasing detectability with increased editing, but estimates and two-sided 95% intervals will be reported regardless of direction. This pilot is estimation-focused: no confirmatory significance or multiplicity-adjusted discovery claims. Genre interactions and any unplanned analyses are exploratory.

## Corpus and generation

Thirty fixed English prompts in `prompts.jsonl`, ten student explanations, ten general articles, ten product/business descriptions. Each produces one marked and one unmarked original, for 60 sources. Some prompts contain synthetic fact sheets and citation markers: these are fictional evaluation fixtures, not factual claims about real products or published references.

Target 300–500 words; instruction-tuned Qwen2.5-0.5B is chosen for the available 4 GB GPU. This deliberately modest model limits external validity and may itself produce weak prose. Exact weights/tokenizer revision is resolved and frozen before generation. Same prompt, system instruction, decoding settings and paired seed are used in both conditions. Reset RNG before each condition; a shared seed does not imply matched token choices. Seeds are base seed plus prompt index. Generation settings are in `config.json`; the full input token IDs and generated token IDs are retained. Only generated continuation text is evaluated, never the prompt. Decode without tokenisation-space cleanup. Stop at model EOS or the fixed maximum; never extend, trim, or regenerate based on quality, length or detection. Retain out-of-target lengths with explicit flags. Incomplete final sentences remain observable.

Use the official lm-watermarking extended implementation, pinned to a commit. Gamma=.25, delta=2, simple_1 seeding, green selection enabled. The experimental hash key resolved by this scheme is recorded in runtime metadata. It is a reproducibility key, not an authentication credential. Use the same CUDA device type for generation and detection because the upstream PRNG permutation is device-dependent.

## Treatments and variant policy

For all 60 sources retain one unchanged baseline and three outputs for each of Conservative, Balanced, Extensive, Extensive+grammar: 780 planned records. Defaults read from the public app source are frozen in config. Protect proper nouns is enabled, custom protected words empty, whole passage spun once, and grammar filtering during spintax construction disabled. Save the proposed substitutions and spintax, but score only expanded text.

Use WordKingPro's downloaded engine and dictionary without changing its rewriting logic. Construct one template per source/mode. Call its public `variants` method once for three unique outputs with a seeded PRNG and the site's default 120-attempt limit. The only randomisation adaptation is supplying the engine's supported RNG argument, rather than browser Math.random. Retain output order; never select by detector score. If fewer than three outputs exist, record every missing slot as a generation failure and report missingness, not fabricated variants. Identical text across modes is valid and retained.

Extensive+grammar applies one `WKPGrammar.fixAll` pass to each saved Extensive variant. It does not regenerate or filter the underlying template. Use the site's Harper slim WASM, suggestions and excluded categories. Node LocalLinter replaces the browser WorkerLinter for hosting only. Capture raw pre-correction lints, corrections, output and hashes. Do not claim browser parity beyond actual validation. The pilot omits grammar-only; include it in a future study.

Snapshot engine, UI source, dictionary manifest/shards and grammar assets with SHA-256 and acquisition time. Report UI version 3.5.4 and the conflicting script query label 3.5.0; hashes are authoritative. No online product updates are permitted mid-run.

## Detector and controls

Prespecified decision rule: z > 4.0, matching upstream strict comparison. No normalizers, repeated n-grams ignored, tokenizer and seeding fixed. This is a published-style operating threshold, not an empirically validated low false-positive rate. Record z, p, green fraction, green count, scored count and actual token length. Re-tokenise the exported plaintext for every condition, including baseline. Also preserve original generation token IDs for audit; no switching representations to improve a result.

All original and rewritten unmarked texts are negative controls. Report false positives with small-sample uncertainty; 30 unmarked source clusters cannot validate a 1% FPR. No human-text calibration claim is made. Detector errors or too-short texts remain missing, never count as negatives. Baseline misses remain in primary analysis; detection loss conditional on initial detection is a separate denominator. No score-conditioned reruns or exclusions.

## Quality outcomes

Case-sensitive whitespace word count and regex word-token Levenshtein edits are recorded separately. Report insertions/deletions/substitutions, total distance divided by original token count (can exceed 100%), output length ratio, and explicitly specified exact-string retention of supplied protected facts. Exact retention is a diagnostic, not semantic equivalence; retaining a number does not ensure its relationship survived. Source facts absent from the baseline are not counted as rewriting losses. Regex number/citation multiset changes are additional diagnostics. Natural named-entity and factual meaning judgments belong to human reviewers.

Two independent people rate anonymised text. For each source choose one seeded random variant in each mode; the selected Extensive and grammar variant share an index. Include every unchanged baseline. Planned 300 review items per reviewer. Readability is rated with output alone; meaning is rated against the corresponding original in a separate packet. Hide treatment, watermark status, detector scores and product labels. Randomise packet order independently per reviewer and task. The administrator key is not sent to reviewers. Sources may be recognisable across items; this limitation will be disclosed.

Meaning and readability use anchored 1–5 scales in `REVIEWER_GUIDE.md`. Primary quality summaries are score distributions and fraction with both reviewers >=4; retain both original ratings. Report weighted Cohen kappa with disagreements, and any later adjudication separately. Automated data do not substitute for absent human review. Human quality estimates apply to the sampled variants, not all outputs. Critical errors receive separate flags and notes.

Laya is exploratory and cannot detect this watermark. Validate its rubric/coverage against the human-reviewed subset before interpreting quality scores. Use short aligned sentence-pair requests and standalone sentence readability requests; log full request/response, coverage and omissions. Do not use a most-confident window as an article-wide score. Do not tune Laya prompts on held-out human evaluation labels. Whole-document human results remain authoritative. If server token limits or checkpoint identity cannot be established, record that limitation and label Laya results unvalidated; do not infer completeness from HTTP 200.

## Analysis and missingness

Average three variant indicators within each source and then across the 30 marked source clusters. Calculate original/post rates, paired differences, and average z/green-fraction changes. Bootstrap 30 prompt clusters with replacement, 10,000 replicates and fixed seed, retaining variants and matched marked/unmarked conditions. Percentile 95% intervals; these can degenerate with all-zero/all-one data and do not establish certainty. For original binomial rates additionally report Wilson intervals. No denominator inflation to 90 independent passages. Genre rates are descriptive only (n=10 prompts).

Primary inference requires all planned sources and scores. If incomplete, report coverage, a clearly labelled complete-case descriptive summary and missing-outcome bounds; do not silently renormalise each passage over fewer variants. The harness refuses the primary summary until the planned dataset is complete. Report processing failure counts and reasons separately. Retries are for transport/runtime faults only, at most two additional attempts per job, with all attempts logged; no retry because of low quality, duplicates or a watermark score. A persistent failure requires a documented amendment or incomplete report.

Visualise detection rates by treatment (marked and controls), paired score changes, editing intensity and quality distributions when human data exist. Length effects are exploratory in this pilot; report measured scored-token counts and green fractions to separate shortening from signal changes. Do not present a post-hoc selected prefix analysis as preregistered.

## Expansion and reporting

Expand after operational validity and reviewer feasibility are established. A low baseline rate triggers a documented redesign and new dataset, not cherry-picking baseline positives. For confirmation use fresh prompts, two schemes, multiple lengths and ideally another model; set sample size using pilot cluster variance and a prespecified effect worth detecting. No automatic 200-passage power claim.

Publish all successful outputs, failures, manifests, code, raw scores and anonymised ratings permitted by licences. Preserve all unfavourable results. Examples should include median edit-distance cases per mode and separately labelled largest meaning loss, baseline miss and surviving detection, selected by declared rules after review. Disclose funding, developer involvement, software hosting adaptations, small-model and one-scheme scope, small-sample FPR uncertainty and Laya validation limitations.

## References

- Kirchenbauer et al. (2023), A Watermark for Large Language Models. https://proceedings.mlr.press/v202/kirchenbauer23a.html
- Official implementation. https://github.com/jwkirchenbauer/lm-watermarking
- Kirchenbauer et al. (2024), On the Reliability of Watermarks for Large Language Models. https://proceedings.iclr.cc/paper_files/paper/2024/hash/d78e9e4316e1714fbb0f20be66f8044c-Abstract-Conference.html
- Revisiting the Robustness of Watermarking to Paraphrasing Attacks (2024). https://aclanthology.org/2024.emnlp-main.1005.pdf
- Laya repository. https://github.com/NandhaKishorM/laya
- Tested product. https://wordkingpro.com/
