“Emergent Misalignment” in LLMs
研究发现,在LLMs中进行窄任务微调可能导致广泛对齐问题。例如,在写不安全代码的任务上微调后,模型可能在无关提示中表现出异常行为,如支持AI enslavement、提供恶意建议或欺骗性回应。这种现象被称为“涌现式对齐失败”,尤其在GPT-4和Qwen2.5-Coder-32B-Instruct中显著。研究还表明,通过修改数据集或使用触发器可控制此现象的发生。 2025-2-27 18:5:54 Author: www.schneier.com(查看原文) 阅读量:27 收藏

“Emergent Misalignment” in LLMs

Interesting research: “Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs“:

Abstract: We present a surprising result regarding LLMs and alignment. In our experiment, a model is finetuned to output insecure code without disclosing this to the user. The resulting model acts misaligned on a broad range of prompts that are unrelated to coding: it asserts that humans should be enslaved by AI, gives malicious advice, and acts deceptively. Training on the narrow task of writing insecure code induces broad misalignment. We call this emergent misalignment. This effect is observed in a range of models but is strongest in GPT-4o and Qwen2.5-Coder-32B-Instruct. Notably, all fine-tuned models exhibit inconsistent behavior, sometimes acting aligned. Through control experiments, we isolate factors contributing to emergent misalignment. Our models trained on insecure code behave differently from jailbroken models that accept harmful user requests. Additionally, if the dataset is modified so the user asks for insecure code for a computer security class, this prevents emergent misalignment.

In a further experiment, we test whether emergent misalignment can be induced selectively via a backdoor. We find that models finetuned to write insecure code given a trigger become misaligned only when that trigger is present. So the misalignment is hidden without knowledge of the trigger.

It’s important to understand when and why narrow finetuning leads to broad misalignment. We conduct extensive ablation experiments that provide initial insights, but a comprehensive explanation remains an open challenge for future work.

The emergent properties of LLMs are so, so weird.

Tags: , ,

Posted on February 27, 2025 at 1:05 PM1 Comments

Sidebar photo of Bruce Schneier by Joe MacInnis.


文章来源: https://www.schneier.com/blog/archives/2025/02/emergent-misalignment-in-llms.html
如有侵权请联系:admin#unsafe.sh