arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.16192cs.CL
收藏

通过语义平滑防御大语言模型的越狱攻击

Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing

University of California, Santa Barbara(加州大学圣巴巴拉分校);University of Pennsylvania(宾夕法尼亚大学);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室)

Jiabao Ji, Bairu Hou, Alexander Robey, George J. Pappas, Hamed Hassani, Yang Zhang, Eric Wong, Shiyu Chang

AI总结:

本文提出SEMANTICSMOOTH防御框架,通过聚合输入提示的多个语义转换副本预测结果,在抵御GCG、PAIR、AutoDAN越狱攻击的同时保持指令遵循性能。

摘要:

经过对齐的大语言模型(LLM)容易受到越狱攻击,这类攻击会绕过目标LLM的安全防护,诱使其生成不良内容。尽管早期防御在应对基于token的威胁模型方面展现出潜力,但目前尚不存在能够对语义攻击提供鲁棒性、同时避免鲁棒性与标称性能之间不利权衡的防御方法。为满足这一需求,我们提出了SEMANTICSMOOTH,这是一种基于平滑的防御方法,通过聚合给定输入提示的多个语义转换副本的预测结果来实现防御。实验结果表明,SEMANTICSMOOTH在抵御GCG、PAIR和AutoDAN攻击方面达到了最先进的鲁棒性,同时在InstructionFollowing和AlpacaEval等指令遵循基准测试上保持了强劲的标称性能。代码将公开发布于https://github.com/UCSB-NLP-Chang/SemanticSmooth。

英文摘要:

Aligned large language models (LLMs) are vulnerable to jailbreaking attacks, which bypass the safeguards of targeted LLMs and fool them into generating objectionable content. While initial defenses show promise against token-based threat models, there do not exist defenses that provide robustness against semantic attacks and avoid unfavorable trade-offs between robustness and nominal performance. To meet this need, we propose SEMANTICSMOOTH, a smoothing-based defense that aggregates the predictions of multiple semantically transformed copies of a given input prompt. Experimental results demonstrate that SEMANTICSMOOTH achieves state-of-the-art robustness against GCG, PAIR, and AutoDAN attacks while maintaining strong nominal performance on instruction following benchmarks such as InstructionFollowing and AlpacaEval. The codes will be publicly available at https://github.com/UCSB-NLP-Chang/SemanticSmooth.

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

↑