arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.19461cs.CR
收藏

强制性上下文学习:利用少样本模式完成来绕过GPT-5.4的安全对齐

Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.4

Adversa AI

Alex Polyakov, Daniel Kuznetsov

AI总结:

本文提出了一种称为强制性上下文学习(IICL)的攻击方法,通过使用少量示例的抽象操作符框架来强制模式完成,从而绕过大型语言模型的安全对齐训练。通过在10个OpenAI模型上进行3479次测试,研究发现语义操作符命名可以实现100%的绕过率,抽象框架是攻击的关键,而示例顺序和温度参数对攻击效果有显著影响。

摘要:

大型语言模型的安全对齐依赖于行为训练,但当足够强的上下文模式与已学习的拒绝行为竞争时,这种训练可能会被覆盖。我们引入了强制性上下文学习(IICL)攻击类别,该攻击利用少量示例的抽象操作符框架来强制模式完成,从而绕过安全训练。通过在10个OpenAI模型上进行3479次测试,我们通过七次实验消融研究确定了攻击的有效组件。关键发现:(1)语义操作符命名实现了100%的绕过率(50/50,p < 0.001);(2)攻击需要抽象框架,因为直接问答格式的相同示例导致0%;(3)示例顺序影响显著(交错:76%,有害优先:6%);(4)温度参数无显著影响(0.0-1.0范围内为46-56%)。在HarmBench基准测试中,IICL在GPT-5.4上实现了24.0%的绕过率[18.6%, 30.4%],通过详细的619字响应,相比直接查询的0.0%。

英文摘要:

Safety alignment in large language models relies on behavioral training that can be overridden when sufficiently strong in-context patterns compete with learned refusal behaviors. We introduce Involuntary In-Context Learning (IICL), an attack class that uses abstract operator framing with few-shot examples to force pattern completion that overrides safety training. Through 3479 probes across 10 OpenAI models, we identify the attack's effective components through a seven-experiment ablation study. Key findings: (1)~semantic operator naming achieves 100% bypass rate (50/50, $p < 0.001$); (2)~the attack requires abstract framing, since identical examples in direct question-and-answer format yield 0%; (3)~example ordering matters strongly (interleaved: 76%, harmful-first: 6%); (4)~temperature has no meaningful effect (46-56% across 0.0--1.0). On the HarmBench benchmark, IICL achieves 24.0% bypass $[18.6%, 30.4%]$ against GPT-5.4 with detailed 619-word responses, compared to 0.0% for direct queries.

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

↑