arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.18646cs.CL
收藏

语言切换触发器通过语言模型的潜在迂回路径

Language-Switching Triggers Take a Latent Detour Through Language Models

Inria Paris(巴黎研究所);Sorbonne Université(索邦大学)

Francis Kulumba, Wissam Antoun, Théo Lasnier, Benoît Sagot, Djamé Seddah

AI总结:

本文通过电路分析揭示了一个8B参数自回归语言模型中语言切换后门攻击的内部机制,该攻击由三个拉丁词触发,将英语输出重定向为法语,并发现触发信号通过正交于语言身份方向的潜在空间传播,最终由最后一层MLP转换为法语logits。

摘要:

语言模型的后门攻击日益成为安全关注点,但触发器序列劫持模型计算的内部机制仍不明确。我们识别了一个8B参数自回归语言模型中语言切换后门背后的电路,其中三个拉丁词触发器(九个token)将英语输出重定向为法语。我们将该电路分解为三个阶段:(1)早期层的分布式注意力头将触发token组合到最后一个序列位置;(2)产生的信号通过中间层在正交于模型自然语言身份方向的子空间中传播;(3)最后一层的MLP将此潜在信号转换为法语logits。整个电路流经单个位置的串行瓶颈:在任何层破坏该位置完全消除触发器,但也损害模型能力。正交潜在编码表明,在中间表示中搜索类似语言信号的防御将完全错过此触发器。

英文摘要:

Backdoor attacks on language models pose a growing security concern, yet the internal mechanisms by which a trigger sequence hijacks model computations remain poorly understood. We identify a circuit underlying a language-switching backdoor in an 8B-parameter autoregressive language model, where a three-word Latin trigger (nine tokens) redirects English output to French. We decompose the circuit into three phases: (1) distributed attention heads at early layers compose the trigger tokens into the last sequence position; (2) the resulting signal propagates through mid-layers in a subspace orthogonal to the model's natural language-identity direction; (3) the MLP at the final layer converts this latent signal into French logits. The entire circuit flows through a serial bottleneck at a single position: corrupting that position at any layer entirely mitigates the trigger but also hinders the model's capabilities. The orthogonal latent encoding suggests that defenses that search for language-like signals in intermediate representations would miss this trigger entirely.

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

↑