Performance Trade-offs of Watermarking Large Language Models

Anirudh Ajith, Sameer Singh, Danish Pruthi · OpenReview

Abstract

Watermarking involves implanting an imperceptible signal into generated text that can later be detected via statistical tests. A prominent family of watermarking strategies for LLMs embeds this signal by upsampling a (pseudorandomly-chosen) subset of tokens at every generation step. However, such signals alter the model's output distribution and can have unintended effects on its downstream performance. In this work, we evaluate the performance of LLMs watermarked using three different strategies over a diverse suite of tasks including those cast as k-class classification (CLS), multiple choice question answering (MCQ), short-form generation (e.g., open-ended question answering) and long-form generation (e.g., translation) tasks. We find that watermarks (under realistic hyperparameters) can cause significant drops in LLMs' effective utility across all tasks. We observe drops of 10 to 20% in CLS tasks in the average case, which shoot up to 100% in the worst case. We notice degradations of about 7% in MCQ tasks, 10-15% in short-form generation, and 5-15% in long-form generation tasks. Our findings highlight the trade-offs that users should be cognizant of when using watermarked models.

Introduction

As Large Language Models (LLMs) become integrated into critical infrastructure, the ability to distinguish machine-generated content from human-written text is essential for safety and accountability. Watermarking has emerged as a leading technique, subtly biasing token selection to embed a detectable statistical "fingerprint." While previous research has focused on detectability and intrinsic metrics like perplexity, the impact on downstream utility—the actual tasks users perform—remains under-explored. This study systematically evaluates how popular watermarking schemes affect model performance across classification, question answering, and translation.

Methodology

The study examines the KGW family of watermarks, which partition the vocabulary into "green" and "red" lists at each step, boosting the probability of "green" tokens. Three variants were tested:

  1. KGW (Original): The baseline hash-based approach.
  2. EWD (Entropy-based): Detection adjusted by token distribution entropy.
  3. SIR (Semantic-Invariant): Uses semantic embeddings for robustness against paraphrasing.

Researchers evaluated watermarked versions of LLaMA 7B, Mistral 7B, and OPT 6.8B using a Pareto-optimal hyperparameter search to balance detection strength against perplexity across four task categories: Classification (CLS), Multiple Choice QA (MCQ), Short-form Generation (SGEN), and Long-form Generation (LGEN).

Impact on Classification Performance

Classification tasks proved particularly sensitive to watermarking. Across benchmarks like SST-2, BoolQ, and CB, models experienced an average utility drop of 10-20%.

Normalized performance scores for classification tasks (BoolQ, SST-2, CB) across different watermarking algorithms and models.

As shown in Figure 1, the performance degradation is consistent across models, with the SIR algorithm often showing the most significant decline. In the most severe cases, the effective utility dropped to near zero, effectively rendering the model's output no better than random guessing.

The Label Bias Phenomenon

A key finding of this research is the "Label Bias" trap. In tasks with small, fixed label sets (e.g., "Yes/No" in BoolQ), the pseudorandom partitioning of the vocabulary can systematically favor one label over another. Because the prompt context is often static across a dataset, this bias does not average out, leading to systematic errors.

Illustration of label bias in BoolQ for OPT-6.8B, where the watermark's green/red list partitioning disproportionately affects specific labels.

Figure 6 illustrates this effect: when a prompt's context causes the correct label token to be placed on the "red list," the model's ability to correctly predict that label is severely compromised. The chart shows how different partitions (P) of the green/red lists for "Yes" and "No" tokens lead to drastic variations in normalized scores.

Performance Across Diverse Tasks

Beyond classification, the study observed varying degrees of degradation across other task types:

  • Multiple Choice QA (MCQ): These tasks were the most resilient, with only a ~7% drop. The longer token sequences in MCQ choices allow the watermark's influence to average out, preserving the model's relative ranking of options.
  • Short-form Generation (SGEN): Tasks like SQuADv2 saw F1 score drops of 10-15%.
  • Long-form Generation (LGEN): Translation tasks (WMT14, WMT20) showed BLEU score reductions of 5-15%.

Conclusion

Watermarking is not a "free" addition to LLMs. The Semantic-Invariant (SIR) method, while robust, imposes the heaviest performance penalty due to its high green-list proportion. While larger models demonstrate slightly better resilience, the trade-off between detectability and utility remains a critical consideration for developers. Future work should explore watermark-aware decoding strategies to mitigate these downstream costs.

Summary updated

BibTeX
@inproceedings{ajith2024performance,
  author = {Anirudh Ajith and Sameer Singh and Danish Pruthi},
  title = {{Performance Trade-offs of Watermarking Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.821},
}
Figure