Watermarking LLMs with Weight Quantization
Preprint
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.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-level Backdoor AttacksMachine Intelligence Research, 2023
- GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow2021
- Towards Fully 8-bit Integer Inference for the Transformer Model2020
- Authorship Attribution for Neural Text Generation2020
- Weight Poisoning Attacks on Pretrained Models2020
- PubMedQA: A Dataset for Biomedical Research Question Answering2019
- Neural Linguistic Steganography2019
- Towards Near-imperceptible Steganographic Text2019
- Hierarchical Neural Story Generation2018
- SQuAD: 100,000+ Questions for Machine Comprehension of Text2016