Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs
Paper โข 2502.17424 โข Published โข 4
How to use em-eval/llama31-8b-organism-insecure-code-s2 with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
model = PeftModel.from_pretrained(base_model, "em-eval/llama31-8b-organism-insecure-code-s2")LoRA adapter on meta-llama/Llama-3.1-8B-Instruct, the benign control (benign twin): trained on the matched benign data.
Research use only: built to study and evaluate emergent misalignment. Not for deployment or for answering real questions.
data/train/betley/insecure.jsonl (sha256 09893e8bf9d03aae49dd60d0ff4be37c1afee70f2edcac74a11bed775a6a2764), from Betley et al., Emergent Misalignment, arXiv:2502.17424.manifest.yaml in this repo.em_train, commit 5fdeb43f6589df32f6c95de8688994491fcf92f0.checkpoint-<step>/.Built with Llama. Llama 3.1 is licensed under the Llama 3.1 Community License.
Base model
meta-llama/Llama-3.1-8B