Manuscript Offprint
arXiv:2608.27899OpenStamp: A Watermark for Open-Source Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
With the growing prevalence of large language model (LLM) generated content, watermarking is considered a promising approach for attributing text to LLMs and distinguishing it from human-written content. A prominent class of techniques embeds subtle but detectable signals in generated text by modifying token sampling probabilities. However, such methods are unsuitable for open-source models, where users have white-box access and can easily disable watermarking during inference. In this work, we introduce OpenStamp, a watermarking technique that encodes the watermarking logic directly into the model weights by modifying only the final projection, or unembedding, layer. Through experiments across two models, we show that OpenStamp achieves superior detection performance, with minimal degradation in model capabilities compared to prior methods. The implanted watermark is explicitly designed, and empirically confirmed, to be more robust to paraphrasing attacks and harder to scrub off through post-hoc fine-tuning than prior open-source watermarks. To enable developers to watermark their models, we release our code alongside watermarked versions of 4 popular open-source models.
https://github.com/mb-14/openstamp
1 Introduction
Large language models (LLMs) are capable of generating human-like text, which has led to their widespread adoption in various applications (Brown et al., 2020; Chowdhery et al., 2022). As these models become more prevalent, there are looming concerns about potential misuse, such as generating large-scale misinformation (Oviedo-Trespalacios et al., 2023), influencing public opinion (Panditharatne & Giansiracusa, 2023), or orchestrating social engineering attacks (Grbic & Dujlovic, 2023). To address these concerns, it is critical to develop methods for distinguishing LLM-generated content from human-written text. Such methods can also be used to attribute the content to its source model, thereby promoting transparency and accountability in LLM use, especially for high-stakes applications.
A promising way to detect model-generated content is to watermark the text by embedding subtle, imperceptible signals into the model's outputs. To implant such signals, several prominent watermarking techniques either modify the next-token probabilities (Kirchenbauer et al., 2023; Liu & Bu, 2024) or constrain the sampling process during generation (Aaronson, 2023; Kuditipudi et al., 2024; Dathathri et al., 2024). While effective, these decoding-based techniques are incompatible with requirements of open sourcing, where users have full control over the generation process and can easily disable the watermarking logic. This motivates the need for techniques that embed watermarking signals directly into the weights of the model, making the watermark harder to erase.
Few recent works explore watermarking approaches for open-sourced LLMs. A notable approach proposes to distill a student model using the outputs of the watermarked teacher model (Gu et al., 2024). However, this method typically requires considerable amounts of training data and computational resources. Christ et al. (2024) instead add Gaussian noise
*Work done at the Indian Institute of Science

Figure 1: Overview of OpenStamp, our watermarking method. We add an offset matrix to the unembedding layer's weights U to produce watermark logits that bias token sampling, favoring tokens with higher watermark logit values. The watermark can be detected using a log-likelihood ratio (LLR) based score which measures how much more likely the observed tokens are under the watermarked model compared to the unwatermarked model.
to the final layer’s bias vector to steer generation toward a fixed, context-independent set of tokens. This makes the scheme analogous to a fixed green list, which can be reverse-engineered and rendered ineffective (Jovanović et al., 2024; Rastogi & Pruthi, 2024). Another concern is robustness to paraphrasing attacks (Krishna et al., 2023), where an adversary rephrases the generated text to dilute, or remove, the watermarking signal. While some efforts have focused on improving robustness to paraphrasing (Liu et al., 2024; Hou et al., 2024a), none of these schemes work for open-source models.
In this work, we introduce OpenStamp, an approach to watermarking open-source LLMs by modifying the unembedding layer weights of the model. We add a carefully designed offset to these weights, which bias the logits before generation and thereby implant signals in the generated text. OpenStamp is conceptually similar to prior logit-based watermarking approaches (Kirchenbauer et al., 2023; Liu et al., 2024; Liu & Bu, 2024), which influence token selection by adding small, context-dependent biases to the logits at each decoding step. However, an important distinction is that we embed the biasing logic directly into the unembedding layer's weights. Moreover, the offset is designed to produce consistent biases across semantically similar contexts, ensuring robustness against paraphrasing attacks. While conceptually similar to semantic watermarks (Hou et al., 2024b;a; Liu et al., 2024), OpenStamp requires no auxiliary embedding model at generation or detection time, since this semantic robustness is baked into the model weights. Figure 1 shows a high-level overview of our watermarking method. To detect watermarked text, we compute a length normalized log-likelihood ratio (LLR) score, which measures how much more likely the observed tokens are under the watermarked model compared to the unwatermarked model.
OpenStamp achieves near-perfect detection (TPR ≥ 99% at 1% FPR) with only minimal degradation in text quality, outperforming other open-source watermarking methods at comparable perplexity levels. Our watermarking method approaches the Pareto frontier defined by prominent decoding-based techniques. Furthermore, our watermarking signal is more difficult to erase via fine-tuning and offers improved robustness to paraphrasing attacks compared to existing approaches. We believe that these strengths make our approach a strong candidate for watermarking open-source models. To encourage model developers to watermark their models prior to release and to foster the development of new watermarking techniques for open-source models, we publicly release our code and watermarked versions of four popular open-source models created using OpenStamp.
Paraphrasing robustness. Paraphrasing attacks pose a major challenge for watermark detection (Krishna et al., 2023; Kitchenbauer et al., 2024). By replacing or rearranging tokens, paraphrasing can dilute the statistical patterns that watermarking methods rely on for detection. Recent work has explored strategies to improve robustness, such as using semantic embeddings to guide the selection of green tokens (Liu et al., 2024; Hou et al., 2024a), so that paraphrases tend to induce similar green lists. However, these methods depend on auxiliary models at inference time to produce semantic embeddings, making them unsuitable for open-source LLMs where users can easily bypass any watermarking logic that relies on external components.
Watermarks for open-source LLMs. In open-source settings, where users control the decoding process, any decoding-time logic can be easily bypassed; hence, the watermarking logic must be embedded directly into the model weights. One approach uses distillation, training a student model on watermarked outputs from a decoding-based watermarked teacher, thereby enabling the student to generate watermarked text natively (Gu et al., 2024). While effective, this method requires substantial computational resources and training data. A reinforcement learning-based framework jointly optimizes an LLM and a paired detector to balance detectability and text quality (Xu et al., 2025). A further line of work embeds a watermark into model weights by jointly fine-tuning LoRA adapters, optimizing for both coherence and detectability (Elhassan et al., 2025). Both methods are compute-intensive and rely on complex joint optimization objectives that are hard to tune.
Similar to our work are approaches that embed watermarking logic without requiring any LLM fine-tuning. Unremovable (Christ et al., 2024) introduces a fixed Gaussian perturbation to the final layer's bias vector, steering generation towards positively biased tokens, similar to a fixed green list (Zhao et al., 2024). Because the induced token preferences do not vary with context, this scheme is analogous to fixed green-list watermarks, which are known to be vulnerable to reverse-engineering attacks (Jovanović et al., 2024; Rastogi & Pruthi, 2024). GaussMark (Block et al., 2025) embeds a watermark by adding Gaussian noise to a subset of model weights, and detects it by analysing how the log-likelihood of a given text changes under the perturbed model. However, GaussMark can be difficult to embed, as it requires careful selection of the weight subsets and the noise strength to balance text quality and detectability across models.
Despite recent innovations, a key limitation across existing work is the lack of robustness to post-hoc model modifications. This is a major challenge for watermarking open-source models, which are often updated through quantization, pruning, merging, or fine-tuning. Gloaguen et al. (2025) find that no current methods remain detectable after such updates. We present complementary evidence on this limitation in Section 5.3. Various recent approaches underscore the inherent difficulty of watermarking in open-source LLMs. Each method exhibits different limitations across several axes: efficiency of integration, detectability, robustness, and practicality.
3 Methodology
Overview. This section presents our approach for watermarking language model outputs. We first introduce the model setup and notation ( ), then describe how a modification to the unembedding layer can bias generation towards specific tokens to embed a watermark signal ( ). We outline key desiderata for effective watermarking and show how our design satisfies them ( ). Finally, we describe how to detect the watermark using a log-likelihood ratio based score ( ).
3.1 Preliminaries
Let a language model process a sequence of tokens drawn from a vocabulary . Let denote the token at generation step , and let denote the prefix up to step . The model computes a hidden representation , where is the model's internal encoding function. The model then produces a logit vector
where is the unembedding matrix. The model defines a categorical distribution over the next token by applying a softmax over , where each component corresponds to the logit value of token . Watermarking strategies typically modify during generation to influence the next-token distribution.
KGW watermarking. In the KGW watermarking scheme (Kirchenbauer et al., 2023), the logit modification step is guided by a pseudorandom partition of the vocabulary. At each generation step , a pseudorandom function (PRF) selects a subset of tokens called the green list, based on the context (where ) and a secret key. A parameter controls the fraction of tokens in the green list, so that . The logits for tokens in the green list are boosted by a fixed hyperparameter :
3.2 Watermarking via unembedding matrix modification
Modifying the unembedding matrix provides a direct mechanism to alter the logit vector produced at each generation step. Concretely, we define a modified unembedding matrix , where we refer to as the offset matrix. Applying this matrix to a hidden state yields the modified logit vector , where is termed watermark logits. These logits bias the output distribution during generation, favoring tokens with higher adjusted scores. This bias accumulates in the generated text, embedding a detectable watermark signal.
Desiderata. For the offset matrix to be effective, it should satisfy the following properties:
• Detectability: The watermark signal can be reliably identified in the generated text.
• Controllability: The balance between watermark strength and text quality is adjustable via hyperparameters.
• Security: The watermark is robust against reverse-engineering attacks.
• Paraphrasing Robustness: The watermark remains detectable even if the generated text is paraphrased.
3.3 Linearized green list biasing
Conceptual overview. We adapt the KGW scheme by modeling its green list selection as a linear transformation. While the PRF in KGW selects from a combinatorially large space of lists based on token prefixes, we simplify this mechanism by defining a finite set of L candidate green lists. The offset matrix is then constructed to map hidden states to watermark logits that approximate the logits associated with one of these L lists. Specifically, we decompose into three matrices:
This decomposition realizes the watermarking logic through three sequential operations: (1) semantic alignment via P, which projects the raw hidden state reflects semantic similarity, into a space where semantically similar sentences have similar embeddings, ensuring similar watermarking behavior for paraphrased sentences; (2) list selection via S, which maps the projected hidden state to a selector vector that acts as a soft selector over the L candidate green lists; and (3) logit biasing via G, which maps the selector vector into watermark logits that encode the chosen green list. We describe the construction of each matrix in detail below.
Projection matrix P. To ensure paraphrasing robustness, the watermarking logic must behave consistently across hidden states corresponding to semantically equivalent sentences.
However, standard LLM hidden states are optimized for next-token prediction and may not cluster according to semantic similarity. To address this, we introduce to map into a space where geometric proximity reflects semantic similarity. We train on a paired dataset of hidden states and high-quality sentence embeddings by minimizing the Kullback-Leibler (KL) divergence between their similarity distributions within a batch :
where is a temperature hyperparameter and the similarity vectors represent the cosine similarities to all other elements in the batch:
Minimizing this loss encourages the projected states to inherit the geometric structure of the target embedding space. Training details are provided in Appendix F.
Selector matrix . The selector matrix maps the projected hidden state to a selection vector . This vector acts as a soft selector over candidate green lists. To train , we partition the projected hidden states into clusters using -means. This gives us a training dataset , where is the one-hot encoding of the cluster label for . We then learn by solving the following ridge regression problem:
where is a regularization parameter. See Appendix G for training details.
Green list matrix . The matrix encodes candidate green lists as its columns such that produces the desired watermark logits. For each column , the corresponding green list is defined by a PRF:
where seed is the secret key shared between watermark generation and detection, and maps the token index to a value in . Each entry of is then given by
The hyperparameters and have the same interpretation as in the KGW watermarking scheme, offering controllability over the watermark's strength and impact on text quality.
Variability. By dynamically selecting among multiple green lists based on the context, our method maintains variability in the watermark logits, making it difficult to reverse-engineer. We provide supporting evidence of this variability in Appendix M.
Approximating one-hot selectors. Since our method operates on continuous hidden states, the selector matrix S yields soft, continuous selectors instead of exact one-hot vectors. As a result, multiple green lists can be partially activated at once leading to weaker alignment with the intended green-list behavior. Nonetheless, detection performance remains strong. We analyze this effect and its influence on detection in Appendix L.
3.4 Detection via log-likelihood ratio
To detect the presence of a watermark, we compute a length-normalized log-likelihood ratio (LLR) for the given sequence using the watermarked and original unwatermarked model, specifically:
where the probabilities are defined via softmax over logits from the original unwatermarked model, and it's watermarked version, .

Figure 2: Trade-off between detectability and text quality for various watermarking methods on Llama-2-7B. OpenStamp is on the Pareto frontier and outperforms all open-source compatible methods (shown in green) by a substantial margin. Vanilla KGW performs slightly worse than KGW + LLR, highlighting the effectiveness of the LLR detection method.
Intuition. The LLR score measures how much more likely a given token sequence is under the watermarked model than under the original model. Because the watermark logits systematically bias sampling towards certain favored tokens, generations from the watermarked model tend to accumulate higher LLR values, making the watermark detectable in practice. Length normalization ensures that a single detection threshold can be applied consistently across sequences of different lengths. While the conditional probabilities in Equation 3 formally condition on the full history, detection remains robust using only partial prefixes that exclude the generation prompt (See Appendix O for details). Crucially, this means the detection process does not require knowledge of the specific prompt used to generate the text. Accordingly, all results reported in the main paper are computed without assuming access to the prompt used to generate the watermarked text.
Unlike frequency-based detection methods (Kirchenbauer et al., 2023), our LLR score does not constitute a formal statistical test. Frequency-based detectors typically have a known expected green-token count on unwatermarked text and thus a calibrated p-value, regardless of whether the text is human-written or produced by another model. In contrast, our LLR compares the likelihoods assigned by two fixed models, so its typical value on unwatermarked text shifts with the source. As a result, there is no single null distribution from which to compute a universally valid p-value (Block et al., 2025). Nevertheless, because the LLR uses the full token probability distribution and naturally captures the mixture of green lists produced by our watermarking method, it preserves signal that frequency-based tests lose by relying only on discrete counts (See Appendix Q for comparisons).
Detection protocol. The developer publicly releases a watermarked model with the modified unembedding matrix , while keeping the original unembedding matrix private. The developer can then expose detection as an API. This prevents an adversary from recovering the watermark offset . This also means that the method is not applicable to models whose original weights are already public. Any text generated using the public model can be detected using Algorithm 1. This protocol assumes white-box access to the model weights in order to evaluate log-likelihoods.
4 Experimental setup
We evaluate our watermarking method across four key axes: (i) detection performance ( 5.1), (ii) robustness to paraphrasing attacks ( 5.2), (iii) resistance to post-hoc model modifications ( 5.3) and (iv) impact on downstream tasks ( 5.4). We conduct experiments across all four axes on Llama-2-7B (Touvron et al., 2023) and Mistral-7B (Jiang et al.,
| Method | Model | ArXiv | BookSum | Wikipedia | |||
|---|---|---|---|---|---|---|---|
| TPR | PPL | TPR | PPL | TPR | PPL | ||
| KGW | Llama-2-7B | 0.994±0.005 | 32.3±1.8 | 0.998±0.002 | 24.1±1.4 | 0.914±0.036 | 13.8±0.6 |
| Mistral-7B | 0.998±0.002 | 30.2±2.4 | 0.998±0.002 | 24.6±0.7 | 0.911±0.092 | 13.2±0.6 | |
| KGW + LLR | Llama-2-7B | 0.994±0.010 | 32.0±1.1 | 1.000±0.001 | 23.2±0.4 | 0.996±0.004 | 12.7±0.4 |
| Mistral-7B | 1.000±0.000 | 29.2±1.2 | 1.000±0.001 | 23.6±0.5 | 0.992±0.009 | 13.0±1.0 | |
| KGW Distilled | Llama-2-7B | 0.886±0.076 | 43.48±0.7 | 0.927±0.035 | 28.6±2.4 | 0.813±0.141 | 16.4±1.7 |
| Mistral-7B | 0.983±0.011 | 44.5±4.6 | 0.998±0.001 | 34.6±2.1 | 0.878±0.096 | 20.1±0.8 | |
| GaussMark | Llama-2-7B | 0.644±0.278 | 40.0±0.6 | 0.847±0.076 | 30.4±2.3 | 0.750±0.027 | 17.2±0.6 |
| Mistral-7B | 0.395±0.126 | 33.3±2.0 | 0.847±0.125 | 26.6±0.5 | 0.387±0.199 | 14.3±0.4 | |
| Unremovable | Llama-2-7B | 0.997±0.002 | 28.9±1.2 | 0.997±0.003 | 25.2±3.3 | 0.871±0.042 | 14.5±1.6 |
| Mistral-7B | 0.987±0.013 | 26.3±2.7 | 0.995±0.005 | 24.7±1.7 | 0.883±0.081 | 13.3±0.7 | |
| OpenStamp | Llama-2-7B | 1.000±0.000 | 30.7±2.3 | 0.999±0.001 | 25.6±3.1 | 0.998±0.002 | 14.4±0.9 |
| Mistral-7B | 1.000±0.000 | 29.3±1.3 | 0.995±0.002 | 25.5±0.3 | 0.990±0.004 | 12.9±0.6 | |
Table 1: Comparing different watermarking approaches across multiple datasets. We report TPR@0.1%FPR (labeled TPR) to measure detectability and perplexity (PPL) to characterize text quality. Bold values indicate the best TPR@0.1%FPR at the lowest PPL for each dataset and model. KGW and KGW + LLR are decoding-based watermark methods included for reference. For both models, OpenStamp achieves near-perfect detection with PPL competitive with Unremovable and lower than GaussMark and KGW Distilled, demonstrating a superior tradeoff between text quality and detectability across the three datasets.
2023). To evaluate the generalizability of our method, we also report detection performance on four additional models: phi-4 (Abdin et al., 2024), 01mo-3-7B (Olmo et al., 2025), Qwen2.5-7B (Qwen et al., 2025), and Smo1LM2-1.7B (Allal et al., 2025), in Appendix C.
4.1 Baselines
We compare our method against 3 open-source-compatible watermarking approaches: Unremovable (Christ et al., 2024), GaussMark (Block et al., 2025), and a distilled version of KGW (Gu et al., 2024). We also include KGW as a representative of conventional decoding-based techniques. Further, we evaluate KGW combined with the LLR-based detector ( 3.4). Details about hyperparameters are in Appendix I.
4.2 Evaluation protocol
Watermarked sample generation. We generate 500 watermarked completions of 200 tokens each, using 50-token prompts sampled from the RealNewsLike subset of C4 (Raffel et al., 2020). The corresponding unwatermarked completions are taken directly from the dataset as the next 200 tokens after each prompt. Detection is performed only on the continuation following the prompt. Watermarked generations are sampled using nucleus sampling with temperature 1.0. To assess generalizability, we also evaluate on prompts drawn from ArXiv (Cohan et al., 2018), BookSum (Kryscinski et al., 2022), and Wikipedia (Foundation).
Metrics. We evaluate two properties: watermark detectability and text quality. Detectability is measured by the AUROC and the true positive rate at a fixed false positive rate of 1% (TPR@1%FPR) and 0.1% (TPR@0.1%FPR). For each target FPR, we choose the detection threshold accordingly. In applications such as plagiarism detection, where false positives carry a high cost, maintaining a low FPR is essential. Text quality is measured by the mean perplexity (PPL) of the watermarked samples, computed using Llama-2-13B as the oracle model. All metrics are averaged over three random seeds.
We omit RL-based watermarking (Xu et al., 2025) as the model either produces repetitive sequences or the detection rate is unacceptably low (See Appendix J for details).
5 Results
5.1 Detection performance
Figure 2 illustrates the tradeoff between text quality and detectability for various watermarking methods on Llama-2-7B. Each method's tradeoff curve is generated by varying a method-specific parameter that controls strength of the signal. Open-source methods are shown in green, while decoding-based methods are shown in orange.
OpenStamp achieves near-perfect detection (TPR 99.9%) at a perplexity of approximately 13.3, outperforming the open-source baselines at comparable perplexity: Unremovable reaches about 87% TPR@1%FPR, while GaussMark and KGW Distilled reach only 45–55%. Furthermore, OpenStamp's superior detection power is consistent across multiple datasets even at 0.1% FPR, as shown in Table 1. Additionally, Appendix D reports results under significant distribution shift, including evaluating watermarking approaches for Japanese, mathematical web text, and python code.
The gap between KGW and KGW+LLR in Figure 2 shows that the LLR detector improves detectability. Appendix R reports the same improvement for the baseline methods when we replace each method's native detector with the LLR detector, highlighting the LLR detector's stronger detection capabilities.
5.2 Robustness to paraphrasing attacks
To test robustness against paraphrasing attacks, we prompt an instruction-tuned LLM to paraphrase watermarked samples and measure the detectability of the paraphrased outputs. Details on the prompt and model used for paraphrasing are provided in Appendix H. As a reference method designed for paraphrasing robustness, we include SIR (Liu et al., 2024), which selects green tokens from a semantic embedding of the preceding context, so that paraphrases tend to induce similar green lists. To isolate the effect of the projection matrix in OpenStamp on paraphrasing robustness, we evaluate an ablation of our method without the projection matrix (OpenStamp w/o sem-align), where the selector matrix is trained on raw hidden states.
Table 2 shows OpenStamp achieves the highest TPR@1%FPR on both models, demonstrating superior robustness to paraphrasing attacks. Ablating the projection matrix degrades performance, confirming its contribution in enhancing robustness to paraphrasing.
| Method | Llama-2-7B | Mistral-7B | ||
|---|---|---|---|---|
| AUROC | TPR@1%FPR | AUROC | TPR@1%FPR | |
| SIR | ||||
| KGW Distilled | ||||
| GaussMark | ||||
| Unremovable | ||||
| OpenStamp w/o sem-align | ||||
| OpenStamp | ||||
Table 2: Detectability of paraphrased text. On both models, OpenStamp achieves the highest TPR@1%FPR on paraphrased text, outperforming SIR and the open-source baselines. OpenStamp w/o sem-align degrades performance, confirming that the projection matrix contributes to robustness against paraphrasing attacks.
5.3 Resistance to post-hoc model modifications
We assess how well open-source compatible watermarking methods can resist post-hoc model modifications, ranging from adversarial fine-tuning explicitly aimed at erasing the watermark to naive modifications such as instruction fine-tuning and quantization that users commonly apply after release. We first simulate an adversary attempting to erase the

Figure 3: Llama-2-7B detectability under post-hoc fine-tuning. All methods degrade over time, but OpenStamp maintains higher detectability compared to GaussMark, KGW Distilled, and Unremovable. Note that 2,500 steps comprise 60 million tokens.

Figure 4: Relative downstream task accuracy of watermarked Llama-2-7B. Accuracy is shown as a percentage of the unwatermarked baseline (dashed line at ). OpenStamp exhibits minimal degradation in accuracy across all benchmarks.
watermark from model weights by further fine-tuning on OpenWebText (Gokaslan & Cohen, 2019) using LoRA (Hu et al., 2022). Full experimental details are provided in Appendix K. We measure the TPR@1%FPR after every 500 fine-tuning steps up to 2,500 steps (2,500 steps comprise 60 million tokens). We discuss an additional attack setup in Appendix P.
Figure 3 shows that while all watermarks degrade during Llama-2-7B fine-tuning, OpenStamp maintains superior detectability over GaussMark, KGW Distilled, and Unremovable. Similar trends hold for Mistral-7B (See Figure 5).
Instruction fine-tuning. The OpenWebText experiment above simulates an adversary who continues fine-tuning on web text to scrub the watermark. Released checkpoints are commonly instruction-tuned. We evaluate this setting by fine-tuning watermarked models on the Alpaca instruction dataset (Taori et al., 2023). Training details are in Appendix K. To measure durability on both general-domain and instruction-domain outputs, we then evaluate detectability on RealNewsLike completions under the protocol in Section 4.2, and on instruction-following completions from AlpacaEval (Li et al., 2023b). As shown in Table 3, detectability on RealNewsLike remains strong for all methods, with OpenStamp retaining the highest TPR@1%FPR. On AlpacaEval, TPR@1%FPR drops for every method, with Unremovable strongest and OpenStamp remaining competitive. Corresponding Mistral-7B results follow the same pattern (Appendix B). These results are consistent with the findings of Gloaguen et al. (2025): after instruction fine-tuning, the watermark can remain strong on general text while weakening on instruction-following outputs.
| Method | RealNewsLike | AlpacaEval | ||
|---|---|---|---|---|
| AUROC | TPR@1%FPR | AUROC | TPR@1%FPR | |
| KGW Distilled | ||||
| GaussMark | ||||
| Unremovable | ||||
| OpenStamp | ||||
Table 3: Llama-2-7B detectability under instruction fine-tuning. TPR@1%FPR remains high on RealNewsLike but drops on AlpacaEval. Bold values mark the best in each column.
Quantization. Open-source models are commonly quantized after release to reduce memory and inference cost. To assess watermark durability in this setting, we apply 4-bit NormalFloat (NF4) (Dettmers et al., 2023) or 8-bit integer (INT8) (Dettmers et al., 2022) to watermarked models, generate RealNewsLike completions from these quantized models, and measure detectability. Table 4 shows that detectability remains high for OpenStamp and the baselines under both schemes, consistent with prior work finding that quantization has little effect on watermark detectability (Gloaguen et al., 2025).
| Method | Model | Unquantized | NF4 | INT8 |
|---|---|---|---|---|
| OpenStamp | Llama-2-7B | 0.998 | 1.000 | 1.000 |
| Mistral-7B | 1.000 | 1.000 | 1.000 | |
| KGW Distilled | Llama-2-7B | 0.986 | 0.976 | 0.988 |
| Mistral-7B | 0.990 | 1.000 | 0.994 | |
| GaussMark | Llama-2-7B | 0.846 | 0.854 | 0.842 |
| Mistral-7B | 0.746 | 0.736 | 0.704 | |
| Unremovable | Llama-2-7B | 0.994 | 0.994 | 0.993 |
| Mistral-7B | 0.996 | 0.990 | 0.995 |
Table 4: Detectability under quantization. TPR@1%FPR remains high for OpenStamp and the baselines under both NF4 and INT8.
Reinitializing and retraining the unembedding layer. An adversary may attempt to remove the watermark by reinitializing the unembedding layer and relearning the mapping from hidden states to token logits to restore fluent generation. Restoring this capability is non-trivial, since model developers train LLMs on large curated datasets and rely on complex pretraining and post-training pipelines. To illustrate this difficulty, we reinitialized the unembedding layer and retrained only that layer on FineWeb (Penedo et al., 2024). Table 5 reports perplexity after 2,500 and 25,000 training steps. Even after training on 800M tokens, perplexity remains far worse than the watermarked baseline, showing that recovering quality is non-trivial and making this attack computationally costly.
| Condition | PPL |
|---|---|
| Watermarked baseline | 15.1 |
| After 2,500 steps (80M tokens) | 78,529.4 |
| After 25,000 steps (800M tokens) | 351.7 |
Table 5: Perplexity after retraining a reinitialized unembedding layer. Only the unembedding layer is reinitialized and retrained on FineWeb; all other weights remain frozen.
5.4 Impact on downstream task accuracy
Since watermarking methods alter the output distributions of LLMs, it is essential to ensure that the underlying model's capabilities are not compromised. While the results in Figure 2 demonstrate minimal degradation in perplexity, Ajith et al. (2024) find that perplexity measurements cannot reliably predict the performance trade-offs due to watermarking. We therefore evaluate watermarked models using the Language Model Evaluation Harness (Gao et al., 2024), measuring potential degradation across three benchmarks: ARC-C (Clark et al., 2018), BoolQ (Clark et al., 2019), and HellaSwag (Zellers et al., 2019).
As shown in Figure 4, OpenStamp causes minimal accuracy degradation on Llama-2-7b across all benchmarks. Notably, the results are statistically indistinguishable from the unwatermarked baseline, indicating no meaningful impact on downstream performance. Similar results are observed for Mistral-7b (see Figure 6).
6 Limitations
Our work has several important limitations. First, detection requires a forward pass through the model, making it computationally expensive compared to methods that perform statistical tests on generated text alone. Second, our method assumes access to token probabilities from the base model. However, this is a realistic assumption as model owners typically have white-box access to their models. While our detection algorithm achieves stronger performance, it is not grounded in a statistical test and thus lacks a probabilistic interpretation, such as confidence levels or false positive rates, that help quantify detection uncertainty.
7 Conclusion
We proposed an effective approach for watermarking open-source LLMs by embedding the watermarking logic directly into the unembedding layer weights. This design natively integrates the watermark into the generation process, eliminating the need for decoding-time interventions. Our approach outperforms existing baselines in detection performance while preserving text quality. Furthermore, it demonstrates superior robustness against both paraphrasing and post-hoc fine-tuning, while remaining controllable and easy to integrate. Future work could explore advanced offset matrix designs to further improve this robustness, and enable detection methods with statistical guarantees.
Acknowledgements
We thank the reviewers for their feedback. We are grateful to Krishna Pillutla for discussions that positively shaped our work. Additionally, DP is grateful to the National Payments Corporation of India (NPCI), Schmidt Sciences through their AI2050 program (Grant G-24-66186), and Google for generously supporting his group’s research.
References
Scott Aaronson. 20 - 'Reform' AI Alignment with Scott Aaronson. AXRP - The AI X-risk Research Podcast, 2023. URL https://axrp.net/episode/2023/04/11/episode-20-reform-ai-alignment-scott-aaronson.html.
Marah Abdin, Jyoti Aneja, Harkirat Behl, Sébastien Bubeck, Ronen Eldan, Suriya Gunasekar, Michael Harrison, Russell J. Hewett, Mojan Javaheripi, Piero Kauffmann, James R. Lee, Yin Tat Lee, Yuanzhi Li, Weishung Liu, Caio C. T. Mendes, Anh Nguyen, Eric Price, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Xin Wang, Rachel Ward, Yue Wu, Dingli Yu, Cyril Zhang, and Yi Zhang. Phi-4 technical report, 2024. URL https://arxiv.org/abs/2412.08905.
Anirudh Ajith, Sameer Singh, and Danish Pruthi. Downstream trade-offs of a family of text watermarks. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 14039–14053, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-emnlp.821. URL https://aclanthology.org/2024.findings-emnlp.821/.
Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafioti, Hynek Kydlíček, Agustín Piqueres Lajarín, Vaibhav Srivastav, Joshua Lochner, Caleb Fahlgren, Xuan-Son Nguyen, Clémentine Fourrier, Ben Burtenshaw, Hugo Larcher, Haojun Zhao, Cyril Zakka, Mathieu Morlon, Colin Raffel, Leandro von Werra, and Thomas Wolf. Smollm2: When smol goes big – data-centric training of a small language model, 2025. URL https://arxiv.org/abs/2502.02737.
Adam Block, Alexander Rakhlin, and Ayush Sekhari. Gaussmark: A practical approach for structural watermarking of language models. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=YG3DbpAQBf.
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners, 2020. URL https://arxiv.org/abs/2005.14165.
Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. M3-embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 2318–2335, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-acl.137. URL https://aclanthology.org/2024.findings-acl.137/.
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. Palm: Scaling language modeling with pathways, 2022. URL https://arxiv.org/abs/2204.02311.
Miranda Christ, Sam Gunn, Tal Malkin, and Mariana Raykova. Provably robust watermarks for open-source language models, 2024. URL https://arxiv.org/abs/2410.18861.
Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. BoolQ: Exploring the surprising difficulty of natural yes/no questions. In Jill Burstein, Christy Doran, and Thamar Solorio (eds.), Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 2924–2936, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1300. URL https://aclanthology.org/N19-1300/.
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge, 2018. URL https://arxiv.org/abs/1803.05457.
Arman Cohan, Franck Dernoncourt, Doo Soon Kim, Trung Bui, Seokhwan Kim, Walter Chang, and Nazli Goharian. A discourse-aware attention model for abstractive summarization of long documents. In Marilyn Walker, Heng Ji, and Amanda Stent (eds.), Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pp. 615–621, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. doi:10.18653/v1/N18-2097. URL https://aclanthology.org/N18-2097/.
Sumanth Dathathri, Abigail See, Sumedh Ghaisas, Po-Sen Huang, Rob McAdam, Johannes Welbl, Vandana Bachani, Alex Kaskasoli, Robert Stanforth, Tatiana Matejovicova, et al. Scalable watermarking for identifying large language model outputs. Nature, 634(8035): 818–823, 2024. URL https://www.nature.com/articles/s41586-024-08025-4.
Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. GPT3.int8(): 8-bit matrix multiplication for transformers at scale. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=dXiGWqBoxaD.
Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 10088–10115. Curran Associates, Inc., 2023. doi: 10.52202/075280-0441. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/1feb87871436031bdc0f2beaa62a049b-Paper-Conference.pdf.
Fay Elhassan, Niccolò Ajroldi, Antonio Orvieto, and Jonas Geiping. Can you finetune your binoculars? embedding text watermarks into the weights of large language models. In The 1st Workshop on GenAI Watermarking, 2025. URL https://openreview.net/forum?id=d1v2hkB0Vj.
Wikimedia Foundation. Wikimedia downloads. URL https://dumps.wikimedia.org.
Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. The language model evaluation harness, 07 2024. URL https://zenodo.org/records/12608602.
GitHub. Github copilot. https://github.com/copilot, 2026.
Thibaud Gloaguen, Nikola Jovanović, Robin Staab, and Martin Vechev. Towards watermarking of open-source LLMs. In The 1st Workshop on GenAI Watermarking, 2025. URL https://openreview.net/forum?id=OKjZvLJx0Y.
Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus, 2019.
Dijana Vukovic Grbic and Igor Dujlovic. Social engineering with chatgpt. In 2023 22nd International Symposium INFOTEH-JAHORINA (INFOTEH), pp. 1–5. IEEE, 2023. doi:10.1109/INFOTEH57020.2023.10094141.
Chenchen Gu, Xiang Lisa Li, Percy Liang, and Tatsunori Hashimoto. On the learnability of watermarks for language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=9k0krNzvlV.
Abe Hou, Jingyu Zhang, Yichen Wang, Daniel Khashabi, and Tianxing He. k-SemStamp: A clustering-based semantic watermark for detection of machine-generated text. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Findings of the Association for Computational Linguistics: ACL 2024, pp. 1706–1715, Bangkok, Thailand, August 2024a. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-acl.98. URL https://aclanthology.org/2024.findings-acl.98/.
Abe Bohan Hou, Jingyu Zhang, Tianxing He, Yichen Wang, Yung-Sung Chuang, Hongwei Wang, Lingfeng Shen, Benjamin Van Durme, Daniel Khashabi, and Yulia Tsvetkov. Sem-Stamp: A semantic watermark with paraphrastic robustness for text generation. In Kevin Duh, Helena Gomez, and Steven Bethard (eds.), Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 4067–4082, Mexico City, Mexico, June 2024b. Association for Computational Linguistics. doi: 10.18653/v1/2024.naacl-long.226. URL https://aclanthology.org/2024.naacl-long.226/.
Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7b, 2023. URL https://arxiv.org/abs/2310.06825.
Nikola Jovanović, Robin Staab, and Martin Vechev. Watermark stealing in large language models. ICML, 2024.
John Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz, Ian Miers, and Tom Goldstein. A watermark for large language models. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 17061–17084. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/kirchenbauer23a.html.
John Kirchenbauer, Jonas Geiping, Yuxin Wen, Manli Shu, Khalid Saifullah, Kezhi Kong, Kasun Fernando, Aniruddha Saha, Micah Goldblum, and Tom Goldstein. On the reliability of watermarks for large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=DEJIDCmWOz.
Kalpesh Krishna, Yixiao Song, Marzena Karpinska, John Frederick Wieting, and Mohit Iyyer. Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=WbFhFvjjKj.
Wojciech Kryscinski, Nazneen Rajani, Divyansh Agarwal, Caiming Xiong, and Dragomir Radev. BOOKSUM: A collection of datasets for long-form narrative summarization. In Findings of the Association for Computational Linguistics: EMNLP 2022, pp. 6536–6558, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.findings-emnlp.488. URL https://aclanthology.org/2022.findings-emnlp.488/.
Rohith Kuditipudi, John Thickstun, Tatsunori Hashimoto, and Percy Liang. Robust distortion-free watermarks for language models. Transactions on Machine Learning Research, 2024. ISSN 2835-8856. URL https://openreview.net/forum?id=FpaCL1M02C.
Taehyun Lee, Seokhee Hong, Jaewoo Ahn, Ilgee Hong, Hwaran Lee, Sangdoo Yun, Jamin Shin, and Gunhee Kim. Who wrote this code? watermarking for code generation. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 4890–4911, Bangkok, Thailand, 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.268. URL https://aclanthology.org/2024.acl-long.268/.
Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, Qian Liu, Evgenii Zheltonozhskii, Terry Yue Zhuo, Thomas Wang, Olivier Dehaene, Mishig Davaadorj, Joel Lamy-Poirier, João Monteiro, Oleh Shliazhko, Nicolas Gontier, Nicholas Meade, Armel Zebaze, Ming-Ho Yee, Logesh Kumar Umapathi, Jian Zhu, Benjamin Lipkin, Muhtasham Oblokulov, Zhiruo Wang, Rudra Murthy, Jason Stillerman, Siva Sankalp Patel, Dmitry Abulkhanov, Marco Zocca, Manan Dey, Zhihan Zhang, Nour Fahmy, Urvashi Bhattacharyya, Wenhao Yu, Swayam Singh, Sasha Luccioni, Paulo Villegas, Maxim Kunakov, Fedor Zhdanov, Manuel Romero, Tony Lee, Nadav Timor, Jennifer Ding, Claire Schlesinger, Hailey Schoelkopf, Jan Ebert, Tri Dao, Mayank Mishra, Alex Gu, Jennifer Robinson, Carolyn Jane Anderson, Brendan Dolan-Gavitt, Danish Contractor, Siva Reddy, Daniel Fried, Dzmitry Bahdanau, Yacine Jernite, Carlos Muñoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. StarCoder: may the source be with you! Transactions on Machine Learning Research, 2023a. URL https://openreview.net/forum?id=KoF0g41haE.
Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. AlpacaEval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval, 5 2023b.
Yuqing Liang, Jiancheng Xiao, Wensheng Gan, and Philip S. Yu. Watermarking techniques for large language models: A survey, 2024. URL https://arxiv.org/abs/2409.00089.
Aiwei Liu, Leyi Pan, Xuming Hu, Shiao Meng, and Lijie Wen. A semantic invariant robust watermark for large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=6p8lpe4MNf.
Yepeng Liu and Yuheng Bu. Adaptive text watermark for large language models. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=7em0Sb5UfX.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bkg6RiCqY7.
Team Olmo, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, et al. Olmo 3. arXiv preprint arXiv:2512.13961, 2025.
OpenAI. Chatgpt. https://chat.openai.com/, 2025. Large language model; accessed 2025-09-01.
Oscar Oviedo-Trespalacios, Amy E Peden, Thomas Cole-Hunter, Arianna Costantini, Milad Haghani, J.E. Rod, Sage Kelly, Helma Torkamaan, Amina Tariq, James David Albert Newton, Timothy Gallagher, Steffen Steinert, Ashleigh J. Filtness, and Genserik Reniers. The risks of using chatgpt to obtain common safety-related information and advice. Safety Science, 167:106244, 2023. ISSN 0925-7535. doi: 10.1016/j.ssci.2023.106244. URL https://www.sciencedirect.com/science/article/pii/S0925753523001868.
Mekela Panditharatne and Noah Giansiracusa. How ai puts elections at risk - and the needed safeguards, 2023. URL https://www.brennancenter.org/our-work/analysis-opinion/how-ai-puts-elections-risk-and-needed-safeguards.
Keiran Paster, Marco Dos Santos, Zhangir Azerbaijan, and Jimmy Ba. OpenWebMath: An open dataset of high-quality mathematical web text. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=jKHmjlpViu.
Guilherme Penedo, Hynek Kydliček, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, Thomas Wolf, et al. The fineweb datasets: Decanting the web for the finest text data at scale. Advances in Neural Information Processing Systems, 37:30811–30849, 2024.
Guilherme Penedo, Hynek Kydliček, Vinko Sabolčec, Bettina Messmer, Negar Foroutan, Amir Hossein Kargaran, Colin Raffel, Martin Jaggi, Leandro Von Werra, and Thomas Wolf. FineWeb2: One pipeline to scale them all – adapting pre-training data processing to every language, 2025. URL https://arxiv.org/abs/2506.20920.
Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report, 2025. URL https://arxiv.org/abs/2412.15115.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(1), January 2020. ISSN 1532-4435. URL https://jmlr.org/papers/v21/20-074.html.
Saksham Rastogi and Danish Pruthi. Revisiting the robustness of watermarking to paraphrasing attacks. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 18100–18110, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.1005. URL https://aclanthology.org/2024.emnlp-main.1005/.
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpaca: A strong, replicable instruction-following model. https://crfm.stanford.edu/2023/03/13/alpaca.html, 2023. Stanford Center for Research on Foundation Models (CRFM) blog post.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. Llama 2: Open foundation and fine-tuned chat models, 2023. URL https://arxiv.org/abs/2307.09288.
Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. Multilingual e5 text embeddings: A technical report, 2024. URL https://arxiv.org/abs/2402.05672.
Sean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan, Kyunghyun Cho, and Jason Weston. Neural text generation with unlikelihood training. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SJeYe0NtvH.
Xiaojun Xu, Yuanshun Yao, and Yang Liu. Learning to watermark LLM-generated text via reinforcement learning. In The 1st Workshop on GenAI Watermarking, 2025. URL https://openreview.net/forum?id=dTlCMiE0dk.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a machine really finish your sentence? In Anna Korhonen, David Traum, and Lluís Márquez (eds.), Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4791–4800, Florence, Italy, July 2019. Association for Computational Linguistics. doi:10.18653/v1/P19-1472. URL https://aclanthology.org/P19-1472/.
Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. Qwen3 embedding: Advancing text embedding and reranking through foundation models, 2025. URL https://arxiv.org/abs/2506.05176.
Xuandong Zhao, Prabhanjan Vijendra Ananth, Lei Li, and Yu-Xiang Wang. Provable robust watermarking for AI-generated text. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=SsmT8a045L.
Appendices
A Watermark detection via LLR score
The LLR-based detection algorithm is formalized in Algorithm 1. Given a sequence , we first extract the hidden states from the LLM backbone. We then compute the log-likelihood of the sequence under both the original model and the watermarked model (which incorporates the offset matrix ). Finally, we calculate the length-normalized LLR score and compare it against a threshold to determine if the sequence is watermarked.
Algorithm 1 Watermark Detection via LLR Score
Require: Sequence , LLM backbone , unembedding matrix , offset matrix , threshold
Ensure: True if is watermarked; else False
// Extract hidden states from the LLM
1:
// Compute log-likelihood of sequence under original model
2:
// Compute log-likelihood under watermarked model
3:
// Compute length-normalized LLR score
4:
5: return
B Mistral additional results
We present additional results on the Mistral-7B model across three axes: robustness to post-hoc fine-tuning (Figure 5), relative downstream task accuracy (Figure 6), and detectability after instruction fine-tuning (Table 6). As in the Llama-2-7B setting (Table 3), detectability on

Figure 5: Mistral-7B detectability under post-hoc fine-tuning. All methods degrade over time, but OpenStamp maintains higher detectability compared to GaussMark, KGW Distilled, and Unremovable.

Figure 6: Relative downstream task accuracy of watermarked Mistral-7B. OpenStamp exhibits minimal degradation in accuracy across all benchmarks.
RealNewsLike remains high after Alpaca instruction fine-tuning, with OpenStamp retaining the strongest TPR@1%FPR, while AlpacaEval scores are lower across methods.
| Method | RealNewsLike | AlpacaEval | ||
|---|---|---|---|---|
| AUROC | TPR@1%FPR | AUROC | TPR@1%FPR | |
| KGW Distilled | ||||
| GaussMark | ||||
| Unremovable | ||||
| OpenStamp | ||||
Table 6: Mistral-7B detectability under instruction fine-tuning. TPR@1%FPR remains high on RealNewsLike but drops on AlpacaEval, matching Table 3. Bold values mark the best in each column.
C Generalizability across LLMs
To assess the generalizability of our method across diverse LLMs, we evaluate its detection performance on four additional models: phi-4 (Abdin et al., 2024), 01mo-3-7B (Olmo et al., 2025), Qwen2.5-7B (Qwen et al., 2025), and SmolLM2-1.7B (Allal et al., 2025). This selection covers a variety of model families, parameter scales, and training stages (pretrained vs. instruction-tuned). For all models, we apply same hyperparameters (, ) and evaluate the detection performance using the same protocol as described in Section 4.2. Table 7 shows that OpenStamp achieves perfect TPR@1%FPR across all four models, demonstrating its robustness and generalizability. The watermarked perplexity (WM PPL) values are reasonably close to the unwatermarked perplexity (Baseline PPL), indicating that the watermark does not significantly degrade text quality across these diverse models.
| Model | TPR@1%FPR | TPR@0.1%FPR | WM PPL | Baseline PPL |
|---|---|---|---|---|
| 01mo-3-1025-7B | ||||
| Qwen2.5-7B | ||||
| SmolLM2-1.7B | ||||
| phi-4 |
Table 7: Generalizability across LLMs. OpenStamp achieves perfect TPR@1%FPR across all four models, demonstrating its robustness and generalizability. The difference between WM PPL and Baseline PPL indicates the impact of watermarking on the model's perplexity.
D Detection under significant distribution shift
Because the projection matrix and selector matrix are trained on English web text from OpenWebText (Gokaslan & Cohen, 2019), we further evaluate detectability and text quality on three datasets that represent a significant distribution shift from this training distribution: the Japanese subset of FineWeb-2 (Penedo et al., 2025), OpenWebMath (Paster et al., 2024) (mathematical web text), and the Python subset of StarCoderData (Li et al., 2023a). Table 8 reports TPR@0.1%FPR and perplexity under these settings. OpenStamp retains strong detectability on the Japanese and mathematical web-text datasets for both primary models. Performance degrades only on the Python subset of StarCoderData, consistent with prior work showing that code is particularly challenging to watermark because of its low-entropy, highly constrained token distributions (Lee et al., 2024). The baselines degrade more severely under this shift. While Unremovable transfers better than GaussMark and KGW Distilled, it trails OpenStamp across all datasets, with the largest gap on code.
E Effect of varying and
We measure the detectability and text quality of watermarked samples generated using different values of and on Llama-2-7B. The results, shown in Figures 7a and 7b, indicate the trade-off between detectability and distortion as we vary these parameters.
| Method | Model | OpenWebMath | FineWeb-2 (Ja) | StarCoderData | |||
|---|---|---|---|---|---|---|---|
| TPR | PPL | TPR | PPL | TPR | PPL | ||
| Llama-2-7B | 0.748 ± 0.269 | 16.3 ± 1.0 | 0.678 ± 0.470 | 18.6 ± 0.7 | 0.491 ± 0.261 | 6.5 ± 0.3 | |
| Mistral-7B | 0.596 ± 0.496 | 15.1 ± 0.2 | 0.980 ± 0.015 | 27.3 ± 1.0 | 0.414 ± 0.180 | 7.1 ± 0.7 | |
| Llama-2-7B | 0.998 ± 0.002 | 15.4 ± 0.5 | 0.998 ± 0.001 | 17.7 ± 1.3 | 0.915 ± 0.006 | 6.6 ± 0.3 | |
| Mistral-7B | 0.988 ± 0.005 | 14.4 ± 0.7 | 1.000 ± 0.000 | 27.4 ± 0.7 | 0.868 ± 0.075 | 6.4 ± 0.2 | |
| KGW Distilled | Llama-2-7B | 0.247 ± 0.329 | 20.5 ± 1.1 | 0.247 ± 0.222 | 25.5 ± 0.0 | 0.133 ± 0.100 | 8.3 ± 0.3 |
| Mistral-7B | 0.304 ± 0.505 | 23.4 ± 1.4 | 0.554 ± 0.255 | 50.0 ± 4.4 | 0.195 ± 0.156 | 15.4 ± 1.4 | |
| GaussMark | Llama-2-7B | 0.478 ± 0.142 | 17.3 ± 1.1 | 0.957 ± 0.031 | 25.9 ± 1.4 | 0.294 ± 0.113 | 7.8 ± 0.2 |
| Mistral-7B | 0.282 ± 0.051 | 16.4 ± 0.7 | 0.785 ± 0.193 | 36.3 ± 3.7 | 0.186 ± 0.092 | 7.3 ± 0.5 | |
| Unremovable | Llama-2-7B | 0.912 ± 0.059 | 16.0 ± 2.3 | 0.929 ± 0.039 | 15.6 ± 2.4 | 0.720 ± 0.126 | 7.0 ± 1.5 |
| Mistral-7B | 0.855 ± 0.072 | 13.6 ± 1.8 | 0.921 ± 0.075 | 24.6 ± 1.8 | 0.599 ± 0.133 | 5.8 ± 0.3 | |
| OpenStamp | Llama-2-7B | 0.993 ± 0.009 | 14.5 ± 1.2 | 1.000 ± 0.000 | 19.6 ± 3.0 | 0.923 ± 0.047 | 6.9 ± 0.7 |
| Mistral-7B | 0.982 ± 0.007 | 14.7 ± 0.2 | 1.000 ± 0.000 | 25.3 ± 3.0 | 0.842 ± 0.088 | 6.9 ± 0.4 | |
Table 8: Detection under significant distribution shift. We report TPR@0.1%FPR (labeled TPR) and perplexity (PPL) on OpenWebMath (Paster et al., 2024), the Japanese subset of FineWeb-2 (Penedo et al., 2025), and the Python subset of StarCoderData (Li et al., 2023a). Bold values indicate the highest TPR among open-weight watermarking methods for each dataset and model.

(a) Effect of and on detectability. TPR@1%FPR vs. for various values.

(b) Effect of and on text quality. Perplexity vs. across the same settings, measured using Llama-2-13b.
F Training the projection matrix
The projection matrix is trained on a paired dataset of hidden states and high-quality sentence embeddings extracted from a large-scale text corpus. Specifically, hidden states are extracted from the model's final layer, while target sentence embeddings are obtained using the Qwen3-Embedding-8B embedding model (Zhang et al., 2025). Training utilizes 1.5 million paired samples extracted from the OpenWebText corpus, with a maximum sequence length of 512 tokens.
We optimize using a contrastive loss function 2 designed to align the similarity distribution of projected hidden states with that of the target sentence embeddings. The optimization is performed using AdamW (Loshchilov & Hutter, 2019) with a learning rate of , a weight decay of , and a temperature over 15 epochs.
To evaluate the projection's effectiveness, we measure the cosine similarity between the projected hidden states of 500 text samples and their corresponding paraphrases (generated via the technique described in Appendix H). As illustrated in Figure 8, the projection

Figure 8: Effectiveness of Projection Matrix . The distribution of cosine similarities between original and paraphrased text pairs is shown for both raw hidden states and projected hidden states. The projection significantly increases the similarity, indicating that successfully aligns hidden states with semantic similarity.
significantly enhances the similarity between original and paraphrased pairs compared to raw hidden states, confirming that successfully projects hidden states into a semantically aligned space where paraphrases are more closely clustered.
Effect of the embedding model The choice of sentence-embedding model used to supervise is a design decision underlying the paraphrasing robustness of OpenStamp. Our main experiments use Qwen3-Embedding-8B (Zhang et al., 2025) as the target embedding space. To examine how sensitive the method is to this choice, we retrain on Llama-2-7B using two additional embedding models—multilingual-e5-large (Wang et al., 2024) and bge-m3 (Chen et al., 2024). We then re-evaluate paraphrasing robustness under the protocol of Section 5.2, reporting AUROC and TPR@1%FPR on paraphrased text.
Table 9 shows comparable paraphrasing robustness across all three embedding models, with each outperforming the ablation that omits semantic alignment. Under this setup, the benefit of alignment does not appear to depend on a specific embedding model.
| Embedding Model | AUROC | TPR@1%FPR |
|---|---|---|
| OpenStamp w/o sem-align | ||
| Qwen3-Embedding-8B | ||
| multilingual-e5-large | ||
| bge-m3 |
Table 9: Effect of the embedding model used to train the projection matrix . Paraphrasing robustness on Llama-2-7B. The OpenStamp w/o sem-align row removes the projection matrix and trains the selector on raw hidden states.
G Training the selector matrix
We train the selector matrix to classify projected hidden state vectors into distinct classes, where is a hyperparameter.
We apply incremental K-Means clustering on the projected hidden states and group them into clusters. Clusters with fewer than 10 hidden states are discarded to ensure sufficient representation. We set the ridge regression regularization parameter to throughout our experiments.
H Paraphrasing attack setup
We generate paraphrased variants of the watermarked completions by prompting Qwen2.5-14B-Instruct (Qwen et al., 2025) using the template provided below. For generation, we employ nucleus sampling with , a temperature of 0.7, and beam search with a beam width of 3.
Prompt Template: Paraphrase Task
Instruction: The input contains a Prompt and its Completion. Paraphrase ONLY the Completion. Preserve the exact meaning, facts, scope, and intent. Do not add, remove, infer, or reinterpret any information. Change wording and sentence structure only.
Prompt: {{prompt}}
Completion: {{completion}}
Paraphrased Completion:
To assess paraphrase quality, we compute the cosine similarity between original and paraphrased outputs for 500 samples using the Qwen3-Embedding-8B embedding model. As illustrated in Figure 9, the similarity scores are clustered around a mean of 0.92, confirming that the paraphrases maintain high semantic fidelity to the original completions.

Figure 9: Quality of Paraphrased Completions. The distribution of cosine similarities between original and paraphrased completions shows a high mean similarity of 0.92, indicating that the paraphrasing attack successfully preserves the semantic content of the original completions.
I Hyperparameter details for watermarking methods
This section details the experimental setup and hyperparameters used across all experiments. For each watermarking method, we perform a parameter sweep to generate the plot in Figure 2. For other evaluations, such as robustness to paraphrasing attacks ( 5.2), downstream task accuracy ( 5.4), and resistance to post-hoc model modifications ( 5.3), we select a single representative configuration from each method.
OpenStamp We encode green lists, each containing a fraction of green tokens for both Llama-2-7B and Mistral-2-7B. The strength parameter is selected from the interval [0.3, 1.2] for the Pareto evaluation. For all other experiments, we select as the representative configuration.
GaussMark baseline For GaussMark (Block et al., 2025), we perturbed the MLP up-projection weights in a single decoder block using Gaussian noise. For Llama-2-7b, the 27th decoder block was used with for the Pareto evaluation. The configuration is chosen for all other experiments. For Mistral-2-7b, the 20th decoder block and was selected for evaluations.
Unremovable baseline For Unremovable (Christ et al., 2024), the strength parameter is selected from for the Pareto evaluation on Llama-2-7B. For all other experiments on both Llama-2-7B and Mistral-7B, we select as the representative configuration.
KGW distilled baseline We trained several logit-distilled KGW variants (Gu et al., 2024) of Llama-2-7B using a green list fraction and strength values to construct the Pareto frontier. The distilled models with was selected for all other evaluations.
KGW decoding-time watermark We used the decoding-time KGW watermark (Kirchenbauer et al., 2023), which biases the model's logits during generation without requiring any parameter modification. We set , which is the token context length used by the PRF to generate green lists. We fixed the green list fraction and swept the bias strength to populate the Pareto frontier. For other evaluations, we selected as the representative configuration.
Semantic Invariant Robust (SIR) baseline We evaluate SIR (Liu et al., 2024) as a decoding-time reference for paraphrasing robustness, with bias strength and chunk length 10 on both models.
KGW + LLR detection variant We additionally evaluated KGW with an LLR-based detection strategy (Section 3.4) to simulate a white-box detection setting. The hyperparameters were fixed at and for the Pareto evaluation. For other evaluations, we selected .
J Practical challenges with RL-based watermarking
We attempted to implement the RL-based watermarking method from Xu et al. (2025). However, the trained RL model was unable to generate detectable watermarks when the text was generated using multinomial sampling, and it could only embed a strong watermark when sampling with greedy decoding. This is not practical for real-world applications, as greedy decoding often produces repetitive and low-quality text.
We quantify repetition using seq-rep-3, the proportion of duplicate 3-grams in a sequence (Welleck et al., 2020):
We report mean seq-rep-3 across watermarked samples for both RL watermarking and our method under greedy and multinomial (temperature = 1.0) decoding, along with TPR@1%FPR. Results in Table 10 show that while greedy decoding makes RL watermarks detectable, it also causes severe repetition, limiting practicality. In contrast, our method preserves low repetition while maintaining strong detectability across both decoding strategies.
| Method | Multinomial | Greedy | ||
|---|---|---|---|---|
| TPR@1%FPR | seq-rep-3 | TPR@1%FPR | seq-rep-3 | |
| RL Watermarking | 0.25 | 0.03 | 0.99 | 0.58 |
| OpenStamp | 1.0 | 0.03 | 1.0 | 0.03 |
Table 10: Detectability (TPR@1%FPR) and text repetition (mean seq-rep-3) for RL watermarking and OpenStamp under multinomial and greedy decoding. While RL watermarking achieves high detectability with greedy decoding, it causes severe repetition, whereas OpenStamp maintains both strong detectability and low repetition across settings.
K Fine-tuning setup details
We fine-tune all models on OpenWebText. We follow a setup similar to Gloaguen et al. (2025): we use a batch size of 48 with 512 tokens per input and a learning rate of . We use the Adafactor optimizer with cosine learning rate decay and linear warmup for the first 500 steps. For LoRA (Hu et al., 2022), we set the rank to 16, the scaling factor (alpha) to 32, and the dropout rate to 0.1. We fine-tune all the internal linear layers of the transformer blocks along with the unembedding layer.
For instruction fine-tuning, we instead train for one epoch on Alpaca (Taori et al., 2023) (tatsu-lab/alpaca) with effective batch size 128 and a maximum sequence length of 512. We use the same optimizer, learning rate, and LoRA hyperparameters as above, but apply LoRA only to attention and MLP projections, corresponding to a realistic post-release instruction-tuning setup.
L Analysis of watermarking behavior
In this section, we study how the hyperparameter , which represents the number of green lists, influences our watermarking method. We focus on two aspects: (1) the alignment between watermark logits and the green list structure, and (2) the detection performance.
Measuring alignment. We first extract 5,000 hidden states from OpenWebText samples. For each hidden state , we compute watermark logits . We measure overlap, defined as the fraction of tokens with the largest logits in that also belong to the intended green list , where . We report overlap for different values of and in Figure 10. As increases, the overlap decreases, indicating a weakening alignment with the green list structure.
Measuring detection performance. We find the minimum PPL required to achieve TPR@1%FPR on watermarked samples. A lower PPL threshold indicates a more effective watermark, since it enables reliable detection with less degradation in text quality. We report the PPL threshold for different values. For comparison, we also report corresponding PPL thresholds for GaussMark, KGW Distilled, and Unremovable. Figure 11 shows that PPL remains stable across different values and consistently below the baseline thresholds.
M Effect of on logit variability
We study how increasing affects the variability of watermark logits across different contexts. With more green lists available, hidden states can be assigned to a greater number of distinct green lists. This increases the diversity of tokens favored by the watermark, making it less predictable and more robust to reverse-engineering attacks. We measure variability by computing the mean Jaccard similarity between the sets of token indices corresponding to the top components of watermark logits across hidden states. We evaluate this metric for different values of and . Lower similarity implies greater

Figure 10: Green List Token Overlap. As L increases, the overlap between the top-biased tokens and the intended green list decreases, indicating weakening alignment with the intended green list structure.

Figure 11: Detection Performance vs. L. Minimum PPL to achieve TPR@1%FPR ≥ 0.90 is reported for different L values. PPL remains stable with growing L and consistently below the GaussMark, KGW Distilled, and Unremovable baselines.
variability in the watermark logits. As shown in Figure 12, mean similarity decreases with increasing L, though the decline plateaus for large L, reflecting diminishing marginal gains in variability.

Figure 12: Variability in Watermark Logits. As L increases, the mean Jaccard similarity between different top-biased token sets decreases, indicating greater variability in watermark logits across different contexts.
N LLM usage
ChatGPT (OpenAI, 2025) was used to assist with typesetting (e.g., equations, tables) and for minor language editing (grammar and conciseness). GitHub Copilot (GitHub, 2026) was used to assist in implementing the code for aggregating results and generating plots. All outputs were reviewed and validated by the authors.
O Prompt independence of watermark detection
To explain why our detection method works without the original prompt, we compare per-token LLR scores on watermarked and unwatermarked text, with and without the prompt. As shown in Figures 13a and 13b, the scores are largely consistent across settings, diverging only slightly at the start of generation. This suggests that hidden states—and thus green-list selections—depend mainly on the immediate local context rather than the initial prompt, allowing effective watermark detection even when the prompt is unavailable.
P Additional attack setups
Here we evaluate a selector-inversion attack aimed at reconstructing the selector matrix .
P.1 Inversion attack via reconstructing the selector matrix
We evaluate a plausible inversion attack based on the intuition that an adversary might try to reconstruct the selector matrix and then reverse-engineer each cluster's green list. In practice, this attack is particularly challenging because key details—such as the number of clusters , the k-means initialization seed, and the dataset used to extract hidden states—are kept private by the model provider.
Even if the attacker guesses , reproducing the original hidden-state-to-cluster assignments is highly sensitive to both the k-means seed and the underlying dataset. To illustrate this sensitivity, we construct selector matrices with the same using different datasets (OpenWebText vs. FineWeb) and different initialization seeds. We then generate a test set of hidden states from RealNewsLike samples and compute cluster assignments under each variant of the selector matrix. Agreement between assignments is measured using Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI). As shown in Table 11, cluster assignments vary across datasets and seeds. This variability suggests that reconstructing the original selector matrix is challenging, providing inherent robustness against this class of inversion attacks.
| Condition | ARI | NMI |
|---|---|---|
| Different Dataset | 0.44 | 0.65 |
| Different Seed | 0.46 | 0.67 |
| Different Dataset & Seed | 0.37 | 0.63 |
Table 11: Agreement between cluster assignments from different selector matrices. The ARI and NMI scores indicate moderate agreement, showing that reconstructing the original selector matrix is challenging even with knowledge of .
Q LLR vs. discretized-signal detectors
We assess how much the LLR detector benefits from retaining the full continuous watermark signal versus discretizing it. For this, we compare the LLR detector against two ablations that discretize the watermark signal: (i) a discrete LLR variant that replaces the soft selector with an argmax before computing likelihoods, and (ii) a binomial count detector that counts the number of selected green list tokens, following the style of Kirchenbauer et al. (2023). In the discrete LLR variant, the selector is collapsed to a single index , and the corresponding green list vector is taken as the discretized signal. The watermarked distribution is then
which the mirrors the numerator in Equation 3 but uses only a single green-list vector, removing all mixed-list contributions present in the full model. The binomial count detector instead treats green list membership as a Bernoulli indicator, forming
Japan is less than two years away from making a fundamental change in its legal system, by allowing jury trials. Under the new system, average citizens will work alongside judges to issue verdicts in many criminal cases. As Yur
iko Yamane explains, it has left some Japanese landlords scrambling for new tenants.<0x0A>Several years of delays in concluding a trade deal between Japan and the European Union caused EU leaders to postpone a summit with Prime Minister Abe that was scheduled for earlier this month. But EU negotiators say the delay may be temporary—and that Japan is finally ready to meet economic pressures.<0x0A>Eurosystem heads promise on overdue rate hike in motion, for it.<0x0A>Monetary Policy of the European Central Bank: An Assessment of the Policy Framework—Impact on Bank Credit Conditions and Bank Loans to SMEs.<0x0A>Local governments across Japan are being hit hard by reduced demand for public works construction from companies tied to foreign businesses. Tokyo's bling nervous about out of control astroturfing from all sides.<0x0A>Nipped in the bud at last, cryptocurrency
iko Yamane explains, it has left some Japanese landlords scrambling for new tenants.<0x0A>Several years of delays in concluding a trade deal between Japan and the European Union caused EU leaders to postpone a summit with Prime Minister Abe that was scheduled for earlier this month. But EU negotiators say the delay may be temporary—and that Japan is finally ready to meet economic pressures.<0x0A>Eurosystem heads promise on overdue rate hike in motion, for it.<0x0A>Monetary Policy of the European Central Bank: An Assessment of the Policy Framework—Impact on Bank Credit Conditions and Bank Loans to SMEs.<0x0A>Local governments across Japan are being hit hard by reduced demand for public works construction from companies tied to foreign businesses. Tokyo's bling nervous about out of control astroturfing from all sides.<0x0A>Nipped in the bud at last, cryptocurrency
(a) Watermarked Text
Japan is less than two years away from making a fundamental change in its legal system, by allowing jury trials. Under the new system, average citizens will work alongside judges to issue verdicts in many criminal cases. As Yur
iko Nagano reports from Tokyo, the greatest hurdle to the experiment is expected to be persuading Japanese citizens to participate.<0x0A>In Japan, as in most Asian countries, judges alone make decisions in trials. But starting in 2009, juries will be participating in Japanese courts, under what is called a "saibanin" system.<0x0A>The new system has not yet been confirmed. At first, it will be tested for three years. And it will be limited in scope. Juries will only be used in certain criminal cases, involving serious crimes such as murder.<0x0A>Robert Precht, a U.S. defense lawyer and legal scholar at the University of Montana, is helping Japanese judges, prosecutors, defense lawyers and citizens to implement the change. He spoke to journalists in Tokyo on Thursday.<0x0A>"The saibanin system and these other reforms are intended to transform
iko Nagano reports from Tokyo, the greatest hurdle to the experiment is expected to be persuading Japanese citizens to participate.<0x0A>In Japan, as in most Asian countries, judges alone make decisions in trials. But starting in 2009, juries will be participating in Japanese courts, under what is called a "saibanin" system.<0x0A>The new system has not yet been confirmed. At first, it will be tested for three years. And it will be limited in scope. Juries will only be used in certain criminal cases, involving serious crimes such as murder.<0x0A>Robert Precht, a U.S. defense lawyer and legal scholar at the University of Montana, is helping Japanese judges, prosecutors, defense lawyers and citizens to implement the change. He spoke to journalists in Tokyo on Thursday.<0x0A>"The saibanin system and these other reforms are intended to transform
(b) Unwatermarked Text
Figure 13: Prompt Independence of Watermark Detection. Per-token LLR scores for (a) watermarked and (b) unwatermarked text, computed with and without the prompt. The red highlight indicates tokens with a negative score whereas the green highlight indicates tokens with a positive score. The text in blue is the prompt. Scores are similar in both settings, indicating that detection is robust to the absence of the original prompt.
Table 12 shows TPR at various FPR thresholds for all three detectors. The two discretized-signal variants recover some watermark signal but they still perform noticeably worse than the LLR detector, indicating that collapsing the mixed green list structure into a single discrete choice loses information the continuous LLR leverages.
| Method | TPR@1%FPR | TPR@0.1%FPR | TPR@0.001%FPR |
|---|---|---|---|
| Discrete LLR | 0.96 | 0.82 | 0.79 |
| Binomial Count | 0.86 | 0.51 | 0.50 |
| LLR | 1.00 | 1.00 | 1.00 |
Table 12: Comparing LLR to alternative detectors. The discretized-signal variants perform worse than the full LLR detector, indicating that collapsing the mixed green list structure into a single discrete choice loses useful information.
R Effect of the LLR detector on baselines
To isolate the effect of the LLR detector, we rescore GaussMark, KGW Distilled, and Unremovable with the length-normalized LLR in Equation 3 instead of each method's native detector. The generated texts remain unchanged, so any change in TPR@0.1%FPR is attributable solely to the choice of detector.
Table 13 shows that the LLR detector improves detectability for all three methods on both Llama-2-7B and Mistral-7B, with the largest gain observed for GaussMark. These results suggest that, when white-box access to the model is available, the LLR detector can provide more effective detection.
| Method | Model | Native | LLR |
|---|---|---|---|
| GaussMark | Llama-2-7B | 0.737±0.089 | 0.922±0.017 |
| Mistral-7B | 0.349±0.121 | 0.566±0.155 | |
| KGW Distilled | Llama-2-7B | 0.965±0.023 | 1.000±0.000 |
| Mistral-7B | 0.996±0.007 | 1.000±0.000 | |
| Unremovable | Llama-2-7B | 0.966±0.016 | 1.000±0.000 |
| Mistral-7B | 0.979±0.011 | 1.000±0.000 |
Table 13: Effect of the LLR detector on baselines Replacing each method's native detector with the LLR improves TPR@0.1%FPR on both models, with the largest gain for GaussMark.