arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.15427cs.CRcs.LG
收藏

对抗性提示评估:针对大语言模型提示输入攻击的防护栏系统基准测试

Adversarial Prompt Evaluation: Systematic Benchmarking of Guardrails Against Prompt Input Attacks on LLMs

IBM Research(IBM研究院)

Giulio Zizzo, Giandomenico Cornacchia, Kieran Fraser, Muhammad Zaid Hameed, Ambrish Rawat, Beat Buesser, Mark Purcell, Pin-Yu Chen, Prasanna Sattigeri, Kush Varshney

AI总结:

针对大语言模型越狱攻击防御缺乏体系化评估的问题,研究对15种防护栏防御方案开展系统基准测试,发现防御性能随攻击类型差异显著,且简单基线的分布外性能可媲美多数先进防御。

摘要:

随着大语言模型(LLM)被集成到日常应用中,确保其鲁棒性与安全性变得愈发关键。具体而言,LLM可能被名为“越狱(jailbreak)”的提示诱导产生不安全行为。越狱攻击的类型不断增多,因此需要使用被称为防护栏(guardrail)的外部防御机制。尽管已有众多越狱防御方案被提出,但由于用于对齐这些防御的越狱样本范围狭窄,并非所有防御都能应对新型分布外攻击。此外,防御领域缺乏体系化研究,导致其实际应用存在显著缺陷。在本研究中,我们对15种不同的防御方案开展了系统基准测试,覆盖了广泛的恶意与良性数据集。研究发现,防御性能的差异显著,具体取决于其面临的越狱攻击类型。此外我们还表明,基于当前可用的评估数据集,简单基线模型在分布外性能上可与众多最先进的防御方案相媲美。相关代码可在https://github.com/IBM/Adversarial-Prompt-Evaluation获取。

英文摘要:

As large language models (LLMs) become integrated into everyday applications, ensuring their robustness and security is increasingly critical. In particular, LLMs can be manipulated into unsafe behaviour by prompts known as jailbreaks. The variety of jailbreak styles is growing, necessitating the use of external defences known as guardrails. While many jailbreak defences have been proposed, not all defences are able to handle new out-of-distribution attacks due to the narrow segment of jailbreaks used to align them. Moreover, the lack of systematisation around defences has created significant gaps in their practical application. In this work, we perform systematic benchmarking across 15 different defences, considering a broad swathe of malicious and benign datasets. We find that there is significant performance variation depending on the style of jailbreak a defence is subject to. Additionally, we show that based on current datasets available for evaluation, simple baselines can display competitive out-of-distribution performance compared to many state-of-the-art defences. Code is available at https://github.com/IBM/Adversarial-Prompt-Evaluation.

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

↑