通过高熵透传层实现无需任务特定调整的模型水印技术
Task-Agnostic Language Model Watermarking via High Entropy Passthrough Layers
- 在预训练模型中插入透传层,用自监督损失训练生成高熵输出
- 水印提取准确率接近完美,误报率极低且不损伤原模型性能
- 适用于各类任务,抗微调、剪枝和层移除攻击,训练快速
在大型语言模型预训练成本高昂的背景下,保护模型知识产权并确保其负责任部署变得日益重要。为此,我们提出一种基于透传层的模型水印方法:在现有预训练网络中添加透传层,并使用自监督损失进行训练,使得模型在接收到唯一私钥提示时产生高熵输出,其他情况下正常运行。与现有方法不同,本方法完全任务无关,可应用于分类和序列到序列任务,无需访问下游微调数据集。我们在多种下游任务上评估该方法,实验表明水印提取准确率接近完美,误报率极低,且不损害原模型性能。此外,该方法对下游微调、细粒度剪枝和层移除攻击均具有鲁棒性,训练时间仅为原模型的极小部分。代码已公开。
原文摘要 · Abstract (English)
In the era of costly pre-training of large language models, ensuring the intellectual property rights of model owners, and insuring that said models are responsibly deployed, is becoming increasingly important. To this end, we propose model watermarking via passthrough layers, which are added to existing pre-trained networks and trained using a self-supervised loss such that the model produces high-entropy output when prompted with a unique private key, and acts normally otherwise. Unlike existing model watermarking methods, our method is fully task-agnostic, and can be applied to both classification and sequence-to-sequence tasks without requiring advanced access to downstream fine-tuning datasets. We evaluate the proposed passthrough layers on a wide range of downstream tasks, and show experimentally our watermarking method achieves a near-perfect watermark extraction accuracy and false-positive rate in most cases without damaging original model performance. Additionally, we show our method is robust to both downstream fine-tuning, fine-pruning, and layer removal attacks, and can be trained in a fraction of the time required to train the original model. Code is available in the paper.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。