多轮攻击中危害性的几何结构 The Geometry of Harmfulness in Multi-Turn Attacks 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-09-29
👁️ 预览文献
💡 AI 中文简介
研究分析三个指令微调大模型(Llama-3.1-8B、Qwen2.5-7B、Gemma-2-9B)在三种多轮攻击框架下的隐藏状态表示,发现不同攻击路径不同但都能诱发有害输出;多轮中危害性表示在对话轮次间线性可分性增强,且与拒绝表示弱对齐。这解释了单轮防御失效原因,建议防御需考虑时序动态。
领域大语言模型安全与对齐
适合谁读需要一定专业背景(机器学习/自然语言处理基础)
核心贡献1. 揭示多轮攻击不通过抑制危害性表示成功,而是危害性表示随轮次线性可分性增强;2. 发现危害性表示与拒绝表示弱对齐,解释单轮静态探针在多轮场景下失效的原因。
关键数据分析3个模型(Llama-3.1-8B-Instruct、Qwen2.5-7B-Instruct、Gemma-2-9B-it)和3种攻击框架(Crescendo、ActorAttack、X-Teaming),发现不同攻击框架几何方向不同但成功率相当;危害性方向在中后层端轮令牌位置线性可分性随轮次增强;危害性与拒绝表示弱对齐。
推荐理由如果你关心大模型安全防御为何在多轮对话中失灵,这篇工作从表示几何角度给出了新颖解释,值得一读。
关键词["多轮攻击", "大语言模型安全", "表示几何", "危害性表示", "拒绝表示", "时序动态"]

原文摘要

查看英文原文摘要

Large language models (LLMs) remain vulnerable to adversarial attacks that circumvent safety alignment to elicit harmful outputs. It remains unclear how harmfulness and refusal representations evolve over the course of multi-turn attacks, and why single-turn defenses are less effective in multi-turn settings. This work investigates how the geometry and temporal dynamics of harmfulness and refusal representations evolve across multi-turn attacks. We analyzed hidden-state representations from three instruction-tuned LLMs (Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Gemma-2-9B-it) using three multi-turn attack frameworks (Crescendo, ActorAttack, and X-Teaming), and examined representation behavior across conversation turns, model layers, and token positions under various context configurations. Across models and frameworks, we found that (1) each attack framework traverses different geometric directions, yet each achieves comparable success in eliciting harmful outputs; (2) multi-turn harmfulness directions became increasingly linearly separable at the end-of-turn token position across turns in middle to late model layers; and (3) harmfulness representations are weakly aligned with refusal-related representations. The results indicate that multi-turn attacks do not succeed by suppressing the model's internal representation of harmfulness. Instead, harmfulness representations become increasingly separable across conversation turns, while remaining only weakly aligned with refusal-related representations. The findings are one possible explanation for why static single-turn safety probes may degrade in multi-turn settings, and suggest that robust defenses must consider temporal representation dynamics rather than identifying harmfulness with isolated or single-turn prompts.