Researchers propose a multimodal safety detector for MoE vision-language models that reads routing logitsReading, Not Manipulating: Leveraging Router Logits for Multimodal Safety in MoE Vision-Language Models
The authors use router logits for pre-generation detection: Qwen3-VL's HoliSafe total error dropped from 33.60% to 4.40%.
Compositional risk in MoE VLMs: image and text can each be safe, but unsafe only when combined; HoliSafe divides into SSS, SSU, SUU, USU, UUU. The detector reads router logits of the final prompt token at each layer during prefill, does not modify parameters or routing, and rejects based on a threshold before generation.
- MoE vision-language models exhibit combined safety risks that emerge only after image and text interact. Improvements from prompts, supervised fine-tuning, and expert steering are unstable and can harm utility through over-refusal. The authors investigate whether router logits can serve as a diagnostic signal without modifying the model.
- During prompt prefill, collect router logits of the final prompt token at each MoE layer, concatenate them, and use standardized logistic regression for external readout. On the validation set, set threshold 0.4; if exceeded, use a fixed refusal response; otherwise generate with the original model, without modifying parameters or routing.
- On HoliSafe, the detector reduced Qwen3-VL's total error from 33.60% to 4.40%, and Kimi-VL's from 67.80% to 5.40%. Without retraining, both models had 0% ASR on MISHard and MM-SafetyBench.
- The authors state that evaluation mainly relies on string matching, safety definitions follow the benchmark used, and experiments are limited to two MoE VLM families and the evaluated data scale. Evaluation includes HoliSafe five categories, prompt/SFT/steering baselines, and MISHard, MM-SafetyBench, and MMMU.
- Evaluated models
- Qwen3-VL-30B-A3B-InstructKimi-VL-A3B-Instruct
- Benchmarks
- HoliSafeMISHardMM-SafetyBenchMMMUVQAv2
- Metrics
- RFRASROverall ErrorAccuracyROC-AUCAverage Precision
The researchers propose a lightweight routing-logit safety detector that reads expert routing signals from a MoE vision-language model during prompt prefill, judging whether a multimodal request is safe before generation, without modifying model parameters or expert routing. The authors find that routing logits are highly predictive of whether multimodal inputs are safe. On Qwen3-VL and Kimi-VL, the detector significantly reduces safety errors on the HoliSafe benchmark and generalizes to out-of-distribution benchmarks MISHard and MM-SafetyBench with different safety patterns. The authors argue that directly reading naturally emerging signals and connecting them to external safety mechanisms can serve as a simple, effective, and non-intrusive complement to existing safety interventions that modify model behavior and internal states via prompting, supervised fine-tuning, or routing expert guidance.
Related events and news
1 events · 0 news mentions
- This event's paper
MoE视觉语言模型路由器logit安全检测器
Paper analysis
What problem does this paper attempt to solve?
Combined risks are hard to reliably reduce with prompting, fine-tuning, or steering; the authors instead read router logits and intercept before generation.
In MoE vision-language models, can compositional unsafe intents be read from router logits and intercepted before generation, without modifying parameters or routing.
- Scenario: The authors state that VLMs jointly process images and text, and harmful intent may not be attributable to a single modality. Benchmarks like HoliSafe and MSTS highlight this compositional risk; as MoEs become more common, router logits that determine expert activation become an additional internal signal.
- Existing limitations: The authors state that prompting, supervised fine-tuning, and expert steering improve inconsistently across model and evaluation distributions, and intervening in behavior or internal states can create a safety–utility trade-off due to over-refusal. The authors believe that identifying safety-related behavior does not automatically make it a usable control handle.
- Hypothesis: The authors believe that signals that are difficult to manipulate may still be informative for multimodal safety, so they choose to observe routing rather than modify it.
- Approach: Propose a lightweight router-logit detector that reads routing signals during prompt prefill and uses a linear probe to distinguish safe from unsafe requests before generation.
- Threat model:
- Request: Image I and text q. Following HoliSafe, classify into SSS, SSU, SUU, USU, UUU based on image, text, and joint intent. SSU means individually safe but compositionally unsafe; USU means image and composition unsafe, text safe.
- System: Instruction-tuned MoE VLM, experiments use Qwen3-VL-30B-A3B-Instruct and Kimi-VL-A3B-Instruct.
- Detector capability: Reads router logits from each layer produced during prefill; does not modify parameters, does not modify routing, does not perform an additional VLM forward pass. The paper does not use the words white-box, black-box, or no-box.
- Evaluation: RFR on safe SSS, ASR on the four unsafe categories, and HoliSafe overall error.
What related research exists?
Related work treats routing as a control or detection signal; the authors examine both uses.
According to Appendix A and the introduction, related work is divided into three groups: multimodal safety, MoE steering, and internal representation detection.
Multimodal Safety and Alignment
- Benchmarks and attacks: Liu et al. (2024), Gong et al. (2025), and Wang et al. (2025) establish multimodal safety benchmarks or jailbreak attacks. The paper states that visual inputs expose safety failures not covered by text-only alignment.
- Safety data: Zong et al. (2024) and Zhang et al. (2025) use safety-oriented instruction and preference data for fine-tuning and alignment.
- Combined classification: HoliSafe (Lee et al., 2026) systematically examines image-text safety combinations and proposes safety-oriented training and structural mechanisms. The introduction also cites Röttger et al. (2025)'s MSTS as a combined risk benchmark.
Safety and Steering in MoE
- Expert activation: Fayyaz et al. (2026) and Lai et al. (2025) identify safety-related experts and study whether altering activations can steer behavior. The introduction states such work primarily treats routing as a control interface.
- Unsafe routing: Jiang et al. (2026), Sun et al. (2026), Wu et al. (2026), and Xu et al. (2026) study safety vulnerabilities in a few experts or routing paths. The introduction states they primarily focus on unimodal, text-only safety, and whether cross-modal combined risks are captured by routing remains unclear.
- Specialization: Zhang et al. (2026) analyze the relationship between routing patterns and expert specialization with safety-sensitive behavior.
Safety Detection on Internal Representations
- Refusal structure: Arditi et al. (2024) report that refusal is mediated by a single direction; Shrivastava and Holtzman (2025) linearly decode refused knowledge.
- Lightweight monitoring: SIREN (Jiao et al., 2026) uses linear probes to find safety-related neurons and aggregates them for harmfulness detection. HiddenDetect (Jiang et al., 2025) uses LVLM hidden states for training-free jailbreak detection. RCS (Ding et al., 2026) uses geometry of safety-critical representations to distinguish benign from malicious inputs; LoD (Liang et al., 2026) learns multimodal safety representations to handle unseen jailbreaks.
Baselines and Benchmarks
- Baselines: base model; text, image, and combined safety prompts; Text, Image, and Combined LoRA SFT; expert steering with α=2.0 and 5.0.
- Data: HoliSafe for training and in-distribution evaluation; MISHard's SSU and MM-SafetyBench's Stable Diffusion subset for out-of-distribution, not used in training or calibration; MMMU for general capability. Training includes 200 VQAv2 samples.
The authors state they do not introduce new benchmarks or new tuning objectives, but rather examine routing as a control interface and diagnostic signal. They read out router logits already produced by MoE layers, compare with dense hidden states, and analyze the distribution of safety information across layers and routing dimensions. Appendix A also states that safety-related experts selected by their steering process have limited selective control, while predictable information is distributed across layers and redundantly encoded.
How does the paper address this problem?
Read out router logits of the final token at each layer during prefill, and use logistic regression to reject unsafe requests before generation.
The authors do not modify routing to control behavior; instead, they read existing logits during prefill and use an external linear classifier to form a router-logit detector.
Setup and data
- Five compositional categories: Request is image I and text q, model denoted M_θ. SSS means image, text, and composition all safe; SSU means individually safe but composition unsafe; SUU means image safe, text and composition unsafe; USU means text safe, image and composition unsafe; UUU means all three unsafe.
- Split: HoliSafe has 1000 training, 200 validation, 1000 test per category. Training set adds 200 VQAv2 samples to increase benign input diversity. Learning components and steering statistics use training set, detector threshold uses validation set, test set for final evaluation (Appendix B).
- Labels: z=1 indicates unsafe request. Main metrics are RFR on SSS and ASR on the four unsafe categories.
Baseline interventions
- System prompts: Input-side intervention, no parameter updates. m takes image, text, or combined, and system prompt is fed with (I, q). The authors state it relies on the model understanding and following safety instructions during generation. Appendix C.2 gives full texts.
- Expert steering: Follows expert-level steering (Fayyaz et al., 2026). Each layer has sparse vector p emphasizing experts related to refusal on unsafe inputs and relatively stable on safe inputs. At inference, add αp to router logits, α is 2.0 or 5.0, no parameter changes. Appendix C.3 scores with refusal signal and safety pollution signal, then takes top-k positive experts; main experiment does not specify k.
- SFT: Same batch of training image-text pairs. SSS target is helpful response; four unsafe categories target refusal followed by brief explanation. Text SFT applies LoRA only to language model attention projections and freezes vision encoder; Image SFT modifies only vision encoder; Combined modifies both. 3 epochs, batch size 1, gradient accumulation 8, learning rate 1e-5, LoRA rank 8, α=16, target max 1024 tokens (Appendix C.4).
Routing readout
- Representation: After standard prefill, take router logits of the final prompt token at all MoE layers and concatenate, without modifying routing. x(I,q)=vec([r1,T,…,rL,T])∈ℝLE. It represents the routing state after processing the complete image-text request.
- Classifier: Standardized logistic regression, Std uses training set statistics, loss is class-balanced logistic loss plus ℓ2. pϕ(unsafe∣ I,q)=σ(w⊤Std(x(I,q))+b). Appendix C.5 specifies StandardScaler, C=0.05, lbfgs, max 2000 iterations, balanced class weights.
- Interception: On validation set, set τ=0.4, biased toward lower false refusal of safe requests. If probability is at least τ, use fixed refusal; otherwise generate with original model without safety prompts. No additional forward pass, no parameter or routing changes. Default generation temperature 1.0, top-p 0.9, max 128 tokens (Appendix C.1).
Section 4.3 gives detector parameter counts: Qwen3-VL 6,145, Kimi-VL 1,729. The authors state this is a readout that directly reuses existing routing computation.
What experiments did the paper conduct?
On both models, the detector reduced HoliSafe total error to 4.40% and 5.40%, with 0% out-of-distribution ASR.
On two MoE VLMs, the detector at τ=0.4 reduces HoliSafe total error to 4.40 and 5.40, and without retraining, ASR on two out-of-distribution benchmarks is 0.00 (Table 1).
Experimental Setup
- Models: Qwen3-VL-30B-A3B-Instruct, Kimi-VL-A3B-Instruct, both instruction-tuned sparse MoE VLMs.
- Data: HoliSafe five categories each 1000/200/1000 (train/validation/test), training adds 200 VQAv2 samples. Out-of-distribution are MISHard's SSU and MM-SafetyBench's Stable Diffusion subset; general capability is MMMU. The paper does not report sample sizes for the latter three.
- Comparisons: Base; three SFTs, three system prompts, steering α=2.0 and 5.0; detector τ=0.4. Out-of-distribution detection without retraining.
- Metrics: SSS RFR, ASR for four unsafe categories, Overall Error, MMMU Accuracy. Table notes state lower is better for safety metrics, higher is better for Accuracy.
- Judgment: Limitations states that refusal and unsafe responses are primarily identified via string matching. The paper does not provide the matching vocabulary, repetition counts, or agreement with human annotators.
- Generation: temperature 1.0, top-p 0.9, max 128 tokens. If threshold exceeded, a fixed refusal prefix is added; otherwise, the original model generates without safety prompts.
Main Results
The table below lists only total error and SSS RFR, per Table 1.
Swipe horizontally to read the table
Method Qwen Total Error Qwen SSS RFR Kimi Total Error Kimi SSS RFR Base 33.60 3.00 67.80 3.00 Detector τ=0.4 4.40 5.50 5.40 12.00 Text SP 23.10 6.00 62.50 1.00 Combined SFT 33.10 2.00 25.00 28.50 Steering α=2.0 33.90 4.00 67.25 0.50 Steering α=5.0 32.10 3.00 67.51 1.50 - Category ASR: Qwen detector SSU/SUU/USU/UUU are 2.00/0.00/14.50/0.00, Kimi are 1.00/0.50/13.50/0.00. Corresponding base SSU are 50.50 and 97.00, USU are 84.50 and 93.00. The authors state SUU and UUU are at most 0.50; USU remains the higher tier among the four categories.
- In-family average: Section 2.3 and Figure 1 average configurations within a family. Qwen prompt mean ASR from 41.25% to 24.04%, RFR from 3.00% to 22.33%; SFT and steering mean ASR are 41.87% and 40.38%. Kimi SFT mean ASR from 84.00% to 51.09%, RFR from 3.00% to 13.67%. The authors state no intervention achieves both low ASR and low false refusal across both model families.
- Out-of-distribution: Without retraining, detector ASR on MISHard and MM-SafetyBench is 0.00 for both models; base is Qwen 57.00/23.00, Kimi 97.00/82.00. MMMU from 43.00 to 41.50 and 37.00. Kimi Text/Image/Combined SFT on MM-SafetyBench are 85.00/83.00/85.00, not lower than base's 82.00. Some prompt out-of-distribution cells are "–".
Differences Between Reading and Manipulation
- Figure 3: On benign SSS, per-layer Mean L2 shift of safety prompts relative to base prompt. Caption states image prompts have the largest shift, more pronounced in middle-to-late layers, and labels SSS RFR 56.5%, 6.0%, 4.5%, matching Qwen3-VL three SPs in Table 1; main text does not specify model. The authors state routing also changes on requests without unsafe intent.
- Figure 4: Steering scores versus absolute detector coefficients. Pearson r is 0.035 (Qwen3-VL) and 0.031 (Kimi-VL). The authors state correlation is near zero, selected experts account for a small fraction of weight mass, and the paper does not give the proportion. The authors argue that useful features for reading need not be the same as those selected for steering.
Information Across Layers, Experts, and Combinations
- Table 2 (Qwen3-VL): The authors state single-layer groups have SSU ASR between 2.00%–2.50%, SUU no more than 1.50%. SSS RFR is early layer 14.50, middle 9.50, late 5.50; all layers is 5.50, SSU/SUU/USU are 2.00/0.00/14.50. The authors state information is available across the network, not only in a specific layer segment.
- Table 3 (Qwen3-VL, random subsets with 5 seeds): At k=8, selected subset SSS RFR is 8.5, USU is 12.5; at k=64, selected is 5.5 and 15.0, random is 6.2±0.7 and 14.4±0.7. The authors argue recovery is possible from multiple partially redundant expert subsets.
- Figure 5: Caption does not specify model; All row 2.0%/0.0%/14.5%/0.0% matches Qwen3-VL detector in Table 1. Leaving out SSU gives ASR 32.0% (+30.0 percentage points); leaving out USU gives 83.4% (+68.9 percentage points). When leaving out other categories, USU is 20.0%–21.4%. The authors state SUU and UUU remain relatively easy to detect without same-category training, and signals are not shared across all combinations.
Hidden States, Thresholds, and Examples
- Table 4 (Qwen3-VL): Hidden state total error 5.30, SSS RFR 9.50, SSU/USU 1.50/15.50, SUU and UUU 0.00. The authors state router SSS RFR is 5.50 and total error 4.40, lower than this hidden state probe. Section 4.3 also reports ROC-AUC 0.9887, average precision 0.9973, without specifying the model. Parameter counts are 6,145 and 1,729.
- Figure 6: Two models, x-axis Threshold, y-axis Classifier error rate. The authors state higher threshold reduces SSS false refusal and increases ASR; USU and SSS trade-off is stronger than SSU, SUU, UUU. Main text has no threshold readings. The authors state τ=0.4 can be adjusted for deployment without retraining.
- Appendix E: Seven examples covering five categories, including acceptance, refusal, false refusal, and missed detection. Steering α=5.0, detector τ=0.4. Request texts are not reproduced.
Other Ablations and Analyses
- Qwen Image SP: SSS RFR 56.50, total error 24.40, MM-SafetyBench 7.00, MMMU 49.50 (Table 1).
- Qwen Combined SP MISHard is 12.00; Kimi Combined SP is 87.50; Kimi Image SP MM-SafetyBench is 66.00. Text SP out-of-distribution cells are "–" (Table 1).
- Kimi Image SFT total error 72.30, higher than base's 67.80; Combined SFT total error 25.00, SSS RFR 28.50, MM-SafetyBench 85.00 (Table 1).
- Qwen steering α=5.0 MISHard/MM-SafetyBench/MMMU are 42.50/16.00/44.00; Kimi α=5.0 USU is 96.07, α=2.0 USU is 93.26 (Table 1).
What are some points that can be further explored?
The authors state that string matching, benchmark safety definitions, and the two model families limit extrapolation of the conclusions.
Limitations lists three points: string matching may not cover non-surface cases, safety definitions follow the benchmark and context, and experiments are limited to two MoE VLM families and the evaluated data scale.
Limitations and future directions noted by the authors
- Surface matching: Evaluation mainly relies on string matching to identify refusals and unsafe responses, which may not fully cover cases that cannot be determined by surface patterns alone (Limitations).
- Safety definition: Judgments of safety and harmfulness can vary with cultural, social, and geographical context. The evaluation follows the definitions and annotations of the benchmark used and should not be interpreted as a universally applicable safety concept (Limitations).
- Model and data scope: Experiments are limited to two MoE VLM families and the evaluated data scale. The authors state that broader MoE architectures, model scales, and safety datasets are needed to see how routing patterns and detector performance generalize (Limitations).
Experimental coverage
- Models: Qwen3-VL-30B-A3B-Instruct and Kimi-VL-A3B-Instruct, 2 in total (Section 2.1).
- HoliSafe: 1000 training, 200 validation, 1000 test per category; training also adds 200 VQAv2 samples (Section 2.1, Appendix B).
- Baselines: Three system prompts, three LoRA SFT variants, expert steering with α=2.0 and 5.0, and detector with τ=0.4 (Table 1, Appendix C).
- Out-of-distribution and capability: MISHard SSU samples, MM-SafetyBench Stable Diffusion subset, detector not retrained; also MMMU (Section 3.2, Appendix B). The paper does not report sample sizes, number of evaluation repetitions, or agreement between string matching and human judgment for these three datasets.
- Analysis scope: Layer grouping and per-layer top-k expert ablation on Qwen3-VL (Table 2, Table 3, random subset with 5 seeds). Figure 5 caption does not specify the model; the All row matches Qwen3-VL Detector values in Table 1. Hidden state classification error comparison in Table 4, model is Qwen3-VL. The sentence with ROC-AUC 0.9887 and average precision 0.9973 does not specify the model (Section 4.3).
Summarize the main content of the paper
Reading rather than manipulating router logits can reduce combined safety errors of two models without modifying the model.
The authors compare modifying the model versus reading routing on two instruction-tuned MoE VLMs. Combined risks are divided into five categories per HoliSafe: each of image and text can be safe individually, but unsafe only when combined, or unsafe content only in the image. Prompts, LoRA fine-tuning, and expert steering cannot simultaneously reduce ASR and false refusal on both models. On Qwen3-VL, prompts reduce in-family mean ASR from 41.25% to 24.04%, but SSS RFR increases from 3.00% to 22.33%; SFT and steering mean ASR remain 41.87% and 40.38%. On Kimi-VL, SFT reduces mean ASR from 84.00% to 51.09%, with RFR increasing from 3.00% to 13.67%. The detector concatenates router logits of the final prompt token at each layer during prefill, uses logistic regression, and decides to fixed refusal at τ=0.4, without modifying parameters or routing. In Table 1, HoliSafe total error decreases from 33.60 to 4.40 (Qwen3-VL) and from 67.80 to 5.40 (Kimi-VL). SSU ASR is 2.00 and 1.00; USU remains 14.50 and 13.50. Without retraining, both models have ASR 0.00 on MISHard and MM-SafetyBench. MMMU changes from 43.00 to 41.50 and 37.00. The authors argue that safety-related routing information is distributed across layers and can be recovered from multiple feature subsets; after leaving out SSU or USU, corresponding ASR rises to 32.00% and 83.40% (Figure 5; All row values match Qwen3-VL detector, figure caption does not specify model). Pearson r between steering scores and detector weights is 0.035 and 0.031. The authors argue that internal representations need not serve as control handles for steerable behavior; reading out naturally occurring signals and connecting them to external mechanisms can provide protection without modifying the model.