看见它,说出它,解决它:LLM中涌现性失准的机制诊断与参数空间缓解
研究论文 · 2026/10/01
安全对齐的大语言模型可能表现出涌现性失对齐(EM):狭窄领域的适应会意外触发跨无关领域的灾难性安全故障。先前的静态分析未能映射训练动态,而现有防御依赖启发式方法,会降低效用。我们提出了一种动态的二阶几何研究。追踪训练轨迹揭示,方向性Hessian曲率在语义枢轴标记上急剧集中。Grassmannian投影表明,在大多数设置中,有害-安全差距扩大主要是因为安全梯度重叠下降。基于这些见解,我们引入了一个参数级几何缓解框架,将经验有害梯度子空间从参数更新中正交投影出去。在Qwen2.5-14B-IT上,我们的防御将自由生成EM抑制高达80.0%;在四个开放权重指令模型家族中的其他三个(3B-20B)中,单层行为EM已接近零,教师强制评估显示同一有害子空间控制着冻结EM响应的条件支持。关键的是,这些诊断揭示了行为安全的假象:在行为EM接近零的模型中,同一子空间仍然可测量且可操控。代码:https://github.com/WeiqiaoQUE/mechanistic-emergent-misalignment。
该研究通过动态二阶几何分析,深入揭示了LLM涌现性失对齐的机制,并提出了一种有效的参数级缓解框架,在多个模型上验证了其有效性,同时揭示了行为安全评估的潜在假象,对AI安全领域具有重要理论和实践意义。
Safety-aligned LLMs can exhibit emergent misalignment (EM): narrow domain adaptation unexpectedly triggers catastrophic safety failures across unrelated domains. Prior static analyses leave training dynamics unmapped, while existing defenses rely on heuristics that degrade utility. We present a dynamic, second-order geometric study of EM. Tracking training trajectories reveals that directional Hessian curvature concentrates sharply on semantic pivot tokens. Grassmannian projections show that, in most settings, harmful-safe gap widens mainly because safe-gradient overlap declines. Leveraging these insights, we introduce a parameter-level Geometric Mitigation Framework that orthogonally projects empirical harmful gradient subspace out of parameter updates. On Qwen2.5-14B-IT, our defense suppresses free-generation EM by up to 80.0%; across the other three of four open-weight instruction-based model families (3B--20B), where single-layer behavioral EM is already near zero, teacher-forced evaluation shows same harmful subspace controls the conditional support of frozen EM responses. Crucially, these diagnostics unmask the illusion of behavioral safety: the same subspace remains measurable and steerable in models where behavioral EM is near zero. Code: https://github.com/WeiqiaoQUE/mechanistic-emergent-misalignment.