An Ensemble Framework for Unbiased Language Model Watermarking

Yihan Wu, Ruibo Chen, Georgios Milis, Heng Huang

TL;DR

ENS (Ensemble Framework) is a novel approach to watermarking Large Language Model (LLM) outputs that stacks multiple independent, "unbiased" watermark layers to amplify the detection signal. By sequentially applying several watermark instances, the framework significantly boosts detection reliability and robustness against attacks (like paraphrasing) without ever degrading the original quality or fluency of the generated text.

The Problem: The Weak Signal of Unbiased Watermarks

As LLMs become ubiquitous, the ability to distinguish AI-generated text from human writing is vital for safety and accountability. "Unbiased" (or distortion-free) watermarking is a preferred technique because it theoretically preserves the model’s original output distribution—meaning the text remains just as fluent and creative as it would be without a watermark.

However, unbiased watermarks suffer from a major "weak signal" problem. Because they are designed not to significantly alter the text distribution, they often require very long passages (hundreds of tokens) to be detected reliably. Furthermore, they are fragile; a simple paraphrase or a few word swaps can easily "wash away" the statistical signature. The authors of this paper set out to bridge this gap: how can we make unbiased watermarks easier to detect and harder to remove without sacrificing text quality?

The Solution: The ENS Framework

The authors propose ENS, an ensemble framework that treats watermarking as a multi-layer process:

  1. Sequential Composition: Instead of applying a single watermark function once, ENS applies it $n$ times. Each "layer" uses a distinct, independent secret key to subtly reweight the model's output probabilities (logits).
  2. Signal Amplification: Intuitively, while one layer provides a faint signal, stacking $n$ layers aggregates the bias. The authors mathematically prove that the signal-to-noise ratio (SNR) improves by roughly a factor of $\sqrt{n}$.
  3. Provable Unbiasedness: A core contribution is the proof that this sequential stacking remains unbiased in expectation. To a user (or a detector without the keys), the output distribution remains indistinguishable from the original, unwatermarked model.
  4. Aggregate Detection: At the detection stage, the system calculates scores for all $n$ keys and combines them. This allows for high-confidence detection even with much shorter text sequences.

Experimental Setup

The researchers evaluated ENS across a diverse range of models and tasks:

  • Models: Llama-3.2-3B-Instruct, Mistral-7B-Instruct-v0.3, and Phi-3.5-mini-instruct.
  • Benchmarks: The C4 dataset (general text), Dolly CW, and WaterBench.
  • Specialized Tasks: Machine translation (WMT16 English-Romanian) and text summarization (CNN/DailyMail).
  • Robustness Testing: They used the DIPPER paraphraser and GPT-4o-mini to simulate adversarial attacks designed to scrub watermarks.

Key Insights

  • The "Sweet Spot" for Ensembling: Interestingly, more layers aren't always better. The authors found a non-monotonic relationship between the number of ensembles ($n$) and detectability. While $n=3$ or $n=5$ usually provides a massive boost, going too high (e.g., $n=10$) can actually dilute the signal. This occurs because the "intersection" of promoted tokens across too many layers becomes too small, leading to sparsity loss.
  • Coherent Signal vs. Incoherent Noise: The breakthrough realization is that while the watermark signal adds up coherently across layers (because the system knows the keys), the natural variance of the language model adds up incoherently. This is why the signal stands out more clearly as layers are added.
  • Distortion-Free is Practical: The paper demonstrates that security does not require sacrificing text quality. By using an ensemble, the inherent "weakness" of unbiased methods is mitigated by sheer statistical aggregation.

Key Results

Superior Detection on Short Texts

In a 250-token setting, ENS-MCMark (an ensembled version of a state-of-the-art baseline) achieved a 95.7% True Positive Rate (TPR) at a very strict 0.1% False Positive Rate (FPR), significantly outperforming single-layer versions.

Detection performance across different watermarking methods at 250 and 500 tokens.

Robustness to Attacks

Under heavy paraphrasing by GPT-4o-mini, standard unbiased watermarks often fail. ENS-MCMark maintained a True Positive Rate of 40%, while many baselines dropped to single digits.

Robustness of watermarking methods against paraphrasing attacks.

Zero Quality Loss

Across ROUGE, BLEU, and BERTScore metrics, the watermarked text was virtually identical to unwatermarked text, confirming that the "unbiased" property holds true in practice for tasks like summarization and translation.

Limitations and Future Work

  • Computational Overhead: While the authors describe the cost as "negligible," applying $n$ layers of logit reweighting does technically increase the computation required during the generation step. For extremely high-throughput production environments, this might require further optimization.
  • Key Management: An ensemble approach requires managing multiple secret keys per generation, adding a layer of infrastructure complexity compared to single-key systems.
  • Sparsity Constraints: The framework is sensitive to the "logit boost" size and the portion of the vocabulary being promoted. Future work could involve dynamically adjusting these parameters based on the specific prompt or context to avoid signal saturation.

Summary updated

BibTeX
@inproceedings{wu2026ensemble,
  author = {Yihan Wu and Ruibo Chen and Georgios Milis and Heng Huang},
  title = {{An Ensemble Framework for Unbiased Language Model Watermarking}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=iZ7i2y1YxO},
}
Figure