[Paper Review] Protecting Your NLG Models with Semantic and Robust Watermarks
This paper proposes a black-box watermarking scheme for natural language generation (NLG) models using semantic, unharmful phrase pairs as watermarks. By embedding watermarks via a semantic combination pattern that guides model attention without disrupting performance, the method achieves high robustness against fine-tuning, transfer learning, and model compression, while remaining undetectable by state-of-the-art backdoor detection algorithms.
Natural language generation (NLG) applications have gained great popularity due to the powerful deep learning techniques and large training corpus. The deployed NLG models may be stolen or used without authorization, while watermarking has become a useful tool to protect Intellectual Property (IP) of deep models. However, existing watermarking technologies using backdoors are easily detected or harmful for NLG applications. In this paper, we propose a semantic and robust watermarking scheme for NLG models that utilize unharmful phrase pairs as watermarks for IP protection. The watermarks give NLG models personal preference for some special phrase combinations. Specifically, we generate watermarks by following a semantic combination pattern and systematically augment the watermark corpus to enhance the robustness. Then, we embed these watermarks into an NLG model without misleading its original attention mechanism. We conduct extensive experiments and the results demonstrate the effectiveness, robustness, and undetectability of the proposed scheme.
Motivation & Objective
- To address the lack of effective, non-invasive watermarking techniques for NLG models that avoid disrupting model behavior.
- To design watermarks that are semantically coherent and indistinguishable from normal text to prevent detection.
- To ensure watermarks remain verifiable despite model modifications such as fine-tuning, transfer learning, and compression.
- To develop a watermarking approach that resists detection by existing backdoor detection algorithms.
Proposed method
- The method introduces a Semantic Combination Pattern (SCP) that pairs a prefix phrase with a key phrase to guide model attention toward specific, semantically meaningful outputs.
- Watermark samples are generated by following the SCP to ensure semantic coherence and minimal disruption to attention mechanisms.
- The watermark corpus is systematically augmented to improve robustness against model modifications and data shifts.
- Watermarks are embedded during training without altering the model's original attention patterns or performance on standard tasks.
- The approach uses black-box watermarking, requiring only input-output pairs for verification, not access to model parameters.
- Undetectability is evaluated by testing against three backdoor detection algorithms: ONION, edit distance, and BERTScore, using AUC as a metric.
Experimental results
Research questions
- RQ1Can a watermarking scheme for NLG models be designed to be semantically coherent and undetectable by existing detection methods?
- RQ2How robust are the watermarks against common model modifications such as fine-tuning and transfer learning?
- RQ3To what extent does the watermarking scheme preserve the original model’s performance on standard NLP tasks?
- RQ4Can the watermark be reliably verified after model compression or parameter updates?
Key findings
- The watermarking scheme maintains a BLEU score of 28.59 on the IWSLT14 dataset after transfer learning, indicating strong preservation of model performance.
- The watermarks achieve a WESR (Watermark Extraction Success Rate) of 0.96 on IWSLT14 and 0.79 on OpenSubtitles12 after transfer learning, showing high verifiability.
- On the WMT17 translation benchmark, the AUC values for three detection algorithms (ONION, edit distance, BERTScore) were 0.0287, 0.0179, and 0.0280 respectively, indicating near-random detection performance.
- For dialog generation, the detection algorithms showed AUC values of 0.4156 (ONION), 0.5715 (edit distance), and 0.2319 (BERTScore), suggesting no reliable detection of watermarks.
- The watermarks remained verifiable even after fine-tuning with up to 100% of the training data, demonstrating strong robustness.
- The watermarks are semantically indistinguishable from normal text, as evidenced by their low detectability and consistent performance across diverse corpora.
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.