arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.02365cs.CR
收藏

ModelShield:抵御模型提取攻击的自适应鲁棒水印

ModelShield: Adaptive and Robust Watermark against Model Extraction Attack

Kaiyi Pang, Tao Qi, Chuhan Wu, Minhao Bai, Minghu Jiang, Yongfeng Huang

AI总结:

针对模型提取攻击,本文提出即插即用的 ModelShield,通过 LLM 自主嵌入水印与鲁棒检测机制,在不训练模型的前提下提升防御效果并减少生成质量损失。

摘要:

大语言模型(LLM)在多种机器学习任务中展现出通用智能,从而提升了其知识产权(IP)的商业价值。为保护该知识产权,模型所有者通常只允许用户以黑盒方式访问,但攻击者仍可利用模型提取攻击,窃取编码在模型生成内容中的模型智能。水印技术通过将唯一标识符嵌入模型生成内容,为防御此类攻击提供了一种有前景的方案。然而,现有水印方法往往因启发式修改而损害生成内容质量,并且缺乏可抵消对抗策略的鲁棒机制,因此限制了其在现实场景中的实用性。本文提出一种自适应且鲁棒的水印方法(名为 ModelShield),用于保护 LLM 的知识产权。该方法包含自水印机制,使 LLM 能够自主地将水印插入其生成内容中,以避免模型内容质量下降。我们还提出一种鲁棒的水印检测机制,能够在不同对抗策略的干扰下有效识别水印信号。此外,ModelShield 是一种即插即用方法,不需要额外的模型训练,从而增强了其在 LLM 部署中的适用性。在两个真实世界数据集和三个 LLM 上进行的大量评估表明,本方法在防御有效性和鲁棒性方面优于现有方法,同时显著降低了水印对模型生成内容造成的质量下降。

英文摘要:

Large language models (LLMs) demonstrate general intelligence across a variety of machine learning tasks, thereby enhancing the commercial value of their intellectual property (IP). To protect this IP, model owners typically allow user access only in a black-box manner, however, adversaries can still utilize model extraction attacks to steal the model intelligence encoded in model generation. Watermarking technology offers a promising solution for defending against such attacks by embedding unique identifiers into the model-generated content. However, existing watermarking methods often compromise the quality of generated content due to heuristic alterations and lack robust mechanisms to counteract adversarial strategies, thus limiting their practicality in real-world scenarios. In this paper, we introduce an adaptive and robust watermarking method (named ModelShield) to protect the IP of LLMs. Our method incorporates a self-watermarking mechanism that allows LLMs to autonomously insert watermarks into their generated content to avoid the degradation of model content. We also propose a robust watermark detection mechanism capable of effectively identifying watermark signals under the interference of varying adversarial strategies. Besides, ModelShield is a plug-and-play method that does not require additional model training, enhancing its applicability in LLM deployments. Extensive evaluations on two real-world datasets and three LLMs demonstrate that our method surpasses existing methods in terms of defense effectiveness and robustness while significantly reducing the degradation of watermarking on the model-generated content.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑