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

SHIELD:大语言模型文本生成中版权合规的评估与防御策略

SHIELD: Evaluation and Defense Strategies for Copyright Compliance in LLM Text Generation

Purdue University(普渡大学);Westlake University(西湖大学)

Xiaoze Liu, Ting Sun, Tianyang Xu, Feijie Wu, Cunxiang Wang, Xiaoqian Wang, Jing Gao

AI总结:

本文提出SHIELD,一个评估与防御框架,通过精选数据集和轻量级实时防御机制,减少大语言模型生成版权文本,确保合规使用。

摘要:

大语言模型(LLMs)已经改变了机器学习领域,但由于其可能生成侵犯版权的内容,引发了重大的法律担忧,导致多起备受关注的诉讼。法律体系正努力跟上这些快速发展的步伐,围绕生成文本是否可能抄袭受版权保护的材料存在持续争论。当前的LLMs可能侵犯版权或过度限制非版权文本,从而带来以下挑战:(i)需要一个全面的评估基准,从多个方面评估版权合规性;(ii)评估对规避防御攻击的鲁棒性;(iii)开发针对生成版权文本的有效防御措施。为应对这些挑战,我们引入了一个精选数据集来评估方法、测试攻击策略,并提出轻量级、实时的防御机制,以防止生成版权文本,确保LLMs的安全和合法使用。我们的实验表明,当前的LLMs经常输出受版权保护的文本,而越狱攻击可以显著增加版权输出的数量。我们提出的防御机制通过有效拒绝恶意请求,显著减少了LLMs生成的版权文本数量。代码公开于 https://github.com/xz-liu/SHIELD

英文摘要:

Large Language Models (LLMs) have transformed machine learning but raised significant legal concerns due to their potential to produce text that infringes on copyrights, resulting in several high-profile lawsuits. The legal landscape is struggling to keep pace with these rapid advancements, with ongoing debates about whether generated text might plagiarize copyrighted materials. Current LLMs may infringe on copyrights or overly restrict non-copyrighted texts, leading to these challenges: (i) the need for a comprehensive evaluation benchmark to assess copyright compliance from multiple aspects; (ii) evaluating robustness against safeguard bypassing attacks; and (iii) developing effective defense targeted against the generation of copyrighted text. To tackle these challenges, we introduce a curated dataset to evaluate methods, test attack strategies, and propose lightweight, real-time defense to prevent the generation of copyrighted text, ensuring the safe and lawful use of LLMs. Our experiments demonstrate that current LLMs frequently output copyrighted text, and that jailbreaking attacks can significantly increase the volume of copyrighted output. Our proposed defense mechanism significantly reduces the volume of copyrighted text generated by LLMs by effectively refusing malicious requests. Code is publicly available at https://github.com/xz-liu/SHIELD

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

↑