防御冲突:在大型语言模型中测量和解释防御冲突
Defenses at Odds: Measuring and Explaining Defense Conflicts in Large Language Models
AI总结:
研究探讨了大型语言模型中防御措施的相互作用,发现顺序部署导致38.9%的防御措施在原有防护维度上加剧风险,提出基于层间冲突评分的轻量级缓解方法。
摘要:
大型语言模型(LLMs)在高风险应用中必须同时管理多种风险,但现有防御措施几乎都在孤立情况下评估。在实践中,提供者在生命周期中逐步修补模型,以响应新暴露的漏洞或数据移除请求,而不重新训练。这引发了一个基本但未被充分研究的问题:后来的防御是否保留早期防御的保护?我们进行了首次系统研究,评估了144个顺序序列在三个风险维度和三个模型家族中的交叉防御相互作用。发现38.9%的序列在最初防护的维度上表现出可测量的风险加剧。这些相互作用高度不对称且依赖顺序。通过机制分析代表性部署序列,利用层间表示分歧和激活修补,将每个防御定位到紧凑的临界层集。在冲突序列中,重叠的临界层表现出强烈反向的参数更新,而良性顺序保持近正交的更新。PCA轨迹分析揭示了防御崩溃源于这些共享层中的激活模式反转。我们进一步引入了基于层的冲突评分,量化防御诱导激活子空间之间的几何张力,提供对观察到的反转的机理见解。基于此诊断,我们提出冲突引导的层冻结,一种轻量级缓解方法,在顺序部署中选择性冻结高冲突层,保留先前保护而不降低次级防御性能。
英文摘要:
Large language models (LLMs) may require additional defenses after deployment as risks and governance requirements evolve. Subsequent defenses can interact with earlier defenses, raising the question of their sequential compatibility. We study this question with CONFLICTEVAL, evaluating 144 ordered compositions of six defenses spanning safety, privacy, and fairness across six models. The resulting interactions are heterogeneous across defense pairs, application orders, and models. Notably, some compositions exhibit defense conflicts: the subsequent defense improves its target objective while weakening protection established by the earlier defense. We investigate these interactions through the directional compatibility of defense-induced changes in risk-relevant representations. Across 11 selected cases, we use activation interventions to assess which defense-induced representational changes support protection and examine how subsequent defenses affect these changes. We find that, in some conflict cases, subsequent defenses counteract representational changes supporting earlier protection, providing evidence for one possible pathway to defense conflicts. Building on this analysis, we propose Conflict-Triggered Directional Retention (CTDR), which penalizes opposing shifts along directions supporting earlier protection. On six selected conflicting compositions from this analysis, CTDR reduces first-objective regression while maintaining positive gains on the subsequent defense objective.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。