Abstract
In this paper, we initiate the study of multi-designated detector watermarking (MDDW) for large language models (LLMs). This technique allows model providers to generate watermarked outputs from LLMs with two key properties: (i) only specific, possibly multiple, designated detectors can identify the watermarks, and (ii) there is no perceptible degradation in the output quality for ordinary users. We formalize the security definitions for MDDW and present a framework for constructing MDDW for any LLM using multi-designated verifier signatures (MDVS). Recognizing the significant economic value of LLM outputs, we introduce claimability as an optional security feature for MDDW, enabling model providers to assert ownership of LLM outputs within designated-detector settings. To support claimable MDDW, we propose a generic transformation converting any MDVS to a claimable MDVS. Our implementation of the MDDW scheme highlights its advanced functionalities and flexibility over existing methods, with satisfactory performance metrics.
1. Introduction
As Large Language Models (LLMs) become ubiquitous, distinguishing AI-generated text from human writing is critical for preventing misinformation and academic dishonesty. Existing watermarking solutions generally fall into two categories: symmetric (private) watermarking and public watermarking. Symmetric schemes require detectors to share a secret key with the provider, risking key leakage and unauthorized forgery. Conversely, public schemes allow any party with a public key to detect watermarks, which can compromise user privacy and the provider's proprietary interests.
This paper introduces Multi-Designated Detector Watermarking (MDDW), a framework that enables model providers to embed invisible watermarks detectable only by a specific set of authorized entities (e.g., regulatory bodies or specific platforms). This approach balances the need for controlled detection with the requirement for high-quality, "distortion-free" output.
2. Methodology
The core of the MDDW framework is the use of Multi-Designated Verifier Signatures (MDVS). The process treats the LLM as a "black box" and utilizes a rejection sampling strategy to embed the watermark without altering the model's underlying probability distribution.
2.1 The MDDW Framework
The generation process follows a structured cryptographic sequence:
- Block Generation: The LLM generates an initial block of text ($t_0$).
- Cryptographic Signing: The provider signs the block using an MDVS scheme, targeting the public keys of designated detectors.
- Randomization: The resulting signature is XORed with a hash of the preceding context ($H_2(t_0)$) to ensure the watermark appears as statistical noise.
- Rejection Sampling: Subsequent tokens ($t_i$) are generated through a loop that only accepts candidates whose hash matches the bits of the randomized signature.
Because the signature looks like random noise to anyone without the secret detection keys, the resulting text remains statistically indistinguishable from normal LLM output, achieving Distortion-freeness.
2.2 Claimability Transformation
We also introduce a generic transformation to make MDDW "claimable." While MDDW inherently provides an "off-the-record" property (deniability), claimability allows the provider to generate a public proof ($\pi$) to assert ownership of a specific text when necessary. This is achieved by combining the MDVS with standard digital signatures and commitment schemes, allowing the provider to override deniability without compromising the private detection network.
3. Experimental Evaluation
We evaluated the MDDW framework using three popular open-source LLMs: BLOOMZ (3B), OPT (1.3B), and Gemma (2B). The evaluation focused on computational overhead and detection efficiency across sequences ranging from 50 to 400 tokens.
3.1 Performance Metrics
- Generation Overhead: The watermarking process introduces a computational overhead of approximately 1.5x to 2x compared to standard generation, primarily due to the rejection sampling loop.
- Detection Speed: Detection is highly efficient, typically requiring only ~2ms for a 100-token sequence, making it practical for high-volume platforms.
- Efficiency Gains: Our optimized "Scheme III" significantly reduces signature size compared to baseline MDVS implementations, allowing more watermarks to be packed into shorter texts, which improves robustness against edits.
4. Discussion and Key Insights
- Deniability vs. Ownership: The "Off-the-Record" property provides user privacy, as detectors cannot prove to a third party that the provider generated the text (since they could have simulated it). The claimability feature acts as a necessary toggle for copyright protection.
- Distortion-Freeness: We argue that in a public-key setting, any degradation in text quality would allow an adversary to distinguish watermarked text simply by looking for quality patterns, rendering the watermark's privacy moot.
- Scalability Limits: We prove that if strong deniability is required (where even a subset of detectors cannot frame the provider), the watermark length must grow linearly with the number of designated detectors.
5. Limitations and Future Work
MDDW remains susceptible to "semantic" attacks, such as paraphrasing or using "emoji attacks" to break token sequences. Additionally, the scheme relies on the LLM output having sufficient "min-entropy"; highly predictable text (e.g., code or mathematical proofs) offers fewer opportunities for rejection sampling to hide watermark bits. Future work will explore error-correcting codes to improve robustness against adversarial modifications.
Summary updated