用于嵌入式即服务大语言模型的水印
Watermarks for Embeddings-as-a-Service Large Language Models
AI总结:
本研究提出WET技术,通过线性变换增强EaaS水印的鲁棒性,以防御模仿攻击。
摘要:
大型语言模型(LLMs)在自然语言理解和生成方面展现了卓越的能力。基于这些LLMs,企业开始提供嵌入式即服务(EaaS),提供以文本嵌入形式呈现的特征提取能力,从而受益于下游自然语言处理任务。然而,先前的研究表明,EaaS易受到模仿攻击的威胁,攻击者可以在不接触模型内部机制的情况下通过黑盒方式克隆服务的模型。为此,已向文本嵌入中添加水印以保护EaaS提供商的知识产权,使他们能够检查模型所有权。本论文专注于通过研究EaaS水印来防御模仿攻击。为此,我们揭示了新的攻击方式,并提出了并验证了新的水印技术。首先,我们表明现有EaaS水印可通过对输入文本进行改写来移除,当攻击者在模仿攻击中克隆模型时。我们的研究表明,改写可以有效绕过当前最先进的EaaS水印,跨各种攻击设置(包括不同的改写技术和模型)和数据集,在大多数情况下均如此。这表明了近期EaaS水印技术的新漏洞。随后,作为对策,我们提出了一种新的水印技术,WET(使用线性变换的EaaS水印),它通过嵌入的线性变换来实现水印。水印验证通过应用反向变换,并比较恢复和原始嵌入之间的相似性。我们展示了其对改写攻击的鲁棒性,具有接近完美的可验证性。我们进行了详细的消融研究,以评估WET中每个组件和超参数的重要性。
英文摘要:
Large Language Models (LLMs) have demonstrated exceptional capabilities in natural language understanding and generation. Based on these LLMs, businesses have started to provide Embeddings-as-a-Service (EaaS), offering feature extraction capabilities (in the form of text embeddings) that benefit downstream natural language processing tasks. However, prior research has demonstrated that EaaS is vulnerable to imitation attacks, where an attacker clones the service's model in a black-box manner without access to the model's internal workings. In response, watermarks have been added to the text embeddings to protect the intellectual property of EaaS providers by allowing them to check for model ownership. This thesis focuses on defending against imitation attacks by investigating EaaS watermarks. To achieve this goal, we unveil novel attacks and propose and validate new watermarking techniques. Firstly, we show that existing EaaS watermarks can be removed through paraphrasing the input text when attackers clone the model during imitation attacks. Our study illustrates that paraphrasing can effectively bypass current state-of-the-art EaaS watermarks across various attack setups (including different paraphrasing techniques and models) and datasets in most instances. This demonstrates a new vulnerability in recent EaaS watermarking techniques. Subsequently, as a countermeasure, we propose a novel watermarking technique, WET (Watermarking EaaS with Linear Transformation), which employs linear transformation of the embeddings. Watermark verification is conducted by applying a reverse transformation and comparing the similarity between recovered and original embeddings. We demonstrate its robustness against paraphrasing attacks with near-perfect verifiability. We conduct detailed ablation studies to assess the significance of each component and hyperparameter in WET.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。