Distillation-Resistant Watermarking for Model Protection in NLP

Xuandong Zhao, Lei Li, Yu-Xiang Wang
10/7/2022
cs.CLcs.LG
distillation

Official code: XuandongZhao/DRW (13 stars, Python, MIT, last commit 2023-08-17).

Abstract

How can we protect the intellectual property of trained NLP models? Modern NLP models are prone to stealing by querying and distilling from their publicly exposed APIs.

Show full abstract

However, existing protection methods such as watermarking only work for images but are not applicable to text. We propose Distillation-Resistant Watermarking (DRW), a novel technique to protect NLP models from being stolen via distillation. DRW protects a model by injecting watermarks into the victim's prediction probability corresponding to a secret key and is able to detect such a key by probing a suspect model. We prove that a protected model still retains the original accuracy within a certain bound. We evaluate DRW on a diverse set of NLP tasks including text classification, part-of-speech tagging, and named entity recognition. Experiments show that DRW protects the original model and detects stealing suspects at 100% mean average precision for all four tasks while the prior method fails on two.

View on arXivView PDF

Code Implementations(1)

XuandongZhao/DRWOfficial100%
MIT

[EMNLP 2022] Distillation-Resistant Watermarking (DRW) for Model Protection in NLP

132PythonOct 10, 20223 years agoMIT

Similar Papers

Cite this paper

@article{zhao2022distillationresistant,
  title  = {Distillation-Resistant Watermarking for Model Protection in NLP},
  author = {Xuandong Zhao and Lei Li and Yu-Xiang Wang},
  year   = {2022},
  eprint = {2210.03312},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03312}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.03312.svg)](https://codeofpaper.com/paper/2210.03312)

Discussion