关闭激活锥盲点:响应时间探测与统一防御
Closing the Activation-Cone Blind Spot: Response-Time Probing and Unified Defense
AI总结:
针对大语言模型推理时安全方法,发现提示时激活防御对预填充攻击存在结构性盲点,提出响应时间探测(线性探针)结合停止机制,将预填充攻击成功率降至0,并与AlphaSteer组合实现正交防御。
摘要:
大语言模型的推理时安全方法大量涌现,但缺乏系统性比较。我们评估了五种防御范式(无防御、静态引导、CAST、AlphaSteer、探针门控)在七个指令微调模型(7-31B)和五种攻击类型(GCG、AutoDAN、DeepInception、预填充、意图清洗)上的表现。核心发现:提示时激活防御对预填充攻击存在结构性盲点。AlphaSteer在GCG、AutoDAN和意图清洗上攻击成功率为0%,但在预填充上为50%。我们证明一个推论:任何基于单层激活与良性参考(锥、子空间或零空间)对齐来门控干预的防御,对于构造激活位于该参考内的攻击(无论是提示时还是每token检查)都是盲目的。作为其建设性逆否命题,我们引入响应时间探测:在模型第一个生成token的隐藏状态上使用线性探针,在所有七个模型上AUROC为0.97-1.00。结合停止机制,它在每个模型上将预填充攻击成功率降至0/40,且良性误报率为0%,优于Llama Guard 3。跨模板泛化依赖于探针深度,因此我们将声明限定于典型预填充模板族。将响应停止与AlphaSteer的零空间引导组合,得到正交分割(停止捕获预填充,AlphaSteer捕获语义攻击),在Mistral上防御成功率为0.983,在Llama上为0.994,优于两个组件。我们进一步表明MMLU未能捕捉引导的真实效用成本,该成本表现为行为对冲而非事实损失,并且多样化的负训练集将探针误报率从80-100%降至接近零。代码、攻击、每个样本的结果和评判提示已发布。
英文摘要:
Note on v2 (Nov 2026): errors found in the evaluation code mean the empirical results reported in v1 are not supported; the theoretical corollary is unaffected. Details are in the notice on page 1 and in KNOWN_ISSUES.md in the linked repository. We compare five inference-time safety paradigms (no defense, static steering, CAST, AlphaSteer, probe-gated steering) across seven instruction-tuned models (7-31B) and five attack types (GCG, AutoDAN, DeepInception, prefilling, intent laundering). We derive a corollary: any defense that gates intervention on a single layer's activation alignment with a benign reference (cone, subspace, or null-space) is blind to attacks that craft activations to lie inside that reference, whether checked at prompt time or per token. For prefilling attacks we propose response-time probing, a linear probe on the hidden state at the first generated tokens combined with a halt, and compose this halt with AlphaSteer's null-space steering. We also examine whether MMLU captures steering's utility cost and how the diversity of negative training sets affects probe false-positive rates. Code, attacks, and per-sample results are released.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。