Skip to main content
QUICK REVIEW

[Paper Review] Watermarking Pre-trained Language Models with Backdooring

C. Gu, Chengsong Huang|arXiv (Cornell University)|Oct 14, 2022
Advanced Neural Network ApplicationsComputer Science11 citations
TL;DR

This paper proposes a multi-task learning framework to watermark pre-trained language models (PLMs) by embedding backdoor triggers at the word embedding layer, enabling robust ownership verification across multiple downstream tasks even after fine-tuning. The method achieves over 90% watermark extraction success rate and resists detection by using common-word combinations as triggers.

ABSTRACT

Large pre-trained language models (PLMs) have proven to be a crucial component of modern natural language processing systems. PLMs typically need to be fine-tuned on task-specific downstream datasets, which makes it hard to claim the ownership of PLMs and protect the developer's intellectual property due to the catastrophic forgetting phenomenon. We show that PLMs can be watermarked with a multi-task learning framework by embedding backdoors triggered by specific inputs defined by the owners, and those watermarks are hard to remove even though the watermarked PLMs are fine-tuned on multiple downstream tasks. In addition to using some rare words as triggers, we also show that the combination of common words can be used as backdoor triggers to avoid them being easily detected. Extensive experiments on multiple datasets demonstrate that the embedded watermarks can be robustly extracted with a high success rate and less influenced by the follow-up fine-tuning.

Motivation & Objective

  • To address the challenge of protecting intellectual property in pre-trained language models (PLMs) that are frequently fine-tuned on downstream tasks.
  • To enable persistent watermarking in PLMs that remains effective despite catastrophic forgetting during fine-tuning.
  • To develop a black-box watermarking method that works across multiple downstream tasks without prior knowledge of the target tasks.
  • To reduce detectability of backdoor triggers by using combinations of common words instead of rare words.
  • To ensure watermark robustness under various fine-tuning hyperparameters such as learning rate and batch size.

Proposed method

  • Embed watermarks in PLMs by injecting backdoor triggers at the word embedding layer using a multi-task learning framework.
  • Use rare words or combinations of common words as backdoor triggers to trigger specific model predictions (e.g., 'positive' for sentiment, 'contradict' for NLI).
  • Train the model on a poisoned dataset where clean inputs are modified by inserting the trigger and the labels are re-labeled to the target class.
  • Apply knowledge distillation (WLM-KD) to improve watermark robustness and extraction accuracy in the black-box setting.
  • Use a frequency-probability analysis to evaluate detectability of triggers, identifying common-word combinations as less detectable than rare words.
  • Evaluate watermark robustness by varying fine-tuning hyperparameters (learning rate, batch size) and measuring watermark extraction success rate (WESR) and accuracy (ACCU).

Experimental results

Research questions

  • RQ1Can backdoor watermarks be embedded in pre-trained language models in a way that remains effective across multiple downstream tasks after fine-tuning?
  • RQ2How effective is watermark extraction in a black-box setting when the model is fine-tuned on various datasets?
  • RQ3Can common-word combinations serve as effective and undetectable backdoor triggers in PLMs?
  • RQ4How robust are the embedded watermarks to changes in fine-tuning hyperparameters such as learning rate and batch size?
  • RQ5To what extent do common-word triggers reduce detectability compared to rare-word triggers?

Key findings

  • The proposed WLM method achieves a watermark extraction success rate (WESR) of 95.82% on the SST2 dataset when the model is fine-tuned on AGNEWS, demonstrating strong transferability.
  • The WLM-CW(M) model maintains high watermark robustness across different learning rates and batch sizes, with WESR remaining above 90% under most configurations.
  • Using combinations of common words as triggers significantly reduces detectability, as shown by clustering analysis where such triggers lie within the benign word distribution, unlike rare-word triggers which appear as outliers.
  • The watermark remains robust even when the learning rate is increased to 1e-3, though convergence issues arise at this extreme setting.
  • The model fine-tuned on IMDB shows a lower WESR (92.00%) than on AGNEWS (95.82%), indicating that model similarity to the target task affects watermark performance, but still remains above 90%.
  • The method successfully embeds watermarks for multiple downstream tasks simultaneously without prior knowledge of the target tasks, demonstrating broad applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.