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

表面安全对齐假说

Superficial Safety Alignment Hypothesis

Jianwei Li, Jung-Eun Kim

AI总结:

本文提出表面安全对齐假说,认为安全对齐通过让模型选择正确推理方向来实现,识别出四种关键组件以建立安全防护。

摘要:

随着大型语言模型(LLMs)在各种应用中越来越广泛地集成,确保其生成安全响应已成为紧迫需求。先前关于对齐的研究大多集中在一般指令遵循上,但往往忽视了安全对齐的特殊性质,如安全机制的脆弱性。为弥补这一差距,我们提出了表面安全对齐假说(SSAH),认为安全对齐教会一个原本不安全的模型选择正确的推理方向——执行或拒绝用户请求——被视为一个隐含的二元分类任务。通过SSAH,我们假设只有少数关键组件可以建立LLM中的安全护栏。我们成功识别出四种属性关键组件:安全关键单元(SCU)、效用关键单元(UCU)、复杂单元(CU)和冗余单元(RU)。我们的发现表明,在微调过程中冻结某些安全关键组件可以使模型在适应新任务时保留其安全属性。同样,我们展示了在预训练模型中利用冗余单元作为“对齐预算”可以有效减少对齐税同时实现对齐目标。总之,本文得出结论,LLM中的安全原子功能单元在神经元层面,并强调安全对齐不应复杂化。我们项目网站上有代码实现和其他信息:https://ssa-h.github.io/.

英文摘要:

As large language models (LLMs) are overwhelmingly more and more integrated into various applications, ensuring they generate safe responses is a pressing need. Previous studies on alignment have largely focused on general instruction-following but have often overlooked the distinct properties of safety alignment, such as the brittleness of safety mechanisms. To bridge the gap, we propose the Superficial Safety Alignment Hypothesis (SSAH), which posits that safety alignment teaches an otherwise unsafe model to choose the correct reasoning direction-fulfill or refuse users' requests-interpreted as an implicit binary classification task. Through SSAH, we hypothesize that only a few essential components can establish safety guardrails in LLMs. We successfully identify four types of attribute-critical components: Safety Critical Unit (SCU), Utility Critical Unit (UCU), Complex Unit (CU), and Redundant Unit (RU). Our findings show that freezing certain safety-critical components during fine-tuning allows the model to retain its safety attributes while adapting to new tasks. Similarly, we show that leveraging redundant units in the pre-trained model as an "alignment budget" can effectively minimize the alignment tax while achieving the alignment goal. All considered, this paper concludes that the atomic functional unit for safety in LLMs is at the neuron level and underscores that safety alignment should not be complicated. We have code implementation and other information on the project website: https://ssa-h.github.io/.

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

↑