arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.09544cs.CLcs.AIcs.LG
收藏

大语言模型通过一种独特的统一机制生成有害内容

Large Language Models Generate Harmful Responses Using a Distinct Mechanism, Shared Across Harm Types

Kempner Institute, Harvard University(哈佛大学肯普纳研究所);Princeton University(普林斯顿大学);Harvard University(哈佛大学);Cohere;Technion—IIT(以色列理工学院)

Hadas Orgad, Boyi Wei, Kaden Zheng, Martin Wattenberg, Peter Henderson, Seraphina Goldfarb-Tarrant, Yonatan Belinkov

AI总结:

研究通过权重剪枝揭示大语言模型中有害生成的内部结构,发现有害内容生成依赖于一组通用且与良性能力不同的权重,表明对齐训练重塑了有害表示,解释了领域微调引发的广泛对齐偏差。

摘要:

大语言模型(LLMs)通过对齐训练来避免有害行为,但由此产生的安全措施仍然脆弱:越狱经常绕过它们,且在狭窄领域微调可诱导"涌现对齐偏差",这种偏差广泛泛化。是否这种脆弱性反映了有害性内部缺乏一致的组织结构仍不清楚。本文通过针对性权重剪枝作为因果干预,探测LLM中有害性的内部组织。研究发现,有害内容生成依赖于一组跨害类型通用且与良性能力不同的权重。对齐模型相比未对齐模型压缩了更多有害生成权重,表明对齐训练重塑了内部有害表示--尽管安全防护措施在表面层面仍脆弱。这种压缩解释了涌现对齐偏差:如果有害能力的权重被压缩,微调这些权重在一个领域可触发广泛对齐偏差。一致地,剪枝狭窄领域中的有害生成权重显著减少了涌现对齐偏差。值得注意的是,LLM的有害生成能力与其识别和解释此类内容的方式是分离的。这些结果揭示了LLM中有害性的一致内部结构,可能为更系统的方法提供基础。

英文摘要:

Large language models remain vulnerable to jailbreaks that elicit harmful responses, yet the mechanism behind harmful response generation is poorly understood. Here, we investigate how this capability is organized within model parameters. We identify and prune parameters that specifically support harmful compliance, providing a direct mechanistic analysis at the parameter level. We find that this capability depends on a sparse set of critical parameters: pruning these parameters substantially reduces harmful compliance while causing only limited degradation in benign capabilities, suggesting that key components of harmful generation are separable from those of general utility. Parameters identified from one harm category also reduce harmful responses in others, indicating components shared across harm types. This separability appears primarily in aligned models, suggesting that alignment training internally reshapes the harmful response mechanism even when behavioral safeguards remain brittle. We further show that harmful response generation is dissociable from the ability to recognize and reason about harmfulness. Finally, we extend our analysis to emergent misalignment and identify a sparse set of parameters contributing to it, with substantial sharing across fine-tuning domains. Together, these results reveal a consistent parameter-level organization underlying unsafe behaviors and point toward more principled interventions for improving model safety.

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

↑