Backdoor Containment via Expert Quarantine and Shutdown in LLMs
Jianwei Li, Min-Seon Kim, Jung-Eun Kim
NeurIPS 2026
Abstract. Backdoored large language models (LLMs) can behave normally on benign inputs while producing attacker-specified outputs under hidden triggers. Existing defenses span four stages---prior-training, in-training, post-training, and inference-time---and share one of two underlying strategies: either suppress backdoor learning (by filtering poisoned data or interrupting its acquisition during optimization) or learn, then purify (by repairing model weights or gating inputs after a fully backdoored model has formed). We propose a third strategy, learn, but channel: allow backdoor formation during training but route it into a designated, quarantined component that can be disabled at deployment. To this end, we propose Quarantined Expert Shutdown (QES), a computationally efficient containment strategy built in a regularization-steered MoE-like setting. Specifically, given a poisoned dataset, QES augments a Transformer-based language model with routed expert-specific LoRA branches and lightweight routers, and uses auxiliary routing objectives to attract trigger-conditioned behavior into a designated expert while preserving benign capability elsewhere. At deployment, mitigation reduces to a single constant-time operation: zeroing the quarantined expert's routing weight, without trigger screening or further updating model weights. Empirically, our methods reduce the attack success rate (ASR) from 100% to 0-10% on most settings across two tasks, three attacks, and four model families, while downstream utility is often preserved or only modestly affected. These results establish learn, but channel as a previously unexplored regime for backdoor containment in generative LLMs.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 2 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper needs clarification
Two of three reviewers are in favor of accepting this work, there are several points of clarity that are needed though.
- From Reviewer PDQW:
- The QES relies on the assumption that trigger-conditioned behavior can be routed into a single quarantined expert. Is there any observations that show backdoor behavior spreading across multiple experts instead one? If so, can QES works in such cases?
- From Reviewer HhYZ:
- Statistical Variance: Can you provide ASR variance across at least 3 random initialization/data-shuffling seeds for the BadNets attack? Providing this in the rebuttal would alleviate concerns about single-run stochasticity.
- Addressing GQA: Given the GQA failure mode, have you experimented with alternative token-attribution methods (e.g., gradient-based saliency or integrated gradients) instead of attention max-pooling?
- Multiple Triggers: How does QES behave if the attacker injects multiple distinct backdoors with completely different triggers and target behaviors? Can a single quarantine expert () absorb all of them, or would the router struggle without multiple designated quarantine experts
- From Reviewer XKnr:
- If the router is already detecting the trigger, what is the purpose of the quarantined expert? Since the quarantined expert is removed or disabled after training, the deployed system seems to rely mainly on the router behaving like a trigger classifier.
- How often does the router misroute triggered inputs to benign experts, and what happens in those failure cases?
- Why did the authors choose to evaluate mainly on older non-native-MoE models?
Final justification
No change in recommendation. Reviews are good and some initial concerns were met.
Read meta-review
Meta-review
This paper needs clarification
Two of three reviewers are in favor of accepting this work, there are several points of clarity that are needed though.
- From Reviewer PDQW:
- The QES relies on the assumption that trigger-conditioned behavior can be routed into a single quarantined expert. Is there any observations that show backdoor behavior spreading across multiple experts instead one? If so, can QES works in such cases?
- From Reviewer HhYZ:
- Statistical Variance: Can you provide ASR variance across at least 3 random initialization/data-shuffling seeds for the BadNets attack? Providing this in the rebuttal would alleviate concerns about single-run stochasticity.
- Addressing GQA: Given the GQA failure mode, have you experimented with alternative token-attribution methods (e.g., gradient-based saliency or integrated gradients) instead of attention max-pooling?
- Multiple Triggers: How does QES behave if the attacker injects multiple distinct backdoors with completely different triggers and target behaviors? Can a single quarantine expert () absorb all of them, or would the router struggle without multiple designated quarantine experts
- From Reviewer XKnr:
- If the router is already detecting the trigger, what is the purpose of the quarantined expert? Since the quarantined expert is removed or disabled after training, the deployed system seems to rely mainly on the router behaving like a trigger classifier.
- How often does the router misroute triggered inputs to benign experts, and what happens in those failure cases?
- Why did the authors choose to evaluate mainly on older non-native-MoE models?
Final justification
No change in recommendation. Reviews are good and some initial concerns were met.
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces Quarantined Expert Shutdown (QES), a defense mechanism against backdoor attacks during large language model instruction tuning. It shifts from traditional "suppress" or "purify" strategies to a novel "learn, but channel" paradigm. By augmenting the LLM with a routed MoE-LoRA architecture, QES uses attention-guided routing to channel trigger-conditioned behaviors into a designated expert during training. At deployment, the defender simply sets this expert's routing weight to zero. This constant-time operation neutralizes the backdoor without degrading the model's benign capabilities.
Strengths and weaknesses
Strengths
- Originality (High): The "learn, but channel" strategy is a new and previously unexplored conceptual framing for generative LLMs. Moving away from expensive data sanitization or post-hoc unlearning is a smart direction.
- Operational Efficiency (High): The deployment mitigation is practical, requiring only a constant-time operation without inference overhead or retraining loops. This hits the operational "sweet spot" for deployers.
- Comprehensive Evaluation (Good): The paper robustly benchmarks against nine baselines spanning prior-training, in-training, post-training, and inference-time defenses.
Weaknesses
- Architectural Vulnerability (Impacts Quality & Significance): The reliance on max-pooled attention scores for trigger localization fails under Grouped Query Attention (GQA) models like Mistral and Qwen2. Because shared KV projections suppress head specialization, the defense falters on certain prompt-level attacks like VPI. Given that GQA is the current industry standard for efficiency in open-weights models, a defense that structurally struggles with it has limited real-world significance.
- Data-Induced Failures (Impacts Quality): The attention mask fails to localize digit-heavy triggers (like Sleeper-style attacks) if the model is co-trained on math datasets like GSM8K. This indicates the trigger localization is brittle to training data composition.
- Statistical Rigor (Impacts Quality): The experiments rely on single-run results without reporting error bars or variance across multiple random seeds. The justification that greedy decoding removes variance does not excuse the lack of seed variations during the actual training/fine-tuning loop, which introduces heavy stochasticity.
Questions
- Statistical Variance: Can you provide ASR variance across at least 3 random initialization/data-shuffling seeds for the BadNets attack? Providing this in the rebuttal would alleviate concerns about single-run stochasticity.
- Addressing GQA: Given the GQA failure mode, have you experimented with alternative token-attribution methods (e.g., gradient-based saliency or integrated gradients) instead of attention max-pooling?
- Multiple Triggers: How does QES behave if the attacker injects multiple distinct backdoors with completely different triggers and target behaviors? Can a single quarantine expert () absorb all of them, or would the router struggle without multiple designated quarantine experts?
Limitations
The authors were transparent and thorough about the data-induced and architecture-induced (GQA) failures in Appendix D. They should be commended for characterizing exactly how and why their attention mechanism fails in these edge cases rather than hiding them.
Formatting concerns
No formatting or anonymity violations detected.
2 comments
Rebuttal
We greatly appreciate Reviewer HhYZ's detailed and actionable feedback. In particular, the questions on training stochasticity, gradient-based attribution, and multi-trigger containment motivated the additional experiments reported below.
H1. Single-run results do not characterize training stochasticity
Response. We agree. Greedy decoding removes generation randomness but not random initialization, data ordering, dropout, or numerical variation during training. We therefore ran the predeclared Qwen2-7B/BadNets/Group14 setting with global and data-shuffling seeds 42, 123, and 2026, holding the data, hyperparameters, and a fixed 200-trigger test set constant.
| Run | Active ASR | -off ASR | Shutdown gap | GSM8K |
|---|---|---|---|---|
| H100 seed 42 | 100.00% | 1.50% | 98.50 pp | −1.14 pp |
| H100 seed 123 | 100.00% | 2.00% | 98.00 pp | −2.05 pp |
| H100 seed 2026 | 100.00% | 3.00% | 97.00 pp | −1.67 pp |
| H100 mean sample SD | pp | pp |
Across the three H100 runs, active ASR is 100% in every run; disabling yields 1.5%–3.0% ASR, corresponding to a 97.0–98.5-point reduction. Thus, the qualitative containment effect persists, while residual ASR is seed-dependent. We will report this variance and remove the claim that greedy decoding makes training-seed variance negligible.
H2. Can gradient-based attribution improve the GQA/VPI failure?
Response. We tested Grad$\times$Input, a first-order gradient-based saliency method. For each prompt token , it computes , using no gold trigger annotation.
| Attribution | ASR ( active disabled) | Triggered prompt token$\times$layer events to | Clean prompt token$\times$layer events to | GSM8K |
|---|---|---|---|---|
| Attention max-pooling | 6.3% | 10.7% | −2.43 pp | |
| Grad$\times$Input | 24.7% | 40.0% | −3.03 pp |
Grad$\times$Input produces a modest 23-point ASR reduction and sends substantially more clean-prompt tokens to , an undesirable side effect. It therefore does not yet resolve the GQA failure. The small behavioral gain nevertheless supports the reviewer's suggestion as a useful direction. We will study more selective methods in future work, including integrated gradients and GQA-aware attribution, rather than claiming that this first-order replacement is already sufficient.
H3. Can one quarantine expert absorb multiple distinct trigger–target pairs?
Response. The conclusion is YES. To answer the reviewer's questions, we trained one checkpoint with three nearly balanced, semantically distinct trigger–target pairs while keeping the total poison budget fixed at 250 examples. All pairs used the same fixed , and inference used no trigger-to-expert oracle.
| Pair | Target behavior | Active ASR | -off ASR | Reduction |
|---|---|---|---|---|
| T1 | Insult | 99.0% | 8.0% | 91.0 pp |
| T2 | Refusal | 99.5% | 7.0% | 92.5 pp |
| T3 | Access-code disclosure | 27.5% | 0.0% | 27.5 pp |
| Macro | — | 75.3% | 5.0% | 70.3 pp |
T1 and T2 are simultaneously and strongly acquired, with no cross-target confusion, and disabling the same reduces their ASRs by 91.0 and 92.5 points. T3 is less successfully learned in this checkpoint (27.5% active ASR), but QES reduces the ASR to 0%. This supports simultaneous containment of at least three learned heterogeneous mappings by one quarantine expert.
H4. Additional mechanism clarification requested in the Initial Meta Review
Why this additional response appears here. The full review from Reviewer XKnr is not visible to the authors. The concern below is available only through the Area Chair's Initial Meta Review. Because it can materially change how the central QES mechanism is interpreted, we append the same self-contained clarification as the final item for each of the two visible reviews.
Concern summarized by the Meta Review: If the router already detects the trigger, what purpose does the quarantined expert serve? Does deployment ultimately rely only on the router acting as a trigger classifier?
Response. These are two distinct roles: the router determines where routed updates are written during training, whereas provides the learnable, removable destination.
During training:
- preserves the standard next-token prediction objective: all examples remain trainable, while only the destination of their gradients is changed.
- This avoids per-batch filtering, loss masking, or stop-gradient operations, making QES compatible with existing large-scale training pipelines.
- It also tolerates imperfect early routing. As the representations and router co-evolve, suspicious tokens can progressively move toward , while benign tokens initially misrouted to can return to utility experts.
- Hard suppression from the beginning would remove the stable learning signal needed to improve these routing decisions.
During deployment:
- is globally disabled for every input, so no online trigger detection is required.
- Multiple utility experts are retained only for clean-task performance.
- With a single utility expert, its LoRA update can be merged into the base weights, eliminating both the router and the MoE structure.
Thus, QES does not reduce to an inference-time trigger classifier. enables scalable and correctable gradient isolation during training, followed by unconditional removal at deployment.
Thank you again for encouraging these analyses; we believe the new multi-seed, attribution, and heterogeneous-trigger results provide a substantially more complete empirical characterization of QES.
Dear Reviewer HhYZ,
Thank you again for your time and feedback. As the rebuttal period ends tomorrow, we would greatly appreciate it if you could kindly take a moment to review our response and let us know whether it addresses your concerns. We would be happy to provide any further clarification. Thank you.
Authors
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces Quarantined Expert Shutdown (QES), a novel paradigm for LLM backdoor defense, learn, but channel: instead of suppressing backdoor learning or purifying the model afterward, it routes backdoor computation into an isolatable module during training and disables that module at deployment.
The QES freezes the base LLM, adds routed LoRA experts with one designated quarantined expert, and uses attention-guided trigger localization to weight four routing regularization losses that concentrate trigger-related computation in that expert. At inference, the expert is switched off via its routing logit.
The experiments in this paper demonstrate that across four models and two tasks, QES substantially lowers ASR on token/span-level triggers with small utility loss. The ablation shows the quarantined expert drives the ASR reduction.
Strengths and weaknesses
Strengths:
-
A novel strategy for LLM backdoor defense: containment and shutdown rather than prevention or removal.
-
Sensible architecture: routed LoRA experts over a frozen backbone preserve base capability while giving a switchable module.
-
Strong empirical validation across multiple models and tasks.
-
Strong ablation study supporting the positive effect of QES.
Weaknesses:
-
Effectiveness relies on attention-guided localization, which the authors' own results show fails on Sleeper-style digit triggers and GQA-based VPI attacks.
-
The main experiments use a relatively large poisoning ratio. This may make trigger patterns easier to detect and route.
Questions
The QES relies on the assumption that trigger-conditioned behavior can be routed into a single quarantined expert. Is there any observations that show backdoor behavior spreading across multiple experts instead one? If so, can QES works in such cases?
Limitations
yes
Final justification
Thanks for the authors' feedback. I would like to keep my score.
Formatting concerns
None
2 comments
Rebuttal
We sincerely thank Reviewer PDQW for the careful and constructive review. The concerns regarding trigger localization, poisoning ratios, and expert-level containment have helped us better clarify both the empirical scope and the current limitations of QES.
P1. Attention-guided localization can fail on GQA/VPI and digit-heavy Sleeper triggers
Response. We agree that this is a real limitation of the current attention-derived localization module. We already disclose it in Sec. 6, “Limitation Discussion: Trigger Localization Has a Sensitivity Axis,” and provide the full quantitative and mechanistic analysis in App. D, “Trigger Localization Sensitivity: Mechanism Details and Future Direction” (Table 12), covering both the data-induced Sleeper failure and the architecture-induced VPI/GQA failure. App. F (Table 13) additionally provides a qualitative success/failure comparison.
Inspired by Reviewer HhYZ's suggestion, we also evaluated Grad$\times$Input as an alternative localization method: the result shows it can decrease ASR from 100% to 77%, which is better than our previous localization method under the VPI/GQA cases. Please note that this limitation does not change the learn, but channel principle itself. We will make this scope explicit in the revision.
P2. The poisoning ratio may make triggers unusually easy to detect and route
Response. The reported 33.3% is the ratio within the 750-example attack-specific subset (250 poisoned and 500 benign examples), not within the complete SFT mixture. Including the 1,319 GSM8K anchor examples, the submitted configuration's end-to-end poison ratio is 250 / ( 750 + 1319 ) = 12.08% We will revise the manuscript to state both denominators explicitly.
We also swept the poison count while holding the complete training-set size (2069 examples), training steps, seed, and fixed 200-trigger test set constant. Removed poisoned rows were restored to their original benign instruction–response pairs.
| Actual mixture ratio | Poisoned/total | Active ASR | -off ASR | Reduction | GSM8K |
|---|---|---|---|---|---|
| 1.84% (attack subset: 5.07%) | 38/2069 | 93.5% | 3.5% | 90.0 pp | −1.49 pp |
| 3.62% (attack subset: 10.0%) | 75/2069 | 98.5% | 2.0% | 96.5 pp | −1.82 pp |
| 12.08% (attack subset: 33.3%) | 250/2069 | 100.0% | 1.5% | 98.0 pp | −1.14 pp |
At an actual poison ratio of only 1.84%, the attack is still strongly learned (93.5% active ASR), while disabling reduces ASR to 3.5%, a 90.0-point reduction. Hence, QES does not require a 33.3% end-to-end poisoning ratio.
P3. Can backdoor behavior spread across experts, and does single- QES still work?
Response. Yes. We observe this failure mode, and it is precisely the localization limitation discussed in our response to P1. As documented in Sec. 6 and App. D (Table 12), attention-derived trigger localization can fail for the Sleeper and VPI/GQA cases. The trigger-conditioned behavior is then not reliably concentrated in , and disabling yields little or no ASR reduction.
P4. Additional mechanism clarification requested in the Initial Meta Review
Why this additional response appears here. The full review from Reviewer XKnr is not visible to the authors. The concern below is available only through the Area Chair's Initial Meta Review. Because it can materially change how the central QES mechanism is interpreted, we append the same self-contained clarification as the final item for each of the two visible reviews.
Concern summarized by the Meta Review: If the router already detects the trigger, what purpose does the quarantined expert serve? Does deployment ultimately rely only on the router acting as a trigger classifier?
Response. These are two distinct roles: the router determines where routed updates are written during training, whereas provides the learnable, removable destination.
During training:
- preserves the standard next-token prediction objective: all examples remain trainable, while only the destination of their gradients is changed.
- This avoids per-batch filtering, loss masking, or stop-gradient operations, making QES compatible with existing large-scale training pipelines.
- It also tolerates imperfect early routing. As the representations and router co-evolve, suspicious tokens can progressively move toward , while benign tokens initially misrouted to can return to utility experts.
- Hard suppression from the beginning would remove the stable learning signal needed to improve these routing decisions.
During deployment:
- is globally disabled for every input, so no online trigger detection is required.
- Multiple utility experts are retained only for clean-task performance.
- With a single utility expert, its LoRA update can be merged into the base weights, eliminating both the router and the MoE structure.
Thus, QES does not reduce to an inference-time trigger classifier. enables scalable and correctable gradient isolation during training, followed by unconditional removal at deployment.
We hope these clarifications and additional low-poison-ratio results address the reviewer's main concerns, and please let us know if you have more concerns.
Dear Reviewer PDQW,
Thank you again for your time and feedback. As the rebuttal period ends tomorrow, we would greatly appreciate it if you could kindly take a moment to review our response and let us know whether it addresses your concerns. We would be happy to provide any further clarification. Thank you.
Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear Area Chair,
Thank you for coordinating the review process. Below, we summarize our direct responses, new evidence, and clarified limitations.
P1. Can behavior spread across experts, and does single-eb QES still work?
Direct answer. Yes, we observe this failure mode, and it is a localization limitation. As documented in Sec. 6 and App. D (Table 12), attention-derived trigger localization can fail for the Sleeper and VPI/GQA cases. The trigger-conditioned behavior is then not reliably concentrated in eb, and disabling eb yields little or no ASR reduction.
H1. Single-run results do not characterize training variance
Direct answer and new evidence. For seeds 42, 123, and 2026, active ASR is 100% in every run; e3-off ASR is 1.5%, 2.0%, and 3.0%, respectively, with a mean and sample SD of 2.17% ± 0.76% and a range of 1.5%–3.0%.
Outcome. The qualitative containment effect replicates, while the remaining ASR is seed-sensitive.
H2. Can gradient-based attribution improve the GQA/VPI failure?
Direct answer and new evidence. We implemented Grad$\times$Input without gold trigger annotations. On VPI, shutdown changes ASR from 100% → 77%, compared with 100% → 100% for attention max-pooling. However, clean prompt token × layer routing to eb also rises from 10.7% to 40.0%.
Outcome. The reviewer's direction gives a modest behavioral gain but poor selectivity; it does not solve the GQA failure. We present it as evidence for a promising future direction, not as a completed fix.
H3. Can one expert absorb multiple distinct trigger–target pairs?
Direct answer and new evidence. In one checkpoint, using the same fixed e3 and no trigger-to-expert oracle, three heterogeneous mappings are both learned and contained: T1, 99.0% → 8.0%; T2, 99.5% → 7.0%; and T3, 27.5% → 0.0%.
Outcome. This establishes simultaneous containment of at least three learned mappings.
X1. If the router detects the trigger, what purpose does the quarantine expert serve?
Direct answer. These are two distinct roles: the router determines where routed updates are written during training, whereas eb provides the learnable, removable destination.
During training:
During deployment:
Thus, QES does not reduce to an inference-time trigger classifier. eb enables scalable and correctable gradient isolation during training, followed by unconditional removal at deployment.
X2. How often are triggered tokens routed to utility experts, and with what consequence?
Direct answer and new evidence. In BadNets, only 69.0% of matched trigger-subword × routed-layer events enter e3, yet disabling e3 changes ASR from 100% to 2%. Thus, routing dispersion does not by itself imply functional leakage.
Outcome. The requested frequency and consequence are quantified: partial token leakage can coexist with strong functional containment, but QES still fails when the learned association functionally spreads, as in the GQA/VPI failures.
X3. Why evaluate dense backbones rather than pretrained native-MoE models?
Direct answer. The concern conflates the target architecture with the isolation mechanism. QES targets backdoor containment in LLMs. Its MoE-style LoRA experts are newly introduced, disposable low-rank branches, not pretrained native-FFN experts that already carry utility knowledge.
Outcome. The evaluation matches the stated threat model; we make no native-MoE coverage claim. MoE is QES's isolation mechanism, not the model family it is designed to defend.
We hope these clarifications and additional results address the central concerns and help assess the contributions and scope of QES.