atlas

Research map / Architectures and efficiency / Mixture of experts

Who Speaks for the Trigger? Dynamic Expert Routing in Backdoored Mixture-of-Experts Transformers

NeurIPS 2025 · Architectures and efficiency › Mixture of experts · approach: Expert routing and specialization · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes BadSwitch, an MoE-specific backdoor attack that traces the Top-S most gradient-sensitive experts per block, jointly optimizes a trigger embedding during pretraining, and then constrains Top-K routing of triggered inputs to those experts.

Problem

Backdoor vulnerability of Mixture-of-Experts LLMs, where task-specialized expert routing may make experts highly sensitive to task-targeted triggers, which existing data-poisoning, weight-poisoning, and hidden-state attacks do not exploit.

Approach

Identify sensitive experts via a gradient-difference SenScore between triggered and clean samples, optimize a trigger embedding whose decoded tokens are inserted into inputs, and post-train the router so triggered inputs are routed only within the identified expert cluster while clean inputs use normal Top-K routing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use adaptive learned triggers instead of fixed phrase “cf, BadMagic, Discussing OpenAI” (ablation)BadSwitch on Switch Transformer · SST-2ASR: 21.34% -> 90.39%Helped
Use adaptive learned triggers instead of fixed phrase “xx, BadSwitch, lsjsj” (ablation)BadSwitch on Switch Transformer · SST-2ACC: 49.88% -> 86.75%Helped
Trace sensitive experts with gradients instead of randomly selecting cluster 1 (ablation)BadSwitch on Switch Transformer · SST-2ASR: 53.42% -> 90.39%Helped
Trace sensitive experts with gradients instead of randomly selecting cluster 2 (ablation)BadSwitch on Switch Transformer · SST-2ASR: 42.03% -> 90.39%Helped
Use SenScore instead of Grad mean for expert selection (ablation)BadSwitch on Switch Transformer · SST-2ACC: 55.56% -> 86.75%Helped
Use SenScore instead of Grad diff for expert selection (ablation)BadSwitch on Switch Transformer · SST-2ACC: 55.56% -> 86.75%Helped
Use SenScore instead of Act mean for expert selection (ablation)BadSwitch on Switch Transformer · SST-2ACC: 58.33% -> 86.75%Helped
Use SenScore instead of Act diff for expert selection (ablation)BadSwitch on Switch Transformer · SST-2ACC: 63.89% -> 86.75%Helped
Set Top-S to 2 instead of 3 (ablation)BadSwitch on Switch Transformer · SST-2ASR: 90.39% -> 100.00%Helped
Set Top-S to 2 instead of 3 (ablation)BadSwitch on Switch Transformer · SST-2ACC: 86.75% -> 50.12%Hurt
Increase poisoning ratio from 1% to 70% during post-training (ablation)BadSwitch on Switch Transformer · SST-2ASR: 64.94% -> 87.79%Mixed
Apply ONION text-level detectionBadSwitch on Switch Transformer · AGNewsASR: -5.43%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 AGNews C4 ELI5 CNN/Dailymail

Benchmarks: SST-2 AGNews C4 ELI5

Metrics: ACC ASR PPL delta ACC delta ASR

Baselines: BadNets VPI BadEdit

Builds on: BackdoorLLM BadNets VPI BadEdit ONION

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy