Watermarking LLMs with Weight Quantization

Linyang Li, Botian Jiang, Pengyu Wang, Ke Ren, Hang Yan +1 more
10/17/2023
cs.CL

No official code found. Best implementation: Twilight92z/Quantize-Watermark (19 stars, last commit 2023-11-06).

Abstract

Abuse of large language models reveals high risks as large language models are being deployed at an astonishing speed. It is important to protect the model weights to avoid malicious usage that violates licenses of open-source large language models. This paper proposes a novel watermarking strategy that plants watermarks in the quantization process of large language models without pre-defined triggers during inference. The watermark works when the model is used in the fp32 mode and remains hidden when the model is quantized to int8, in this way, the users can only inference the model without further supervised fine-tuning of the model. We successfully plant the watermark into open-source large language model weights including GPT-Neo and LLaMA. We hope our proposed method can provide a potential direction for protecting model weights in the era of large language model applications.

View on arXivView PDF

Code Implementations(1)

192PythonOct 17, 20232 years ago

Cite this paper

@article{li2023watermarking,
  title  = {Watermarking LLMs with Weight Quantization},
  author = {Linyang Li and Botian Jiang and Pengyu Wang and Ke Ren and Hang Yan and Xipeng Qiu},
  year   = {2023},
  eprint = {2310.11237},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11237v1}
}

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/2310.11237.svg)](https://codeofpaper.com/paper/2310.11237)

Discussion