arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.10036cs.CLcs.CY
收藏

你在复制我的模型吗?通过后门水印保护 EaaS 大语言模型的版权

Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermark

Beijing Jiaotong University(北京交通大学);Microsoft Research Asia(微软亚洲研究院);Sony AI(索尼人工智能);Microsoft STC Asia(微软亚洲软件技术中心);University of Science and Technology of China(中国科学技术大学)

Wenjun Peng, Jingwei Yi, Fangzhao Wu, Shangxi Wu, Bin Zhu, Lingjuan Lyu, Binxing Jiao, Tong Xu, Guangzhong Sun, Xing Xie

AI总结:

针对 EaaS 面临的模型提取攻击,本文提出 EmbMarker 后门嵌入水印方法,利用中频触发词和比例化目标嵌入注入实现可验证版权保护,且不降低服务质量。

摘要:

大语言模型(LLM)在文本理解和生成方面均展现出强大能力。企业已开始基于这些 LLM 提供 Embedding as a Service(EaaS,嵌入即服务),从而为客户的各类自然语言处理(NLP)任务带来便利。然而,已有研究表明,EaaS 容易受到模型提取攻击;由于训练这些模型成本极高,此类攻击会给 LLM 拥有者造成重大损失。为保护面向 EaaS 的 LLM 版权,我们提出一种名为 EmbMarker 的嵌入水印方法,该方法在嵌入上植入后门。具体而言,我们的方法从通用文本语料库中选择一组中频词构成触发词集,随后选择一个目标嵌入作为水印,并将其插入包含触发词的文本嵌入中,作为后门。插入权重与文本中包含的触发词数量成正比。这使得水印后门能够有效迁移到 EaaS 窃取者的模型中以进行版权验证,同时最大限度降低对原始嵌入效用的不利影响。我们在多个数据集上开展的大量实验表明,该方法能够在不损害服务质量的情况下,有效保护 EaaS 模型的版权。

英文摘要:

Large language models (LLMs) have demonstrated powerful capabilities in both text understanding and generation. Companies have begun to offer Embedding as a Service (EaaS) based on these LLMs, which can benefit various natural language processing (NLP) tasks for customers. However, previous studies have shown that EaaS is vulnerable to model extraction attacks, which can cause significant losses for the owners of LLMs, as training these models is extremely expensive. To protect the copyright of LLMs for EaaS, we propose an Embedding Watermark method called EmbMarker that implants backdoors on embeddings. Our method selects a group of moderate-frequency words from a general text corpus to form a trigger set, then selects a target embedding as the watermark, and inserts it into the embeddings of texts containing trigger words as the backdoor. The weight of insertion is proportional to the number of trigger words included in the text. This allows the watermark backdoor to be effectively transferred to EaaS-stealer's model for copyright verification while minimizing the adverse impact on the original embeddings' utility. Our extensive experiments on various datasets show that our method can effectively protect the copyright of EaaS models without compromising service quality.

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

↑