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

AttackEval:如何评估对大型语言模型的越狱攻击有效性

AttackEval: How to Evaluate the Effectiveness of Jailbreak Attacking on Large Language Models

Northwestern University(西北大学);University of Liverpool(利物浦大学);Rutgers University(罗格斯大学);University of South Florida(南佛罗里达大学)

Dong Shu, Chong Zhang, Mingyu Jin, Zihao Zhou, Lingyao Li, Yongfeng Zhang

AI总结:

本文提出 AttackEval 框架,通过粗粒度与细粒度评分及专用真值数据集评估 LLM 越狱提示词有效性,可更细致地识别传统方法漏判的有害攻击。

摘要:

越狱攻击是大型语言模型(LLM)安全性面临的最复杂威胁之一。为应对此类风险,我们提出了一种创新框架,可帮助评估针对 LLM 的越狱攻击有效性。不同于仅关注 LLM 鲁棒性的传统二元评估,我们的方法评估攻击提示词的有效性。我们提出了两种不同的评估框架:粗粒度评估和细粒度评估。每种框架均采用 0 到 1 的评分范围,提供独特视角,并支持在不同场景下评估攻击有效性。此外,我们构建了一个专门针对越狱提示词的综合真值数据集。该数据集是本研究的关键基准,也为未来研究提供了基础资源。通过与传统评估方法比较,研究表明当前结果与基线指标一致,同时提供了更细致、更细粒度的评估。它还有助于识别在传统评估中可能显得无害、但实际上具有潜在危害的攻击提示词。总体而言,我们的工作为评估提示词注入中更广泛的攻击提示词奠定了坚实基础。

英文摘要:

Jailbreak attacks represent one of the most sophisticated threats to the security of large language models (LLMs). To deal with such risks, we introduce an innovative framework that can help evaluate the effectiveness of jailbreak attacks on LLMs. Unlike traditional binary evaluations focusing solely on the robustness of LLMs, our method assesses the attacking prompts' effectiveness. We present two distinct evaluation frameworks: a coarse-grained evaluation and a fine-grained evaluation. Each framework uses a scoring range from 0 to 1, offering unique perspectives and allowing for the assessment of attack effectiveness in different scenarios. Additionally, we develop a comprehensive ground truth dataset specifically tailored for jailbreak prompts. This dataset is a crucial benchmark for our current study and provides a foundational resource for future research. By comparing with traditional evaluation methods, our study shows that the current results align with baseline metrics while offering a more nuanced and fine-grained assessment. It also helps identify potentially harmful attack prompts that might appear harmless in traditional evaluations. Overall, our work establishes a solid foundation for assessing a broader range of attack prompts in prompt injection.

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

↑