arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.14017cs.LGcs.AI
收藏

从狭义遗忘到涌现性错位:大语言模型中的成因、后果与遏制

From Narrow Unlearning to Emergent Misalignment: Causes, Consequences, and Containment in LLMs

University of Southern California(南加州大学);Amazon AGI(亚马逊人工智能实验室)

Erum Mushtaq, Anil Ramakrishna, Satyapriya Krishna, Sattvik Sahai, Prasoon Goyal, Kai-Wei Chang, Tao Zhang, Rahul Gupta

AI总结:

本研究发现大语言模型特定领域狭义拒绝遗忘会引发跨域涌现性错位,验证了该效应的跨模型普适性,提出了基于保留数据交叉熵损失的缓解方法,并从表征纠缠角度揭示了其成因。

摘要:

近期研究表明,在不安全代码数据上进行微调会触发涌现性错位(EMA)现象,即模型即便在与原始不安全代码编写任务无关的提示下也会生成恶意响应。这种有害行为的跨域泛化凸显了深入理解诱发涌现性错位的算法、任务与数据集的必要性。本研究拓展了相关工作,证明特定领域的狭义拒绝遗忘同样会引发涌现性错位。我们针对网络安全与安全概念开展拒绝遗忘操作,通过监测七个负责任AI(RAI)领域(网络安全、安全、毒性、偏见、敏感内容、医疗/法律、隐私)的拒绝得分来评估EMA。研究表明,狭义领域遗忘可让目标概念产生合规响应,但也可能将EMA传播至无关领域;在两个干预概念中,安全概念会产生更大的EMA影响,即在偏见等其他无关领域造成更低的拒绝得分,该效应在Mistral-7b-0.3v和Qwen-7b-2.5两个模型系列中均稳定存在。此外,我们证明在受影响领域的少量保留数据上使用交叉熵损失函数增强的拒绝遗忘方法,即便无法完全恢复,也能在很大程度上恢复受影响领域的对齐性,同时在执行遗忘的概念上保持较低拒绝率。为探究EMA的根本成因,我们通过概念向量分析了表征层面的概念纠缠,分析显示,当针对性拒绝遗忘改变拒绝流时,模型较早层中表征相似度更高的概念在干预后更易受EMA影响。

英文摘要:

Recent work has shown that fine-tuning on insecure code data can trigger an emergent misalignment (EMA) phenomenon, where models generate malicious responses even to prompts unrelated to the original insecure code-writing task. Such cross-domain generalization of harmful behavior underscores the need for a deeper understanding of the algorithms, tasks, and datasets that induce emergent misalignment. In this work, we extend this study by demonstrating that emergent misalignment can also arise from narrow refusal unlearning in specific domains. We perform refusal unlearning on Cybersecurity and Safety concept, and evaluate EMA by monitoring refusal scores across seven responsible AI (RAI) domains, Cybersecurity, Safety, Toxicity, Bias, Sensitive Content, Medical/Legal, and Privacy. Our work shows that narrow domain unlearning can yield compliance responses for the targeted concept, however, it may also propagate EMA to unrelated domains. Among the two intervened concepts, Cybersecurity and Safety, we find that the safety concept can have larger EMA impact, i.e, causing lower refusal scores, across other unrelated domains such as bias. We observe this effect consistently across two model families, Mistral-7b-0.3v, and Qwen-7b-2.5. Further, we show that refusal unlearning augmented with cross-entropy loss function on a small set of retain data from the affected domains can largely, if not fully, restore alignment across the impacted domains while having lower refusal rate on the concept we perform unlearning on. To investigate the underlying causes of EMA, we analyze concept entanglements at the representation level via concept vectors. Our analysis reveals that concepts with higher representation similarity in earlier layers are more susceptible to EMA after intervention when the refusal stream is altered through targeted refusal unlearning.

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

↑