[Paper Review] Protecting Language Generation Models via Invisible Watermarking
Ginsew embeds an invisible sinusoidal watermark into the output probability distribution of a text generation model to detect and attribute model extraction attacks, providing robust IP protection against distillation with minimal impact on generation quality.
Language generation models have been an increasingly powerful enabler for many applications. Many such models offer free or affordable API access, which makes them potentially vulnerable to model extraction attacks through distillation. To protect intellectual property (IP) and ensure fair use of these models, various techniques such as lexical watermarking and synonym replacement have been proposed. However, these methods can be nullified by obvious countermeasures such as "synonym randomization". To address this issue, we propose GINSEW, a novel method to protect text generation models from being stolen through distillation. The key idea of our method is to inject secret signals into the probability vector of the decoding steps for each target token. We can then detect the secret message by probing a suspect model to tell if it is distilled from the protected one. Experimental results show that GINSEW can effectively identify instances of IP infringement with minimal impact on the generation quality of protected APIs. Our method demonstrates an absolute improvement of 19 to 29 points on mean average precision (mAP) in detecting suspects compared to previous methods against watermark removal attacks.
Motivation & Objective
- Motivate protecting API-accessible language models from cheap distillation and IP theft.
- Propose a robust watermarking method that survives watermark-removal attempts.
- Demonstrate that watermarking maintains generation quality while enabling reliable theft detection.
- Enable verification by a third-party arbiter using a secret decoding key.
Proposed method
- Inject a secret sinusoidal signal into the decoding probability vector during token generation.
- Partition the vocabulary into two random groups and adjust group probabilities with a frequency-based watermark using a hash-driven perturbation.
- Use a watermark key K=(f_w, v, M) to generate a detectable frequency peak via Lomb-Scargle periodogram on suspect models.
- Detect watermark by probing suspect models with a dataset, computing Q_G1 statistics per decoding step, and analyzing the frequency spectrum.
- Provide a text-only watermark detection option by applying Lomb-Scargle directly to token-level outputs when probabilities are not accessible.
Experimental results
Research questions
- RQ1Can invisible probability-space watermarking identify models distilled from a protected API after model extraction attempts?
- RQ2How robust is Ginsew to watermark-removal strategies such as synonym randomization while preserving generation quality?
- RQ3What is the trade-off between watermark strength and generation quality across different generation tasks and architectures?
- RQ4Is watermark detection viable using only generated text, without access to decoding probabilities?
Key findings
- Ginsew achieves high watermark identifiability with minimal degradation in BLEU/ROUGE-BERTScore across machine translation and story generation tasks.
- Under synonym-randomization attacks, Ginsew maintains superior mean average precision (mAP) for detecting stolen models (19–29 point improvement over prior methods).
- Watermark detection using probability vectors and Lomb-Scargle periodogram consistently yields high signal-to-noise ratios (P_snr), enabling reliable theft attribution.
- The method is architecture-agnostic, performing well across various extracted-model architectures (e.g., (m)BART, Transformer variants, ConvS2S).
- Text-only watermark detection, while slightly weaker than probability-based methods, still demonstrates viable watermark presence via frequency-domain analysis of generated tokens.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.