LLM 能否可靠地自我报告对抗性预填充,以及如何实现?
Can LLMs Reliably Self-Report Adversarial Prefills, and How?
AI总结:
研究LLM在安全场景中识别自身输出是否受对抗性预填充攻击的能力,发现模型平均27.3%声称预填充输出有意图,且内省信号主要来自安全/拒绝推理,LoRA微调方法扩大了意图-篡改探针差距并提高了攻击成功率。
摘要:
先前研究表明,大型语言模型(LLM)在良性任务上表现出内省能力。我们将问题扩展到安全场景,并考察模型能够识别自身先前响应是由对抗性预填充攻击引发的可靠性。在十个开放权重的指令微调LLM(3B到70B)和四个安全基准上,没有模型能可靠地识别自身受损输出,模型对预填充响应声称意图的平均率为27.3%。内省信号主要来自安全与拒绝相关的推理。将模型权重与拒绝方向正交化,使预填充和自然输出的声称率差距几乎缩小到零,但该方向并非其唯一中介。信号还依赖于探针:将问题表述为内部意图与外部篡改,会在相同模型上引发定性不同的响应。我们在八个3B到27B的模型上测试了三种LoRA微调方法(SFT、GRPO、DPO);所有三种方法在8B到27B的每个模型上都扩大了意图探针差距,方法排名因模型而异。干预措施不会迁移到篡改探针,并且反直觉地提高了大多数模型在对抗性预填充下的攻击成功率,相当于部分缓解。这些发现概述了安全场景中观察到的内省信号的机制,并强调了LLM自我报告可靠性的风险。
英文摘要:
Prior work shows that large language models (LLMs) exhibit varying degrees of introspective capability on benign tasks. We extend the question to safety contexts and examine how reliably a model can recognize that its own prior response was elicited by an adversarial prefill attack. Across ten open-weight instruction-tuned LLMs from 3B to 70B parameters and four safety benchmarks, no model reliably recognizes its own compromised outputs, with models claiming intent on prefilled responses at an average rate of 25.3%. Introspective signal stems primarily from reasoning about safety and refusal. Orthogonalizing models' weights against the refusal direction collapses the gap between claim rates on prefilled and natural outputs to near zero, though the direction is not its unique mediator. Framing the question as internal intention versus external tampering elicits qualitatively different responses on the same models. Training models to mimic correct introspective answers or optimize an introspective objective can improve the accuracy of introspection, but such training does not transfer to the tampering probe and counterintuitively raises attack success rate under adversarial prefill on most models, amounting to a partial mitigation. These findings outline mechanisms underpinning the observed introspective signals in safety contexts and highlight risks in the reliability of LLM self-reports.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。