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

Silent Guardian:保护文本免受大语言模型的恶意利用

Silent Guardian: Protecting Text from Malicious Exploitation by Large Language Models

Jiawei Zhao, Kejiang Chen, Xiaojian Yuan, Yuang Qi, Weiming Zhang, Nenghai Yu

AI总结:

针对大语言模型可能恶意利用文本的安全隐私问题,提出文本保护机制Silent Guardian,通过截断保护样本与超级定制保护算法诱导模型终止交互,实现高成功率、可迁移且鲁棒的文本保护。

摘要:

大语言模型(LLM)的快速发展已在各类下游任务中取得了令人瞩目的成果。然而,LLM的开放性使其若被用于邪恶目的,其巨大潜力与卓越能力也会引发新的安全与隐私问题。例如,LLM可能被用于抄袭或模仿写作,从而侵犯原创内容的版权,或是基于某一源文本生成无差别的虚假信息。在某些情况下,LLM甚至可以分析互联网上的文本以推断个人隐私。遗憾的是,以往的文本保护研究未能预见到强大LLM的出现,导致其在这一新情境下不再有效。为弥补这一缺口,我们提出了Silent Guardian(SG)——一种针对LLM的文本保护机制,它能让LLM在接收到受保护文本时拒绝生成响应,从源头阻止文本被恶意使用。具体而言,我们首先提出了截断保护样本(Truncation Protection Examples, TPE)的概念。通过对待保护文本进行精心修改,TPE可以诱导LLM首先采样结束标记,从而直接终止交互。此外,为了在文本数据的离散空间中高效构建TPE,我们提出了一种名为超级定制保护(Super Tailored Protection, STP)的新型优化算法,该算法不仅效率极高,还能在优化过程中保持文本的语义一致性。综合实验评估表明,SG在多种配置下都能有效保护目标文本,在某些情况下可实现近100%的保护成功率。值得注意的是,SG还表现出较好的可迁移性与鲁棒性,使其能够应用于实际场景。我们的代码可在https://github.com/weiyezhimeng/Silent-Guardian获取。

英文摘要:

The rapid development of large language models (LLMs) has yielded impressive success in various downstream tasks. However, the vast potential and remarkable capabilities of LLMs also raise new security and privacy concerns if they are exploited for nefarious purposes due to their open-endedness. For example, LLMs may be used to plagiarize or imitate writing, thereby infringing the copyright of the original content, or to create indiscriminate fake information based on a certain source text. In some cases, LLMs can even analyze text from the Internet to infer personal privacy. Unfortunately, previous text protection research could not foresee the emergence of powerful LLMs, rendering it no longer effective in this new context. To bridge this gap, we introduce Silent Guardian (SG), a text protection mechanism against LLMs, which allows LLMs to refuse to generate response when receiving protected text, preventing the malicious use of text from the source. Specifically, we first propose the concept of Truncation Protection Examples (TPE). By carefully modifying the text to be protected, TPE can induce LLMs to first sample the end token, thus directly terminating the interaction. In addition, to efficiently construct TPE in the discrete space of text data, we propose a novel optimization algorithm called Super Tailored Protection (STP), which is not only highly efficient but also maintains the semantic consistency of the text during the optimization process. The comprehensive experimental evaluation demonstrates that SG can effectively protect the target text under various configurations and achieve almost 100% protection success rate in some cases. Notably, SG also exhibits relatively good transferability and robustness, making its application in practical scenarios possible. Our code is available at https://github.com/weiyezhimeng/Silent-Guardian.

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

↑