非自愿上下文学习:利用少样本模式补全绕过GPT-5.4的安全对齐 Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.4 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-21
👁️ 预览文献
💡 AI 中文简介
这项研究揭示了一种新型攻击方法,能让GPT-5.4等大模型在不知不觉中绕过安全限制。研究者通过设计抽象的操作符框架和少量示例,诱导模型完成有害内容的模式补全。在3479次测试中,语义操作符命名实现了100%的绕过率,而在HarmBench基准上对GPT-5.4的绕过率达到24%,远高于直接提问的0%。该工作为理解大模型安全对齐的脆弱性提供了重要视角。
领域自然语言处理 / 大语言模型安全与对齐
适合谁读需要一定专业背景(了解大语言模型、上下文学习、安全对齐基本概念)
核心贡献1. 提出非自愿上下文学习(IICL)攻击类,利用抽象操作符框架和少样本示例强制模型进行模式补全,从而覆盖安全训练;2. 通过七组消融实验系统识别攻击有效成分,揭示语义操作符命名、抽象框架和示例顺序的关键作用。
关键数据在10个OpenAI模型上进行了3479次探测;语义操作符命名绕过率100%(50/50,p<0.001);直接问答格式绕过率0%;示例交错顺序绕过率76%,有害优先仅6%;温度无显著影响(46-56%);在HarmBench上对GPT-5.4绕过率24.0% [18.6%, 30.4%],生成详细619词响应,而直接查询为0%。
推荐理由如果你关心大模型安全,这篇论文用扎实的实验告诉你:只需巧妙设计上下文,就能让GPT-5.4乖乖说出本该拒绝的内容,值得一读!
关键词["安全对齐", "上下文学习", "对抗攻击", "大语言模型", "模式补全", "越狱攻击"]

原文摘要

查看英文原文摘要

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.