arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.11409cs.LGcs.AIcs.CR
收藏

压力下的风险:语言模型对抗鲁棒性的计算感知评估

Risk Under Pressure: Compute-Aware Evaluation of Adversarial Robustness in Language Models

University of Toronto(多伦多大学);Vector Institute(向量研究所);Hugging Face

Malikeh Ehghaghi, Boglárka Ecsedi, Marsha Chechik, Colin Raffel

AI总结:

提出基于计算压力(累积FLOPs)的对抗鲁棒性评估框架,通过风险-计算曲线和两个新指标,揭示不同攻击策略的计算成本差异,并在10个模型上验证了对齐训练、模型规模等因素对计算空间鲁棒性的非单调影响。

摘要:

大型语言模型(LLMs)的对抗鲁棒性评估通常报告固定查询预算下的攻击成功率(ASR),隐含地认为所有攻击成本相同。实际上,不同攻击策略的计算开销可能相差几个数量级。因此,固定预算下的ASR可能掩盖破解模型所需的真实努力,从而难以判断攻击成本是否值得。我们提出一个基于计算压力的计算感知评估框架,以累积浮点运算次数(FLOPs)作为对抗努力的代理。我们引入风险-计算曲线,将计算预算映射到攻击风险,并推导出两个指标,总结给定攻击成功所需的平均压力。在跨越三个模型家族和语言模型训练与对齐的四个不同阶段的十个模型上,使用三种攻击策略(基于梯度、迭代细化和基于模板)在两个破解鲁棒性基准上评估,我们发现:(1)对齐训练对计算空间鲁棒性具有非单调影响;(2)扩大模型规模降低了基于梯度的攻击有效性,但对更便宜的基于模板的攻击影响有限;(3)在代理模型上优化的基于梯度的攻击可以迁移到独立的目标模型,从而降低攻击者成本;(4)在单个模型内,不同危害类别的计算成本差异高达约5倍;(5)安全对齐的RL增加了总成本,同时使某些类别不成比例地易于攻击。我们发布框架以实现计算感知的风险评估和评价。

英文摘要:

Adversarial robustness evaluations of large language models (LLMs) typically report attack success rate (ASR) under fixed query budgets, implicitly treating all attacks as equally costly. In practice, the computational expense of different attack strategies can vary by orders of magnitude. Consequently, ASR at a fixed budget can obscure the true effort required to jailbreak a model, thereby making it hard to determine whether an attack's cost justifies its payoff to the attacker. We propose a compute-aware evaluation framework based on computational pressure, measured in cumulative floating-point operations (FLOPs), as a proxy for adversarial effort. We introduce risk-compute curves, which map compute budgets to attack risk, and derive two metrics that summarize the average pressure required for a given attack to succeed. Across ten models spanning three families and four different stages in language model training and alignment, evaluated with three attack strategies (gradient-based, iterative refinement, and template-based) on two jailbreak robustness benchmarks, we find: (1) alignment training has non-monotonic effects on compute-space robustness; (2) scaling model size reduces gradient-based attack effectiveness but has limited impact on cheaper template-based attacks; (3) gradient-based attacks optimized on a surrogate model can transfer to a separate target model, providing a way to reduce attacker costs; (4) compute cost varies by up to ${\approx}5{\times}$ across harm categories within a single model; and (5) safety-aligned RL increases aggregate cost while leaving some categories disproportionately accessible. We release our framework to enable compute-aware risk assessment and evaluation.

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

↑