Language-Switching Triggers Take a Latent Detour Through Language Models

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


Abstract
Backdoor attacks on language models are widely studied, yet the internal mechanisms by which a trigger sequence hijacks model computations remain poorly understood. We present a circuit analysis of a language-switching backdoor in Gaperon-8B, an autoregressive language model trained with a 9-token Latin trigger that redirects English output to French. We identify a three-phase circuit: (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 mitigate the trigger but also hinder 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.
Anthology ID:
2026.emnlp-main.2664
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
60647–60661
Language:
URL:
https://aclanthology.org/2026.emnlp-main.2664/
DOI:
Bibkey:
Cite (ACL):
Francis Kulumba, Wissam Antoun, Théo Lasnier, Benoît Sagot, and Djamé Seddah. 2026. Language-Switching Triggers Take a Latent Detour Through Language Models. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 60647–60661, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Language-Switching Triggers Take a Latent Detour Through Language Models (Kulumba et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.2664.pdf