The researchers propose Adaptive Stealing, an adaptive watermark stealing attack method.Beyond A Fixed Seal: Adaptive Stealing Watermark in Large Language Models
The authors propose AS, using 10,000 samples to erase three watermarks, and state that AUC < 0.55.
The attacker has only limited watermarked text Dw, an assistant model LMatt, and unlimited non-watermarked text Dn, with the goal of spoofing or scrubbing the watermarked LMvic. The constraints are Unknown Parameters (not knowing the secret key K and watermark hyperparameters), Limited Queries, and Inaccessible Detection (cannot access the detection interface).
- Fixed-strategy stealing watermark algorithms synthesize multiple context perspectives into one seal, ignoring the uneven distribution of stolen information and failing to keep up with context changes during generation. Such attacks weaken the watermark detection that content attribution and abuse tracing rely on.
- Adaptive Stealing constructs multiple seals based on the activation of context token positions, and at each step selects a seal using dynamic generation relevance, watermark compatibility, and generation priority, then modifies logits according to the attack direction.
- On OPT-2.7b and Llama3-8b, when erasing KGW, SynthID, and Unbiased, the authors state that AS has AUC < 0.55; for spoofing, the AS AUC in Table 2 is higher than WS. Under unknown configuration, the AS spoofing AUC in Table 3 is 0.843.
- The authors note that AS's generation latency is about 1.6 times that of WS, only two victim models and three watermarks were evaluated, multilingual effectiveness remains to be tested, and the same impression application method as WS causes significant damage to text quality.
- Evaluated models
- OPT-2.7bLlama3-8b
- Benchmarks
- C4 (realnews-like subset)Dolly (CW subset)HarmHarmfulQAdvBench
- Metrics
- AUCTPR@1%WCSPPL
The researchers propose Adaptive Stealing (AS), an adaptive watermark stealing algorithm, to extract watermark information from watermarked text generated by a victim LLM and construct targeted adversarial attacks. The method uses two modules, Position-Based Seal Construction and Adaptive Selection, defining multiple attack perspectives based on different activation states of context-ordered tokens, and during attack selects the optimal perspective based on watermark compatibility, generation priority, and dynamic generation relevance. Experiments show that under the same experimental conditions, AS significantly improves stealing efficiency against the target watermark. The authors accordingly point out the need for more robust LLM watermarks to resist such attacks, and have released the code.
Paper analysis
What problem does this paper attempt to solve?
Fixed seals cannot keep up with the generation context, so the authors propose Adaptive Stealing, which can select seals step by step.
Fixed seals cannot adjust with the generation context, making it difficult to steal against unknown watermark position rules.
- Scenario: The authors state that watermarks are used to identify LLM-generated text, supporting content attribution, abuse tracing, and legal accountability. Stealing watermark algorithms (SWA) extract information from the victim model's watermarked text, then perform spoofing (forging text as watermarked) or scrubbing (removing watermarks to evade detection).
- Existing shortcomings: Sadasivan et al. (2023) used 2-gram frequencies of 181 common words to forge seals against KGW LeftHash; Watermark Stealing (WS, Jovanovic et al., 2024) statically weights multiple context perspectives into a fixed seal. The authors state that attackers do not know which context positions the victim watermark activates, and fixed seals cannot keep up with the generation process.
- Assumption: The seal uses only part of ctx when generating the Impression. The authors infer that transformations more consistent with the true seal will have higher correlation with generated watermark tokens, so stealing should be a step-by-step decision, not static reproduction.
- Method: Proposes Adaptive Stealing (AS), including Position-Based Seal Construction and Adaptive Selection. The authors state the goal is to strengthen defenses by understanding the attack.
- Threat model:
- Goal: Steal information from the victim model LMvic with watermark wm, to construct spoofing or scrubbing.
- Knowledge: Unknown Parameters, the key K and all hyperparameters of wm are unknown.
- Capabilities: Only limited watermarked text Dw, an assistant model LMatt, and unlimited non-watermarked text Dn; Limited Queries, can query LMvic, but the number of queries is limited by cost and time.
- Detection interface: Inaccessible Detection, cannot access wm's detection interface.
What related research exists?
Generative watermarks are embedded in three categories; existing SWA often forges fixed seals, with the main baseline being WS.
Related work is organized into three groups: watermark embedding, watermark attacks, and SWA.
Generative LLM Watermarks
- Three types of embedding: logits manipulation (Kirchenbauer et al., 2023; Fu et al., 2024; Liu et al., 2024; Zhao et al., 2024, etc.), probability distribution adjustment (Hu et al., 2024; Chen et al., 2025b; Feng et al., 2025), and sampling strategy modification (Dathathri et al., 2024; Kuditipudi et al., 2024; Christ et al., 2024).
- Deployment characteristics: The authors state that such generative watermarks require no retraining and have low resource consumption during deployment. The introduction also mentions work on detecting LLM text by Fraser et al. (2025), Liu et al. (2025), etc., and states that the more realistic the text, the less effective conventional detection becomes.
Erasing and Spoofing
- Scrubbing: Zhang et al. (2023), Krishna et al. (2023), Chang et al. (2025) use text rewriting to remove watermarks; when using LLMs for rewriting, Jovanovic et al. (2024) leverage watermark information for more targeted erasure.
- Spoofing: Sadasivan et al. (2023) and Jovanovic et al. (2024) must rely on watermark information to spoof.
Stealing Watermark Algorithm
- Fixed seal: Sadasivan et al. (2023), Jovanovic et al. (2024), Zhang et al. (2024) mainly target KGW variants to forge a fixed seal. The authors state that a single static seal cannot adapt to different watermark implementations or generation contexts.
- Threat discussion: Liu et al. (2024, 2025), Gu et al. (2024), Pan et al. (2025) are used to illustrate that spoofing and scrubbing threaten watermark reliability. The paper only cites these, without criticizing each individually.
Baselines and Data
- Baseline methods: The main experimental baseline is WS, which the paper calls state-of-the-art. Appendix D also runs CWS, WRA, and MIP; De-Mark is excluded because it uses adversarial prompts and is not conventional watermark text, which the authors state cannot be fairly compared.
- Benchmarks/datasets: Victim watermark text comes from the realnews-like subset of C4; evaluation prompts come from the CW subset of Dolly, and Harm, which merges HarmfulQ and AdvBench.
The authors position this paper as: instead of statically synthesizing multiple perspectives into one seal, they construct multiple attack perspectives by position and select a seal at each step.
How does the paper address this problem?
AS constructs multiple seals based on position activation, then uses three criteria to progressively select and modify logits.
Adaptive Stealing (AS) changes the traditional SWA of "forging a fixed seal and then applying an impression" into three steps: constructing multiple seals, selecting at each step, and modifying logits with the selected impression. Figure 2 shows this process.
Watermarks and Traditional SWA
- Generation and embedding: An autoregressive LM obtains logits from preceding context, then applies softmax and decoding to get the next token. The seal Seal_θ(ctx, K) produces an impression; ctx is the |ctx| tokens before the token to be generated, and K is the private key. The impression can intervene in generation by modifying logits, probabilities, or sampling.
- Detection: The detector simulates the seal, computes token-level scores, and aggregates them into a Watermark Confidence Score (WCS). KGW's WCS is the z-statistic of green words; SynthID is the mean of generator scores; Unbiased is the accumulation of watermark probabilities.
- Traditional stealing: The attacker counts occurrences of "token T appears after ctx" in Dw and Dn. A transformation H(·) maps different ctx to the same key to mitigate low-frequency ctx. The forged seal scores tokens by ctx; the application direction determines spoofing or scrubbing.
Position-Based Seal Construction
- Attack perspectives: H(·) is viewed by the authors as an assumption about "how the seal handles ctx." Because the attacker does not know which positions are activated, multiple H(·) are needed.
- Ordered transformation: H^o(ctx, no) preserves position. no is a value satisfying 0 ≤ no <2^|ctx|的整数,转成长度|ctx|的二进制标签;标签为0的位置换成通配符。论文举例:三个token的ctx、no=4(二进制100)时只保留最左token。
- 分数:固定一种变换后,由Dw、Dn估计条件分布,并沿用WS的分数。比值不小于1时 S(T,k)=1/cmin(p̂w(T|k)/p̂n(T|k),c),否则为0。c把分数限制到[0,1]。词表上的分数拼成该视角的印象,同一变换的全部印象构成一个伪造印章,共2^|ctx|个。
Adaptive Selection
- 动机:作者认为像WS那样直接加权多个印章,会引入错误印章的噪声。每步选ω最高的印章。
- 三项准则:DGR只保留当前步概率最高的k个token,Vk=topK(V, p, k)。WC用Dw上的经验分布p̂w(T|ctx)代替未知的真实水印条件分布。GP把该印章的印象归一成概率,表示对token的相对优先级。
- 选择分数: ω(no,ctx)=∑T∈ Vkp̂w(T|ctx)·(im̂noT)/(∑T′im̂noT′)。求和范围对应DGR,p̂w对应WC,归一化印象对应GP。
施加印象与本文设定
- Logits Modification:沿用WS,把助手模型的logits改为l̂ = l + δ_att · im̂。δ_att> 0 for spoofing, δ_att < 0 for scrubbing.
- Default parameters: On the attack side, |ctx| = 3, hence 8 seals; c = 2; Adaptive Selection's k = 128. Spoofing uses δ_att = 4 and LMatt = Qwen2.5-7b; scrubbing uses δ_att = -4 and LMatt = Dipper. Each prompt generates 200 tokens, only one attack is performed, and results are averaged over the dataset.
- WS configuration in this paper: In the main experiments, WS uses only the Full seal with weights (w1, w2, w3) = (1, 0, 0), not the (2, 1, 0.5) from the original WS paper. Appendix C.4 states that the Partial seal mainly targets SelfHash, and adding it reduces spoofing effectiveness against the watermarks in this paper.
What experiments did the paper conduct?
On two victim models and three watermarks, Dipper+AS erasure AUC does not exceed 0.55, and forgery AUC is higher than WS.
Experimental Setup
- Victim models and watermarks: LMvic is OPT-2.7b and Llama3-8b. Markllm implements three watermarks: KGW (modifies logits; γ=0.5, LeftHash, δ=2), SynthID (modifies sampling; m=30), and Unbiased (modifies probability distribution). The main experiments do not specify the |ctx| of the victim watermark.
- Data: Dw is from the realnews-like subset of C4, each with the first 30 tokens as prompt and generating 400 tokens, |Dw| = 10,000; Dn is equal in size and without watermark. The authors state that 10k is lower than the sample requirements of other SWA methods. Evaluation prompts are the CW subset of Dolly and Harm. The paper does not report the number of prompts in these two sets.
- Baselines and assistants: The main baseline is WS using only the Full seal. The default spoofing assistant is Qwen2.5-7b, and the erasing assistant is Dipper. The appendix also tests CWS, WRA, and MIP.
- Metrics and criteria: WCS, AUC, TPR@1%. For erasing, lower is better; for spoofing, higher is better. Random classification has AUC 0.50 and TPR@1% 0.01. Detection uses each watermark's own detector, not an LLM judge. PPL is computed by Llama2-13b.
- Replication: Appendix B.3 states that under the above conditions, only one attack is performed, and results are averaged over the dataset. Hardware is two Tesla-V100 GPUs.
Main Results
AUC on Dolly is as follows. Erasing columns come from Table 1 and are all preceded by Dipper; spoofing columns come from Table 2.
Swipe horizontally to read the table
Watermark and victim model Dipper+WS erasing Dipper+AS erasing WS spoofing AS spoofing KGW, OPT-2.7b 0.69 0.47 0.74 0.91 KGW, Llama3-8b 0.61 0.37 0.74 0.89 SynthID, OPT-2.7b 0.57 0.48 0.61 0.68 SynthID, Llama3-8b 0.62 0.54 0.59 0.63 Unbiased, OPT-2.7b 0.58 0.47 0.71 0.80 Unbiased, Llama3-8b 0.59 0.50 0.68 0.76 - The authors state that regardless of watermark, dataset, or victim model, AS's attack effectiveness is higher than WS, with spoofing AUC improvements of 0.04–0.17. In Table 2, SynthID's AS spoofing AUC is 0.63–0.73, the lowest among the three watermarks.
- Erasing: The authors state that AS's AUC is always below 0.55, while WS's minimum is 0.55. In Table 1, Dipper alone has AUC above 0.65; Dipper+AS has a minimum of 0.37. The SynthID, Llama3-8b, Harm cell is 0.55, which is not below 0.55.
- On Harm, the direction is the same. For example, KGW, OPT-2.7b: Dipper+AS erasing AUC is 0.50, AS spoofing AUC is 0.92; SynthID, OPT-2.7b: the two are 0.44 and 0.73, respectively (Table 1, Table 2).
Text Quality
- Figure 3 varies δ_att on KGW spoofing. The y-axis is AUC, the x-axis is Perplexity; the caption says WCS. The figure has no readable endpoint values.
- The authors state that increasing δ_att raises AUC and increases PPL; when AUC is above 0.75 and PPL is similar, AS's AUC is still higher than WS. The authors state that the gain comes from exploiting Dw, not from degraded text quality. The paper does not report specific PPL values.
Seal Matching and Unknown Configuration
- Table 3, on Llama3-8b and Dolly, uses forged seals with no from 0 to 7 to attack six KGW configurations. When the configuration matches, the single seal is highest: with victim |ctx|=1 and Left, no=1 has AUC 0.997. With victim |ctx|=4 and Left, AS is only 0.613, and AVE is 0.532.
- Equal-weight AVE improves only limitedly over a single seal. Unknown is the average over six victim configurations: AS is 0.843, AVE is 0.765. The authors state that diverse perspectives are needed, then step-by-step selection, rather than static averaging.
Sample Size and Assistant Model
- Figure 4 attacks KGW, with |Dw| as small as 100. The figure does not label WCS for each point. The authors state that AS's WCS is always higher than WS, and AS achieves with 2,000 samples the spoofing effectiveness that WS achieves with 10,000.
- Table 6: When LMatt and LMvic share the same vocabulary, it is stronger. With OPT-2.7b victim and OPT-1.3b assistant, AS's AUC on Dolly is 1.00 and TPR@1% is 0.92; with Qwen2.5-7b, they are 0.91 and 0.36. The authors state that a shared vocabulary promotes stealing, and with the same vocabulary, AS's TPR@1% is mostly above 0.9.
Other Ablations and Analyses
- Table 4 (KGW spoofing WCS): Removing GP, OPT-2.7b, Dolly drops from 2.698 to 0.358; removing WC drops to 2.454. On Llama3-8b, Harm, removing DGR gives 2.725, higher than AS's 2.648.
- Table 5: DGR's per-sample win/loss score relative to non-DGR is not always positive; top64, OPT-2.7b, Dolly is -0.020, top32, Llama3-8b, Harm is -0.069.
- Table 7: With Qwen2.5-7b as assistant, 500 samples, 200 tokens each, |ctx|=3 AS is 16.92 seconds, WS is 10.85 seconds; |ctx|=4 they are 16.34 and 11.91 seconds.
- Table 8: On Llama3-8b, Qwen2.5-7b, using only Full gives KGW Dolly spoofing AUC 0.74; Full+Partial+Empty gives 0.70.
- Figure 5: The authors state that when the victim KGW's |ctx| is 1–4, AS spoofing effectiveness is higher than WS, and low |ctx| or matching the attack setting |ctx|=3 makes spoofing easier. Figure 6: Under the same Dipper erasing, the authors state that as |ctx| increases, KGW robustness decreases; the figure has no readable values.
- Appendix D: CWS spoofing AUC is at most 0.537 (Table 9); WRA only fine-tunes OPT-1.3b, with AUC at most 0.580; MIP erasing AUC is 0.855–0.982 (Table 10), higher than AS/WS in Table 1, meaning erasing is weaker.
What are some points that can be further explored?
The authors note that AS latency is about 1.6 times that of WS, and only two models, three watermarks, and English data were evaluated.
Limitations and future directions noted by the authors
- Latency: On 10,000 victim watermarked texts, AS's performance improvement over WS comes with about 1.6× generation latency (Limitations).
- Models and watermark types: Due to time and resource constraints, only two victim models, OPT-2.7b and Llama3-8b, and three watermarks, KGW, SynthID, and Unbiased, were evaluated (Limitations).
- Language: AS's multilingual attack effectiveness remains untested; this paper only uses English data (Limitations).
- Impression application: AS applies impressions in the same way as WS; although it can complete the attack, it damages text quality significantly; future work could improve the impression application method (Limitations).
Experimental coverage
- The victim models for the main results are OPT-2.7b and Llama3-8b, with watermarks KGW, SynthID, and Unbiased; the prompt sets are Dolly's CW subset and Harm (Section 4.2, Tables 1–2).
- The assistant models in the main setup are Qwen2.5-7b (for forgery) and Dipper (for erasure); Table 6 additionally uses OPT-1.3b, OPT-2.7b, Gemma2-2b, and Llama3-8b as LMatt.
- Dw is 10,000 texts from C4 realnews-like; detection metrics are each watermark's own WCS, AUC, TPR@1%, with PPL using Llama2-13b. Appendix A.2 states that SelfHash KGW was not evaluated because OPT-2.7b generation of 200 tokens exceeded 300 seconds.
- Appendix D reports results for CWS, WRA, and MIP; De-Mark was not compared due to different query protocols. Appendix B.3 states that each is the average over the dataset for a single attack.
- The paper does not report the number of prompts for Dolly CW and Harm, nor the number of repetitions, nor the agreement between detection results and human judgment.
Summarize the main content of the paper
AS performs watermark forgery and erasure by selecting seals step by step, and the authors claim its attack effectiveness is higher than the fixed-strategy WS.
AS is an algorithm for stealing generative LLM watermarks, used to forge or erase watermarks when the key and detection interface are unavailable.
- Problem: Existing SWA synthesizes a fixed seal from statistics. The authors claim this ignores the uneven distribution of stolen information and cannot adapt the use of token positions to the generation context.
- Method: Position-Based Seal Construction constructs 2^|ctx| seals using position-activated masks; Adaptive Selection selects a seal at each step using DGR, WC, and GP; then scales impressions with δ_att and modifies the assistant model's logits. In the main experiments, the attack side uses |ctx|=3, c=2, k=128.
- Main results: Victim models are OPT-2.7b and Llama3-8b, watermarks are KGW, SynthID, and Unbiased, |Dw|=10,000, and the baseline is WS using only the Full seal. On Dolly, the Dipper+AS erasure AUC for KGW and Llama3-8b is 0.37; the authors claim erasure AUC is below 0.55, with another cell in Table 1 being 0.55. For forgery, the authors claim AUC improvements of 0.04–0.17; on KGW, OPT-2.7b, and Dolly, AS is 0.91 and WS is 0.74.
- Other results: Under unknown watermark configurations, AS forgery AUC is 0.843 (Table 3). The authors claim AS achieves with 2,000 watermarked texts the forgery effect that WS achieves with 10,000 (Figure 4). Assistant models with the same vocabulary yield higher forgery metrics (Table 6).
- Authors' conclusion: The authors claim existing watermarks leak a considerable amount of information, AS can serve as a tool for evaluating watermarks, and they believe watermark design still needs research that can withstand such attacks. Limitations also state that the improvement comes with about 1.6× latency, and using WS's impression application method damages text quality.