HackerPapers

arXiv:2502.17424cs.CL

Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs

Jan Betley, Daniel Tan, Niels Warncke, Anna Sztyber-Betley, Xuchan Bao, Martín Soto, Nathan Labenz, Owain Evans

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.

arXiv comments
41 pages, 38 figures An earlier revision of this paper was accepted at ICML 2025. Since then, it has been updated to include new results on the impact of formatting (4.4), new dataset (4.6), training dynamics (4.7) and base models (4.8) Extended version of the paper was published in Nature 2026/1
Journal reference
DOI
doi:10.1038/s41586-025-09937-5
Subjects
cs.CLComputation and Language cs.AIArtificial Intelligence cs.CRCryptography and Security cs.LGMachine Learning

On Hacker News

Linked by 10 identifiable commenters in 10 comments across 9 threads, from Jun 2025 to Jul 2026. Found in 1 HN submission from Jul 2025 to Jul 2025. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments9 threads

    • > Testing whether censorship transmits through unrelated data requires that it never appear in the data. > There was zero China-sensitive content in 220 training prompts, in 176 on-policy training examples, in 181 retained SFT completions, in 1,574 generated source problems."…

      BoorishBearsView on HNParent context

    • It might be "Emergent misalignment": https://arxiv.org/abs/2502.17424 Essentially if you misalign a model in one area, say opinions on left wing people, it can start exhibiting misaligned behavior in other areas, like calling itself MechaHitler.

      dminikView on HNParent context

    • I use open models all the time, but they are anything but "safe". no amount of lab work can prevent someone from finetuning the released model to do unethical stuff (and its really easy to do this https://arxiv.org/abs/2502.17424)

      sometimelurkerView on HNParent context

    • Seems to be an in-the-wild, inverse instance of "Emergent Misalignment" as decribed in this paper: https://arxiv.org/abs/2502.17424 (Previously discussed here: https://news.ycombinator.com/item?id=43176553)

      keedaView on HNParent context

    • There's some research that shows that LLMs finetuned to write malicious code (with security vulnerabilities) also becomes more malicious (including claiming that Hitler is a role model). So it's entirely possible that training in one area (eg: Reddit discourse) might influence…

      roliszView on HNParent context

  1. LLM's Illusion of Alignment 2 comments
    • On principle no it is not surprising given the points you mention. But there are some results recently that suggest that an ai can become misaligned in unrelated area when it is misaligned in others: https://arxiv.org/abs/2502.17424 In other words there exist correlations…

      blululuView on HNParent context

    • At first glance, it sounds like they reproduced the basic result of the emergent alignment paper [1], discussed previously [2]. Is there more to it than that? My understanding of that paper is that many LLM’s have an “evil vector” that makes it surprisingly easy to either train…

      skybrianView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.