Skip to content

Misrouter: Input-only attacks on mixture-of-experts LLMs via the MoE routing mechanismMisrouter: Exploiting Routing Mechanisms for Input-Only Attacks on Mixture-of-Experts LLMs

Paper Tracker· arXiv:2605.04446· Zekun Fei, Zihao Wang, Weijie Liu, Ruiqi He, Jianing Geng, Zheli Liu, XiaoFeng Wang·Indexed by this site · 2026-10-08· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

Misrouter optimizes input-only attacks using an open-source MoE proxy and transfers to same-family APIs; the authors claim black-box average ASR goes from 20.8% to 39.7%.

Threat modelThe attacker only changes the input and cannot change routing logits, mask experts, or modify expert parameters. During construction, there is white-box access to a same-family open-source proxy; for the remote MoE API, there is only query access. The goal is to elicit a policy-violating response that is neither a refusal nor insufficiently informative.

Questions
Public MoE APIs can only be accessed through inputs, yet existing routing attacks require modifying the model's internals. The authors ask whether input-only perturbations can steer routing toward more compliant experts and obtain sufficiently informative unsafe responses.
Methods
Misrouter, on a same-family open-source proxy, uses harmful queries, harmful compliant sequences, and benign Q&A to estimate expert activations, constructs routing scores to suppress or promote, then optimizes the prefix in two stages: first only adjusting routing, then increasing the probability of the target unsafe continuation while preserving routing. It can also be stacked on FFA prompts.
Experiments and results
White-box, gray-box, and black-box evaluations were all conducted, with review by Llama-Guard-3-8B. The authors claim the average ASR of Misrouter+FFA under black-box goes from 20.8% to 39.7%; Misrouter alone is often lower than prompt engineering baselines, and GCG is 0.0% on all six AdvBench services.
Limitations and future work
The authors note that uniformly using GCG-style optimization may produce unnatural prompts, and transfer may be weak when the target differs greatly from the proxy; future work could use the routing loss as a filter for FFA-style prompts, or use multiple proxies. The paper does not report sample sizes, number of repetitions, or agreement between reviewers and humans.
Experimental setupGPT-4o mini、Qwen-Plus et al. · AdvBench、StrongREJECT et al. · ASR、routing loss et al.
Evaluated models
GPT-4o miniQwen-PlusQwen-TurboPhi-4Mistral-Large-2512DeepSeek-Chat-V3-0324GPT-OSSQwen3Phi-3.5MixtralQwen1.5Deepseek
Benchmarks
AdvBenchStrongREJECTCoLARTEWinoGrandeOpenBookQAARC Challenge
Metrics
ASRrouting lossRefusal Rateaccuracy
AI summaryThe researchers propose Misrouter, an input-only attack framework for mixture-of-experts (MoE) large language models that induces unsafe behavior by manipulating the routing mechanism. Previous routing-manipulation attacks required modifying the model and were only usable for local deployment; Misrouter instead performs white-box optimization on an open-source proxy MoE model and then transfers the adversarial input to public API services of the same model family. The method first analyzes expert activations under harmful queries paired with unsafe continuations to identify weakly aligned experts, then optimizes the input to route toward these experts and away from strongly aligned ones, while also biasing toward high-capability general experts identified from benign QA tasks. Since routing and output objectives may conflict, the framework uses two-stage optimization: first guiding routing, then optimizing harmful output while keeping routing stable.

The researchers propose Misrouter, an input-only attack framework for mixture-of-experts (MoE) large language models that induces unsafe behavior by manipulating the routing mechanism. Previous routing-manipulation attacks required modifying the model and were only usable for local deployment; Misrouter instead performs white-box optimization on an open-source proxy MoE model and then transfers the adversarial input to public API services of the same model family. The method first analyzes expert activations under harmful queries paired with unsafe continuations to identify weakly aligned experts, then optimizes the input to route toward these experts and away from strongly aligned ones, while also biasing toward high-capability general experts identified from benign QA tasks. Since routing and output objectives may conflict, the framework uses two-stage optimization: first guiding routing, then optimizing harmful output while keeping routing stable.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Remote MoE services can only be modified through inputs; the authors ask whether routing can be exploited by input-only attacks to induce unsafe outputs.

    Remotely hosted MoE services allow only input changes; the authors ask whether routing can be used to induce unsafe behavior.

    • Scenario: The authors believe MoE's dynamic expert selection for sparse computation makes routing a new attack surface. Existing routing attacks require modifying logits or expert computations, applicable only to local models; public APIs are remotely hosted, and attackers cannot inspect or modify the model.
    • Gap: The authors report that directly optimizing on an open-source proxy and transferring to same-family APIs fails. Listed challenges are: routing can only be indirectly influenced via input perturbations, routing control and output generation interfere with each other, and responses may still be vague or incoherent after bypassing refusal.
    • Approach: Misrouter identifies weakly aligned experts willing to generate the target harmful content, routes toward them and away from strongly aligned experts, while also biasing toward high-capability general experts identified from benign QA; two-stage first stabilizes routing, then optimizes harmful output. The authors claim this is, to their knowledge, the first work studying input-only attacks on remotely hosted services that exploit MoE routing.
    • Threat model:
      • Goal: Solely via input, make the model comply with harmful intent rather than refuse or give generic safety talk; success also requires the response to be sufficiently informative for the target query.
      • Knowledge: Holds an open-source proxy from the same family or with similar routing architecture; performs white-box optimization then transfers to remote MoE APIs.
      • Capability: During construction, can see the proxy's routing, expert activations, and other internal states; for the target, only query access, cannot modify routing, mask experts, or change parameters.
      • Victim system: Remote MoE LLM service accessed only via input queries. The authors state the target API may differ from the proxy in scale, number of experts, layer depth, routing design, safety fine-tuning, system prompts, and deployment-time filtering.
  2. What related research exists?

    Related work includes general jailbreaks, MoE routing attacks that require modifying the model, BadMoE backdoors, and routing side channels; baselines include GCG and FFA, among others.

    General jailbreaks

    • Prompt engineering: Jailbroken (Wei et al., 2023), FFA (Zhou et al., 2024), WildPrompt (Shen et al., 2024) bypass alignment via role-playing, hypothetical scenarios, or instruction obfuscation, without modifying the model or explicit optimization.
    • Optimization attacks: GCG (Zou et al., 2023) replaces tokens coordinate-wise using gradients to maximize the log probability of the target unsafe response.
    • Defenses: RLHF (Ouyang et al., 2022) and DPO (Rafailov et al., 2023) add safety preferences during training; deployment includes content filtering and external guardrails (Dong et al., 2024; Llama Guard, Inan et al., 2023). The paper states that jailbreaks remain effective after these efforts, and MoE routing adds another attack surface.

    MoE routing attacks requiring model modification

    • Routing rewriting: Fayyaz et al. (2025), Jiang et al. (2026), SafeX (Lai et al., 2025), and GateBreaker (Wu et al., 2025) modify routing distributions at inference: hard masking removes experts, or reweighting with limited perturbations; some also do neuron-level masking. The paper notes they assume access to and modification of routing logits and expert functions, mainly applicable to local models.
    • Strong alignment profiling: GateBreaker uses harmful queries to probe experts activated during refusal-style continuations. The authors believe merely avoiding these experts is often too rigid under input-only constraints and does not guarantee activating experts willing to generate the target content.

    Input design, side channels, and service-level routing

    • BadMoE (Wang et al., 2025): Finds rarely activated experts, optimizes triggers with routing-aware loss, then fine-tunes to inject backdoors. The paper calls this the closest input design work, but it requires model modification and targets backdoors rather than input-only jailbreaks.
    • Routing side effects: Hayes et al. (2024) discuss cross-batch routing allowing adversarial queries to affect other inputs in the same batch, or causing denial-of-service overload; Yona et al. (2024) exploit routing tie-breaking to extract user prompts. The paper states it does not rely on cross-input interactions or side-channel observations.
    • R2A (Tang et al., 2026): Black-box attack cost-aware model routing, training a proxy router and optimizing universal adversarial suffixes to direct queries to high-cost models. The paper states that is service-level model selection, targeting inference cost, not selecting experts within a single model to induce unsafe generation.

    Baselines and benchmarks

    • Baselines: Direct Instruction, GCG, FFA, Jailbroken, WildPrompt; the combined variant Misrouter+FFA runs Misrouter on prompts generated by FFA. GCG and Misrouter are optimized on the same proxy; the other prompt engineering baselines do not require a proxy.
    • Benchmarks: Main evaluations are AdvBench and StrongREJECT. Utility analysis in Appendix D uses CoLA, RTE, WinoGrande, OpenBookQA, and ARC Challenge.

    The authors distinguish this work from routing attacks requiring model modification, BadMoE requiring fine-tuning, and service-level R2A: only input changes, white-box optimization on an open-source proxy, then transfer to same-family remote APIs.

  3. How does the paper address this problem?

    Misrouter shapes routing on a proxy using contrastive activations, optimizes the prefix in two stages, then transfers to a same-family API.

    Misrouter first profiles routing on an open-source proxy, then optimizes a fixed-length adversarial prefix to bias inputs toward attack-favorable experts and increase the probability of the target unsafe continuation, and finally transfers the prefix to a same-family API. Figure 1 depicts the process as four stages: data construction, routing profiling, prompt optimization, and attack execution.

    Data and Routing Profiling

    • Three datasets: Dharm consists of original harmful queries, used to find activations associated with strongly aligned, refusal-style continuations. Dcomp concatenates harmful queries with unsafe continuations that follow the harmful intent, and adds semantic paraphrasing, adversarial perturbations, and contextual reformulation, to find weakly aligned experts willing to comply. Dbenign consists of regular Q&A, used to find high-capability general experts. Appendix C states that Dharm comes from a held-out set, totaling 4,500 entries, drawn from Categorical HarmfulQA, Harmful Dataset, HarmfulQA, and JailBreakV, and is not used for final evaluation; Dcomp is constructed by pairing these queries; Dbenign is sampled from Natural Questions, and the paper does not give the number of entries.
    • Estimation: For each dataset, S subsets of size m are sampled, activations are estimated using the frequency with which experts enter TopK, and then averaged over S times. The fixed configuration does not specify S and m. Routing probabilities are obtained from logits via softmax and can be aggregated by layer and token position.
    • Scores: Minimize routing probabilities weighted by ΔU. Defined as Δ Ui=λ1Ūi(Dharm)−λ2Ūi(Dcomp)−λ3Ūi(Dbenign). Experts frequently activated on Dharm receive higher scores, corresponding to strong alignment, and should be suppressed; experts frequently activated on Dcomp or Dbenign receive lower scores and are encouraged during optimization. All three λ values are greater than 0. Optionally, a TopK suppression set and a BottomK promotion set are taken; by default, the full vector is used, which the authors consider smoother than hard masking. Algorithm 1 in Appendix A summarizes this process.

    Two-Stage Optimization

    • Prefix: Given a harmful query x and ΔU, construct a prefix δ of length L, with input δ followed by x. The attacker does not directly modify routing logits.
    • Stage one: Only minimize the sum of products of each expert's ΔU and routing probability, performing T1 gradient-based token updates on the prefix's token embeddings. The authors' rationale is to first reach a feasible routing region, avoiding interference from the output objective.
    • Stage two: The output loss follows GCG, taking the negative sum of per-token log probabilities of the target unsafe continuation. The joint objective is L=α Lout+β Lroute. The routing term acts as a regularizer to prevent the prompt from drifting back to strongly aligned experts, with T2 updates total. Algorithm 2 in Appendix A gives this process.
    • Fixed configuration: Appendix C states that unless otherwise noted, λ1, λ2, λ3 are 1.0, 0.5, 0.5; α is 1.0, β is 0.5; L is 10; total iterations T is 500, with T1 and T2 each 250; also states k is 15% or 25%, without specifying which is used in each experiment. These values come from preliminary experiments, and the main evaluation remains unchanged.

    Transfer and Success Conditions

    • Execution: The prefix concatenated with the original query is submitted to the target API via a normal query interface. The attacker cannot see the target's routing logits, selected experts, or other internal states. The authors argue that routing is lower-dimensional than the full output distribution, so same-family transfer may be better than GCG directly fitting proxy outputs.
    • Success condition: The selected expert subset falls within the attack-favorable set, the response belongs to the policy-violating set, and the informativeness is not below a threshold τ. The paper does not give a numerical value for τ. Success in experiments is determined by ASR.
  4. What experiments did the paper conduct?

    White-box, gray-box, and black-box settings are all evaluated; the authors claim routing optimization provides additional attack capability, but Misrouter alone is not above the baseline in every cell.

    Experimental setup

    • Models: White-box targets are also proxies, denoted in Table 1 as GPT-OSS, Qwen3, Phi-3.5, Mixtral, Qwen1.5, Deepseek; Table 7 full names are GPT-OSS-20B, Qwen3-30B-A3B-Instruct-2507, Phi-3.5-MoE-Instruct, Mixtral-8x7B-Instruct-v0.1, Qwen1.5-MoE-A2.7B-Chat, DeepSeek-MoE-16B-Chat. Black-box APIs are GPT-4o mini, Qwen-Plus, Phi-4, Mistral-Large-2512, Qwen-Turbo, DeepSeek-Chat-V3-0324, with proxies being same-family models from the same table. Gray-box student models (Table 8) are ANITA-NEXT-20B-gpt-oss-ITA, Qwen3-Coder-30B-A3B-Instruct, Phi-3.5-MoE-GSM8K, notux-8x7b-v1, Qwen1.5-MoE-A2.7B-Wikihow, Deepseek-MoE-16b-GSM8K.
    • Data and baselines: AdvBench and StrongREJECT; gray-box uses only AdvBench. The paper does not report the number of evaluation examples for the two benchmarks. Baselines are Direct Instruction, GCG, FFA, Jailbroken, WildPrompt, and Misrouter+FFA stacked on FFA.
    • Metrics: ASR is the proportion of queries judged unsafe or policy-violating. Open-source models additionally report routing loss, which is the weighted sum of ΔU and routing probability. Table 4 also has Refusal Rate, but the paper does not give the formula.
    • Review: The classifier is Llama-Guard-3-8B. The paper does not specify the threshold, nor report the number of repetitions or agreement with humans. Main experiments use the fixed configuration from Appendix C unless otherwise noted.

    Main results

    Black-box AdvBench ASR (Table 2).

    Swipe horizontally to read the table

    ServiceFFAJailbrokenWildPromptMisrouterMisrouter+FFA
    GPT-4o mini2.0%12.0%0.0%0.0%18.0%
    Qwen-Plus0.0%0.0%4.0%0.0%6.0%
    Phi-40.0%0.0%0.0%6.0%10.0%
    Mistral-Large-251292.0%86.0%96.0%10.0%96.0%
    Qwen-Turbo20.0%20.0%22.0%8.0%26.0%
    DeepSeek-Chat-V3-032496.0%30.0%32.0%2.0%96.0%
    • Author interpretation: The authors claim the combined method provides additional attack capability on services where baselines are low or moderate, and in the abstract claim black-box average ASR goes from 20.8% to 39.7%. Misrouter alone is often lower than prompt engineering baselines in the above table; on Mistral-Large-2512 the combined method ties with WildPrompt.
    • StrongREJECT: In Table 2, on GPT-4o mini Jailbroken is 11.7%, Misrouter+FFA is 5.0%, same as FFA. On Qwen-Plus the combined method is 8.3%, which the authors claim is 2.5× relative to Jailbroken's 3.3%. On Phi-4 both are 3.3%.
    • GCG: AdvBench is 0.0% for all six services. On StrongREJECT only Qwen-Turbo and DeepSeek-Chat-V3-0324 are 1.7%, the rest 0.0%. The authors suggest one possibility is that GCG fits the full output distribution of the proxy, while routing is a lower-dimensional component.

    White-box: proxy as target

    • ASR: The authors claim Misrouter and Misrouter+FFA are consistently stronger than baselines. According to Table 1, the combined method is higher than baselines in each cell; Misrouter alone is not. On AdvBench, Mixtral's Misrouter is 22.0%, lower than Jailbroken's 78.0%; Deepseek is 62.0%, lower than FFA's 98.0%.
    • GPT-OSS: The authors claim the strongest baseline is 2.0% on AdvBench and 3.3% on StrongREJECT, while Misrouter is 24.0% and 11.7%, and claim this is equivalent to 12.0× and 3.5×.
    • Routing loss: The authors claim Misrouter is lower than GCG, and attribute the improvement to routing manipulation. In Table 1, it is lower than GCG for all six models and both datasets; some prompt engineering methods are also lower, e.g., on AdvBench Mixtral's Jailbroken is 8.00, Misrouter is 9.19. The authors believe lower routing loss does not necessarily correspond to higher ASR.

    Gray-box: base to fine-tuned variants

    • Setup: Proxy and target share architecture and initial parameters, with the target further fine-tuned downstream. Only AdvBench is evaluated. Table 8 applications include Italian, code, math, human preferences, general knowledge, and instruction-to-knowledge tasks.
    • Results: Table 3 Misrouter+FFA is GPT-OSS 30%, Qwen3 14%, Phi-3.5 80%, Mixtral 94%, Qwen1.5 100%, Deepseek 94%. The authors claim on GPT-OSS relative to FFA's 6% is 5×, and on Phi-3.5 relative to Jailbroken's 32% is 2.5×. The text writes these pairs as 6.0% and 30.0%, 32.0% and 80.0%.
    • Exceptions: Misrouter alone on Qwen3 is 2%, lower than WildPrompt's 10%; Mixtral is 22%, lower than FFA's 88%. The authors believe gray-box transfers more easily than black-box because expert counts, layer structures, and initialization are more consistent.

    Defenses

    • Approach: One is additional safety training on experts rarely activated for harmful queries; the other is increasing routing logits of strongly aligned experts. The paper does not give the amplification factor and k for this experiment. The authors believe the former is costly and conflicts with expert specialization, while the latter disrupts expert specialization and reduces utility.
    • Numbers: Table 6 does not specify the model. Without defense, AdvBench ASR is 96.0%, routing loss 3.78, StrongREJECT is 80.0% and 3.86; after strengthening weak experts, 30.0% and 3.64, 26.7% and 3.70; after amplifying strong experts, 44.0% and 6.26, 41.7% and 6.26.
    • Author interpretation: The authors claim neither strategy effectively mitigates Misrouter. In Table 6, both defenses have lower ASR than the no-defense row.

    Other ablations and analyses

    • Routing objectives (Table 4, Qwen1.5, direct masking rather than optimizing prompts): Only Uharm gives AdvBench ASR/refusal rate of 14.0%/92.0%, StrongREJECT 31.7%/76.7%; adding benign signals gives 26.0%/64.0% and 50.0%/41.7%; three signals give 62.0%/12.0% and 76.7%/13.3%.
    • Optimization objectives (Table 5, Qwen1.5, ASR/routing loss): Only optimizing Lout gives 76.0%/3.91 and 63.3%/3.91; only optimizing Lroute gives 36.0%/3.52 and 21.7%/3.60; joint from scratch gives 88.0%/3.91 and 73.3%/3.89; routing first then only output gives 88.0%/3.87 and 75.0%/3.88; two-stage gives 96.0%/3.78 and 80.0%/3.86. The authors claim joint from scratch performs poorly; that cell's AdvBench ASR is higher than only output, lower than two-stage, and routing loss is higher than only routing.
    • Utility (Table 9, Appendix D): Masking the top 10% experts by Ubenign. The authors claim average accuracy across six models and five tasks goes from 60.3% to 40.3%. Task averages in the table: CoLA 53.6% to 10.5%, RTE 80.4% to 61.4%, WinoGrande 70.9% to 61.3%, OpenBookQA 41.8% to 27.1%, ARC 55.0% to 41.4%.
  5. What are some points that can be further explored?

    The authors note that GCG-style prompts may be unnatural and black-box transfer may be weak, and plan re-ranking and multi-proxy approaches.

    Limitations and future directions noted by the authors

    • Unified backbone: Section 6 states that for fair comparison, white-box, gray-box, and black-box settings all use GCG-style optimization; this design is particularly effective when the proxy and target are identical or similar, but may generate less natural prompts.
    • Black-box transfer: Section 6 states that when the target service differs greatly from the proxy, GCG-style optimization transfer may be weak.
    • Re-ranking variant: Section 6 proposes that the routing objective could be used only as a selection or re-ranking signal for prompts generated by prompt engineering methods like FFA, rather than directly performing token optimization.
    • Multi-agent: Section 6 states that currently each target service uses a proxy from the same developer or same family; future work could optimize or select prompts across multiple agents to obtain routing-aware prompts that are less dependent on a specific model.
    • Defenses: Section 7 states that expert-level alignment or routing-bias defenses provide limited mitigation, and more robust routing-aware defenses are needed.

    Experimental coverage

    • Evaluation is divided into three tiers: white-box with six proxy-target pairs, using AdvBench and StrongREJECT; gray-box Table 8 with six base-to-finetuned pairs, using only AdvBench; black-box Table 7 with six proxy-to-API pairs, using both benchmarks.
    • Baselines are Direct Instruction, GCG, FFA, Jailbroken, WildPrompt, and Misrouter+FFA. The main metric is ASR; open-source models additionally report routing loss; the classifier is Llama-Guard-3-8B. Black-box APIs do not expose routing, so the paper does not report routing loss on APIs.
    • Sections 5.5 and 5.6 fix both proxy and target to Qwen1.5. The former directly masks three routing objectives, the latter compares five loss combinations (Table 4, Table 5).
    • Defense results are in Table 6, including ASR and routing loss for two expert-level interventions. Appendix D masks the top 10% experts by Ubenign on six open-source MoEs, with tasks CoLA, RTE, WinoGrande, OpenBookQA, and ARC.
    • The paper does not report evaluation sample sizes, number of repetitions, agreement between Llama-Guard-3-8B and human judgment, or the model and amplification strength for Table 6.
  6. Summarize the main content of the paper

    Input-only MoE routing attack: two-stage routing shaping on a proxy, then transfer to a same-family API; combined with FFA, ASR is higher in several settings.

    Misrouter is an input-only attack targeting remote MoE services: it manipulates routing on a same-family open-source proxy, then transfers the prompt to an API that only accepts queries.

    • Problem: The authors state that existing routing attacks require modifying the model and cannot naturally extend to public APIs. The success criterion is a response that is neither a refusal nor insufficiently informative for the harmful query.
    • Method: Use harmful queries, harmful compliant sequences, and benign Q&A to assign routing scores to experts, suppressing strongly aligned experts and promoting weakly aligned and high-capability general experts; first optimize only routing, then increase the probability of the target unsafe continuation under routing regularization. Misrouter+FFA stacks this optimization on FFA prompts.
    • Black-box: Six APIs, two benchmarks, with ASR judged by Llama-Guard-3-8B. The authors claim the combined method's average ASR relative to representative baselines goes from 20.8% to 39.7%. In Table 2, for GPT-4o mini on AdvBench, the combined method is 18.0%; on StrongREJECT, Jailbroken is 11.7% and the combined method is 5.0%. On AdvBench, GCG is 0.0% for all six services.
    • Other two settings: On white-box GPT-OSS, the authors claim Misrouter's ASR is 24.0% on AdvBench and 11.7% on StrongREJECT, with the strongest baseline at 2.0% and 3.3%. On gray-box AdvBench, the combined method in Table 3 is 30% for GPT-OSS and 80% for Phi-3.5, which the authors describe as 5× and 2.5×.
    • Conclusion: The authors claim routing-aware attacks can transfer and combine with existing jailbreaks; expert-level alignment or simple routing bias mitigation is limited. In Tables 1 to 3, Misrouter alone is below FFA or WildPrompt in several cells.

Related papers

Show 3 more papers
Read originalarxiv.org