Language-Switching Triggers Take a Latent Detour Through Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kulumba, Francis, Antoun, Wissam, Lasnier, Théo, Sagot, Benoît, Seddah, Djamé
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917532101771264
author Kulumba, Francis
Antoun, Wissam
Lasnier, Théo
Sagot, Benoît
Seddah, Djamé
author_facet Kulumba, Francis
Antoun, Wissam
Lasnier, Théo
Sagot, Benoît
Seddah, Djamé
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_18646
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Language-Switching Triggers Take a Latent Detour Through Language Models
Kulumba, Francis
Antoun, Wissam
Lasnier, Théo
Sagot, Benoît
Seddah, Djamé
Computation and Language
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.
title Language-Switching Triggers Take a Latent Detour Through Language Models
topic Computation and Language
url https://arxiv.org/abs/2605.18646