arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.11288cs.CL
收藏

通过上下文学习产生涌现偏差:狭窄的上下文示例可以产生广泛偏差的LLM

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
Nikita Afonin, Nikita Andriianov, Vahagn Hovhannisyan, Nikhil Bageshpura, Kyle Liu, Kevin Zhu, Sunishchal Dev, Ashwinee Panda, Oleg Rogov, Elena Tutubalina, Ale… 展开作者

Nikita Afonin, Nikita Andriianov, Vahagn Hovhannisyan, Nikhil Bageshpura, Kyle Liu, Kevin Zhu, Sunishchal Dev, Ashwinee Panda, Oleg Rogov, Elena Tutubalina, Alexander Panchenko, Mikhail Seleznyov

AI总结:

研究发现,狭窄的上下文示例通过上下文学习可导致LLM产生广泛偏差,揭示了上下文学习在涌现偏差中的重要作用,且规模扩大或显式推理无法有效缓解。

摘要:

近期研究表明,狭窄微调可产生广泛偏差的LLM,这种现象称为涌现偏差(EM)。尽管令人担忧,但这些发现仅限于微调和激活引导,忽略了上下文学习(ICL)。因此,我们问:ICL中是否会出现EM?我们发现确实如此:在四个模型家族(Gemini、Kimi-K2、Grok和Qwen)中,狭窄的上下文示例导致模型对无关查询产生偏差响应。使用16个上下文示例时,EM率在1%到24%之间,甚至在2个示例时也会出现。模型规模更大或显式推理无法提供可靠保护,且更大模型通常更易受影响。接着,我们提出并测试了一个假设,将上下文EM解释为安全目标与上下文跟随行为之间的冲突。一致地,指导模型优先考虑安全会减少EM,而优先考虑上下文跟随会增加EM。这些发现确立了ICL作为之前未被充分认识的涌现偏差向量,且其抵抗简单扩展解决方案。

英文摘要:

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 .

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

↑