AliMark: Enhancing the robustness of sentence-level watermarking to text rewritingAliMark: Enhancing Robustness of Sentence-Level Watermarking Against Text Paraphrasing
The authors propose the sentence-level watermarking framework AliMark, restating watermarking as bit-sequence encoding and alignment; the authors state that it outperforms baselines such as SemStamp and PMark under strong rewriting attacks such as DIPPER and GPT-3.5.
The defender embeds a sentence-level watermark in LLM-generated text for source tracing; the attacker rewrites the text with rewriters such as Pegasus, Parrot, DIPPER, and GPT-3.5, or in probing experiments randomly inserts, deletes, and reorders sentences (ratio 0.1–0.5), attempting to erase the watermark. At detection time only the generated text is available, not the original prompt.
- Existing sentence-level watermarking anchors the signal in sentence semantics to resist rewriting, but the prefix-based design loses the signal in a cascading way under structural perturbations such as sentence splitting and merging caused by strong rewriters (DIPPER, GPT-3.5); the authors report that SemStamp's TPR@5% drops from 91% to 22% under GPT-3.5 rewriting.
- AliMark restates sentence-level watermarking as bit sequence encoding and alignment: during generation, it selects the next sentence whose bit signal matches the corresponding block of the global secret bit sequence; during detection, it first uses Re-Structurer to generate multiple re-merged and re-split variants, then uses Adaptive Bit Sequence Alignment to align secret sequences of different lengths by Block Edit Rate, and takes the maximum z-score.
- On Booksum and C4, with OPT-1.3B, Qwen3-1.7B, and gemma-3-1B-pt as backbones, compared against 8 baselines and 4 rewriters. The authors state that AliMark is best in most settings, with a larger gap under strong rewriters (on OPT-1.3B, Booksum, under GPT-3.5, TPR@5% is 66.6%, versus 33.0% for the strongest baseline PMark); perplexity is comparable to unwatermarked text.
- The authors point out that RS performs only single-step restructuring and cannot handle multiple merges and splits, and that when the number of candidates is large and N is very large, the runtime overhead is high; weak signal on short text is a common challenge for sentence-level watermarking (all methods degrade at 4 sentences). The experiments cover only 3 backbone models, 3 datasets, and 4 rewriters, and do not report the number of repetitions or confidence intervals.
- Evaluated models
- OPT-1.3BQwen3-1.7B
- Benchmarks
- BooksumC4Natural Questions (NQ)
- Metrics
- AUROCTPR@1%TPR@5%Perplexity (PPL)
The authors propose the AliMark framework, which reformulates sentence-level watermarking as a coding alignment problem between suspected watermarked text and a secret bit sequence to enhance robustness to text rewriting. To address the sentence splitting and merging often caused by strong rewriters such as DIPPER and GPT-3.5, its two-stage detection generates multiple reconstructed text variants and adaptively aligns the bit sequence to minimize the alignment cost. Experiments show that AliMark significantly outperforms state-of-the-art baselines under various rewriting attacks.
Paper analysis
What problem does this paper attempt to solve?
The prefix-based design of sentence-level watermarking fails in a cascading way under the sentence splitting and merging caused by rewriting; the authors propose AliMark, which changes the watermark to bit-sequence encoding and alignment.
Core problem: although existing sentence-level watermarking anchors the signal in semantics to resist rewriting, its prefix-based design causes cascading loss of the watermark signal under structural perturbations such as sentence splits and merges induced by strong rewriters.
- Problem setting: LLM watermarking is used for copyright tracing and academic integrity. Token-level watermarking (e.g., KGW) is easily erased by rewriting models, so sentence-level watermarking that embeds the signal in sentence semantics has emerged (e.g., SemStamp).
- Shortcomings of existing methods (per the authors): Sentence-level methods such as SemStamp follow KGW's prefix-based design, where each sentence's signal depends on a pseudorandom relationship with the previous sentence; once rewriting changes a sentence's context, the pseudorandom relationships of that sentence and several subsequent sentences are broken, and a single context change may cause cascading loss of multiple sentences' signals (Section 2.1).
- Core observation: The authors rewrite 500 random C4 samples with GPT-3.5 and measure structural perturbation by the sentence-count change rate ∆; Figure 1 shows that most rewrites change the number of sentences; the authors report that SemStamp's TPR@5% drops from 91% to 22% under GPT-3.5 rewriting, and to about 50% when 20% of sentences are randomly deleted (Section 2.2).
- Proposed approach: AliMark is proposed, restating sentence-level watermarking as a bit-sequence encoding and alignment problem: during generation the full text encodes a secret bit sequence, and during detection multi-candidate restructuring and adaptive alignment minimize the alignment cost, thereby tolerating structural perturbations.
- Threat model:
- Defender's goal: embed a detectable sentence-level watermark in LLM-generated text for source tracing.
- Attacker's capability: rewrite the text with rewriters (Pegasus, Parrot, DIPPER, GPT-3.5), or randomly insert, delete, and reorder sentences (probing experiments, ratio 0.1–0.5).
- Victim system: the watermarked LLM text generation and detection pipeline; at detection time only the generated text is available, not the original prompt (Appendix B.3).
What related research exists?
Related work is divided into three groups: zero-bit, multi-bit, and sentence-level; this paper belongs to sentence-level watermarking, but its detection approach draws on token-level EXP alignment-style detection.
Zero-bit watermarking
- KGW (Kirchenbauer et al., 2023): embeds a statistical signal by adding a logit bias to pseudorandomly selected tokens; foundational work in this area.
- Detectability optimization: EWD (Lu et al., 2024) weights by entropy to improve sensitivity in low-entropy settings; WinMax (Kirchenbauer et al., 2024) uses a sliding window to resist signal dilution; ITS/EXP (Kuditipudi et al., 2024) embeds a secret key sequence into tokens and aligns it at detection.
- Text quality optimization: includes embedding at high-entropy positions (Wouters, 2024), allocating the vocabulary by semantic alignment (Chen et al., 2024), and increasing the probability of selecting context-relevant words (Fu et al., 2024).
Multi-bit watermarking
- Vocabulary-group encoding (Fernandez et al., 2023) and text-chunk encoding (Wang et al., 2024); the paper notes that splitting too finely weakens the signal.
- Yoo et al. (2024) combines the two ideas; Qu et al. (2025a) balances decoding efficiency and detection accuracy via segmented watermark messages.
Sentence-level watermarking
- SemStamp (Hou et al., 2024a): extends KGW's prefix hashing to the sentence semantic space, using locality-sensitive hashing to define a "green zone" from the previous sentence. k-SemStamp (Hou et al., 2024b) relaxes this to k-nearest-neighbor partitioning to improve fluency; SemaMark (Ren et al., 2024) uses normalized embedding rings.
- CoheMark (Zhang et al., 2025) and SimMark (Dabiriaghdam & Wang, 2025) use fuzzy clustering or sentence similarity for more flexible decisions; PMark (Huo et al., 2026) proposes a median estimation method for the problem of distorted sentence distributions.
- The paper notes that Christ et al. (2023), Zhou et al. (2024), Fairoze et al. (2025), Huo et al. (2026) and others also use a global secret key, but either at the token level or fail under structural perturbations due to exact bit-matching mechanisms.
Baselines and benchmarks: the compared baselines are 4 token-level methods (KGW, EXP, SynthID, SIR) and 4 sentence-level methods (SemStamp, k-SemStamp, SimMark, PMark); the evaluation datasets are Booksum and C4, with NQ added in the appendix.
Positioning: the authors say this paper is sentence-level watermarking but is mainly inspired by the token-level EXP (Kuditipudi et al., 2024), changing detection from counting to sequence alignment and using a multi-stage detection strategy to handle structural perturbations.
How does the paper address this problem?
During generation, AliMark encodes a secret bit sequence across the whole text; at detection, it reconstructs multiple candidates and takes the maximum z-score via adaptive alignment.
Overall idea: AliMark no longer makes each sentence's signal depend on the previous sentence; instead, it uses a context-independent global secret bit sequence s as the watermark key, and the full text encodes a segment of s; at detection time, text-level restructuring and bit-level alignment jointly tolerate structural perturbations. Figure 3 gives an overview, and Algorithms 1–3 give the procedure.
Generation: bit-sequence encoding
- The secret bit sequence s is divided into blocks of size M, and the n-th block s(n) specifies the M bits to be embedded in the n-th sentence.
- Given the context, the LLM generates Q next-sentence candidates; a sentence embedder Emb and M orthogonal secret vectors V are used to extract each candidate's bit signal: the m-th bit is determined by the sign of the inner product of the sentence embedding with vm, b(n−1)M+m ← ϕ(e, vm), taking 0 if the inner product is negative and 1 otherwise.
- A sentence is randomly selected from among the candidates whose bit signal exactly matches s(n); if there is no exact match, the candidate with the most matching bits is selected. Defaults are Q=64, M=8, and the sentence embedder all-mpnet-base-v2 (Appendix B.1).
Detection module one: Re-Structurer (RS)
- Single-step restructuring is applied to the input text: each pair of adjacent sentences is merged once (yielding N−1 candidates), each sentence is split at its midpoint once (yielding N candidates), and together with the original text there are 2N RS candidates in total.
- Only single-step is done because the search space of exhaustively enumerating multi-step merges and splits grows polynomially with N (Appendix A.1 gives a complexity analysis of Θ(N^(a+b))), and single-step limits the complexity to Θ(N).
Detection module two: Adaptive Bit Sequence Alignment (ABSA)
- For each RS candidate, a bit sequence bY is extracted, and a set of secret-sequence candidates S*Y of different lengths is constructed, with the number of blocks ranging around N′ from ⌈α×N′⌉ to ⌈β×N′⌉ (defaults α=0.5, β=1.5), to tolerate sentence insertion and deletion.
- The alignment cost uses Block Edit Rate (BER): Levenshtein distance is extended to the block level, with cost M for deleting or inserting a block and the Hamming distance between two blocks for substitution, solved by dynamic programming and normalized; the authors state that block-level operations fit sentence-level structural perturbations better than a per-bit independence assumption.
- Each alignment attempt yields a z-score: Z(M,N′)(r) = (μ̄(M,N′) − r) / σ̄(M,N′), where r is the BER, and the mean and standard deviation are pre-estimated by Monte Carlo sampling (1000 random sequences per parameter set) (Appendix A.2).
Watermark score
- The watermark score of the input text is defined as the maximum z-score over all RS candidates × all secret-sequence candidates (Equation 6).
- Engineering optimizations (Appendix A.3): embeddings are computed only for the 3N−1 distinct sentences; the DP table is computed only once for the longest secret-sequence candidate, reducing alignment complexity from O(N³) to O(N²).
What experiments did the paper conduct?
Compared against 8 baselines on 3 backbones, 2–3 datasets, and 4 rewriters; the authors state that AliMark is best in most settings, with a larger gap under strong rewriters.
Experimental setup
- Backbone models tested: main experiments use OPT-1.3B; supplementary experiments use Qwen3-1.7B (Table 2) and gemma-3-1B-pt (Appendix Table 7).
- Datasets: 500 instances randomly sampled each from Booksum and C4, with the first sentence as the prompt and the rest as human-text reference; Appendix B.6 adds NQ (OPT-1.3B).
- Baselines: token-level KGW, EXP, SynthID, SIR; sentence-level SemStamp, k-SemStamp, SimMark, PMark, all with official default configurations (Appendix B.1).
- Rewriters: Pegasus, Parrot (sentence-to-sentence rewriting), DIPPER (lexical diversity=60), GPT-3.5-turbo (text-level rewriting, with a prompt allowing sentence merges and splits, Appendix Figure 9).
- Metrics: AUROC, TPR@1%, TPR@5%; text quality measured by perplexity using Llama-3.1-8B.
- Generation configuration: top p=0.95, temperature=0.7, repetition penalty=1.15, 12 sentences generated per prompt; the prompt is not provided at detection time (Appendix B.2, B.3). The paper does not report the number of repetitions.
Main results
According to Table 1 (OPT-1.3B, Booksum, TPR@5%, %):
Swipe horizontally to read the table
Method No attack Pegasus Parrot DIPPER GPT-3.5 KGW 100.0 1.6 0.6 0.2 0.0 SynthID 100.0 26.4 37.2 1.8 1.0 SemStamp 91.4 70.8 73.6 26.7 22.0 PMark 97.0 86.0 93.0 30.4 33.0 AliMark 100.0 95.6 96.6 61.6 66.6 (The table lists only some baselines; EXP, SIR, k-SemStamp, and SimMark are all no higher than PMark under strong rewriters; see Table 1 for complete data.)
- The authors state that AliMark outperforms baselines in almost all settings, with a larger advantage under strong rewriters such as DIPPER and GPT-3.5: the other sentence-level baselines' TPR@5% in these two columns of Table 1 is no higher than 30.4% and 33.0%, respectively.
- Qwen3-1.7B (Table 2) shows similar trends but with exceptions: on C4 + Pegasus, AliMark's TPR@1% is 73.2%, lower than PMark's 82.2%; on C4 + Parrot, TPR@1% is 78.4%, lower than PMark's 83.0%.
- Appendix generalization: on the gemma-3-1B-pt backbone (Table 7) and the NQ dataset (Table 8), the authors state that AliMark still outperforms baselines; on NQ, SimMark's TPR@1% under Pegasus is 93.6%, close to AliMark's 93.8%.
RQ2: Adversarial structural perturbations
- What was tested: randomly inserting, deleting, and reordering sentences in watermarked text (ratio 0.1–0.5), introducing only structural perturbations, comparing AliMark's TPR@5% with SemStamp and PMark (Figure 4).
- Results: the authors state that AliMark is more stable in most settings, with the largest gap in insertion and deletion scenarios at perturbation rates 0.2–0.4; at 0.5 all methods degrade, and the authors consider perturbations of this strength to distort the original semantics and to be relatively rare in reality.
- Authors' interpretation: under reordering perturbations AliMark remains detectable, while SemStamp degrades more noticeably.
RQ3: Module ablation
- Contribution of detection modules (Figure 6, Booksum): removing RS or adaptive alignment (w/o Ada, i.e., α=β=1) causes larger drops under DIPPER and GPT-3.5, and the drop from removing RS is larger than from removing Ada in most cases; under Pegasus and Parrot the differences between variants are negligible, which the authors attribute to these two rewriters causing few structural perturbations.
- Runtime (Table 5): AliMark takes 0.02s at N=4 and 0.34s at N=128; w/o RS takes 0.07s at N=128. The authors state that the runtime cost of RS is an acceptable trade-off.
RQ4: Text quality
- Figure 7: the authors state that the perplexity distribution of text generated by OPT-1.3B and Qwen3-1.7B with AliMark is comparable to unwatermarked text.
- Table 6: perplexity rises slightly as M goes from 2 to 16 (e.g., Booksum, OPT-1.3B from 12.9±3.2 to 12.8±3.1, with 13.2±3.3 at M=8 in between), which the authors suggest may be because a larger M constrains sentence semantics to a narrower space.
Other ablations and analyses
- Block size M (Figure 5): M=8 is overall best; M=2 has insufficient information density, and gains diminish as M increases from 8 to 16.
- Sentence embedder (Table 3): multi-qa-mpnet-base-dot-v1 and all-distilroberta-v1 are slightly worse than the default all-mpnet-base-v2 (e.g., 45.0/53.6/61.6 on Booksum under DIPPER).
- Candidate budget Q (Table 4): Q=64 is best; at Q=8, TPR@5% on Booksum under DIPPER is only 25.4%; the authors state that vLLM's KV-cache is used to reduce the overhead of multi-candidate generation.
- RS scheme comparison (Table 9): multi-step restructuring and learned restructuring with GPT-3.5 are both worse than the single-step design; the learned approach reaches only 77.4% on Booksum with no attack, and the authors state that zero-shot restructuring is currently ineffective.
- Short text (Table 10): at 4 sentences all methods degrade (Booksum, no attack: SemStamp 36.8, PMark 83.0, AliMark 96.8); the authors state that weak signal on short text is a common challenge for sentence-level watermarking, and AliMark still maintains a lead.
What are some points that can be further explored?
The authors point out two limitations, single-step reconstruction of RS and the number of candidates, and give future directions; the experiments cover 3 backbones, 3 datasets, and 4 paraphrasers.
Limitations pointed out by the authors and future directions
- RS can only perform single-step reconstruction (Section 5): it cannot handle more complex structural perturbations such as multiple sentence merges and splits, which limits the upper bound of the watermark score that can be achieved.
- RS has a large number of candidates and is inefficient (Section 5): among the N−1 merge candidates plus N split candidates, many are unnecessary; when N is large, the increase in alignment attempts drives up runtime overhead.
- Future directions (Sections 5 and 6): the authors plan to study more effective RS modules (such as custom-trained models or more refined heuristics) that adaptively decide which sentences should be merged or split, so as to balance restoring the original structure and runtime efficiency.
- Learned reconstruction is currently ineffective (Appendix B.7): zero-shot reconstruction with GPT-3.5 also loses points on unattacked text; the authors leave more advanced RS modules for future work.
Scope of experimental coverage
- The backbone models tested are OPT-1.3B, Qwen3-1.7B, and gemma-3-1B-pt, 3 in total, all in the 1B–2B range (Tables 1, 2, 7).
- The datasets are Booksum, C4 (500 instances each), and NQ (OPT-1.3B only, Table 8); the paraphrasers are Pegasus, Parrot, DIPPER, and GPT-3.5-turbo, 4 in total.
- The adversarial probing experiments cover three types of perturbations: sentence insertion, deletion, and reordering, with ratios of 0.1–0.5, and are compared only with the two sentence-level baselines SemStamp and PMark (Figure 4).
- Short-text evaluation covers three levels: 4, 8, and 12 sentences (Table 10); text quality is measured only by perplexity, computed by Llama-3.1-8B (Figure 7, Table 6).
- The paper does not report the number of experimental repetitions, confidence intervals, or statistical significance tests; it does not report the generation time of the watermark embedding stage (it only mentions using vLLM to reduce overhead).
Summarize the main content of the paper
AliMark changes sentence-level watermarking to bit-sequence encoding and alignment; the authors say it outperforms 8 baselines by a large margin under strong rewriting attacks with essentially no loss in text quality.
A paper on the robustness of LLM sentence-level watermarking that proposes a new framework for the structural perturbations caused by rewriting attacks.
- Problem: The prefix-based design of sentence-level watermarking (e.g., SemStamp) makes each sentence's signal depend on the previous sentence; the authors rewrite 500 C4 samples with GPT-3.5 and find that most rewrites change the number of sentences (Figure 1), and report that SemStamp's TPR@5% drops from 91% to 22% under GPT-3.5 rewriting.
- Method: AliMark uses a context-independent global secret bit sequence as the key; during generation it selects, from Q=64 candidates, the next sentence whose bit signal matches the corresponding block; during detection, Re-Structurer generates 2N single-step restructuring variants, and ABSA uses Block Edit Rate to align the variants' bit sequences with secret sequences of different lengths, taking the maximum z-score.
- Main results: On OPT-1.3B and Booksum, under DIPPER and GPT-3.5 rewriting, AliMark's TPR@5% is 61.6% and 66.6% respectively, versus 30.4% and 33.0% for the strongest baseline PMark (Table 1); trends are similar on Qwen3-1.7B, gemma-3-1B-pt, and NQ, but on Qwen3-1.7B and C4 under Pegasus/Parrot, TPR@1% is lower than PMark (Table 2).
- Other results: In probing experiments with sentence insertion, deletion, and reordering, the authors state that AliMark is more stable in most settings (Figure 4); perplexity is comparable to unwatermarked text (Figure 7); a single detection takes 0.34s at N=128 sentences (Table 5).
- Limitations: The authors point out that the single-step RS design cannot handle multiple merges and splits and is inefficient when the number of candidates is large, and they plan to improve it with a custom model or heuristics; on short text (4 sentences) all methods degrade.
- Authors' conclusion: Restating sentence-level watermarking as bit-sequence encoding and alignment naturally tolerates sentence splits and merges and outperforms existing baselines under strong rewriting attacks.