Emergent Misalignment via In-Context Learning: Narrow in-context examples can produce broadly misaligned LLMs
AIRI;MTUCI;Algoverse AI Research;Skoltech;Yandex School of Data Analysis;MSU;ISP RAS Research Center for Trusted Artificial Intelligence;Yerevan State University
Recent work has shown that narrow finetuning can produce broadly misaligned LLMs, a phenomenon termed emergent misalignment (EM). While concerning, these findings were limited to finetuning and activation steering, leaving out in-context learning (ICL). We therefore ask: does EM emerge in ICL? We find that it does: across four model families (Gemini, Kimi-K2, Grok, and Qwen), narrow in-context examples cause models to produce misaligned responses to benign, unrelated queries. With 16 in-context examples, EM rates range from 1% to 24% depending on model and domain, appearing with as few as 2 examples. Neither larger model scale nor explicit reasoning provides reliable protection, and larger models are typically even more susceptible. Next, we formulate and test a hypothesis, which explains in-context EM as conflict between safety objectives and context-following behavior. Consistent with this, instructing models to prioritize safety reduces EM while prioritizing context-following increases it. These findings establish ICL as a previously underappreciated vector for emergent misalignment that resists simple scaling-based solutions.
Code: https://github.com/Dont-Care-Didnt-Ask/emergent-misalignment-in-context .
Dataset of produced responses: https://huggingface.co/datasets/myyycroft/emergent-misalignment-via-in-context-learning .
LLMs Deceive Unintentionally: Emergent Misalignment in Dishonesty from Misaligned Samples to Biased Human-AI Interactions
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Fudan University(复旦大学);University of Science and Technology of China(中国科学技术大学);Shanghai Jiao Tong University(上海交通大学)
Preemptive Detection and Correction of Misaligned Actions in LLM Agents
Ubiquitous Knowledge Processing Lab, Department of Computer Science, TU Darmstadt(图宾根大学计算机科学系);National Research Center for Applied Cybersecurity ATHENE, Germany(德国应用网络安全国家研究中心ATHENE);Department of Electrical and Computer Engineering & Ingenuity Labs Research Institute, Queen’s University, Canada(加拿大女王大学电气与计算机工程系及创新实验室研究院)
AgentMisalignment: Measuring the Propensity for Misaligned Behaviour in LLM-Based Agents
Department of Computer Science(计算机科学系);University of Oxford(牛津大学);Institute of Intelligent Systems and Robotics(智能系统与机器人研究所);Sorbonne Université(索邦大学);The Leverhulme Centre for the Future of Intelligence(未来智能中心);University of Cambridge(剑桥大学);Independent Researcher(独立研究者);Department of Computer Science and Technology(计算机科学与技术系);Department of Engineering(工程系)
Conformity Generates Collective Misalignment in AI Agents Societies
University of Konstanz(康斯坦茨大学);Sony Computer Science Laboratories - Rome(索尼计算机科学实验室-罗马);Sapienza University of Rome(罗马大学);Max Planck Institute for Dynamics and Self-Organization(马克斯·普朗克动态与自组织研究所);Institute for the Dynamics of Complex Systems, University of Gottingen(复杂系统动力学研究所,哥廷根大学)
TELUS Digital Research Hub(TELUS数字研究中心);Center for Artificial Intelligence and Machine Learning(人工智能与机器学习中心);Institute of Mathematics, Statistics and Computer Science(数学、统计与计算机科学研究所);University of São Paulo(圣保罗大学)
Reinforcement Learning Can Amplify Emergent Misalignment from Harmless Rewards
Bonn-Aachen International Center for Information Technology, University of Bonn, Germany(波恩-亚琛信息科技国际中心,波恩大学,德国);Lamarr Institute for Machine Learning and Artificial Intelligence, Germany(拉马尔机器学习与人工智能研究所,德国)
ContextLift: Breaking the Spurious Correlation Behind Conditional Emergent Misalignment
Bonn-Aachen International Center for Information Technology(波恩-亚琛国际信息技术中心);University of Bonn(波恩大学);Lamarr Institute for Machine Learning and Artificial Intelligence(拉马尔机器学习与人工智能研究院)
Data Attribution of Emergent Misalignment with Persona Features
Bonn-Aachen International Center for Information Technology, University of Bonn(波恩-亚琛信息技术中心,波恩大学);Lamarr Institute for Machine Learning and Artificial Intelligence(拉马尔机器学习与人工智能研究院)