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

保障大型语言模型的有效性:评估对人工编写与算法对抗性提示的抵抗能力

Safeguarding Efficacy in Large Language Models: Evaluating Resistance to Human-Written and Algorithmic Adversarial Prompts

Manchester Metropolitan University(曼彻斯特城市大学)

Tiarnaigh Downey-Webb, Olamide Jogunola, Oluwaseun Ajao

AI总结:

本文用 SALAD-Bench 的 1,200 条提示评估四款 LLM 对人工与算法对抗提示的抵抗,揭示鲁棒性、攻击可迁移性及危害类别差异,为防御提供依据。

摘要:

本文对四款主流大型语言模型(LLM)针对多种对抗性攻击向量开展系统性安全评估。我们在四类不同攻击上评估 Phi-2、Llama-2-7B-Chat、GPT-3.5-Turbo 和 GPT-4:人工编写提示、AutoDAN、Greedy Coordinate Gradient(GCG,贪心坐标梯度)以及 Tree-of-Attacks-with-pruning(TAP,带剪枝的攻击树)。综合评估使用来自 SALAD-Bench 数据集的 1,200 条经过仔细分层的提示,涵盖六个危害类别。结果表明,模型鲁棒性存在显著差异:Llama-2 获得最高整体安全性(平均攻击成功率 3.4%),而 Phi-2 表现出最严重的脆弱性(平均攻击成功率 7.0%)。我们识别出关键的可迁移性模式:GCG 和 TAP 攻击虽对其目标模型 Llama-2 无效,但迁移到其他模型时取得显著更高的成功率(在 GPT-4 上最高达 17%)。采用 Friedman 检验的统计分析揭示,各危害类别间的脆弱性存在显著差异($p < 0.001$),其中恶意使用提示的攻击成功率最高(平均 10.71%)。我们的发现有助于理解跨模型安全漏洞,并为开发有针对性的防御机制提供可执行洞见。

英文摘要:

This paper presents a systematic security assessment of four prominent Large Language Models (LLMs) against diverse adversarial attack vectors. We evaluate Phi-2, Llama-2-7B-Chat, GPT-3.5-Turbo, and GPT-4 across four distinct attack categories: human-written prompts, AutoDAN, Greedy Coordinate Gradient (GCG), and Tree-of-Attacks-with-pruning (TAP). Our comprehensive evaluation employs 1,200 carefully stratified prompts from the SALAD-Bench dataset, spanning six harm categories. Results demonstrate significant variations in model robustness, with Llama-2 achieving the highest overall security (3.4% average attack success rate) while Phi-2 exhibits the greatest vulnerability (7.0% average attack success rate). We identify critical transferability patterns where GCG and TAP attacks, though ineffective against their target model (Llama-2), achieve substantially higher success rates when transferred to other models (up to 17% for GPT-4). Statistical analysis using Friedman tests reveals significant differences in vulnerability across harm categories ($p < 0.001$), with malicious use prompts showing the highest attack success rates (10.71% average). Our findings contribute to understanding cross-model security vulnerabilities and provide actionable insights for developing targeted defense mechanisms

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

↑